]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.20
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124
125 #endif
126
127
128 /***********************************************************************
129 * pyrun.swg for wxPython
130 *
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 * anyway.
135 *
136 ************************************************************************/
137
138 #include "Python.h"
139
140 #ifdef __cplusplus
141 extern "C" {
142 #endif
143
144 #define SWIG_PY_INT 1
145 #define SWIG_PY_FLOAT 2
146 #define SWIG_PY_STRING 3
147 #define SWIG_PY_POINTER 4
148 #define SWIG_PY_BINARY 5
149
150 /* Flags for pointer conversion */
151
152 #define SWIG_POINTER_EXCEPTION 0x1
153 #define SWIG_POINTER_DISOWN 0x2
154
155 /* Exception handling in wrappers */
156 #define SWIG_fail goto fail
157
158 /* Constant information structure */
159 typedef struct swig_const_info {
160 int type;
161 char *name;
162 long lvalue;
163 double dvalue;
164 void *pvalue;
165 swig_type_info **ptype;
166 } swig_const_info;
167
168 /* Common SWIG API */
169 #define SWIG_ConvertPtr(obj, pp, type, flags) \
170 SWIG_Python_ConvertPtr(obj, pp, type, flags)
171 #define SWIG_NewPointerObj(p, type, flags) \
172 SWIG_Python_NewPointerObj(p, type, flags)
173 #define SWIG_MustGetPtr(p, type, argnum, flags) \
174 SWIG_Python_MustGetPtr(p, type, argnum, flags)
175
176 /* Python-specific SWIG API */
177 #define SWIG_newvarlink() \
178 SWIG_Python_newvarlink()
179 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
180 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
181 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
182 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
183 #define SWIG_NewPackedObj(ptr, sz, type) \
184 SWIG_Python_NewPackedObj(ptr, sz, type)
185 #define SWIG_InstallConstants(d, constants) \
186 SWIG_Python_InstallConstants(d, constants)
187
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199
200 /* Contract support */
201
202 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
203
204 #ifdef __cplusplus
205 }
206 #endif
207
208
209
210 /* -------- TYPES TABLE (BEGIN) -------- */
211
212 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
213 #define SWIGTYPE_p_wxBrush swig_types[1]
214 #define SWIGTYPE_p_wxColour swig_types[2]
215 #define SWIGTYPE_p_wxDC swig_types[3]
216 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
217 #define SWIGTYPE_p_byte swig_types[5]
218 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
219 #define SWIGTYPE_p_wxIconLocation swig_types[7]
220 #define SWIGTYPE_p_wxImage swig_types[8]
221 #define SWIGTYPE_p_wxMetaFileDC swig_types[9]
222 #define SWIGTYPE_p_wxMask swig_types[10]
223 #define SWIGTYPE_p_wxFont swig_types[11]
224 #define SWIGTYPE_p_wxWindow swig_types[12]
225 #define SWIGTYPE_p_wxSize swig_types[13]
226 #define SWIGTYPE_p_double swig_types[14]
227 #define SWIGTYPE_p_wxMemoryDC swig_types[15]
228 #define SWIGTYPE_p_wxFontMapper swig_types[16]
229 #define SWIGTYPE_p_wxEffects swig_types[17]
230 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18]
231 #define SWIGTYPE_p_wxPalette swig_types[19]
232 #define SWIGTYPE_p_wxBitmap swig_types[20]
233 #define SWIGTYPE_p_wxObject swig_types[21]
234 #define SWIGTYPE_p_wxRegionIterator swig_types[22]
235 #define SWIGTYPE_p_wxRect swig_types[23]
236 #define SWIGTYPE_p_wxString swig_types[24]
237 #define SWIGTYPE_p_wxPrinterDC swig_types[25]
238 #define SWIGTYPE_p_wxIconBundle swig_types[26]
239 #define SWIGTYPE_p_wxPoint swig_types[27]
240 #define SWIGTYPE_p_wxDash swig_types[28]
241 #define SWIGTYPE_p_wxScreenDC swig_types[29]
242 #define SWIGTYPE_p_wxCursor swig_types[30]
243 #define SWIGTYPE_p_wxClientDC swig_types[31]
244 #define SWIGTYPE_p_wxBufferedDC swig_types[32]
245 #define SWIGTYPE_p_wxImageList swig_types[33]
246 #define SWIGTYPE_p_unsigned_char swig_types[34]
247 #define SWIGTYPE_p_wxGDIObject swig_types[35]
248 #define SWIGTYPE_p_wxLocale swig_types[36]
249 #define SWIGTYPE_p_wxIcon swig_types[37]
250 #define SWIGTYPE_p_wxRegion swig_types[38]
251 #define SWIGTYPE_p_wxLanguageInfo swig_types[39]
252 #define SWIGTYPE_p_wxConfigBase swig_types[40]
253 #define SWIGTYPE_p_wxWindowDC swig_types[41]
254 #define SWIGTYPE_p_wxPrintData swig_types[42]
255 #define SWIGTYPE_p_wxBrushList swig_types[43]
256 #define SWIGTYPE_p_wxFontList swig_types[44]
257 #define SWIGTYPE_p_wxPen swig_types[45]
258 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[46]
259 #define SWIGTYPE_p_wxPaintDC swig_types[47]
260 #define SWIGTYPE_p_wxPenList swig_types[48]
261 #define SWIGTYPE_p_wxPyPen swig_types[49]
262 #define SWIGTYPE_p_int swig_types[50]
263 #define SWIGTYPE_p_wxMetaFile swig_types[51]
264 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
265 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
266 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
267 static swig_type_info *swig_types[56];
268
269 /* -------- TYPES TABLE (END) -------- */
270
271
272 /*-----------------------------------------------
273 @(target):= _gdi.so
274 ------------------------------------------------*/
275 #define SWIG_init init_gdi
276
277 #define SWIG_name "_gdi"
278
279 #include "wx/wxPython/wxPython.h"
280 #include "wx/wxPython/pyclasses.h"
281
282
283 static const wxString wxPyEmptyString(wxEmptyString);
284 PyObject *wxColour_Get(wxColour *self){
285 PyObject* rv = PyTuple_New(3);
286 int red = -1;
287 int green = -1;
288 int blue = -1;
289 if (self->Ok()) {
290 red = self->Red();
291 green = self->Green();
292 blue = self->Blue();
293 }
294 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
295 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
296 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
297 return rv;
298 }
299
300 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
301 PyObject* o2;
302 PyObject* o3;
303
304 if (!target) {
305 target = o;
306 } else if (target == Py_None) {
307 Py_DECREF(Py_None);
308 target = o;
309 } else {
310 if (!PyTuple_Check(target)) {
311 o2 = target;
312 target = PyTuple_New(1);
313 PyTuple_SetItem(target, 0, o2);
314 }
315 o3 = PyTuple_New(1);
316 PyTuple_SetItem(o3, 0, o);
317
318 o2 = target;
319 target = PySequence_Concat(o2, o3);
320 Py_DECREF(o2);
321 Py_DECREF(o3);
322 }
323 return target;
324 }
325
326 PyObject *wxPen_GetDashes(wxPen *self){
327 wxDash* dashes;
328 int count = self->GetDashes(&dashes);
329 wxPyBeginBlockThreads();
330 PyObject* retval = PyList_New(0);
331 for (int x=0; x<count; x++)
332 PyList_Append(retval, PyInt_FromLong(dashes[x]));
333 wxPyEndBlockThreads();
334 return retval;
335 }
336
337 wxPyPen::~wxPyPen()
338 {
339 if (m_dash)
340 delete [] m_dash;
341 }
342
343 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
344 {
345 if (m_dash)
346 delete [] m_dash;
347 m_dash = new wxDash[nb_dashes];
348 for (int i=0; i<nb_dashes; i++) {
349 m_dash[i] = dash[i];
350 }
351 wxPen::SetDashes(nb_dashes, m_dash);
352 }
353
354
355 #include <wx/image.h>
356
357 static char** ConvertListOfStrings(PyObject* listOfStrings) {
358 char** cArray = NULL;
359 int count;
360
361 if (!PyList_Check(listOfStrings)) {
362 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
363 return NULL;
364 }
365 count = PyList_Size(listOfStrings);
366 cArray = new char*[count];
367
368 for(int x=0; x<count; x++) {
369 // TODO: Need some validation and error checking here
370 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
371 }
372 return cArray;
373 }
374
375
376 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
377 char** cArray = NULL;
378 wxBitmap* bmp;
379
380 cArray = ConvertListOfStrings(listOfStrings);
381 if (! cArray)
382 return NULL;
383 bmp = new wxBitmap(cArray);
384 delete [] cArray;
385 return bmp;
386 }
387 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
388 char* buf;
389 int length;
390 PyString_AsStringAndSize(bits, &buf, &length);
391 return new wxBitmap(buf, width, height, depth);
392 }
393 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
394 wxMask *mask = new wxMask(*self, colour);
395 self->SetMask(mask);
396 }
397
398 #include <wx/iconbndl.h>
399
400 wxIcon *new_wxIcon(wxBitmap const &bmp){
401 wxIcon* icon = new wxIcon();
402 icon->CopyFromBitmap(bmp);
403 return icon;
404 }
405 wxIcon *new_wxIcon(PyObject *listOfStrings){
406 char** cArray = NULL;
407 wxIcon* icon;
408
409 cArray = ConvertListOfStrings(listOfStrings);
410 if (! cArray)
411 return NULL;
412 icon = new wxIcon(cArray);
413 delete [] cArray;
414 return icon;
415 }
416 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
417
418
419
420 return new wxIconLocation(*filename);
421
422 }
423 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
424
425
426
427 // do nothing
428
429 }
430 int wxIconLocation_GetIndex(wxIconLocation *self){
431
432
433
434 return -1;
435
436 }
437 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
438
439 wxCHECK_MSG(False, NULL,
440 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
441
442
443
444 }
445 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
446 char* bitsbuf;
447 char* maskbuf = NULL;
448 int length;
449 PyString_AsStringAndSize(bits, &bitsbuf, &length);
450 if (maskBits)
451 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
452 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
453 }
454
455
456 void wxRegionIterator_Next(wxRegionIterator *self){
457 (*self) ++;
458 }
459 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
460 return self->operator bool();
461 }
462
463 #include <wx/fontutil.h>
464 #include <wx/fontmap.h>
465 #include <wx/fontenum.h>
466
467 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
468 return self->ToString();
469 }
470
471 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
472 static wxNativeEncodingInfo info;
473 if ( wxGetNativeFontEncoding(encoding, &info) )
474 return &info;
475 else
476 return NULL;
477 }
478
479 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
480 wxFontEncoding alt_enc;
481 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
482 return PyInt_FromLong(alt_enc);
483 else {
484 Py_INCREF(Py_None);
485 return Py_None;
486 }
487 }
488 wxFont *new_wxFont(wxString const &info){
489 wxNativeFontInfo nfi;
490 nfi.FromString(info);
491 return new wxFont(nfi);
492 }
493 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
494 return wxFont::New(pointSize, family, flags, face, encoding);
495 }
496
497 class wxPyFontEnumerator : public wxFontEnumerator {
498 public:
499 wxPyFontEnumerator() {}
500 ~wxPyFontEnumerator() {}
501
502 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
503 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
504
505 PYPRIVATE;
506 };
507
508 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
509 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
510
511
512 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
513 wxArrayString* arr = self->GetEncodings();
514 return wxArrayString2PyList_helper(*arr);
515 }
516 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
517 wxArrayString* arr = self->GetFacenames();
518 return wxArrayString2PyList_helper(*arr);
519 }
520
521
522
523 #include "wx/wxPython/pydrawxxx.h"
524
525 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
526 wxColour col;
527 self->GetPixel(x, y, &col);
528 return col;
529 }
530 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
531 wxColour col;
532 self->GetPixel(pt, &col);
533 return col;
534 }
535 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
536 wxRect rv;
537 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
538 return rv;
539 }
540 wxRect wxDC_GetClippingRect(wxDC *self){
541 wxRect rect;
542 self->GetClippingBox(rect);
543 return rect;
544 }
545 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
546 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
547 }
548 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
549 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
550 }
551 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
552 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
553 }
554 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
555 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
556 }
557 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
558 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
559 }
560 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
561 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
562 }
563
564 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
565 *x1 = dc->MinX();
566 *y1 = dc->MinY();
567 *x2 = dc->MaxX();
568 *y2 = dc->MaxY();
569 }
570
571
572 #include <wx/dcps.h>
573
574
575 class wxMetaFile : public wxObject {
576 public:
577 wxMetaFile(const wxString&)
578 { wxPyRaiseNotImplemented(); }
579 };
580
581 class wxMetaFileDC : public wxClientDC {
582 public:
583 wxMetaFileDC(const wxString&, int, int, const wxString&)
584 { wxPyRaiseNotImplemented(); }
585 };
586
587
588
589 class wxPrinterDC : public wxClientDC {
590 public:
591 wxPrinterDC(const wxPrintData&)
592 { wxPyRaiseNotImplemented(); }
593
594 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
595 // { wxPyRaiseNotImplemented(); }
596 };
597
598
599
600 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
601 self->AddColour(name, wxColour(red, green, blue));
602 }
603
604 #include <wx/effects.h>
605
606 #ifdef __cplusplus
607 extern "C" {
608 #endif
609 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
610 PyObject *resultobj;
611 wxGDIObject *result;
612 char *kwnames[] = {
613 NULL
614 };
615
616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
617 {
618 PyThreadState* __tstate = wxPyBeginAllowThreads();
619 result = (wxGDIObject *)new wxGDIObject();
620
621 wxPyEndAllowThreads(__tstate);
622 if (PyErr_Occurred()) SWIG_fail;
623 }
624 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
625 return resultobj;
626 fail:
627 return NULL;
628 }
629
630
631 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
632 PyObject *resultobj;
633 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
634 PyObject * obj0 = 0 ;
635 char *kwnames[] = {
636 (char *) "self", NULL
637 };
638
639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
641 {
642 PyThreadState* __tstate = wxPyBeginAllowThreads();
643 delete arg1;
644
645 wxPyEndAllowThreads(__tstate);
646 if (PyErr_Occurred()) SWIG_fail;
647 }
648 Py_INCREF(Py_None); resultobj = Py_None;
649 return resultobj;
650 fail:
651 return NULL;
652 }
653
654
655 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
656 PyObject *resultobj;
657 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
658 bool result;
659 PyObject * obj0 = 0 ;
660 char *kwnames[] = {
661 (char *) "self", NULL
662 };
663
664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
666 {
667 PyThreadState* __tstate = wxPyBeginAllowThreads();
668 result = (bool)(arg1)->GetVisible();
669
670 wxPyEndAllowThreads(__tstate);
671 if (PyErr_Occurred()) SWIG_fail;
672 }
673 resultobj = PyInt_FromLong((long)result);
674 return resultobj;
675 fail:
676 return NULL;
677 }
678
679
680 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
681 PyObject *resultobj;
682 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
683 bool arg2 ;
684 PyObject * obj0 = 0 ;
685 PyObject * obj1 = 0 ;
686 char *kwnames[] = {
687 (char *) "self",(char *) "visible", NULL
688 };
689
690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
692 arg2 = PyInt_AsLong(obj1) ? true : false;
693 if (PyErr_Occurred()) SWIG_fail;
694 {
695 PyThreadState* __tstate = wxPyBeginAllowThreads();
696 (arg1)->SetVisible(arg2);
697
698 wxPyEndAllowThreads(__tstate);
699 if (PyErr_Occurred()) SWIG_fail;
700 }
701 Py_INCREF(Py_None); resultobj = Py_None;
702 return resultobj;
703 fail:
704 return NULL;
705 }
706
707
708 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
709 PyObject *resultobj;
710 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
711 bool result;
712 PyObject * obj0 = 0 ;
713 char *kwnames[] = {
714 (char *) "self", NULL
715 };
716
717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
719 {
720 PyThreadState* __tstate = wxPyBeginAllowThreads();
721 result = (bool)(arg1)->IsNull();
722
723 wxPyEndAllowThreads(__tstate);
724 if (PyErr_Occurred()) SWIG_fail;
725 }
726 resultobj = PyInt_FromLong((long)result);
727 return resultobj;
728 fail:
729 return NULL;
730 }
731
732
733 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
734 PyObject *obj;
735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
736 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
737 Py_INCREF(obj);
738 return Py_BuildValue((char *)"");
739 }
740 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
741 PyObject *resultobj;
742 unsigned char arg1 = (unsigned char) 0 ;
743 unsigned char arg2 = (unsigned char) 0 ;
744 unsigned char arg3 = (unsigned char) 0 ;
745 wxColour *result;
746 PyObject * obj0 = 0 ;
747 PyObject * obj1 = 0 ;
748 PyObject * obj2 = 0 ;
749 char *kwnames[] = {
750 (char *) "red",(char *) "green",(char *) "blue", NULL
751 };
752
753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
754 if (obj0) {
755 arg1 = (unsigned char) PyInt_AsLong(obj0);
756 if (PyErr_Occurred()) SWIG_fail;
757 }
758 if (obj1) {
759 arg2 = (unsigned char) PyInt_AsLong(obj1);
760 if (PyErr_Occurred()) SWIG_fail;
761 }
762 if (obj2) {
763 arg3 = (unsigned char) PyInt_AsLong(obj2);
764 if (PyErr_Occurred()) SWIG_fail;
765 }
766 {
767 PyThreadState* __tstate = wxPyBeginAllowThreads();
768 result = (wxColour *)new wxColour(arg1,arg2,arg3);
769
770 wxPyEndAllowThreads(__tstate);
771 if (PyErr_Occurred()) SWIG_fail;
772 }
773 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
774 return resultobj;
775 fail:
776 return NULL;
777 }
778
779
780 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
781 PyObject *resultobj;
782 wxColour *arg1 = (wxColour *) 0 ;
783 PyObject * obj0 = 0 ;
784 char *kwnames[] = {
785 (char *) "self", NULL
786 };
787
788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
790 {
791 PyThreadState* __tstate = wxPyBeginAllowThreads();
792 delete arg1;
793
794 wxPyEndAllowThreads(__tstate);
795 if (PyErr_Occurred()) SWIG_fail;
796 }
797 Py_INCREF(Py_None); resultobj = Py_None;
798 return resultobj;
799 fail:
800 return NULL;
801 }
802
803
804 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
805 PyObject *resultobj;
806 wxString *arg1 = 0 ;
807 wxColour *result;
808 bool temp1 = False ;
809 PyObject * obj0 = 0 ;
810 char *kwnames[] = {
811 (char *) "colorName", NULL
812 };
813
814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
815 {
816 arg1 = wxString_in_helper(obj0);
817 if (arg1 == NULL) SWIG_fail;
818 temp1 = True;
819 }
820 {
821 PyThreadState* __tstate = wxPyBeginAllowThreads();
822 result = (wxColour *)new wxColour((wxString const &)*arg1);
823
824 wxPyEndAllowThreads(__tstate);
825 if (PyErr_Occurred()) SWIG_fail;
826 }
827 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
828 {
829 if (temp1)
830 delete arg1;
831 }
832 return resultobj;
833 fail:
834 {
835 if (temp1)
836 delete arg1;
837 }
838 return NULL;
839 }
840
841
842 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
843 PyObject *resultobj;
844 unsigned long arg1 ;
845 wxColour *result;
846 PyObject * obj0 = 0 ;
847 char *kwnames[] = {
848 (char *) "colRGB", NULL
849 };
850
851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
852 arg1 = (unsigned long) PyInt_AsLong(obj0);
853 if (PyErr_Occurred()) SWIG_fail;
854 {
855 PyThreadState* __tstate = wxPyBeginAllowThreads();
856 result = (wxColour *)new wxColour(arg1);
857
858 wxPyEndAllowThreads(__tstate);
859 if (PyErr_Occurred()) SWIG_fail;
860 }
861 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
862 return resultobj;
863 fail:
864 return NULL;
865 }
866
867
868 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
869 PyObject *resultobj;
870 wxColour *arg1 = (wxColour *) 0 ;
871 unsigned char result;
872 PyObject * obj0 = 0 ;
873 char *kwnames[] = {
874 (char *) "self", NULL
875 };
876
877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
879 {
880 PyThreadState* __tstate = wxPyBeginAllowThreads();
881 result = (unsigned char)(arg1)->Red();
882
883 wxPyEndAllowThreads(__tstate);
884 if (PyErr_Occurred()) SWIG_fail;
885 }
886 resultobj = PyInt_FromLong((long)result);
887 return resultobj;
888 fail:
889 return NULL;
890 }
891
892
893 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
894 PyObject *resultobj;
895 wxColour *arg1 = (wxColour *) 0 ;
896 unsigned char result;
897 PyObject * obj0 = 0 ;
898 char *kwnames[] = {
899 (char *) "self", NULL
900 };
901
902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
904 {
905 PyThreadState* __tstate = wxPyBeginAllowThreads();
906 result = (unsigned char)(arg1)->Green();
907
908 wxPyEndAllowThreads(__tstate);
909 if (PyErr_Occurred()) SWIG_fail;
910 }
911 resultobj = PyInt_FromLong((long)result);
912 return resultobj;
913 fail:
914 return NULL;
915 }
916
917
918 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
919 PyObject *resultobj;
920 wxColour *arg1 = (wxColour *) 0 ;
921 unsigned char result;
922 PyObject * obj0 = 0 ;
923 char *kwnames[] = {
924 (char *) "self", NULL
925 };
926
927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
929 {
930 PyThreadState* __tstate = wxPyBeginAllowThreads();
931 result = (unsigned char)(arg1)->Blue();
932
933 wxPyEndAllowThreads(__tstate);
934 if (PyErr_Occurred()) SWIG_fail;
935 }
936 resultobj = PyInt_FromLong((long)result);
937 return resultobj;
938 fail:
939 return NULL;
940 }
941
942
943 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
944 PyObject *resultobj;
945 wxColour *arg1 = (wxColour *) 0 ;
946 bool result;
947 PyObject * obj0 = 0 ;
948 char *kwnames[] = {
949 (char *) "self", NULL
950 };
951
952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
954 {
955 PyThreadState* __tstate = wxPyBeginAllowThreads();
956 result = (bool)(arg1)->Ok();
957
958 wxPyEndAllowThreads(__tstate);
959 if (PyErr_Occurred()) SWIG_fail;
960 }
961 resultobj = PyInt_FromLong((long)result);
962 return resultobj;
963 fail:
964 return NULL;
965 }
966
967
968 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
969 PyObject *resultobj;
970 wxColour *arg1 = (wxColour *) 0 ;
971 unsigned char arg2 ;
972 unsigned char arg3 ;
973 unsigned char arg4 ;
974 PyObject * obj0 = 0 ;
975 PyObject * obj1 = 0 ;
976 PyObject * obj2 = 0 ;
977 PyObject * obj3 = 0 ;
978 char *kwnames[] = {
979 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
980 };
981
982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
984 arg2 = (unsigned char) PyInt_AsLong(obj1);
985 if (PyErr_Occurred()) SWIG_fail;
986 arg3 = (unsigned char) PyInt_AsLong(obj2);
987 if (PyErr_Occurred()) SWIG_fail;
988 arg4 = (unsigned char) PyInt_AsLong(obj3);
989 if (PyErr_Occurred()) SWIG_fail;
990 {
991 PyThreadState* __tstate = wxPyBeginAllowThreads();
992 (arg1)->Set(arg2,arg3,arg4);
993
994 wxPyEndAllowThreads(__tstate);
995 if (PyErr_Occurred()) SWIG_fail;
996 }
997 Py_INCREF(Py_None); resultobj = Py_None;
998 return resultobj;
999 fail:
1000 return NULL;
1001 }
1002
1003
1004 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1005 PyObject *resultobj;
1006 wxColour *arg1 = (wxColour *) 0 ;
1007 unsigned long arg2 ;
1008 PyObject * obj0 = 0 ;
1009 PyObject * obj1 = 0 ;
1010 char *kwnames[] = {
1011 (char *) "self",(char *) "colRGB", NULL
1012 };
1013
1014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1016 arg2 = (unsigned long) PyInt_AsLong(obj1);
1017 if (PyErr_Occurred()) SWIG_fail;
1018 {
1019 PyThreadState* __tstate = wxPyBeginAllowThreads();
1020 (arg1)->Set(arg2);
1021
1022 wxPyEndAllowThreads(__tstate);
1023 if (PyErr_Occurred()) SWIG_fail;
1024 }
1025 Py_INCREF(Py_None); resultobj = Py_None;
1026 return resultobj;
1027 fail:
1028 return NULL;
1029 }
1030
1031
1032 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1033 PyObject *resultobj;
1034 wxColour *arg1 = (wxColour *) 0 ;
1035 wxColour *arg2 = 0 ;
1036 bool result;
1037 wxColour temp2 ;
1038 PyObject * obj0 = 0 ;
1039 PyObject * obj1 = 0 ;
1040 char *kwnames[] = {
1041 (char *) "self",(char *) "colour", NULL
1042 };
1043
1044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1046 {
1047 arg2 = &temp2;
1048 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1049 }
1050 {
1051 PyThreadState* __tstate = wxPyBeginAllowThreads();
1052 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1053
1054 wxPyEndAllowThreads(__tstate);
1055 if (PyErr_Occurred()) SWIG_fail;
1056 }
1057 resultobj = PyInt_FromLong((long)result);
1058 return resultobj;
1059 fail:
1060 return NULL;
1061 }
1062
1063
1064 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1065 PyObject *resultobj;
1066 wxColour *arg1 = (wxColour *) 0 ;
1067 wxColour *arg2 = 0 ;
1068 bool result;
1069 wxColour temp2 ;
1070 PyObject * obj0 = 0 ;
1071 PyObject * obj1 = 0 ;
1072 char *kwnames[] = {
1073 (char *) "self",(char *) "colour", NULL
1074 };
1075
1076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1078 {
1079 arg2 = &temp2;
1080 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1081 }
1082 {
1083 PyThreadState* __tstate = wxPyBeginAllowThreads();
1084 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1085
1086 wxPyEndAllowThreads(__tstate);
1087 if (PyErr_Occurred()) SWIG_fail;
1088 }
1089 resultobj = PyInt_FromLong((long)result);
1090 return resultobj;
1091 fail:
1092 return NULL;
1093 }
1094
1095
1096 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1097 PyObject *resultobj;
1098 wxColour *arg1 = (wxColour *) 0 ;
1099 wxString *arg2 = 0 ;
1100 bool temp2 = False ;
1101 PyObject * obj0 = 0 ;
1102 PyObject * obj1 = 0 ;
1103 char *kwnames[] = {
1104 (char *) "self",(char *) "colourName", NULL
1105 };
1106
1107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1109 {
1110 arg2 = wxString_in_helper(obj1);
1111 if (arg2 == NULL) SWIG_fail;
1112 temp2 = True;
1113 }
1114 {
1115 PyThreadState* __tstate = wxPyBeginAllowThreads();
1116 (arg1)->InitFromName((wxString const &)*arg2);
1117
1118 wxPyEndAllowThreads(__tstate);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 }
1121 Py_INCREF(Py_None); resultobj = Py_None;
1122 {
1123 if (temp2)
1124 delete arg2;
1125 }
1126 return resultobj;
1127 fail:
1128 {
1129 if (temp2)
1130 delete arg2;
1131 }
1132 return NULL;
1133 }
1134
1135
1136 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1137 PyObject *resultobj;
1138 wxColour *arg1 = (wxColour *) 0 ;
1139 PyObject *result;
1140 PyObject * obj0 = 0 ;
1141 char *kwnames[] = {
1142 (char *) "self", NULL
1143 };
1144
1145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1147 {
1148 PyThreadState* __tstate = wxPyBeginAllowThreads();
1149 result = (PyObject *)wxColour_Get(arg1);
1150
1151 wxPyEndAllowThreads(__tstate);
1152 if (PyErr_Occurred()) SWIG_fail;
1153 }
1154 resultobj = result;
1155 return resultobj;
1156 fail:
1157 return NULL;
1158 }
1159
1160
1161 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1162 PyObject *obj;
1163 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1164 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1165 Py_INCREF(obj);
1166 return Py_BuildValue((char *)"");
1167 }
1168 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1169 PyObject *resultobj;
1170 int arg1 ;
1171 unsigned char *arg2 = (unsigned char *) 0 ;
1172 unsigned char *arg3 = (unsigned char *) 0 ;
1173 unsigned char *arg4 = (unsigned char *) 0 ;
1174 wxPalette *result;
1175 PyObject * obj1 = 0 ;
1176 PyObject * obj2 = 0 ;
1177 PyObject * obj3 = 0 ;
1178 char *kwnames[] = {
1179 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1180 };
1181
1182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1183 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1184 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1185 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1186 {
1187 PyThreadState* __tstate = wxPyBeginAllowThreads();
1188 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1189
1190 wxPyEndAllowThreads(__tstate);
1191 if (PyErr_Occurred()) SWIG_fail;
1192 }
1193 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1194 return resultobj;
1195 fail:
1196 return NULL;
1197 }
1198
1199
1200 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1201 PyObject *resultobj;
1202 wxPalette *arg1 = (wxPalette *) 0 ;
1203 PyObject * obj0 = 0 ;
1204 char *kwnames[] = {
1205 (char *) "self", NULL
1206 };
1207
1208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1210 {
1211 PyThreadState* __tstate = wxPyBeginAllowThreads();
1212 delete arg1;
1213
1214 wxPyEndAllowThreads(__tstate);
1215 if (PyErr_Occurred()) SWIG_fail;
1216 }
1217 Py_INCREF(Py_None); resultobj = Py_None;
1218 return resultobj;
1219 fail:
1220 return NULL;
1221 }
1222
1223
1224 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1225 PyObject *resultobj;
1226 wxPalette *arg1 = (wxPalette *) 0 ;
1227 byte arg2 ;
1228 byte arg3 ;
1229 byte arg4 ;
1230 int result;
1231 PyObject * obj0 = 0 ;
1232 PyObject * obj1 = 0 ;
1233 PyObject * obj2 = 0 ;
1234 PyObject * obj3 = 0 ;
1235 char *kwnames[] = {
1236 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1237 };
1238
1239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1241 arg2 = (byte) PyInt_AsLong(obj1);
1242 if (PyErr_Occurred()) SWIG_fail;
1243 arg3 = (byte) PyInt_AsLong(obj2);
1244 if (PyErr_Occurred()) SWIG_fail;
1245 arg4 = (byte) PyInt_AsLong(obj3);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 {
1248 PyThreadState* __tstate = wxPyBeginAllowThreads();
1249 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1250
1251 wxPyEndAllowThreads(__tstate);
1252 if (PyErr_Occurred()) SWIG_fail;
1253 }
1254 resultobj = PyInt_FromLong((long)result);
1255 return resultobj;
1256 fail:
1257 return NULL;
1258 }
1259
1260
1261 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1262 PyObject *resultobj;
1263 wxPalette *arg1 = (wxPalette *) 0 ;
1264 int arg2 ;
1265 byte *arg3 = (byte *) 0 ;
1266 byte *arg4 = (byte *) 0 ;
1267 byte *arg5 = (byte *) 0 ;
1268 bool result;
1269 byte temp3 ;
1270 byte temp4 ;
1271 byte temp5 ;
1272 PyObject * obj0 = 0 ;
1273 char *kwnames[] = {
1274 (char *) "self",(char *) "pixel", NULL
1275 };
1276
1277 arg3 = &temp3;
1278 arg4 = &temp4;
1279 arg5 = &temp5;
1280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1282 {
1283 PyThreadState* __tstate = wxPyBeginAllowThreads();
1284 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1285
1286 wxPyEndAllowThreads(__tstate);
1287 if (PyErr_Occurred()) SWIG_fail;
1288 }
1289 resultobj = PyInt_FromLong((long)result);
1290 {
1291 PyObject *o = PyInt_FromLong((long) (*arg3));
1292 resultobj = t_output_helper(resultobj,o);
1293 }
1294 {
1295 PyObject *o = PyInt_FromLong((long) (*arg4));
1296 resultobj = t_output_helper(resultobj,o);
1297 }
1298 {
1299 PyObject *o = PyInt_FromLong((long) (*arg5));
1300 resultobj = t_output_helper(resultobj,o);
1301 }
1302 return resultobj;
1303 fail:
1304 return NULL;
1305 }
1306
1307
1308 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1309 PyObject *resultobj;
1310 wxPalette *arg1 = (wxPalette *) 0 ;
1311 bool result;
1312 PyObject * obj0 = 0 ;
1313 char *kwnames[] = {
1314 (char *) "self", NULL
1315 };
1316
1317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1319 {
1320 PyThreadState* __tstate = wxPyBeginAllowThreads();
1321 result = (bool)(arg1)->Ok();
1322
1323 wxPyEndAllowThreads(__tstate);
1324 if (PyErr_Occurred()) SWIG_fail;
1325 }
1326 resultobj = PyInt_FromLong((long)result);
1327 return resultobj;
1328 fail:
1329 return NULL;
1330 }
1331
1332
1333 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1334 PyObject *obj;
1335 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1336 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1337 Py_INCREF(obj);
1338 return Py_BuildValue((char *)"");
1339 }
1340 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1341 PyObject *resultobj;
1342 wxColour *arg1 = 0 ;
1343 int arg2 = (int) 1 ;
1344 int arg3 = (int) wxSOLID ;
1345 wxPen *result;
1346 wxColour temp1 ;
1347 PyObject * obj0 = 0 ;
1348 char *kwnames[] = {
1349 (char *) "colour",(char *) "width",(char *) "style", NULL
1350 };
1351
1352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1353 {
1354 arg1 = &temp1;
1355 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1356 }
1357 {
1358 PyThreadState* __tstate = wxPyBeginAllowThreads();
1359 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1360
1361 wxPyEndAllowThreads(__tstate);
1362 if (PyErr_Occurred()) SWIG_fail;
1363 }
1364 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1365 return resultobj;
1366 fail:
1367 return NULL;
1368 }
1369
1370
1371 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1372 PyObject *resultobj;
1373 wxPen *arg1 = (wxPen *) 0 ;
1374 PyObject * obj0 = 0 ;
1375 char *kwnames[] = {
1376 (char *) "self", NULL
1377 };
1378
1379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1381 {
1382 PyThreadState* __tstate = wxPyBeginAllowThreads();
1383 delete arg1;
1384
1385 wxPyEndAllowThreads(__tstate);
1386 if (PyErr_Occurred()) SWIG_fail;
1387 }
1388 Py_INCREF(Py_None); resultobj = Py_None;
1389 return resultobj;
1390 fail:
1391 return NULL;
1392 }
1393
1394
1395 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1396 PyObject *resultobj;
1397 wxPen *arg1 = (wxPen *) 0 ;
1398 int result;
1399 PyObject * obj0 = 0 ;
1400 char *kwnames[] = {
1401 (char *) "self", NULL
1402 };
1403
1404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1406 {
1407 PyThreadState* __tstate = wxPyBeginAllowThreads();
1408 result = (int)(arg1)->GetCap();
1409
1410 wxPyEndAllowThreads(__tstate);
1411 if (PyErr_Occurred()) SWIG_fail;
1412 }
1413 resultobj = PyInt_FromLong((long)result);
1414 return resultobj;
1415 fail:
1416 return NULL;
1417 }
1418
1419
1420 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1421 PyObject *resultobj;
1422 wxPen *arg1 = (wxPen *) 0 ;
1423 wxColour result;
1424 PyObject * obj0 = 0 ;
1425 char *kwnames[] = {
1426 (char *) "self", NULL
1427 };
1428
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1431 {
1432 PyThreadState* __tstate = wxPyBeginAllowThreads();
1433 result = (arg1)->GetColour();
1434
1435 wxPyEndAllowThreads(__tstate);
1436 if (PyErr_Occurred()) SWIG_fail;
1437 }
1438 {
1439 wxColour * resultptr;
1440 resultptr = new wxColour((wxColour &) result);
1441 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1442 }
1443 return resultobj;
1444 fail:
1445 return NULL;
1446 }
1447
1448
1449 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1450 PyObject *resultobj;
1451 wxPen *arg1 = (wxPen *) 0 ;
1452 int result;
1453 PyObject * obj0 = 0 ;
1454 char *kwnames[] = {
1455 (char *) "self", NULL
1456 };
1457
1458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1460 {
1461 PyThreadState* __tstate = wxPyBeginAllowThreads();
1462 result = (int)(arg1)->GetJoin();
1463
1464 wxPyEndAllowThreads(__tstate);
1465 if (PyErr_Occurred()) SWIG_fail;
1466 }
1467 resultobj = PyInt_FromLong((long)result);
1468 return resultobj;
1469 fail:
1470 return NULL;
1471 }
1472
1473
1474 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1475 PyObject *resultobj;
1476 wxPen *arg1 = (wxPen *) 0 ;
1477 int result;
1478 PyObject * obj0 = 0 ;
1479 char *kwnames[] = {
1480 (char *) "self", NULL
1481 };
1482
1483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1485 {
1486 PyThreadState* __tstate = wxPyBeginAllowThreads();
1487 result = (int)(arg1)->GetStyle();
1488
1489 wxPyEndAllowThreads(__tstate);
1490 if (PyErr_Occurred()) SWIG_fail;
1491 }
1492 resultobj = PyInt_FromLong((long)result);
1493 return resultobj;
1494 fail:
1495 return NULL;
1496 }
1497
1498
1499 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 wxPen *arg1 = (wxPen *) 0 ;
1502 int result;
1503 PyObject * obj0 = 0 ;
1504 char *kwnames[] = {
1505 (char *) "self", NULL
1506 };
1507
1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1510 {
1511 PyThreadState* __tstate = wxPyBeginAllowThreads();
1512 result = (int)(arg1)->GetWidth();
1513
1514 wxPyEndAllowThreads(__tstate);
1515 if (PyErr_Occurred()) SWIG_fail;
1516 }
1517 resultobj = PyInt_FromLong((long)result);
1518 return resultobj;
1519 fail:
1520 return NULL;
1521 }
1522
1523
1524 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1525 PyObject *resultobj;
1526 wxPen *arg1 = (wxPen *) 0 ;
1527 bool result;
1528 PyObject * obj0 = 0 ;
1529 char *kwnames[] = {
1530 (char *) "self", NULL
1531 };
1532
1533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1535 {
1536 PyThreadState* __tstate = wxPyBeginAllowThreads();
1537 result = (bool)(arg1)->Ok();
1538
1539 wxPyEndAllowThreads(__tstate);
1540 if (PyErr_Occurred()) SWIG_fail;
1541 }
1542 resultobj = PyInt_FromLong((long)result);
1543 return resultobj;
1544 fail:
1545 return NULL;
1546 }
1547
1548
1549 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1550 PyObject *resultobj;
1551 wxPen *arg1 = (wxPen *) 0 ;
1552 int arg2 ;
1553 PyObject * obj0 = 0 ;
1554 char *kwnames[] = {
1555 (char *) "self",(char *) "cap_style", NULL
1556 };
1557
1558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1560 {
1561 PyThreadState* __tstate = wxPyBeginAllowThreads();
1562 (arg1)->SetCap(arg2);
1563
1564 wxPyEndAllowThreads(__tstate);
1565 if (PyErr_Occurred()) SWIG_fail;
1566 }
1567 Py_INCREF(Py_None); resultobj = Py_None;
1568 return resultobj;
1569 fail:
1570 return NULL;
1571 }
1572
1573
1574 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1575 PyObject *resultobj;
1576 wxPen *arg1 = (wxPen *) 0 ;
1577 wxColour *arg2 = 0 ;
1578 wxColour temp2 ;
1579 PyObject * obj0 = 0 ;
1580 PyObject * obj1 = 0 ;
1581 char *kwnames[] = {
1582 (char *) "self",(char *) "colour", NULL
1583 };
1584
1585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1587 {
1588 arg2 = &temp2;
1589 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1590 }
1591 {
1592 PyThreadState* __tstate = wxPyBeginAllowThreads();
1593 (arg1)->SetColour(*arg2);
1594
1595 wxPyEndAllowThreads(__tstate);
1596 if (PyErr_Occurred()) SWIG_fail;
1597 }
1598 Py_INCREF(Py_None); resultobj = Py_None;
1599 return resultobj;
1600 fail:
1601 return NULL;
1602 }
1603
1604
1605 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1606 PyObject *resultobj;
1607 wxPen *arg1 = (wxPen *) 0 ;
1608 int arg2 ;
1609 PyObject * obj0 = 0 ;
1610 char *kwnames[] = {
1611 (char *) "self",(char *) "join_style", NULL
1612 };
1613
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1616 {
1617 PyThreadState* __tstate = wxPyBeginAllowThreads();
1618 (arg1)->SetJoin(arg2);
1619
1620 wxPyEndAllowThreads(__tstate);
1621 if (PyErr_Occurred()) SWIG_fail;
1622 }
1623 Py_INCREF(Py_None); resultobj = Py_None;
1624 return resultobj;
1625 fail:
1626 return NULL;
1627 }
1628
1629
1630 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1631 PyObject *resultobj;
1632 wxPen *arg1 = (wxPen *) 0 ;
1633 int arg2 ;
1634 PyObject * obj0 = 0 ;
1635 char *kwnames[] = {
1636 (char *) "self",(char *) "style", NULL
1637 };
1638
1639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1641 {
1642 PyThreadState* __tstate = wxPyBeginAllowThreads();
1643 (arg1)->SetStyle(arg2);
1644
1645 wxPyEndAllowThreads(__tstate);
1646 if (PyErr_Occurred()) SWIG_fail;
1647 }
1648 Py_INCREF(Py_None); resultobj = Py_None;
1649 return resultobj;
1650 fail:
1651 return NULL;
1652 }
1653
1654
1655 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1656 PyObject *resultobj;
1657 wxPen *arg1 = (wxPen *) 0 ;
1658 int arg2 ;
1659 PyObject * obj0 = 0 ;
1660 char *kwnames[] = {
1661 (char *) "self",(char *) "width", NULL
1662 };
1663
1664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1666 {
1667 PyThreadState* __tstate = wxPyBeginAllowThreads();
1668 (arg1)->SetWidth(arg2);
1669
1670 wxPyEndAllowThreads(__tstate);
1671 if (PyErr_Occurred()) SWIG_fail;
1672 }
1673 Py_INCREF(Py_None); resultobj = Py_None;
1674 return resultobj;
1675 fail:
1676 return NULL;
1677 }
1678
1679
1680 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1681 PyObject *resultobj;
1682 wxPen *arg1 = (wxPen *) 0 ;
1683 int arg2 ;
1684 wxDash *arg3 = (wxDash *) 0 ;
1685 PyObject * obj0 = 0 ;
1686 PyObject * obj1 = 0 ;
1687 char *kwnames[] = {
1688 (char *) "self",(char *) "dashes", NULL
1689 };
1690
1691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1693 {
1694 arg2 = PyList_Size(obj1);
1695 arg3 = (wxDash*)byte_LIST_helper(obj1);
1696 if (arg3 == NULL) SWIG_fail;
1697 }
1698 {
1699 PyThreadState* __tstate = wxPyBeginAllowThreads();
1700 (arg1)->SetDashes(arg2,arg3);
1701
1702 wxPyEndAllowThreads(__tstate);
1703 if (PyErr_Occurred()) SWIG_fail;
1704 }
1705 Py_INCREF(Py_None); resultobj = Py_None;
1706 {
1707 if (arg3) delete [] arg3;
1708 }
1709 return resultobj;
1710 fail:
1711 {
1712 if (arg3) delete [] arg3;
1713 }
1714 return NULL;
1715 }
1716
1717
1718 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1719 PyObject *resultobj;
1720 wxPen *arg1 = (wxPen *) 0 ;
1721 PyObject *result;
1722 PyObject * obj0 = 0 ;
1723 char *kwnames[] = {
1724 (char *) "self", NULL
1725 };
1726
1727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1729 {
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 result = (PyObject *)wxPen_GetDashes(arg1);
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 resultobj = result;
1737 return resultobj;
1738 fail:
1739 return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxPen *arg1 = (wxPen *) 0 ;
1746 int result;
1747 PyObject * obj0 = 0 ;
1748 char *kwnames[] = {
1749 (char *) "self", NULL
1750 };
1751
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1754 {
1755 PyThreadState* __tstate = wxPyBeginAllowThreads();
1756 result = (int)((wxPen const *)arg1)->GetDashCount();
1757
1758 wxPyEndAllowThreads(__tstate);
1759 if (PyErr_Occurred()) SWIG_fail;
1760 }
1761 resultobj = PyInt_FromLong((long)result);
1762 return resultobj;
1763 fail:
1764 return NULL;
1765 }
1766
1767
1768 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1769 PyObject *obj;
1770 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1771 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1772 Py_INCREF(obj);
1773 return Py_BuildValue((char *)"");
1774 }
1775 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1776 PyObject *resultobj;
1777 wxColour *arg1 = 0 ;
1778 int arg2 = (int) 1 ;
1779 int arg3 = (int) wxSOLID ;
1780 wxPyPen *result;
1781 wxColour temp1 ;
1782 PyObject * obj0 = 0 ;
1783 char *kwnames[] = {
1784 (char *) "colour",(char *) "width",(char *) "style", NULL
1785 };
1786
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1788 {
1789 arg1 = &temp1;
1790 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1791 }
1792 {
1793 PyThreadState* __tstate = wxPyBeginAllowThreads();
1794 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1795
1796 wxPyEndAllowThreads(__tstate);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1800 return resultobj;
1801 fail:
1802 return NULL;
1803 }
1804
1805
1806 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1807 PyObject *resultobj;
1808 wxPyPen *arg1 = (wxPyPen *) 0 ;
1809 PyObject * obj0 = 0 ;
1810 char *kwnames[] = {
1811 (char *) "self", NULL
1812 };
1813
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 delete arg1;
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 Py_INCREF(Py_None); resultobj = Py_None;
1824 return resultobj;
1825 fail:
1826 return NULL;
1827 }
1828
1829
1830 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1831 PyObject *resultobj;
1832 wxPyPen *arg1 = (wxPyPen *) 0 ;
1833 int arg2 ;
1834 wxDash *arg3 = (wxDash *) 0 ;
1835 PyObject * obj0 = 0 ;
1836 PyObject * obj1 = 0 ;
1837 char *kwnames[] = {
1838 (char *) "self",(char *) "dashes", NULL
1839 };
1840
1841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1843 {
1844 arg2 = PyList_Size(obj1);
1845 arg3 = (wxDash*)byte_LIST_helper(obj1);
1846 if (arg3 == NULL) SWIG_fail;
1847 }
1848 {
1849 PyThreadState* __tstate = wxPyBeginAllowThreads();
1850 (arg1)->SetDashes(arg2,arg3);
1851
1852 wxPyEndAllowThreads(__tstate);
1853 if (PyErr_Occurred()) SWIG_fail;
1854 }
1855 Py_INCREF(Py_None); resultobj = Py_None;
1856 {
1857 if (arg3) delete [] arg3;
1858 }
1859 return resultobj;
1860 fail:
1861 {
1862 if (arg3) delete [] arg3;
1863 }
1864 return NULL;
1865 }
1866
1867
1868 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
1869 PyObject *obj;
1870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1871 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
1872 Py_INCREF(obj);
1873 return Py_BuildValue((char *)"");
1874 }
1875 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1876 PyObject *resultobj;
1877 wxColour *arg1 = 0 ;
1878 int arg2 = (int) wxSOLID ;
1879 wxBrush *result;
1880 wxColour temp1 ;
1881 PyObject * obj0 = 0 ;
1882 char *kwnames[] = {
1883 (char *) "colour",(char *) "style", NULL
1884 };
1885
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
1887 {
1888 arg1 = &temp1;
1889 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1890 }
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
1899 return resultobj;
1900 fail:
1901 return NULL;
1902 }
1903
1904
1905 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1906 PyObject *resultobj;
1907 wxBrush *arg1 = (wxBrush *) 0 ;
1908 PyObject * obj0 = 0 ;
1909 char *kwnames[] = {
1910 (char *) "self", NULL
1911 };
1912
1913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
1914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 delete arg1;
1918
1919 wxPyEndAllowThreads(__tstate);
1920 if (PyErr_Occurred()) SWIG_fail;
1921 }
1922 Py_INCREF(Py_None); resultobj = Py_None;
1923 return resultobj;
1924 fail:
1925 return NULL;
1926 }
1927
1928
1929 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject *resultobj;
1931 wxBrush *arg1 = (wxBrush *) 0 ;
1932 wxColour *arg2 = 0 ;
1933 wxColour temp2 ;
1934 PyObject * obj0 = 0 ;
1935 PyObject * obj1 = 0 ;
1936 char *kwnames[] = {
1937 (char *) "self",(char *) "col", NULL
1938 };
1939
1940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
1941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1942 {
1943 arg2 = &temp2;
1944 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1945 }
1946 {
1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
1948 (arg1)->SetColour((wxColour const &)*arg2);
1949
1950 wxPyEndAllowThreads(__tstate);
1951 if (PyErr_Occurred()) SWIG_fail;
1952 }
1953 Py_INCREF(Py_None); resultobj = Py_None;
1954 return resultobj;
1955 fail:
1956 return NULL;
1957 }
1958
1959
1960 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject *resultobj;
1962 wxBrush *arg1 = (wxBrush *) 0 ;
1963 int arg2 ;
1964 PyObject * obj0 = 0 ;
1965 char *kwnames[] = {
1966 (char *) "self",(char *) "style", NULL
1967 };
1968
1969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1971 {
1972 PyThreadState* __tstate = wxPyBeginAllowThreads();
1973 (arg1)->SetStyle(arg2);
1974
1975 wxPyEndAllowThreads(__tstate);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 Py_INCREF(Py_None); resultobj = Py_None;
1979 return resultobj;
1980 fail:
1981 return NULL;
1982 }
1983
1984
1985 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject *resultobj;
1987 wxBrush *arg1 = (wxBrush *) 0 ;
1988 wxBitmap *arg2 = 0 ;
1989 PyObject * obj0 = 0 ;
1990 PyObject * obj1 = 0 ;
1991 char *kwnames[] = {
1992 (char *) "self",(char *) "stipple", NULL
1993 };
1994
1995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1997 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1998 if (arg2 == NULL) {
1999 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2000 }
2001 {
2002 PyThreadState* __tstate = wxPyBeginAllowThreads();
2003 (arg1)->SetStipple((wxBitmap const &)*arg2);
2004
2005 wxPyEndAllowThreads(__tstate);
2006 if (PyErr_Occurred()) SWIG_fail;
2007 }
2008 Py_INCREF(Py_None); resultobj = Py_None;
2009 return resultobj;
2010 fail:
2011 return NULL;
2012 }
2013
2014
2015 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2016 PyObject *resultobj;
2017 wxBrush *arg1 = (wxBrush *) 0 ;
2018 wxColour result;
2019 PyObject * obj0 = 0 ;
2020 char *kwnames[] = {
2021 (char *) "self", NULL
2022 };
2023
2024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2026 {
2027 PyThreadState* __tstate = wxPyBeginAllowThreads();
2028 result = ((wxBrush const *)arg1)->GetColour();
2029
2030 wxPyEndAllowThreads(__tstate);
2031 if (PyErr_Occurred()) SWIG_fail;
2032 }
2033 {
2034 wxColour * resultptr;
2035 resultptr = new wxColour((wxColour &) result);
2036 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2037 }
2038 return resultobj;
2039 fail:
2040 return NULL;
2041 }
2042
2043
2044 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2045 PyObject *resultobj;
2046 wxBrush *arg1 = (wxBrush *) 0 ;
2047 int result;
2048 PyObject * obj0 = 0 ;
2049 char *kwnames[] = {
2050 (char *) "self", NULL
2051 };
2052
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2055 {
2056 PyThreadState* __tstate = wxPyBeginAllowThreads();
2057 result = (int)((wxBrush const *)arg1)->GetStyle();
2058
2059 wxPyEndAllowThreads(__tstate);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 }
2062 resultobj = PyInt_FromLong((long)result);
2063 return resultobj;
2064 fail:
2065 return NULL;
2066 }
2067
2068
2069 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2070 PyObject *resultobj;
2071 wxBrush *arg1 = (wxBrush *) 0 ;
2072 wxBitmap *result;
2073 PyObject * obj0 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2088 return resultobj;
2089 fail:
2090 return NULL;
2091 }
2092
2093
2094 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2095 PyObject *resultobj;
2096 wxBrush *arg1 = (wxBrush *) 0 ;
2097 bool result;
2098 PyObject * obj0 = 0 ;
2099 char *kwnames[] = {
2100 (char *) "self", NULL
2101 };
2102
2103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2105 {
2106 PyThreadState* __tstate = wxPyBeginAllowThreads();
2107 result = (bool)(arg1)->Ok();
2108
2109 wxPyEndAllowThreads(__tstate);
2110 if (PyErr_Occurred()) SWIG_fail;
2111 }
2112 resultobj = PyInt_FromLong((long)result);
2113 return resultobj;
2114 fail:
2115 return NULL;
2116 }
2117
2118
2119 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2120 PyObject *obj;
2121 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2122 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2123 Py_INCREF(obj);
2124 return Py_BuildValue((char *)"");
2125 }
2126 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2127 PyObject *resultobj;
2128 wxString *arg1 = 0 ;
2129 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2130 wxBitmap *result;
2131 bool temp1 = False ;
2132 PyObject * obj0 = 0 ;
2133 char *kwnames[] = {
2134 (char *) "name",(char *) "type", NULL
2135 };
2136
2137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2138 {
2139 arg1 = wxString_in_helper(obj0);
2140 if (arg1 == NULL) SWIG_fail;
2141 temp1 = True;
2142 }
2143 {
2144 PyThreadState* __tstate = wxPyBeginAllowThreads();
2145 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2146
2147 wxPyEndAllowThreads(__tstate);
2148 if (PyErr_Occurred()) SWIG_fail;
2149 }
2150 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2151 {
2152 if (temp1)
2153 delete arg1;
2154 }
2155 return resultobj;
2156 fail:
2157 {
2158 if (temp1)
2159 delete arg1;
2160 }
2161 return NULL;
2162 }
2163
2164
2165 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2166 PyObject *resultobj;
2167 wxBitmap *arg1 = (wxBitmap *) 0 ;
2168 PyObject * obj0 = 0 ;
2169 char *kwnames[] = {
2170 (char *) "self", NULL
2171 };
2172
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2175 {
2176 PyThreadState* __tstate = wxPyBeginAllowThreads();
2177 delete arg1;
2178
2179 wxPyEndAllowThreads(__tstate);
2180 if (PyErr_Occurred()) SWIG_fail;
2181 }
2182 Py_INCREF(Py_None); resultobj = Py_None;
2183 return resultobj;
2184 fail:
2185 return NULL;
2186 }
2187
2188
2189 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 int arg1 ;
2192 int arg2 ;
2193 int arg3 = (int) -1 ;
2194 wxBitmap *result;
2195 char *kwnames[] = {
2196 (char *) "width",(char *) "height",(char *) "depth", NULL
2197 };
2198
2199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2200 {
2201 PyThreadState* __tstate = wxPyBeginAllowThreads();
2202 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2203
2204 wxPyEndAllowThreads(__tstate);
2205 if (PyErr_Occurred()) SWIG_fail;
2206 }
2207 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2208 return resultobj;
2209 fail:
2210 return NULL;
2211 }
2212
2213
2214 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2215 PyObject *resultobj;
2216 wxIcon *arg1 = 0 ;
2217 wxBitmap *result;
2218 PyObject * obj0 = 0 ;
2219 char *kwnames[] = {
2220 (char *) "icon", NULL
2221 };
2222
2223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2225 if (arg1 == NULL) {
2226 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2227 }
2228 {
2229 PyThreadState* __tstate = wxPyBeginAllowThreads();
2230 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2231
2232 wxPyEndAllowThreads(__tstate);
2233 if (PyErr_Occurred()) SWIG_fail;
2234 }
2235 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2236 return resultobj;
2237 fail:
2238 return NULL;
2239 }
2240
2241
2242 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2243 PyObject *resultobj;
2244 wxImage *arg1 = 0 ;
2245 int arg2 = (int) -1 ;
2246 wxBitmap *result;
2247 PyObject * obj0 = 0 ;
2248 char *kwnames[] = {
2249 (char *) "image",(char *) "depth", NULL
2250 };
2251
2252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2254 if (arg1 == NULL) {
2255 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2256 }
2257 {
2258 PyThreadState* __tstate = wxPyBeginAllowThreads();
2259 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2260
2261 wxPyEndAllowThreads(__tstate);
2262 if (PyErr_Occurred()) SWIG_fail;
2263 }
2264 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2265 return resultobj;
2266 fail:
2267 return NULL;
2268 }
2269
2270
2271 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2272 PyObject *resultobj;
2273 PyObject *arg1 = (PyObject *) 0 ;
2274 wxBitmap *result;
2275 PyObject * obj0 = 0 ;
2276 char *kwnames[] = {
2277 (char *) "listOfStrings", NULL
2278 };
2279
2280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2281 arg1 = obj0;
2282 {
2283 PyThreadState* __tstate = wxPyBeginAllowThreads();
2284 result = (wxBitmap *)new_wxBitmap(arg1);
2285
2286 wxPyEndAllowThreads(__tstate);
2287 if (PyErr_Occurred()) SWIG_fail;
2288 }
2289 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2290 return resultobj;
2291 fail:
2292 return NULL;
2293 }
2294
2295
2296 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2297 PyObject *resultobj;
2298 PyObject *arg1 = (PyObject *) 0 ;
2299 int arg2 ;
2300 int arg3 ;
2301 int arg4 = (int) 1 ;
2302 wxBitmap *result;
2303 PyObject * obj0 = 0 ;
2304 char *kwnames[] = {
2305 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2306 };
2307
2308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2309 arg1 = obj0;
2310 {
2311 PyThreadState* __tstate = wxPyBeginAllowThreads();
2312 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2313
2314 wxPyEndAllowThreads(__tstate);
2315 if (PyErr_Occurred()) SWIG_fail;
2316 }
2317 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2318 return resultobj;
2319 fail:
2320 return NULL;
2321 }
2322
2323
2324 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2325 PyObject *resultobj;
2326 wxBitmap *arg1 = (wxBitmap *) 0 ;
2327 bool result;
2328 PyObject * obj0 = 0 ;
2329 char *kwnames[] = {
2330 (char *) "self", NULL
2331 };
2332
2333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2335 {
2336 PyThreadState* __tstate = wxPyBeginAllowThreads();
2337 result = (bool)(arg1)->Ok();
2338
2339 wxPyEndAllowThreads(__tstate);
2340 if (PyErr_Occurred()) SWIG_fail;
2341 }
2342 resultobj = PyInt_FromLong((long)result);
2343 return resultobj;
2344 fail:
2345 return NULL;
2346 }
2347
2348
2349 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2350 PyObject *resultobj;
2351 wxBitmap *arg1 = (wxBitmap *) 0 ;
2352 int result;
2353 PyObject * obj0 = 0 ;
2354 char *kwnames[] = {
2355 (char *) "self", NULL
2356 };
2357
2358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2360 {
2361 PyThreadState* __tstate = wxPyBeginAllowThreads();
2362 result = (int)(arg1)->GetWidth();
2363
2364 wxPyEndAllowThreads(__tstate);
2365 if (PyErr_Occurred()) SWIG_fail;
2366 }
2367 resultobj = PyInt_FromLong((long)result);
2368 return resultobj;
2369 fail:
2370 return NULL;
2371 }
2372
2373
2374 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2375 PyObject *resultobj;
2376 wxBitmap *arg1 = (wxBitmap *) 0 ;
2377 int result;
2378 PyObject * obj0 = 0 ;
2379 char *kwnames[] = {
2380 (char *) "self", NULL
2381 };
2382
2383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2385 {
2386 PyThreadState* __tstate = wxPyBeginAllowThreads();
2387 result = (int)(arg1)->GetHeight();
2388
2389 wxPyEndAllowThreads(__tstate);
2390 if (PyErr_Occurred()) SWIG_fail;
2391 }
2392 resultobj = PyInt_FromLong((long)result);
2393 return resultobj;
2394 fail:
2395 return NULL;
2396 }
2397
2398
2399 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2400 PyObject *resultobj;
2401 wxBitmap *arg1 = (wxBitmap *) 0 ;
2402 int result;
2403 PyObject * obj0 = 0 ;
2404 char *kwnames[] = {
2405 (char *) "self", NULL
2406 };
2407
2408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2410 {
2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
2412 result = (int)(arg1)->GetDepth();
2413
2414 wxPyEndAllowThreads(__tstate);
2415 if (PyErr_Occurred()) SWIG_fail;
2416 }
2417 resultobj = PyInt_FromLong((long)result);
2418 return resultobj;
2419 fail:
2420 return NULL;
2421 }
2422
2423
2424 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2425 PyObject *resultobj;
2426 wxBitmap *arg1 = (wxBitmap *) 0 ;
2427 SwigValueWrapper< wxImage > result;
2428 PyObject * obj0 = 0 ;
2429 char *kwnames[] = {
2430 (char *) "self", NULL
2431 };
2432
2433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2435 {
2436 PyThreadState* __tstate = wxPyBeginAllowThreads();
2437 result = ((wxBitmap const *)arg1)->ConvertToImage();
2438
2439 wxPyEndAllowThreads(__tstate);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 }
2442 {
2443 wxImage * resultptr;
2444 resultptr = new wxImage((wxImage &) result);
2445 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2446 }
2447 return resultobj;
2448 fail:
2449 return NULL;
2450 }
2451
2452
2453 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2454 PyObject *resultobj;
2455 wxBitmap *arg1 = (wxBitmap *) 0 ;
2456 wxMask *result;
2457 PyObject * obj0 = 0 ;
2458 char *kwnames[] = {
2459 (char *) "self", NULL
2460 };
2461
2462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2464 {
2465 PyThreadState* __tstate = wxPyBeginAllowThreads();
2466 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2467
2468 wxPyEndAllowThreads(__tstate);
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 wxBitmap *arg1 = (wxBitmap *) 0 ;
2481 wxMask *arg2 = (wxMask *) 0 ;
2482 PyObject * obj0 = 0 ;
2483 PyObject * obj1 = 0 ;
2484 char *kwnames[] = {
2485 (char *) "self",(char *) "mask", NULL
2486 };
2487
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2490 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 (arg1)->SetMask(arg2);
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
2498 Py_INCREF(Py_None); resultobj = Py_None;
2499 return resultobj;
2500 fail:
2501 return NULL;
2502 }
2503
2504
2505 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2506 PyObject *resultobj;
2507 wxBitmap *arg1 = (wxBitmap *) 0 ;
2508 wxColour *arg2 = 0 ;
2509 wxColour temp2 ;
2510 PyObject * obj0 = 0 ;
2511 PyObject * obj1 = 0 ;
2512 char *kwnames[] = {
2513 (char *) "self",(char *) "colour", NULL
2514 };
2515
2516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2518 {
2519 arg2 = &temp2;
2520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2521 }
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
2524 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
2529 Py_INCREF(Py_None); resultobj = Py_None;
2530 return resultobj;
2531 fail:
2532 return NULL;
2533 }
2534
2535
2536 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject *resultobj;
2538 wxBitmap *arg1 = (wxBitmap *) 0 ;
2539 wxRect *arg2 = 0 ;
2540 SwigValueWrapper< wxBitmap > result;
2541 wxRect temp2 ;
2542 PyObject * obj0 = 0 ;
2543 PyObject * obj1 = 0 ;
2544 char *kwnames[] = {
2545 (char *) "self",(char *) "rect", NULL
2546 };
2547
2548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2550 {
2551 arg2 = &temp2;
2552 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2553 }
2554 {
2555 PyThreadState* __tstate = wxPyBeginAllowThreads();
2556 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2557
2558 wxPyEndAllowThreads(__tstate);
2559 if (PyErr_Occurred()) SWIG_fail;
2560 }
2561 {
2562 wxBitmap * resultptr;
2563 resultptr = new wxBitmap((wxBitmap &) result);
2564 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2565 }
2566 return resultobj;
2567 fail:
2568 return NULL;
2569 }
2570
2571
2572 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2573 PyObject *resultobj;
2574 wxBitmap *arg1 = (wxBitmap *) 0 ;
2575 wxString *arg2 = 0 ;
2576 int arg3 ;
2577 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2578 bool result;
2579 bool temp2 = False ;
2580 PyObject * obj0 = 0 ;
2581 PyObject * obj1 = 0 ;
2582 PyObject * obj3 = 0 ;
2583 char *kwnames[] = {
2584 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2585 };
2586
2587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2589 {
2590 arg2 = wxString_in_helper(obj1);
2591 if (arg2 == NULL) SWIG_fail;
2592 temp2 = True;
2593 }
2594 if (obj3) {
2595 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2596 }
2597 {
2598 PyThreadState* __tstate = wxPyBeginAllowThreads();
2599 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2600
2601 wxPyEndAllowThreads(__tstate);
2602 if (PyErr_Occurred()) SWIG_fail;
2603 }
2604 resultobj = PyInt_FromLong((long)result);
2605 {
2606 if (temp2)
2607 delete arg2;
2608 }
2609 return resultobj;
2610 fail:
2611 {
2612 if (temp2)
2613 delete arg2;
2614 }
2615 return NULL;
2616 }
2617
2618
2619 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2620 PyObject *resultobj;
2621 wxBitmap *arg1 = (wxBitmap *) 0 ;
2622 wxString *arg2 = 0 ;
2623 int arg3 ;
2624 bool result;
2625 bool temp2 = False ;
2626 PyObject * obj0 = 0 ;
2627 PyObject * obj1 = 0 ;
2628 char *kwnames[] = {
2629 (char *) "self",(char *) "name",(char *) "type", NULL
2630 };
2631
2632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2634 {
2635 arg2 = wxString_in_helper(obj1);
2636 if (arg2 == NULL) SWIG_fail;
2637 temp2 = True;
2638 }
2639 {
2640 PyThreadState* __tstate = wxPyBeginAllowThreads();
2641 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2642
2643 wxPyEndAllowThreads(__tstate);
2644 if (PyErr_Occurred()) SWIG_fail;
2645 }
2646 resultobj = PyInt_FromLong((long)result);
2647 {
2648 if (temp2)
2649 delete arg2;
2650 }
2651 return resultobj;
2652 fail:
2653 {
2654 if (temp2)
2655 delete arg2;
2656 }
2657 return NULL;
2658 }
2659
2660
2661 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2662 PyObject *resultobj;
2663 wxBitmap *arg1 = (wxBitmap *) 0 ;
2664 wxIcon *arg2 = 0 ;
2665 bool result;
2666 PyObject * obj0 = 0 ;
2667 PyObject * obj1 = 0 ;
2668 char *kwnames[] = {
2669 (char *) "self",(char *) "icon", NULL
2670 };
2671
2672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2674 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2675 if (arg2 == NULL) {
2676 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2677 }
2678 {
2679 PyThreadState* __tstate = wxPyBeginAllowThreads();
2680 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2681
2682 wxPyEndAllowThreads(__tstate);
2683 if (PyErr_Occurred()) SWIG_fail;
2684 }
2685 resultobj = PyInt_FromLong((long)result);
2686 return resultobj;
2687 fail:
2688 return NULL;
2689 }
2690
2691
2692 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2693 PyObject *resultobj;
2694 wxBitmap *arg1 = (wxBitmap *) 0 ;
2695 int arg2 ;
2696 PyObject * obj0 = 0 ;
2697 char *kwnames[] = {
2698 (char *) "self",(char *) "height", NULL
2699 };
2700
2701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2703 {
2704 PyThreadState* __tstate = wxPyBeginAllowThreads();
2705 (arg1)->SetHeight(arg2);
2706
2707 wxPyEndAllowThreads(__tstate);
2708 if (PyErr_Occurred()) SWIG_fail;
2709 }
2710 Py_INCREF(Py_None); resultobj = Py_None;
2711 return resultobj;
2712 fail:
2713 return NULL;
2714 }
2715
2716
2717 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2718 PyObject *resultobj;
2719 wxBitmap *arg1 = (wxBitmap *) 0 ;
2720 int arg2 ;
2721 PyObject * obj0 = 0 ;
2722 char *kwnames[] = {
2723 (char *) "self",(char *) "width", NULL
2724 };
2725
2726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2728 {
2729 PyThreadState* __tstate = wxPyBeginAllowThreads();
2730 (arg1)->SetWidth(arg2);
2731
2732 wxPyEndAllowThreads(__tstate);
2733 if (PyErr_Occurred()) SWIG_fail;
2734 }
2735 Py_INCREF(Py_None); resultobj = Py_None;
2736 return resultobj;
2737 fail:
2738 return NULL;
2739 }
2740
2741
2742 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2743 PyObject *resultobj;
2744 wxBitmap *arg1 = (wxBitmap *) 0 ;
2745 int arg2 ;
2746 PyObject * obj0 = 0 ;
2747 char *kwnames[] = {
2748 (char *) "self",(char *) "depth", NULL
2749 };
2750
2751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2753 {
2754 PyThreadState* __tstate = wxPyBeginAllowThreads();
2755 (arg1)->SetDepth(arg2);
2756
2757 wxPyEndAllowThreads(__tstate);
2758 if (PyErr_Occurred()) SWIG_fail;
2759 }
2760 Py_INCREF(Py_None); resultobj = Py_None;
2761 return resultobj;
2762 fail:
2763 return NULL;
2764 }
2765
2766
2767 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2768 PyObject *obj;
2769 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2770 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2771 Py_INCREF(obj);
2772 return Py_BuildValue((char *)"");
2773 }
2774 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2775 PyObject *resultobj;
2776 wxBitmap *arg1 = 0 ;
2777 wxMask *result;
2778 PyObject * obj0 = 0 ;
2779 char *kwnames[] = {
2780 (char *) "bitmap", NULL
2781 };
2782
2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2785 if (arg1 == NULL) {
2786 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2787 }
2788 {
2789 PyThreadState* __tstate = wxPyBeginAllowThreads();
2790 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2791
2792 wxPyEndAllowThreads(__tstate);
2793 if (PyErr_Occurred()) SWIG_fail;
2794 }
2795 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2796 return resultobj;
2797 fail:
2798 return NULL;
2799 }
2800
2801
2802 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2803 PyObject *resultobj;
2804 wxBitmap *arg1 = 0 ;
2805 wxColour *arg2 = 0 ;
2806 wxMask *result;
2807 wxColour temp2 ;
2808 PyObject * obj0 = 0 ;
2809 PyObject * obj1 = 0 ;
2810 char *kwnames[] = {
2811 (char *) "bitmap",(char *) "colour", NULL
2812 };
2813
2814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
2815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2816 if (arg1 == NULL) {
2817 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2818 }
2819 {
2820 arg2 = &temp2;
2821 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2822 }
2823 {
2824 PyThreadState* __tstate = wxPyBeginAllowThreads();
2825 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
2826
2827 wxPyEndAllowThreads(__tstate);
2828 if (PyErr_Occurred()) SWIG_fail;
2829 }
2830 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2831 return resultobj;
2832 fail:
2833 return NULL;
2834 }
2835
2836
2837 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
2838 PyObject *obj;
2839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2840 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
2841 Py_INCREF(obj);
2842 return Py_BuildValue((char *)"");
2843 }
2844 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2845 PyObject *resultobj;
2846 wxString *arg1 = 0 ;
2847 int arg2 ;
2848 int arg3 = (int) -1 ;
2849 int arg4 = (int) -1 ;
2850 wxIcon *result;
2851 bool temp1 = False ;
2852 PyObject * obj0 = 0 ;
2853 char *kwnames[] = {
2854 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
2855 };
2856
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2858 {
2859 arg1 = wxString_in_helper(obj0);
2860 if (arg1 == NULL) SWIG_fail;
2861 temp1 = True;
2862 }
2863 {
2864 PyThreadState* __tstate = wxPyBeginAllowThreads();
2865 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
2866
2867 wxPyEndAllowThreads(__tstate);
2868 if (PyErr_Occurred()) SWIG_fail;
2869 }
2870 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2871 {
2872 if (temp1)
2873 delete arg1;
2874 }
2875 return resultobj;
2876 fail:
2877 {
2878 if (temp1)
2879 delete arg1;
2880 }
2881 return NULL;
2882 }
2883
2884
2885 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2886 PyObject *resultobj;
2887 wxIcon *arg1 = (wxIcon *) 0 ;
2888 PyObject * obj0 = 0 ;
2889 char *kwnames[] = {
2890 (char *) "self", NULL
2891 };
2892
2893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2895 {
2896 PyThreadState* __tstate = wxPyBeginAllowThreads();
2897 delete arg1;
2898
2899 wxPyEndAllowThreads(__tstate);
2900 if (PyErr_Occurred()) SWIG_fail;
2901 }
2902 Py_INCREF(Py_None); resultobj = Py_None;
2903 return resultobj;
2904 fail:
2905 return NULL;
2906 }
2907
2908
2909 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2910 PyObject *resultobj;
2911 wxIcon *result;
2912 char *kwnames[] = {
2913 NULL
2914 };
2915
2916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
2917 {
2918 PyThreadState* __tstate = wxPyBeginAllowThreads();
2919 result = (wxIcon *)new wxIcon();
2920
2921 wxPyEndAllowThreads(__tstate);
2922 if (PyErr_Occurred()) SWIG_fail;
2923 }
2924 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2925 return resultobj;
2926 fail:
2927 return NULL;
2928 }
2929
2930
2931 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2932 PyObject *resultobj;
2933 wxIconLocation *arg1 = 0 ;
2934 wxIcon *result;
2935 PyObject * obj0 = 0 ;
2936 char *kwnames[] = {
2937 (char *) "loc", NULL
2938 };
2939
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2942 if (arg1 == NULL) {
2943 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2944 }
2945 {
2946 PyThreadState* __tstate = wxPyBeginAllowThreads();
2947 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
2948
2949 wxPyEndAllowThreads(__tstate);
2950 if (PyErr_Occurred()) SWIG_fail;
2951 }
2952 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2953 return resultobj;
2954 fail:
2955 return NULL;
2956 }
2957
2958
2959 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2960 PyObject *resultobj;
2961 wxBitmap *arg1 = 0 ;
2962 wxIcon *result;
2963 PyObject * obj0 = 0 ;
2964 char *kwnames[] = {
2965 (char *) "bmp", NULL
2966 };
2967
2968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2970 if (arg1 == NULL) {
2971 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2972 }
2973 {
2974 PyThreadState* __tstate = wxPyBeginAllowThreads();
2975 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
2976
2977 wxPyEndAllowThreads(__tstate);
2978 if (PyErr_Occurred()) SWIG_fail;
2979 }
2980 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2981 return resultobj;
2982 fail:
2983 return NULL;
2984 }
2985
2986
2987 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2988 PyObject *resultobj;
2989 PyObject *arg1 = (PyObject *) 0 ;
2990 wxIcon *result;
2991 PyObject * obj0 = 0 ;
2992 char *kwnames[] = {
2993 (char *) "listOfStrings", NULL
2994 };
2995
2996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
2997 arg1 = obj0;
2998 {
2999 PyThreadState* __tstate = wxPyBeginAllowThreads();
3000 result = (wxIcon *)new_wxIcon(arg1);
3001
3002 wxPyEndAllowThreads(__tstate);
3003 if (PyErr_Occurred()) SWIG_fail;
3004 }
3005 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3006 return resultobj;
3007 fail:
3008 return NULL;
3009 }
3010
3011
3012 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3013 PyObject *resultobj;
3014 wxIcon *arg1 = (wxIcon *) 0 ;
3015 wxString *arg2 = 0 ;
3016 int arg3 ;
3017 bool result;
3018 bool temp2 = False ;
3019 PyObject * obj0 = 0 ;
3020 PyObject * obj1 = 0 ;
3021 char *kwnames[] = {
3022 (char *) "self",(char *) "name",(char *) "type", NULL
3023 };
3024
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3027 {
3028 arg2 = wxString_in_helper(obj1);
3029 if (arg2 == NULL) SWIG_fail;
3030 temp2 = True;
3031 }
3032 {
3033 PyThreadState* __tstate = wxPyBeginAllowThreads();
3034 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3035
3036 wxPyEndAllowThreads(__tstate);
3037 if (PyErr_Occurred()) SWIG_fail;
3038 }
3039 resultobj = PyInt_FromLong((long)result);
3040 {
3041 if (temp2)
3042 delete arg2;
3043 }
3044 return resultobj;
3045 fail:
3046 {
3047 if (temp2)
3048 delete arg2;
3049 }
3050 return NULL;
3051 }
3052
3053
3054 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3055 PyObject *resultobj;
3056 wxIcon *arg1 = (wxIcon *) 0 ;
3057 bool result;
3058 PyObject * obj0 = 0 ;
3059 char *kwnames[] = {
3060 (char *) "self", NULL
3061 };
3062
3063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3065 {
3066 PyThreadState* __tstate = wxPyBeginAllowThreads();
3067 result = (bool)(arg1)->Ok();
3068
3069 wxPyEndAllowThreads(__tstate);
3070 if (PyErr_Occurred()) SWIG_fail;
3071 }
3072 resultobj = PyInt_FromLong((long)result);
3073 return resultobj;
3074 fail:
3075 return NULL;
3076 }
3077
3078
3079 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3080 PyObject *resultobj;
3081 wxIcon *arg1 = (wxIcon *) 0 ;
3082 int result;
3083 PyObject * obj0 = 0 ;
3084 char *kwnames[] = {
3085 (char *) "self", NULL
3086 };
3087
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3090 {
3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
3092 result = (int)(arg1)->GetWidth();
3093
3094 wxPyEndAllowThreads(__tstate);
3095 if (PyErr_Occurred()) SWIG_fail;
3096 }
3097 resultobj = PyInt_FromLong((long)result);
3098 return resultobj;
3099 fail:
3100 return NULL;
3101 }
3102
3103
3104 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3105 PyObject *resultobj;
3106 wxIcon *arg1 = (wxIcon *) 0 ;
3107 int result;
3108 PyObject * obj0 = 0 ;
3109 char *kwnames[] = {
3110 (char *) "self", NULL
3111 };
3112
3113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = (int)(arg1)->GetHeight();
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) SWIG_fail;
3121 }
3122 resultobj = PyInt_FromLong((long)result);
3123 return resultobj;
3124 fail:
3125 return NULL;
3126 }
3127
3128
3129 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3130 PyObject *resultobj;
3131 wxIcon *arg1 = (wxIcon *) 0 ;
3132 int result;
3133 PyObject * obj0 = 0 ;
3134 char *kwnames[] = {
3135 (char *) "self", NULL
3136 };
3137
3138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3140 {
3141 PyThreadState* __tstate = wxPyBeginAllowThreads();
3142 result = (int)(arg1)->GetDepth();
3143
3144 wxPyEndAllowThreads(__tstate);
3145 if (PyErr_Occurred()) SWIG_fail;
3146 }
3147 resultobj = PyInt_FromLong((long)result);
3148 return resultobj;
3149 fail:
3150 return NULL;
3151 }
3152
3153
3154 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3155 PyObject *resultobj;
3156 wxIcon *arg1 = (wxIcon *) 0 ;
3157 int arg2 ;
3158 PyObject * obj0 = 0 ;
3159 char *kwnames[] = {
3160 (char *) "self",(char *) "w", NULL
3161 };
3162
3163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3165 {
3166 PyThreadState* __tstate = wxPyBeginAllowThreads();
3167 (arg1)->SetWidth(arg2);
3168
3169 wxPyEndAllowThreads(__tstate);
3170 if (PyErr_Occurred()) SWIG_fail;
3171 }
3172 Py_INCREF(Py_None); resultobj = Py_None;
3173 return resultobj;
3174 fail:
3175 return NULL;
3176 }
3177
3178
3179 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3180 PyObject *resultobj;
3181 wxIcon *arg1 = (wxIcon *) 0 ;
3182 int arg2 ;
3183 PyObject * obj0 = 0 ;
3184 char *kwnames[] = {
3185 (char *) "self",(char *) "h", NULL
3186 };
3187
3188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3190 {
3191 PyThreadState* __tstate = wxPyBeginAllowThreads();
3192 (arg1)->SetHeight(arg2);
3193
3194 wxPyEndAllowThreads(__tstate);
3195 if (PyErr_Occurred()) SWIG_fail;
3196 }
3197 Py_INCREF(Py_None); resultobj = Py_None;
3198 return resultobj;
3199 fail:
3200 return NULL;
3201 }
3202
3203
3204 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj;
3206 wxIcon *arg1 = (wxIcon *) 0 ;
3207 int arg2 ;
3208 PyObject * obj0 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "self",(char *) "d", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3215 {
3216 PyThreadState* __tstate = wxPyBeginAllowThreads();
3217 (arg1)->SetDepth(arg2);
3218
3219 wxPyEndAllowThreads(__tstate);
3220 if (PyErr_Occurred()) SWIG_fail;
3221 }
3222 Py_INCREF(Py_None); resultobj = Py_None;
3223 return resultobj;
3224 fail:
3225 return NULL;
3226 }
3227
3228
3229 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3230 PyObject *resultobj;
3231 wxIcon *arg1 = (wxIcon *) 0 ;
3232 wxBitmap *arg2 = 0 ;
3233 PyObject * obj0 = 0 ;
3234 PyObject * obj1 = 0 ;
3235 char *kwnames[] = {
3236 (char *) "self",(char *) "bmp", NULL
3237 };
3238
3239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3241 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3242 if (arg2 == NULL) {
3243 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3244 }
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 Py_INCREF(Py_None); resultobj = Py_None;
3253 return resultobj;
3254 fail:
3255 return NULL;
3256 }
3257
3258
3259 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3260 PyObject *obj;
3261 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3262 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3263 Py_INCREF(obj);
3264 return Py_BuildValue((char *)"");
3265 }
3266 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3267 PyObject *resultobj;
3268 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3269 int arg2 = (int) 0 ;
3270 wxIconLocation *result;
3271 bool temp1 = False ;
3272 PyObject * obj0 = 0 ;
3273 char *kwnames[] = {
3274 (char *) "filename",(char *) "num", NULL
3275 };
3276
3277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3278 if (obj0) {
3279 {
3280 arg1 = wxString_in_helper(obj0);
3281 if (arg1 == NULL) SWIG_fail;
3282 temp1 = True;
3283 }
3284 }
3285 {
3286 PyThreadState* __tstate = wxPyBeginAllowThreads();
3287 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3288
3289 wxPyEndAllowThreads(__tstate);
3290 if (PyErr_Occurred()) SWIG_fail;
3291 }
3292 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3293 {
3294 if (temp1)
3295 delete arg1;
3296 }
3297 return resultobj;
3298 fail:
3299 {
3300 if (temp1)
3301 delete arg1;
3302 }
3303 return NULL;
3304 }
3305
3306
3307 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3308 PyObject *resultobj;
3309 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3310 PyObject * obj0 = 0 ;
3311 char *kwnames[] = {
3312 (char *) "self", NULL
3313 };
3314
3315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3317 {
3318 PyThreadState* __tstate = wxPyBeginAllowThreads();
3319 delete arg1;
3320
3321 wxPyEndAllowThreads(__tstate);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 Py_INCREF(Py_None); resultobj = Py_None;
3325 return resultobj;
3326 fail:
3327 return NULL;
3328 }
3329
3330
3331 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3332 PyObject *resultobj;
3333 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3334 bool result;
3335 PyObject * obj0 = 0 ;
3336 char *kwnames[] = {
3337 (char *) "self", NULL
3338 };
3339
3340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3342 {
3343 PyThreadState* __tstate = wxPyBeginAllowThreads();
3344 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3345
3346 wxPyEndAllowThreads(__tstate);
3347 if (PyErr_Occurred()) SWIG_fail;
3348 }
3349 resultobj = PyInt_FromLong((long)result);
3350 return resultobj;
3351 fail:
3352 return NULL;
3353 }
3354
3355
3356 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3357 PyObject *resultobj;
3358 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3359 wxString *arg2 = 0 ;
3360 bool temp2 = False ;
3361 PyObject * obj0 = 0 ;
3362 PyObject * obj1 = 0 ;
3363 char *kwnames[] = {
3364 (char *) "self",(char *) "filename", NULL
3365 };
3366
3367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3369 {
3370 arg2 = wxString_in_helper(obj1);
3371 if (arg2 == NULL) SWIG_fail;
3372 temp2 = True;
3373 }
3374 {
3375 PyThreadState* __tstate = wxPyBeginAllowThreads();
3376 (arg1)->SetFileName((wxString const &)*arg2);
3377
3378 wxPyEndAllowThreads(__tstate);
3379 if (PyErr_Occurred()) SWIG_fail;
3380 }
3381 Py_INCREF(Py_None); resultobj = Py_None;
3382 {
3383 if (temp2)
3384 delete arg2;
3385 }
3386 return resultobj;
3387 fail:
3388 {
3389 if (temp2)
3390 delete arg2;
3391 }
3392 return NULL;
3393 }
3394
3395
3396 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3397 PyObject *resultobj;
3398 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3399 wxString *result;
3400 PyObject * obj0 = 0 ;
3401 char *kwnames[] = {
3402 (char *) "self", NULL
3403 };
3404
3405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3407 {
3408 PyThreadState* __tstate = wxPyBeginAllowThreads();
3409 {
3410 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3411 result = (wxString *) &_result_ref;
3412 }
3413
3414 wxPyEndAllowThreads(__tstate);
3415 if (PyErr_Occurred()) SWIG_fail;
3416 }
3417 {
3418 #if wxUSE_UNICODE
3419 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3420 #else
3421 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3422 #endif
3423 }
3424 return resultobj;
3425 fail:
3426 return NULL;
3427 }
3428
3429
3430 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3431 PyObject *resultobj;
3432 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3433 int arg2 ;
3434 PyObject * obj0 = 0 ;
3435 char *kwnames[] = {
3436 (char *) "self",(char *) "num", NULL
3437 };
3438
3439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3441 {
3442 PyThreadState* __tstate = wxPyBeginAllowThreads();
3443 wxIconLocation_SetIndex(arg1,arg2);
3444
3445 wxPyEndAllowThreads(__tstate);
3446 if (PyErr_Occurred()) SWIG_fail;
3447 }
3448 Py_INCREF(Py_None); resultobj = Py_None;
3449 return resultobj;
3450 fail:
3451 return NULL;
3452 }
3453
3454
3455 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3456 PyObject *resultobj;
3457 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3458 int result;
3459 PyObject * obj0 = 0 ;
3460 char *kwnames[] = {
3461 (char *) "self", NULL
3462 };
3463
3464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3466 {
3467 PyThreadState* __tstate = wxPyBeginAllowThreads();
3468 result = (int)wxIconLocation_GetIndex(arg1);
3469
3470 wxPyEndAllowThreads(__tstate);
3471 if (PyErr_Occurred()) SWIG_fail;
3472 }
3473 resultobj = PyInt_FromLong((long)result);
3474 return resultobj;
3475 fail:
3476 return NULL;
3477 }
3478
3479
3480 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3481 PyObject *obj;
3482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3483 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3484 Py_INCREF(obj);
3485 return Py_BuildValue((char *)"");
3486 }
3487 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3488 PyObject *resultobj;
3489 wxIconBundle *result;
3490 char *kwnames[] = {
3491 NULL
3492 };
3493
3494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3495 {
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxIconBundle *)new wxIconBundle();
3498
3499 wxPyEndAllowThreads(__tstate);
3500 if (PyErr_Occurred()) SWIG_fail;
3501 }
3502 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3503 return resultobj;
3504 fail:
3505 return NULL;
3506 }
3507
3508
3509 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3510 PyObject *resultobj;
3511 wxString *arg1 = 0 ;
3512 long arg2 ;
3513 wxIconBundle *result;
3514 bool temp1 = False ;
3515 PyObject * obj0 = 0 ;
3516 char *kwnames[] = {
3517 (char *) "file",(char *) "type", NULL
3518 };
3519
3520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3521 {
3522 arg1 = wxString_in_helper(obj0);
3523 if (arg1 == NULL) SWIG_fail;
3524 temp1 = True;
3525 }
3526 {
3527 PyThreadState* __tstate = wxPyBeginAllowThreads();
3528 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3529
3530 wxPyEndAllowThreads(__tstate);
3531 if (PyErr_Occurred()) SWIG_fail;
3532 }
3533 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3534 {
3535 if (temp1)
3536 delete arg1;
3537 }
3538 return resultobj;
3539 fail:
3540 {
3541 if (temp1)
3542 delete arg1;
3543 }
3544 return NULL;
3545 }
3546
3547
3548 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3549 PyObject *resultobj;
3550 wxIcon *arg1 = 0 ;
3551 wxIconBundle *result;
3552 PyObject * obj0 = 0 ;
3553 char *kwnames[] = {
3554 (char *) "icon", NULL
3555 };
3556
3557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3559 if (arg1 == NULL) {
3560 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3561 }
3562 {
3563 PyThreadState* __tstate = wxPyBeginAllowThreads();
3564 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3565
3566 wxPyEndAllowThreads(__tstate);
3567 if (PyErr_Occurred()) SWIG_fail;
3568 }
3569 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3570 return resultobj;
3571 fail:
3572 return NULL;
3573 }
3574
3575
3576 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3577 PyObject *resultobj;
3578 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3579 PyObject * obj0 = 0 ;
3580 char *kwnames[] = {
3581 (char *) "self", NULL
3582 };
3583
3584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3586 {
3587 PyThreadState* __tstate = wxPyBeginAllowThreads();
3588 delete arg1;
3589
3590 wxPyEndAllowThreads(__tstate);
3591 if (PyErr_Occurred()) SWIG_fail;
3592 }
3593 Py_INCREF(Py_None); resultobj = Py_None;
3594 return resultobj;
3595 fail:
3596 return NULL;
3597 }
3598
3599
3600 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3601 PyObject *resultobj;
3602 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3603 wxIcon *arg2 = 0 ;
3604 PyObject * obj0 = 0 ;
3605 PyObject * obj1 = 0 ;
3606 char *kwnames[] = {
3607 (char *) "self",(char *) "icon", NULL
3608 };
3609
3610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3612 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3613 if (arg2 == NULL) {
3614 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3615 }
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 (arg1)->AddIcon((wxIcon const &)*arg2);
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 Py_INCREF(Py_None); resultobj = Py_None;
3624 return resultobj;
3625 fail:
3626 return NULL;
3627 }
3628
3629
3630 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3631 PyObject *resultobj;
3632 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3633 wxString *arg2 = 0 ;
3634 long arg3 ;
3635 bool temp2 = False ;
3636 PyObject * obj0 = 0 ;
3637 PyObject * obj1 = 0 ;
3638 char *kwnames[] = {
3639 (char *) "self",(char *) "file",(char *) "type", NULL
3640 };
3641
3642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3644 {
3645 arg2 = wxString_in_helper(obj1);
3646 if (arg2 == NULL) SWIG_fail;
3647 temp2 = True;
3648 }
3649 {
3650 PyThreadState* __tstate = wxPyBeginAllowThreads();
3651 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3652
3653 wxPyEndAllowThreads(__tstate);
3654 if (PyErr_Occurred()) SWIG_fail;
3655 }
3656 Py_INCREF(Py_None); resultobj = Py_None;
3657 {
3658 if (temp2)
3659 delete arg2;
3660 }
3661 return resultobj;
3662 fail:
3663 {
3664 if (temp2)
3665 delete arg2;
3666 }
3667 return NULL;
3668 }
3669
3670
3671 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3672 PyObject *resultobj;
3673 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3674 wxSize *arg2 = 0 ;
3675 wxIcon *result;
3676 wxSize temp2 ;
3677 PyObject * obj0 = 0 ;
3678 PyObject * obj1 = 0 ;
3679 char *kwnames[] = {
3680 (char *) "self",(char *) "size", NULL
3681 };
3682
3683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3685 {
3686 arg2 = &temp2;
3687 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3688 }
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 {
3692 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3693 result = (wxIcon *) &_result_ref;
3694 }
3695
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3707 PyObject *obj;
3708 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3709 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3710 Py_INCREF(obj);
3711 return Py_BuildValue((char *)"");
3712 }
3713 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3714 PyObject *resultobj;
3715 wxString *arg1 = (wxString *) 0 ;
3716 long arg2 ;
3717 int arg3 = (int) 0 ;
3718 int arg4 = (int) 0 ;
3719 wxCursor *result;
3720 bool temp1 = False ;
3721 PyObject * obj0 = 0 ;
3722 char *kwnames[] = {
3723 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3724 };
3725
3726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3727 {
3728 arg1 = wxString_in_helper(obj0);
3729 if (arg1 == NULL) SWIG_fail;
3730 temp1 = True;
3731 }
3732 {
3733 PyThreadState* __tstate = wxPyBeginAllowThreads();
3734 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3735
3736 wxPyEndAllowThreads(__tstate);
3737 if (PyErr_Occurred()) SWIG_fail;
3738 }
3739 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3740 {
3741 if (temp1)
3742 delete arg1;
3743 }
3744 return resultobj;
3745 fail:
3746 {
3747 if (temp1)
3748 delete arg1;
3749 }
3750 return NULL;
3751 }
3752
3753
3754 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3755 PyObject *resultobj;
3756 wxCursor *arg1 = (wxCursor *) 0 ;
3757 PyObject * obj0 = 0 ;
3758 char *kwnames[] = {
3759 (char *) "self", NULL
3760 };
3761
3762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3764 {
3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
3766 delete arg1;
3767
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
3771 Py_INCREF(Py_None); resultobj = Py_None;
3772 return resultobj;
3773 fail:
3774 return NULL;
3775 }
3776
3777
3778 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj;
3780 int arg1 ;
3781 wxCursor *result;
3782 char *kwnames[] = {
3783 (char *) "id", NULL
3784 };
3785
3786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3787 {
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 result = (wxCursor *)new wxCursor(arg1);
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3795 return resultobj;
3796 fail:
3797 return NULL;
3798 }
3799
3800
3801 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3802 PyObject *resultobj;
3803 wxImage *arg1 = 0 ;
3804 wxCursor *result;
3805 PyObject * obj0 = 0 ;
3806 char *kwnames[] = {
3807 (char *) "image", NULL
3808 };
3809
3810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
3811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3812 if (arg1 == NULL) {
3813 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3814 }
3815 {
3816 PyThreadState* __tstate = wxPyBeginAllowThreads();
3817 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
3818
3819 wxPyEndAllowThreads(__tstate);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 }
3822 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3823 return resultobj;
3824 fail:
3825 return NULL;
3826 }
3827
3828
3829 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
3830 PyObject *resultobj;
3831 PyObject *arg1 = (PyObject *) 0 ;
3832 int arg2 ;
3833 int arg3 ;
3834 int arg4 = (int) -1 ;
3835 int arg5 = (int) -1 ;
3836 PyObject *arg6 = (PyObject *) 0 ;
3837 wxCursor *result;
3838 PyObject * obj0 = 0 ;
3839 PyObject * obj5 = 0 ;
3840 char *kwnames[] = {
3841 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
3842 };
3843
3844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
3845 arg1 = obj0;
3846 if (obj5) {
3847 arg6 = obj5;
3848 }
3849 {
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
3852
3853 wxPyEndAllowThreads(__tstate);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3857 return resultobj;
3858 fail:
3859 return NULL;
3860 }
3861
3862
3863 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3864 PyObject *resultobj;
3865 wxCursor *arg1 = (wxCursor *) 0 ;
3866 bool result;
3867 PyObject * obj0 = 0 ;
3868 char *kwnames[] = {
3869 (char *) "self", NULL
3870 };
3871
3872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
3873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3874 {
3875 PyThreadState* __tstate = wxPyBeginAllowThreads();
3876 result = (bool)(arg1)->Ok();
3877
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 }
3881 resultobj = PyInt_FromLong((long)result);
3882 return resultobj;
3883 fail:
3884 return NULL;
3885 }
3886
3887
3888 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
3889 PyObject *obj;
3890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3891 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
3892 Py_INCREF(obj);
3893 return Py_BuildValue((char *)"");
3894 }
3895 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj;
3897 int arg1 = (int) 0 ;
3898 int arg2 = (int) 0 ;
3899 int arg3 = (int) 0 ;
3900 int arg4 = (int) 0 ;
3901 wxRegion *result;
3902 char *kwnames[] = {
3903 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
3907 {
3908 PyThreadState* __tstate = wxPyBeginAllowThreads();
3909 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
3910
3911 wxPyEndAllowThreads(__tstate);
3912 if (PyErr_Occurred()) SWIG_fail;
3913 }
3914 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3915 return resultobj;
3916 fail:
3917 return NULL;
3918 }
3919
3920
3921 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj;
3923 wxBitmap *arg1 = 0 ;
3924 wxColour const &arg2_defvalue = wxNullColour ;
3925 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3926 int arg3 = (int) 0 ;
3927 wxRegion *result;
3928 wxColour temp2 ;
3929 PyObject * obj0 = 0 ;
3930 PyObject * obj1 = 0 ;
3931 char *kwnames[] = {
3932 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
3933 };
3934
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
3936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3937 if (arg1 == NULL) {
3938 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3939 }
3940 if (obj1) {
3941 {
3942 arg2 = &temp2;
3943 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3944 }
3945 }
3946 {
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
3949
3950 wxPyEndAllowThreads(__tstate);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 }
3953 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3954 return resultobj;
3955 fail:
3956 return NULL;
3957 }
3958
3959
3960 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
3961 PyObject *resultobj;
3962 int arg1 ;
3963 wxPoint *arg2 = (wxPoint *) 0 ;
3964 int arg3 = (int) wxWINDING_RULE ;
3965 wxRegion *result;
3966 PyObject * obj0 = 0 ;
3967 char *kwnames[] = {
3968 (char *) "points",(char *) "fillStyle", NULL
3969 };
3970
3971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
3972 {
3973 arg2 = wxPoint_LIST_helper(obj0, &arg1);
3974 if (arg2 == NULL) SWIG_fail;
3975 }
3976 {
3977 PyThreadState* __tstate = wxPyBeginAllowThreads();
3978 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
3979
3980 wxPyEndAllowThreads(__tstate);
3981 if (PyErr_Occurred()) SWIG_fail;
3982 }
3983 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3984 {
3985 if (arg2) delete [] arg2;
3986 }
3987 return resultobj;
3988 fail:
3989 {
3990 if (arg2) delete [] arg2;
3991 }
3992 return NULL;
3993 }
3994
3995
3996 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3997 PyObject *resultobj;
3998 wxRegion *arg1 = (wxRegion *) 0 ;
3999 PyObject * obj0 = 0 ;
4000 char *kwnames[] = {
4001 (char *) "self", NULL
4002 };
4003
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 delete arg1;
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 Py_INCREF(Py_None); resultobj = Py_None;
4014 return resultobj;
4015 fail:
4016 return NULL;
4017 }
4018
4019
4020 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4021 PyObject *resultobj;
4022 wxRegion *arg1 = (wxRegion *) 0 ;
4023 PyObject * obj0 = 0 ;
4024 char *kwnames[] = {
4025 (char *) "self", NULL
4026 };
4027
4028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 (arg1)->Clear();
4033
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 Py_INCREF(Py_None); resultobj = Py_None;
4038 return resultobj;
4039 fail:
4040 return NULL;
4041 }
4042
4043
4044 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4045 PyObject *resultobj;
4046 wxRegion *arg1 = (wxRegion *) 0 ;
4047 int arg2 ;
4048 int arg3 ;
4049 bool result;
4050 PyObject * obj0 = 0 ;
4051 char *kwnames[] = {
4052 (char *) "self",(char *) "x",(char *) "y", NULL
4053 };
4054
4055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail;
4056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (bool)(arg1)->Offset(arg2,arg3);
4060
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 resultobj = PyInt_FromLong((long)result);
4065 return resultobj;
4066 fail:
4067 return NULL;
4068 }
4069
4070
4071 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4072 PyObject *resultobj;
4073 wxRegion *arg1 = (wxRegion *) 0 ;
4074 int arg2 ;
4075 int arg3 ;
4076 int result;
4077 PyObject * obj0 = 0 ;
4078 char *kwnames[] = {
4079 (char *) "self",(char *) "x",(char *) "y", NULL
4080 };
4081
4082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
4083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (int)(arg1)->Contains(arg2,arg3);
4087
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 resultobj = PyInt_FromLong((long)result);
4092 return resultobj;
4093 fail:
4094 return NULL;
4095 }
4096
4097
4098 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4099 PyObject *resultobj;
4100 wxRegion *arg1 = (wxRegion *) 0 ;
4101 wxPoint *arg2 = 0 ;
4102 int result;
4103 wxPoint temp2 ;
4104 PyObject * obj0 = 0 ;
4105 PyObject * obj1 = 0 ;
4106 char *kwnames[] = {
4107 (char *) "self",(char *) "pt", NULL
4108 };
4109
4110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4112 {
4113 arg2 = &temp2;
4114 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4115 }
4116 {
4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
4118 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4119
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 resultobj = PyInt_FromLong((long)result);
4124 return resultobj;
4125 fail:
4126 return NULL;
4127 }
4128
4129
4130 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4131 PyObject *resultobj;
4132 wxRegion *arg1 = (wxRegion *) 0 ;
4133 wxRect *arg2 = 0 ;
4134 int result;
4135 wxRect temp2 ;
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "self",(char *) "rect", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4144 {
4145 arg2 = &temp2;
4146 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4147 }
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4151
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 resultobj = PyInt_FromLong((long)result);
4156 return resultobj;
4157 fail:
4158 return NULL;
4159 }
4160
4161
4162 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4163 PyObject *resultobj;
4164 wxRegion *arg1 = (wxRegion *) 0 ;
4165 int arg2 ;
4166 int arg3 ;
4167 int arg4 ;
4168 int arg5 ;
4169 int result;
4170 PyObject * obj0 = 0 ;
4171 char *kwnames[] = {
4172 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4173 };
4174
4175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4180
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 resultobj = PyInt_FromLong((long)result);
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj;
4193 wxRegion *arg1 = (wxRegion *) 0 ;
4194 wxRect result;
4195 PyObject * obj0 = 0 ;
4196 char *kwnames[] = {
4197 (char *) "self", NULL
4198 };
4199
4200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4202 {
4203 PyThreadState* __tstate = wxPyBeginAllowThreads();
4204 result = (arg1)->GetBox();
4205
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 {
4210 wxRect * resultptr;
4211 resultptr = new wxRect((wxRect &) result);
4212 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4213 }
4214 return resultobj;
4215 fail:
4216 return NULL;
4217 }
4218
4219
4220 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4221 PyObject *resultobj;
4222 wxRegion *arg1 = (wxRegion *) 0 ;
4223 int arg2 ;
4224 int arg3 ;
4225 int arg4 ;
4226 int arg5 ;
4227 bool result;
4228 PyObject * obj0 = 0 ;
4229 char *kwnames[] = {
4230 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4231 };
4232
4233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4235 {
4236 PyThreadState* __tstate = wxPyBeginAllowThreads();
4237 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4238
4239 wxPyEndAllowThreads(__tstate);
4240 if (PyErr_Occurred()) SWIG_fail;
4241 }
4242 resultobj = PyInt_FromLong((long)result);
4243 return resultobj;
4244 fail:
4245 return NULL;
4246 }
4247
4248
4249 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4250 PyObject *resultobj;
4251 wxRegion *arg1 = (wxRegion *) 0 ;
4252 wxRect *arg2 = 0 ;
4253 bool result;
4254 wxRect temp2 ;
4255 PyObject * obj0 = 0 ;
4256 PyObject * obj1 = 0 ;
4257 char *kwnames[] = {
4258 (char *) "self",(char *) "rect", NULL
4259 };
4260
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4263 {
4264 arg2 = &temp2;
4265 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4266 }
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4270
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = PyInt_FromLong((long)result);
4275 return resultobj;
4276 fail:
4277 return NULL;
4278 }
4279
4280
4281 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4282 PyObject *resultobj;
4283 wxRegion *arg1 = (wxRegion *) 0 ;
4284 wxRegion *arg2 = 0 ;
4285 bool result;
4286 PyObject * obj0 = 0 ;
4287 PyObject * obj1 = 0 ;
4288 char *kwnames[] = {
4289 (char *) "self",(char *) "region", NULL
4290 };
4291
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4294 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4295 if (arg2 == NULL) {
4296 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4297 }
4298 {
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4301
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 resultobj = PyInt_FromLong((long)result);
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 wxRegion *arg1 = (wxRegion *) 0 ;
4315 bool result;
4316 PyObject * obj0 = 0 ;
4317 char *kwnames[] = {
4318 (char *) "self", NULL
4319 };
4320
4321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 result = (bool)(arg1)->IsEmpty();
4326
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 resultobj = PyInt_FromLong((long)result);
4331 return resultobj;
4332 fail:
4333 return NULL;
4334 }
4335
4336
4337 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject *resultobj;
4339 wxRegion *arg1 = (wxRegion *) 0 ;
4340 int arg2 ;
4341 int arg3 ;
4342 int arg4 ;
4343 int arg5 ;
4344 bool result;
4345 PyObject * obj0 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
4354 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4355
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 resultobj = PyInt_FromLong((long)result);
4360 return resultobj;
4361 fail:
4362 return NULL;
4363 }
4364
4365
4366 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4367 PyObject *resultobj;
4368 wxRegion *arg1 = (wxRegion *) 0 ;
4369 wxRect *arg2 = 0 ;
4370 bool result;
4371 wxRect temp2 ;
4372 PyObject * obj0 = 0 ;
4373 PyObject * obj1 = 0 ;
4374 char *kwnames[] = {
4375 (char *) "self",(char *) "rect", NULL
4376 };
4377
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4380 {
4381 arg2 = &temp2;
4382 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4383 }
4384 {
4385 PyThreadState* __tstate = wxPyBeginAllowThreads();
4386 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4387
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 resultobj = PyInt_FromLong((long)result);
4392 return resultobj;
4393 fail:
4394 return NULL;
4395 }
4396
4397
4398 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4399 PyObject *resultobj;
4400 wxRegion *arg1 = (wxRegion *) 0 ;
4401 wxRegion *arg2 = 0 ;
4402 bool result;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 char *kwnames[] = {
4406 (char *) "self",(char *) "region", NULL
4407 };
4408
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4411 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4412 if (arg2 == NULL) {
4413 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4414 }
4415 {
4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
4417 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4418
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 resultobj = PyInt_FromLong((long)result);
4423 return resultobj;
4424 fail:
4425 return NULL;
4426 }
4427
4428
4429 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4430 PyObject *resultobj;
4431 wxRegion *arg1 = (wxRegion *) 0 ;
4432 int arg2 ;
4433 int arg3 ;
4434 int arg4 ;
4435 int arg5 ;
4436 bool result;
4437 PyObject * obj0 = 0 ;
4438 char *kwnames[] = {
4439 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = PyInt_FromLong((long)result);
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj;
4460 wxRegion *arg1 = (wxRegion *) 0 ;
4461 wxRect *arg2 = 0 ;
4462 bool result;
4463 wxRect temp2 ;
4464 PyObject * obj0 = 0 ;
4465 PyObject * obj1 = 0 ;
4466 char *kwnames[] = {
4467 (char *) "self",(char *) "rect", NULL
4468 };
4469
4470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4472 {
4473 arg2 = &temp2;
4474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4475 }
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4479
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 resultobj = PyInt_FromLong((long)result);
4484 return resultobj;
4485 fail:
4486 return NULL;
4487 }
4488
4489
4490 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4491 PyObject *resultobj;
4492 wxRegion *arg1 = (wxRegion *) 0 ;
4493 wxRegion *arg2 = 0 ;
4494 bool result;
4495 PyObject * obj0 = 0 ;
4496 PyObject * obj1 = 0 ;
4497 char *kwnames[] = {
4498 (char *) "self",(char *) "region", NULL
4499 };
4500
4501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4503 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4504 if (arg2 == NULL) {
4505 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4506 }
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 resultobj = PyInt_FromLong((long)result);
4515 return resultobj;
4516 fail:
4517 return NULL;
4518 }
4519
4520
4521 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4522 PyObject *resultobj;
4523 wxRegion *arg1 = (wxRegion *) 0 ;
4524 int arg2 ;
4525 int arg3 ;
4526 int arg4 ;
4527 int arg5 ;
4528 bool result;
4529 PyObject * obj0 = 0 ;
4530 char *kwnames[] = {
4531 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4532 };
4533
4534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4536 {
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
4538 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4539
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = PyInt_FromLong((long)result);
4544 return resultobj;
4545 fail:
4546 return NULL;
4547 }
4548
4549
4550 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj;
4552 wxRegion *arg1 = (wxRegion *) 0 ;
4553 wxRect *arg2 = 0 ;
4554 bool result;
4555 wxRect temp2 ;
4556 PyObject * obj0 = 0 ;
4557 PyObject * obj1 = 0 ;
4558 char *kwnames[] = {
4559 (char *) "self",(char *) "rect", NULL
4560 };
4561
4562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4564 {
4565 arg2 = &temp2;
4566 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4567 }
4568 {
4569 PyThreadState* __tstate = wxPyBeginAllowThreads();
4570 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4571
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 resultobj = PyInt_FromLong((long)result);
4576 return resultobj;
4577 fail:
4578 return NULL;
4579 }
4580
4581
4582 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4583 PyObject *resultobj;
4584 wxRegion *arg1 = (wxRegion *) 0 ;
4585 wxRegion *arg2 = 0 ;
4586 bool result;
4587 PyObject * obj0 = 0 ;
4588 PyObject * obj1 = 0 ;
4589 char *kwnames[] = {
4590 (char *) "self",(char *) "region", NULL
4591 };
4592
4593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4595 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4596 if (arg2 == NULL) {
4597 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4598 }
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4602
4603 wxPyEndAllowThreads(__tstate);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 }
4606 resultobj = PyInt_FromLong((long)result);
4607 return resultobj;
4608 fail:
4609 return NULL;
4610 }
4611
4612
4613 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4614 PyObject *resultobj;
4615 wxRegion *arg1 = (wxRegion *) 0 ;
4616 SwigValueWrapper< wxBitmap > result;
4617 PyObject * obj0 = 0 ;
4618 char *kwnames[] = {
4619 (char *) "self", NULL
4620 };
4621
4622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4624 {
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 result = (arg1)->ConvertToBitmap();
4627
4628 wxPyEndAllowThreads(__tstate);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 {
4632 wxBitmap * resultptr;
4633 resultptr = new wxBitmap((wxBitmap &) result);
4634 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4635 }
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj;
4644 wxRegion *arg1 = (wxRegion *) 0 ;
4645 wxBitmap *arg2 = 0 ;
4646 wxColour const &arg3_defvalue = wxNullColour ;
4647 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4648 int arg4 = (int) 0 ;
4649 bool result;
4650 wxColour temp3 ;
4651 PyObject * obj0 = 0 ;
4652 PyObject * obj1 = 0 ;
4653 PyObject * obj2 = 0 ;
4654 char *kwnames[] = {
4655 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4656 };
4657
4658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4660 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4661 if (arg2 == NULL) {
4662 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4663 }
4664 if (obj2) {
4665 {
4666 arg3 = &temp3;
4667 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4668 }
4669 }
4670 {
4671 PyThreadState* __tstate = wxPyBeginAllowThreads();
4672 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4673
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = PyInt_FromLong((long)result);
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4685 PyObject *obj;
4686 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4687 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4688 Py_INCREF(obj);
4689 return Py_BuildValue((char *)"");
4690 }
4691 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4692 PyObject *resultobj;
4693 wxRegion *arg1 = 0 ;
4694 wxRegionIterator *result;
4695 PyObject * obj0 = 0 ;
4696 char *kwnames[] = {
4697 (char *) "region", NULL
4698 };
4699
4700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4702 if (arg1 == NULL) {
4703 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4704 }
4705 {
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4708
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) SWIG_fail;
4711 }
4712 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4713 return resultobj;
4714 fail:
4715 return NULL;
4716 }
4717
4718
4719 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4720 PyObject *resultobj;
4721 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4722 PyObject * obj0 = 0 ;
4723 char *kwnames[] = {
4724 (char *) "self", NULL
4725 };
4726
4727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4729 {
4730 PyThreadState* __tstate = wxPyBeginAllowThreads();
4731 delete arg1;
4732
4733 wxPyEndAllowThreads(__tstate);
4734 if (PyErr_Occurred()) SWIG_fail;
4735 }
4736 Py_INCREF(Py_None); resultobj = Py_None;
4737 return resultobj;
4738 fail:
4739 return NULL;
4740 }
4741
4742
4743 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4744 PyObject *resultobj;
4745 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4746 int result;
4747 PyObject * obj0 = 0 ;
4748 char *kwnames[] = {
4749 (char *) "self", NULL
4750 };
4751
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4754 {
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
4756 result = (int)(arg1)->GetX();
4757
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = PyInt_FromLong((long)result);
4762 return resultobj;
4763 fail:
4764 return NULL;
4765 }
4766
4767
4768 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4769 PyObject *resultobj;
4770 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4771 int result;
4772 PyObject * obj0 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "self", NULL
4775 };
4776
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
4778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4779 {
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
4781 result = (int)(arg1)->GetY();
4782
4783 wxPyEndAllowThreads(__tstate);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 resultobj = PyInt_FromLong((long)result);
4787 return resultobj;
4788 fail:
4789 return NULL;
4790 }
4791
4792
4793 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
4794 PyObject *resultobj;
4795 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4796 int result;
4797 PyObject * obj0 = 0 ;
4798 char *kwnames[] = {
4799 (char *) "self", NULL
4800 };
4801
4802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
4803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 result = (int)(arg1)->GetW();
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = PyInt_FromLong((long)result);
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj;
4820 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4821 int result;
4822 PyObject * obj0 = 0 ;
4823 char *kwnames[] = {
4824 (char *) "self", NULL
4825 };
4826
4827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
4828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 result = (int)(arg1)->GetWidth();
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 resultobj = PyInt_FromLong((long)result);
4837 return resultobj;
4838 fail:
4839 return NULL;
4840 }
4841
4842
4843 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
4844 PyObject *resultobj;
4845 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4846 int result;
4847 PyObject * obj0 = 0 ;
4848 char *kwnames[] = {
4849 (char *) "self", NULL
4850 };
4851
4852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
4853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4854 {
4855 PyThreadState* __tstate = wxPyBeginAllowThreads();
4856 result = (int)(arg1)->GetH();
4857
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 resultobj = PyInt_FromLong((long)result);
4862 return resultobj;
4863 fail:
4864 return NULL;
4865 }
4866
4867
4868 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4869 PyObject *resultobj;
4870 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4871 int result;
4872 PyObject * obj0 = 0 ;
4873 char *kwnames[] = {
4874 (char *) "self", NULL
4875 };
4876
4877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
4878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4879 {
4880 PyThreadState* __tstate = wxPyBeginAllowThreads();
4881 result = (int)(arg1)->GetHeight();
4882
4883 wxPyEndAllowThreads(__tstate);
4884 if (PyErr_Occurred()) SWIG_fail;
4885 }
4886 resultobj = PyInt_FromLong((long)result);
4887 return resultobj;
4888 fail:
4889 return NULL;
4890 }
4891
4892
4893 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4894 PyObject *resultobj;
4895 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4896 wxRect result;
4897 PyObject * obj0 = 0 ;
4898 char *kwnames[] = {
4899 (char *) "self", NULL
4900 };
4901
4902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
4903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 result = (arg1)->GetRect();
4907
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 {
4912 wxRect * resultptr;
4913 resultptr = new wxRect((wxRect &) result);
4914 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4915 }
4916 return resultobj;
4917 fail:
4918 return NULL;
4919 }
4920
4921
4922 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
4923 PyObject *resultobj;
4924 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4925 bool result;
4926 PyObject * obj0 = 0 ;
4927 char *kwnames[] = {
4928 (char *) "self", NULL
4929 };
4930
4931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
4932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
4935 result = (bool)(arg1)->HaveRects();
4936
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 resultobj = PyInt_FromLong((long)result);
4941 return resultobj;
4942 fail:
4943 return NULL;
4944 }
4945
4946
4947 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
4948 PyObject *resultobj;
4949 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4950 PyObject * obj0 = 0 ;
4951 char *kwnames[] = {
4952 (char *) "self", NULL
4953 };
4954
4955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
4956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4957 {
4958 PyThreadState* __tstate = wxPyBeginAllowThreads();
4959 (arg1)->Reset();
4960
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 Py_INCREF(Py_None); resultobj = Py_None;
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
4972 PyObject *resultobj;
4973 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4974 PyObject * obj0 = 0 ;
4975 char *kwnames[] = {
4976 (char *) "self", NULL
4977 };
4978
4979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
4980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4983 wxRegionIterator_Next(arg1);
4984
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 Py_INCREF(Py_None); resultobj = Py_None;
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj;
4997 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4998 bool result;
4999 PyObject * obj0 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "self", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 result = (bool)wxRegionIterator___nonzero__(arg1);
5009
5010 wxPyEndAllowThreads(__tstate);
5011 if (PyErr_Occurred()) SWIG_fail;
5012 }
5013 resultobj = PyInt_FromLong((long)result);
5014 return resultobj;
5015 fail:
5016 return NULL;
5017 }
5018
5019
5020 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5021 PyObject *obj;
5022 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5023 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5024 Py_INCREF(obj);
5025 return Py_BuildValue((char *)"");
5026 }
5027 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5028 PyObject *resultobj;
5029 wxNativeFontInfo *result;
5030 char *kwnames[] = {
5031 NULL
5032 };
5033
5034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5043 return resultobj;
5044 fail:
5045 return NULL;
5046 }
5047
5048
5049 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5050 PyObject *resultobj;
5051 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5052 PyObject * obj0 = 0 ;
5053 char *kwnames[] = {
5054 (char *) "self", NULL
5055 };
5056
5057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5059 {
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 delete arg1;
5062
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 Py_INCREF(Py_None); resultobj = Py_None;
5067 return resultobj;
5068 fail:
5069 return NULL;
5070 }
5071
5072
5073 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5074 PyObject *resultobj;
5075 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5076 PyObject * obj0 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "self", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5083 {
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 (arg1)->Init();
5086
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 Py_INCREF(Py_None); resultobj = Py_None;
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5100 wxFont *arg2 = 0 ;
5101 PyObject * obj0 = 0 ;
5102 PyObject * obj1 = 0 ;
5103 char *kwnames[] = {
5104 (char *) "self",(char *) "font", NULL
5105 };
5106
5107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5109 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5110 if (arg2 == NULL) {
5111 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5112 }
5113 {
5114 PyThreadState* __tstate = wxPyBeginAllowThreads();
5115 (arg1)->InitFromFont((wxFont const &)*arg2);
5116
5117 wxPyEndAllowThreads(__tstate);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 Py_INCREF(Py_None); resultobj = Py_None;
5121 return resultobj;
5122 fail:
5123 return NULL;
5124 }
5125
5126
5127 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5128 PyObject *resultobj;
5129 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5130 int result;
5131 PyObject * obj0 = 0 ;
5132 char *kwnames[] = {
5133 (char *) "self", NULL
5134 };
5135
5136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5141
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
5145 resultobj = PyInt_FromLong((long)result);
5146 return resultobj;
5147 fail:
5148 return NULL;
5149 }
5150
5151
5152 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5153 PyObject *resultobj;
5154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5155 int result;
5156 PyObject * obj0 = 0 ;
5157 char *kwnames[] = {
5158 (char *) "self", NULL
5159 };
5160
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5166
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = PyInt_FromLong((long)result);
5171 return resultobj;
5172 fail:
5173 return NULL;
5174 }
5175
5176
5177 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5178 PyObject *resultobj;
5179 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5180 int result;
5181 PyObject * obj0 = 0 ;
5182 char *kwnames[] = {
5183 (char *) "self", NULL
5184 };
5185
5186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5191
5192 wxPyEndAllowThreads(__tstate);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 resultobj = PyInt_FromLong((long)result);
5196 return resultobj;
5197 fail:
5198 return NULL;
5199 }
5200
5201
5202 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5203 PyObject *resultobj;
5204 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5205 bool result;
5206 PyObject * obj0 = 0 ;
5207 char *kwnames[] = {
5208 (char *) "self", NULL
5209 };
5210
5211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5213 {
5214 PyThreadState* __tstate = wxPyBeginAllowThreads();
5215 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5216
5217 wxPyEndAllowThreads(__tstate);
5218 if (PyErr_Occurred()) SWIG_fail;
5219 }
5220 resultobj = PyInt_FromLong((long)result);
5221 return resultobj;
5222 fail:
5223 return NULL;
5224 }
5225
5226
5227 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5228 PyObject *resultobj;
5229 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5230 wxString result;
5231 PyObject * obj0 = 0 ;
5232 char *kwnames[] = {
5233 (char *) "self", NULL
5234 };
5235
5236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5241
5242 wxPyEndAllowThreads(__tstate);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 {
5246 #if wxUSE_UNICODE
5247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5248 #else
5249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5250 #endif
5251 }
5252 return resultobj;
5253 fail:
5254 return NULL;
5255 }
5256
5257
5258 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5259 PyObject *resultobj;
5260 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5261 int result;
5262 PyObject * obj0 = 0 ;
5263 char *kwnames[] = {
5264 (char *) "self", NULL
5265 };
5266
5267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5269 {
5270 PyThreadState* __tstate = wxPyBeginAllowThreads();
5271 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5272
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 resultobj = PyInt_FromLong((long)result);
5277 return resultobj;
5278 fail:
5279 return NULL;
5280 }
5281
5282
5283 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj;
5285 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5286 int result;
5287 PyObject * obj0 = 0 ;
5288 char *kwnames[] = {
5289 (char *) "self", NULL
5290 };
5291
5292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5294 {
5295 PyThreadState* __tstate = wxPyBeginAllowThreads();
5296 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5297
5298 wxPyEndAllowThreads(__tstate);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 resultobj = PyInt_FromLong((long)result);
5302 return resultobj;
5303 fail:
5304 return NULL;
5305 }
5306
5307
5308 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5309 PyObject *resultobj;
5310 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5311 int arg2 ;
5312 PyObject * obj0 = 0 ;
5313 char *kwnames[] = {
5314 (char *) "self",(char *) "pointsize", NULL
5315 };
5316
5317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5319 {
5320 PyThreadState* __tstate = wxPyBeginAllowThreads();
5321 (arg1)->SetPointSize(arg2);
5322
5323 wxPyEndAllowThreads(__tstate);
5324 if (PyErr_Occurred()) SWIG_fail;
5325 }
5326 Py_INCREF(Py_None); resultobj = Py_None;
5327 return resultobj;
5328 fail:
5329 return NULL;
5330 }
5331
5332
5333 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5334 PyObject *resultobj;
5335 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5336 int arg2 ;
5337 PyObject * obj0 = 0 ;
5338 char *kwnames[] = {
5339 (char *) "self",(char *) "style", NULL
5340 };
5341
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5344 {
5345 PyThreadState* __tstate = wxPyBeginAllowThreads();
5346 (arg1)->SetStyle((wxFontStyle )arg2);
5347
5348 wxPyEndAllowThreads(__tstate);
5349 if (PyErr_Occurred()) SWIG_fail;
5350 }
5351 Py_INCREF(Py_None); resultobj = Py_None;
5352 return resultobj;
5353 fail:
5354 return NULL;
5355 }
5356
5357
5358 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5359 PyObject *resultobj;
5360 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5361 int arg2 ;
5362 PyObject * obj0 = 0 ;
5363 char *kwnames[] = {
5364 (char *) "self",(char *) "weight", NULL
5365 };
5366
5367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 (arg1)->SetWeight((wxFontWeight )arg2);
5372
5373 wxPyEndAllowThreads(__tstate);
5374 if (PyErr_Occurred()) SWIG_fail;
5375 }
5376 Py_INCREF(Py_None); resultobj = Py_None;
5377 return resultobj;
5378 fail:
5379 return NULL;
5380 }
5381
5382
5383 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5384 PyObject *resultobj;
5385 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5386 bool arg2 ;
5387 PyObject * obj0 = 0 ;
5388 PyObject * obj1 = 0 ;
5389 char *kwnames[] = {
5390 (char *) "self",(char *) "underlined", NULL
5391 };
5392
5393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5395 arg2 = PyInt_AsLong(obj1) ? true : false;
5396 if (PyErr_Occurred()) SWIG_fail;
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 (arg1)->SetUnderlined(arg2);
5400
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 Py_INCREF(Py_None); resultobj = Py_None;
5405 return resultobj;
5406 fail:
5407 return NULL;
5408 }
5409
5410
5411 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj;
5413 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5414 wxString arg2 ;
5415 PyObject * obj0 = 0 ;
5416 PyObject * obj1 = 0 ;
5417 char *kwnames[] = {
5418 (char *) "self",(char *) "facename", NULL
5419 };
5420
5421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5423 {
5424 wxString* sptr = wxString_in_helper(obj1);
5425 if (sptr == NULL) SWIG_fail;
5426 arg2 = *sptr;
5427 delete sptr;
5428 }
5429 {
5430 PyThreadState* __tstate = wxPyBeginAllowThreads();
5431 (arg1)->SetFaceName(arg2);
5432
5433 wxPyEndAllowThreads(__tstate);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 Py_INCREF(Py_None); resultobj = Py_None;
5437 return resultobj;
5438 fail:
5439 return NULL;
5440 }
5441
5442
5443 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5444 PyObject *resultobj;
5445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5446 int arg2 ;
5447 PyObject * obj0 = 0 ;
5448 char *kwnames[] = {
5449 (char *) "self",(char *) "family", NULL
5450 };
5451
5452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5454 {
5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
5456 (arg1)->SetFamily((wxFontFamily )arg2);
5457
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 Py_INCREF(Py_None); resultobj = Py_None;
5462 return resultobj;
5463 fail:
5464 return NULL;
5465 }
5466
5467
5468 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5469 PyObject *resultobj;
5470 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5471 int arg2 ;
5472 PyObject * obj0 = 0 ;
5473 char *kwnames[] = {
5474 (char *) "self",(char *) "encoding", NULL
5475 };
5476
5477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5479 {
5480 PyThreadState* __tstate = wxPyBeginAllowThreads();
5481 (arg1)->SetEncoding((wxFontEncoding )arg2);
5482
5483 wxPyEndAllowThreads(__tstate);
5484 if (PyErr_Occurred()) SWIG_fail;
5485 }
5486 Py_INCREF(Py_None); resultobj = Py_None;
5487 return resultobj;
5488 fail:
5489 return NULL;
5490 }
5491
5492
5493 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5494 PyObject *resultobj;
5495 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5496 wxString *arg2 = 0 ;
5497 bool result;
5498 bool temp2 = False ;
5499 PyObject * obj0 = 0 ;
5500 PyObject * obj1 = 0 ;
5501 char *kwnames[] = {
5502 (char *) "self",(char *) "s", NULL
5503 };
5504
5505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5507 {
5508 arg2 = wxString_in_helper(obj1);
5509 if (arg2 == NULL) SWIG_fail;
5510 temp2 = True;
5511 }
5512 {
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
5514 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5515
5516 wxPyEndAllowThreads(__tstate);
5517 if (PyErr_Occurred()) SWIG_fail;
5518 }
5519 resultobj = PyInt_FromLong((long)result);
5520 {
5521 if (temp2)
5522 delete arg2;
5523 }
5524 return resultobj;
5525 fail:
5526 {
5527 if (temp2)
5528 delete arg2;
5529 }
5530 return NULL;
5531 }
5532
5533
5534 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj;
5536 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5537 wxString result;
5538 PyObject * obj0 = 0 ;
5539 char *kwnames[] = {
5540 (char *) "self", NULL
5541 };
5542
5543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5545 {
5546 PyThreadState* __tstate = wxPyBeginAllowThreads();
5547 result = ((wxNativeFontInfo const *)arg1)->ToString();
5548
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 {
5553 #if wxUSE_UNICODE
5554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5555 #else
5556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5557 #endif
5558 }
5559 return resultobj;
5560 fail:
5561 return NULL;
5562 }
5563
5564
5565 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5566 PyObject *resultobj;
5567 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5568 wxString result;
5569 PyObject * obj0 = 0 ;
5570 char *kwnames[] = {
5571 (char *) "self", NULL
5572 };
5573
5574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5576 {
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 result = wxNativeFontInfo___str__(arg1);
5579
5580 wxPyEndAllowThreads(__tstate);
5581 if (PyErr_Occurred()) SWIG_fail;
5582 }
5583 {
5584 #if wxUSE_UNICODE
5585 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5586 #else
5587 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5588 #endif
5589 }
5590 return resultobj;
5591 fail:
5592 return NULL;
5593 }
5594
5595
5596 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5597 PyObject *resultobj;
5598 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5599 wxString *arg2 = 0 ;
5600 bool result;
5601 bool temp2 = False ;
5602 PyObject * obj0 = 0 ;
5603 PyObject * obj1 = 0 ;
5604 char *kwnames[] = {
5605 (char *) "self",(char *) "s", NULL
5606 };
5607
5608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5610 {
5611 arg2 = wxString_in_helper(obj1);
5612 if (arg2 == NULL) SWIG_fail;
5613 temp2 = True;
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = PyInt_FromLong((long)result);
5623 {
5624 if (temp2)
5625 delete arg2;
5626 }
5627 return resultobj;
5628 fail:
5629 {
5630 if (temp2)
5631 delete arg2;
5632 }
5633 return NULL;
5634 }
5635
5636
5637 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5638 PyObject *resultobj;
5639 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5640 wxString result;
5641 PyObject * obj0 = 0 ;
5642 char *kwnames[] = {
5643 (char *) "self", NULL
5644 };
5645
5646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5648 {
5649 PyThreadState* __tstate = wxPyBeginAllowThreads();
5650 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5651
5652 wxPyEndAllowThreads(__tstate);
5653 if (PyErr_Occurred()) SWIG_fail;
5654 }
5655 {
5656 #if wxUSE_UNICODE
5657 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5658 #else
5659 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5660 #endif
5661 }
5662 return resultobj;
5663 fail:
5664 return NULL;
5665 }
5666
5667
5668 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5669 PyObject *obj;
5670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5671 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5672 Py_INCREF(obj);
5673 return Py_BuildValue((char *)"");
5674 }
5675 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5676 PyObject *resultobj;
5677 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5678 wxString *arg2 = (wxString *) 0 ;
5679 bool temp2 = False ;
5680 PyObject * obj0 = 0 ;
5681 PyObject * obj1 = 0 ;
5682 char *kwnames[] = {
5683 (char *) "self",(char *) "facename", NULL
5684 };
5685
5686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5688 {
5689 arg2 = wxString_in_helper(obj1);
5690 if (arg2 == NULL) SWIG_fail;
5691 temp2 = True;
5692 }
5693 if (arg1) (arg1)->facename = *arg2;
5694
5695 Py_INCREF(Py_None); resultobj = Py_None;
5696 {
5697 if (temp2)
5698 delete arg2;
5699 }
5700 return resultobj;
5701 fail:
5702 {
5703 if (temp2)
5704 delete arg2;
5705 }
5706 return NULL;
5707 }
5708
5709
5710 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj;
5712 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5713 wxString *result;
5714 PyObject * obj0 = 0 ;
5715 char *kwnames[] = {
5716 (char *) "self", NULL
5717 };
5718
5719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5721 result = (wxString *)& ((arg1)->facename);
5722
5723 {
5724 #if wxUSE_UNICODE
5725 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5726 #else
5727 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5728 #endif
5729 }
5730 return resultobj;
5731 fail:
5732 return NULL;
5733 }
5734
5735
5736 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5737 PyObject *resultobj;
5738 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5739 int arg2 ;
5740 PyObject * obj0 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self",(char *) "encoding", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5747 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5748
5749 Py_INCREF(Py_None); resultobj = Py_None;
5750 return resultobj;
5751 fail:
5752 return NULL;
5753 }
5754
5755
5756 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5757 PyObject *resultobj;
5758 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5759 int result;
5760 PyObject * obj0 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "self", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5767 result = (int) ((arg1)->encoding);
5768
5769 resultobj = PyInt_FromLong((long)result);
5770 return resultobj;
5771 fail:
5772 return NULL;
5773 }
5774
5775
5776 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5777 PyObject *resultobj;
5778 wxNativeEncodingInfo *result;
5779 char *kwnames[] = {
5780 NULL
5781 };
5782
5783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5787
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5792 return resultobj;
5793 fail:
5794 return NULL;
5795 }
5796
5797
5798 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5799 PyObject *resultobj;
5800 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5801 PyObject * obj0 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5808 {
5809 PyThreadState* __tstate = wxPyBeginAllowThreads();
5810 delete arg1;
5811
5812 wxPyEndAllowThreads(__tstate);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
5815 Py_INCREF(Py_None); resultobj = Py_None;
5816 return resultobj;
5817 fail:
5818 return NULL;
5819 }
5820
5821
5822 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5823 PyObject *resultobj;
5824 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5825 wxString *arg2 = 0 ;
5826 bool result;
5827 bool temp2 = False ;
5828 PyObject * obj0 = 0 ;
5829 PyObject * obj1 = 0 ;
5830 char *kwnames[] = {
5831 (char *) "self",(char *) "s", NULL
5832 };
5833
5834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5836 {
5837 arg2 = wxString_in_helper(obj1);
5838 if (arg2 == NULL) SWIG_fail;
5839 temp2 = True;
5840 }
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5844
5845 wxPyEndAllowThreads(__tstate);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 resultobj = PyInt_FromLong((long)result);
5849 {
5850 if (temp2)
5851 delete arg2;
5852 }
5853 return resultobj;
5854 fail:
5855 {
5856 if (temp2)
5857 delete arg2;
5858 }
5859 return NULL;
5860 }
5861
5862
5863 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5864 PyObject *resultobj;
5865 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5866 wxString result;
5867 PyObject * obj0 = 0 ;
5868 char *kwnames[] = {
5869 (char *) "self", NULL
5870 };
5871
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
5873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 {
5882 #if wxUSE_UNICODE
5883 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5884 #else
5885 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5886 #endif
5887 }
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
5895 PyObject *obj;
5896 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5897 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
5898 Py_INCREF(obj);
5899 return Py_BuildValue((char *)"");
5900 }
5901 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5902 PyObject *resultobj;
5903 int arg1 ;
5904 wxNativeEncodingInfo *result;
5905 char *kwnames[] = {
5906 (char *) "encoding", NULL
5907 };
5908
5909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
5913
5914 wxPyEndAllowThreads(__tstate);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
5918 return resultobj;
5919 fail:
5920 return NULL;
5921 }
5922
5923
5924 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5925 PyObject *resultobj;
5926 wxNativeEncodingInfo *arg1 = 0 ;
5927 bool result;
5928 PyObject * obj0 = 0 ;
5929 char *kwnames[] = {
5930 (char *) "info", NULL
5931 };
5932
5933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
5934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5935 if (arg1 == NULL) {
5936 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5937 }
5938 {
5939 PyThreadState* __tstate = wxPyBeginAllowThreads();
5940 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
5941
5942 wxPyEndAllowThreads(__tstate);
5943 if (PyErr_Occurred()) SWIG_fail;
5944 }
5945 resultobj = PyInt_FromLong((long)result);
5946 return resultobj;
5947 fail:
5948 return NULL;
5949 }
5950
5951
5952 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5953 PyObject *resultobj;
5954 wxFontMapper *result;
5955 char *kwnames[] = {
5956 NULL
5957 };
5958
5959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
5960 {
5961 PyThreadState* __tstate = wxPyBeginAllowThreads();
5962 result = (wxFontMapper *)new wxFontMapper();
5963
5964 wxPyEndAllowThreads(__tstate);
5965 if (PyErr_Occurred()) SWIG_fail;
5966 }
5967 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
5968 return resultobj;
5969 fail:
5970 return NULL;
5971 }
5972
5973
5974 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5975 PyObject *resultobj;
5976 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5977 PyObject * obj0 = 0 ;
5978 char *kwnames[] = {
5979 (char *) "self", NULL
5980 };
5981
5982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
5983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 delete arg1;
5987
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 Py_INCREF(Py_None); resultobj = Py_None;
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj;
6000 wxFontMapper *result;
6001 char *kwnames[] = {
6002 NULL
6003 };
6004
6005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 result = (wxFontMapper *)wxFontMapper::Get();
6009
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6021 PyObject *resultobj;
6022 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6023 wxFontMapper *result;
6024 PyObject * obj0 = 0 ;
6025 char *kwnames[] = {
6026 (char *) "mapper", NULL
6027 };
6028
6029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6034
6035 wxPyEndAllowThreads(__tstate);
6036 if (PyErr_Occurred()) SWIG_fail;
6037 }
6038 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6039 return resultobj;
6040 fail:
6041 return NULL;
6042 }
6043
6044
6045 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6046 PyObject *resultobj;
6047 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6048 wxString *arg2 = 0 ;
6049 bool arg3 = (bool) True ;
6050 int result;
6051 bool temp2 = False ;
6052 PyObject * obj0 = 0 ;
6053 PyObject * obj1 = 0 ;
6054 PyObject * obj2 = 0 ;
6055 char *kwnames[] = {
6056 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6057 };
6058
6059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6061 {
6062 arg2 = wxString_in_helper(obj1);
6063 if (arg2 == NULL) SWIG_fail;
6064 temp2 = True;
6065 }
6066 if (obj2) {
6067 arg3 = PyInt_AsLong(obj2) ? true : false;
6068 if (PyErr_Occurred()) SWIG_fail;
6069 }
6070 {
6071 PyThreadState* __tstate = wxPyBeginAllowThreads();
6072 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6073
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = PyInt_FromLong((long)result);
6078 {
6079 if (temp2)
6080 delete arg2;
6081 }
6082 return resultobj;
6083 fail:
6084 {
6085 if (temp2)
6086 delete arg2;
6087 }
6088 return NULL;
6089 }
6090
6091
6092 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6093 PyObject *resultobj;
6094 size_t result;
6095 char *kwnames[] = {
6096 NULL
6097 };
6098
6099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6103
6104 wxPyEndAllowThreads(__tstate);
6105 if (PyErr_Occurred()) SWIG_fail;
6106 }
6107 resultobj = PyInt_FromLong((long)result);
6108 return resultobj;
6109 fail:
6110 return NULL;
6111 }
6112
6113
6114 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject *resultobj;
6116 size_t arg1 ;
6117 int result;
6118 PyObject * obj0 = 0 ;
6119 char *kwnames[] = {
6120 (char *) "n", NULL
6121 };
6122
6123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6124 arg1 = (size_t) PyInt_AsLong(obj0);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 {
6127 PyThreadState* __tstate = wxPyBeginAllowThreads();
6128 result = (int)wxFontMapper::GetEncoding(arg1);
6129
6130 wxPyEndAllowThreads(__tstate);
6131 if (PyErr_Occurred()) SWIG_fail;
6132 }
6133 resultobj = PyInt_FromLong((long)result);
6134 return resultobj;
6135 fail:
6136 return NULL;
6137 }
6138
6139
6140 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6141 PyObject *resultobj;
6142 int arg1 ;
6143 wxString result;
6144 char *kwnames[] = {
6145 (char *) "encoding", NULL
6146 };
6147
6148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6152
6153 wxPyEndAllowThreads(__tstate);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 {
6157 #if wxUSE_UNICODE
6158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6159 #else
6160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6161 #endif
6162 }
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 int arg1 ;
6172 wxString result;
6173 char *kwnames[] = {
6174 (char *) "encoding", NULL
6175 };
6176
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 {
6186 #if wxUSE_UNICODE
6187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6188 #else
6189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6190 #endif
6191 }
6192 return resultobj;
6193 fail:
6194 return NULL;
6195 }
6196
6197
6198 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6199 PyObject *resultobj;
6200 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6201 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6202 PyObject * obj0 = 0 ;
6203 PyObject * obj1 = 0 ;
6204 char *kwnames[] = {
6205 (char *) "self",(char *) "config", NULL
6206 };
6207
6208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6210 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6211 {
6212 PyThreadState* __tstate = wxPyBeginAllowThreads();
6213 (arg1)->SetConfig(arg2);
6214
6215 wxPyEndAllowThreads(__tstate);
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 Py_INCREF(Py_None); resultobj = Py_None;
6219 return resultobj;
6220 fail:
6221 return NULL;
6222 }
6223
6224
6225 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6228 wxString *arg2 = 0 ;
6229 bool temp2 = False ;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self",(char *) "prefix", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6238 {
6239 arg2 = wxString_in_helper(obj1);
6240 if (arg2 == NULL) SWIG_fail;
6241 temp2 = True;
6242 }
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 (arg1)->SetConfigPath((wxString const &)*arg2);
6246
6247 wxPyEndAllowThreads(__tstate);
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 Py_INCREF(Py_None); resultobj = Py_None;
6251 {
6252 if (temp2)
6253 delete arg2;
6254 }
6255 return resultobj;
6256 fail:
6257 {
6258 if (temp2)
6259 delete arg2;
6260 }
6261 return NULL;
6262 }
6263
6264
6265 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj;
6267 wxString result;
6268 char *kwnames[] = {
6269 NULL
6270 };
6271
6272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6273 {
6274 PyThreadState* __tstate = wxPyBeginAllowThreads();
6275 result = wxFontMapper::GetDefaultConfigPath();
6276
6277 wxPyEndAllowThreads(__tstate);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 {
6281 #if wxUSE_UNICODE
6282 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6283 #else
6284 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6285 #endif
6286 }
6287 return resultobj;
6288 fail:
6289 return NULL;
6290 }
6291
6292
6293 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6294 PyObject *resultobj;
6295 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6296 int arg2 ;
6297 wxString const &arg3_defvalue = wxPyEmptyString ;
6298 wxString *arg3 = (wxString *) &arg3_defvalue ;
6299 bool arg4 = (bool) True ;
6300 PyObject *result;
6301 bool temp3 = False ;
6302 PyObject * obj0 = 0 ;
6303 PyObject * obj2 = 0 ;
6304 PyObject * obj3 = 0 ;
6305 char *kwnames[] = {
6306 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6307 };
6308
6309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6311 if (obj2) {
6312 {
6313 arg3 = wxString_in_helper(obj2);
6314 if (arg3 == NULL) SWIG_fail;
6315 temp3 = True;
6316 }
6317 }
6318 if (obj3) {
6319 arg4 = PyInt_AsLong(obj3) ? true : false;
6320 if (PyErr_Occurred()) SWIG_fail;
6321 }
6322 {
6323 PyThreadState* __tstate = wxPyBeginAllowThreads();
6324 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6325
6326 wxPyEndAllowThreads(__tstate);
6327 if (PyErr_Occurred()) SWIG_fail;
6328 }
6329 resultobj = result;
6330 {
6331 if (temp3)
6332 delete arg3;
6333 }
6334 return resultobj;
6335 fail:
6336 {
6337 if (temp3)
6338 delete arg3;
6339 }
6340 return NULL;
6341 }
6342
6343
6344 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6345 PyObject *resultobj;
6346 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6347 int arg2 ;
6348 wxString const &arg3_defvalue = wxPyEmptyString ;
6349 wxString *arg3 = (wxString *) &arg3_defvalue ;
6350 bool result;
6351 bool temp3 = False ;
6352 PyObject * obj0 = 0 ;
6353 PyObject * obj2 = 0 ;
6354 char *kwnames[] = {
6355 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6356 };
6357
6358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6360 if (obj2) {
6361 {
6362 arg3 = wxString_in_helper(obj2);
6363 if (arg3 == NULL) SWIG_fail;
6364 temp3 = True;
6365 }
6366 }
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6370
6371 wxPyEndAllowThreads(__tstate);
6372 if (PyErr_Occurred()) SWIG_fail;
6373 }
6374 resultobj = PyInt_FromLong((long)result);
6375 {
6376 if (temp3)
6377 delete arg3;
6378 }
6379 return resultobj;
6380 fail:
6381 {
6382 if (temp3)
6383 delete arg3;
6384 }
6385 return NULL;
6386 }
6387
6388
6389 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6390 PyObject *resultobj;
6391 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6392 wxWindow *arg2 = (wxWindow *) 0 ;
6393 PyObject * obj0 = 0 ;
6394 PyObject * obj1 = 0 ;
6395 char *kwnames[] = {
6396 (char *) "self",(char *) "parent", NULL
6397 };
6398
6399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6401 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6402 {
6403 PyThreadState* __tstate = wxPyBeginAllowThreads();
6404 (arg1)->SetDialogParent(arg2);
6405
6406 wxPyEndAllowThreads(__tstate);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 Py_INCREF(Py_None); resultobj = Py_None;
6410 return resultobj;
6411 fail:
6412 return NULL;
6413 }
6414
6415
6416 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6417 PyObject *resultobj;
6418 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6419 wxString *arg2 = 0 ;
6420 bool temp2 = False ;
6421 PyObject * obj0 = 0 ;
6422 PyObject * obj1 = 0 ;
6423 char *kwnames[] = {
6424 (char *) "self",(char *) "title", NULL
6425 };
6426
6427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6429 {
6430 arg2 = wxString_in_helper(obj1);
6431 if (arg2 == NULL) SWIG_fail;
6432 temp2 = True;
6433 }
6434 {
6435 PyThreadState* __tstate = wxPyBeginAllowThreads();
6436 (arg1)->SetDialogTitle((wxString const &)*arg2);
6437
6438 wxPyEndAllowThreads(__tstate);
6439 if (PyErr_Occurred()) SWIG_fail;
6440 }
6441 Py_INCREF(Py_None); resultobj = Py_None;
6442 {
6443 if (temp2)
6444 delete arg2;
6445 }
6446 return resultobj;
6447 fail:
6448 {
6449 if (temp2)
6450 delete arg2;
6451 }
6452 return NULL;
6453 }
6454
6455
6456 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6457 PyObject *obj;
6458 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6459 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6460 Py_INCREF(obj);
6461 return Py_BuildValue((char *)"");
6462 }
6463 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6464 PyObject *resultobj;
6465 int arg1 ;
6466 int arg2 ;
6467 int arg3 ;
6468 int arg4 ;
6469 bool arg5 = (bool) False ;
6470 wxString const &arg6_defvalue = wxPyEmptyString ;
6471 wxString *arg6 = (wxString *) &arg6_defvalue ;
6472 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6473 wxFont *result;
6474 bool temp6 = False ;
6475 PyObject * obj4 = 0 ;
6476 PyObject * obj5 = 0 ;
6477 char *kwnames[] = {
6478 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6479 };
6480
6481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6482 if (obj4) {
6483 arg5 = PyInt_AsLong(obj4) ? true : false;
6484 if (PyErr_Occurred()) SWIG_fail;
6485 }
6486 if (obj5) {
6487 {
6488 arg6 = wxString_in_helper(obj5);
6489 if (arg6 == NULL) SWIG_fail;
6490 temp6 = True;
6491 }
6492 }
6493 {
6494 PyThreadState* __tstate = wxPyBeginAllowThreads();
6495 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6496
6497 wxPyEndAllowThreads(__tstate);
6498 if (PyErr_Occurred()) SWIG_fail;
6499 }
6500 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6501 {
6502 if (temp6)
6503 delete arg6;
6504 }
6505 return resultobj;
6506 fail:
6507 {
6508 if (temp6)
6509 delete arg6;
6510 }
6511 return NULL;
6512 }
6513
6514
6515 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6516 PyObject *resultobj;
6517 wxFont *arg1 = (wxFont *) 0 ;
6518 PyObject * obj0 = 0 ;
6519 char *kwnames[] = {
6520 (char *) "self", NULL
6521 };
6522
6523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 delete arg1;
6528
6529 wxPyEndAllowThreads(__tstate);
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
6532 Py_INCREF(Py_None); resultobj = Py_None;
6533 return resultobj;
6534 fail:
6535 return NULL;
6536 }
6537
6538
6539 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj;
6541 wxNativeFontInfo *arg1 = 0 ;
6542 wxFont *result;
6543 PyObject * obj0 = 0 ;
6544 char *kwnames[] = {
6545 (char *) "info", NULL
6546 };
6547
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6550 if (arg1 == NULL) {
6551 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6552 }
6553 {
6554 PyThreadState* __tstate = wxPyBeginAllowThreads();
6555 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6556
6557 wxPyEndAllowThreads(__tstate);
6558 if (PyErr_Occurred()) SWIG_fail;
6559 }
6560 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6561 return resultobj;
6562 fail:
6563 return NULL;
6564 }
6565
6566
6567 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6568 PyObject *resultobj;
6569 wxString *arg1 = 0 ;
6570 wxFont *result;
6571 bool temp1 = False ;
6572 PyObject * obj0 = 0 ;
6573 char *kwnames[] = {
6574 (char *) "info", NULL
6575 };
6576
6577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6578 {
6579 arg1 = wxString_in_helper(obj0);
6580 if (arg1 == NULL) SWIG_fail;
6581 temp1 = True;
6582 }
6583 {
6584 PyThreadState* __tstate = wxPyBeginAllowThreads();
6585 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6586
6587 wxPyEndAllowThreads(__tstate);
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6591 {
6592 if (temp1)
6593 delete arg1;
6594 }
6595 return resultobj;
6596 fail:
6597 {
6598 if (temp1)
6599 delete arg1;
6600 }
6601 return NULL;
6602 }
6603
6604
6605 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6606 PyObject *resultobj;
6607 int arg1 ;
6608 int arg2 ;
6609 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6610 wxString const &arg4_defvalue = wxPyEmptyString ;
6611 wxString *arg4 = (wxString *) &arg4_defvalue ;
6612 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6613 wxFont *result;
6614 bool temp4 = False ;
6615 PyObject * obj3 = 0 ;
6616 char *kwnames[] = {
6617 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6618 };
6619
6620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6621 if (obj3) {
6622 {
6623 arg4 = wxString_in_helper(obj3);
6624 if (arg4 == NULL) SWIG_fail;
6625 temp4 = True;
6626 }
6627 }
6628 {
6629 PyThreadState* __tstate = wxPyBeginAllowThreads();
6630 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6631
6632 wxPyEndAllowThreads(__tstate);
6633 if (PyErr_Occurred()) SWIG_fail;
6634 }
6635 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6636 {
6637 if (temp4)
6638 delete arg4;
6639 }
6640 return resultobj;
6641 fail:
6642 {
6643 if (temp4)
6644 delete arg4;
6645 }
6646 return NULL;
6647 }
6648
6649
6650 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj;
6652 wxFont *arg1 = (wxFont *) 0 ;
6653 bool result;
6654 PyObject * obj0 = 0 ;
6655 char *kwnames[] = {
6656 (char *) "self", NULL
6657 };
6658
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 result = (bool)((wxFont const *)arg1)->Ok();
6664
6665 wxPyEndAllowThreads(__tstate);
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 resultobj = PyInt_FromLong((long)result);
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj;
6677 wxFont *arg1 = (wxFont *) 0 ;
6678 wxFont *arg2 = 0 ;
6679 bool result;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char *kwnames[] = {
6683 (char *) "self",(char *) "font", NULL
6684 };
6685
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6688 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6689 if (arg2 == NULL) {
6690 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6691 }
6692 {
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6695
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 resultobj = PyInt_FromLong((long)result);
6700 return resultobj;
6701 fail:
6702 return NULL;
6703 }
6704
6705
6706 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6707 PyObject *resultobj;
6708 wxFont *arg1 = (wxFont *) 0 ;
6709 wxFont *arg2 = 0 ;
6710 bool result;
6711 PyObject * obj0 = 0 ;
6712 PyObject * obj1 = 0 ;
6713 char *kwnames[] = {
6714 (char *) "self",(char *) "font", NULL
6715 };
6716
6717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6719 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6720 if (arg2 == NULL) {
6721 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6722 }
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6726
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 resultobj = PyInt_FromLong((long)result);
6731 return resultobj;
6732 fail:
6733 return NULL;
6734 }
6735
6736
6737 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6738 PyObject *resultobj;
6739 wxFont *arg1 = (wxFont *) 0 ;
6740 int result;
6741 PyObject * obj0 = 0 ;
6742 char *kwnames[] = {
6743 (char *) "self", NULL
6744 };
6745
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6748 {
6749 PyThreadState* __tstate = wxPyBeginAllowThreads();
6750 result = (int)((wxFont const *)arg1)->GetPointSize();
6751
6752 wxPyEndAllowThreads(__tstate);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 resultobj = PyInt_FromLong((long)result);
6756 return resultobj;
6757 fail:
6758 return NULL;
6759 }
6760
6761
6762 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6763 PyObject *resultobj;
6764 wxFont *arg1 = (wxFont *) 0 ;
6765 int result;
6766 PyObject * obj0 = 0 ;
6767 char *kwnames[] = {
6768 (char *) "self", NULL
6769 };
6770
6771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6773 {
6774 PyThreadState* __tstate = wxPyBeginAllowThreads();
6775 result = (int)((wxFont const *)arg1)->GetFamily();
6776
6777 wxPyEndAllowThreads(__tstate);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 resultobj = PyInt_FromLong((long)result);
6781 return resultobj;
6782 fail:
6783 return NULL;
6784 }
6785
6786
6787 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6788 PyObject *resultobj;
6789 wxFont *arg1 = (wxFont *) 0 ;
6790 int result;
6791 PyObject * obj0 = 0 ;
6792 char *kwnames[] = {
6793 (char *) "self", NULL
6794 };
6795
6796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
6797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6798 {
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 result = (int)((wxFont const *)arg1)->GetStyle();
6801
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = PyInt_FromLong((long)result);
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj;
6814 wxFont *arg1 = (wxFont *) 0 ;
6815 int result;
6816 PyObject * obj0 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
6822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6823 {
6824 PyThreadState* __tstate = wxPyBeginAllowThreads();
6825 result = (int)((wxFont const *)arg1)->GetWeight();
6826
6827 wxPyEndAllowThreads(__tstate);
6828 if (PyErr_Occurred()) SWIG_fail;
6829 }
6830 resultobj = PyInt_FromLong((long)result);
6831 return resultobj;
6832 fail:
6833 return NULL;
6834 }
6835
6836
6837 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6838 PyObject *resultobj;
6839 wxFont *arg1 = (wxFont *) 0 ;
6840 bool result;
6841 PyObject * obj0 = 0 ;
6842 char *kwnames[] = {
6843 (char *) "self", NULL
6844 };
6845
6846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
6847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6848 {
6849 PyThreadState* __tstate = wxPyBeginAllowThreads();
6850 result = (bool)((wxFont const *)arg1)->GetUnderlined();
6851
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = PyInt_FromLong((long)result);
6856 return resultobj;
6857 fail:
6858 return NULL;
6859 }
6860
6861
6862 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6863 PyObject *resultobj;
6864 wxFont *arg1 = (wxFont *) 0 ;
6865 wxString result;
6866 PyObject * obj0 = 0 ;
6867 char *kwnames[] = {
6868 (char *) "self", NULL
6869 };
6870
6871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
6872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6873 {
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 result = ((wxFont const *)arg1)->GetFaceName();
6876
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 {
6881 #if wxUSE_UNICODE
6882 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6883 #else
6884 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6885 #endif
6886 }
6887 return resultobj;
6888 fail:
6889 return NULL;
6890 }
6891
6892
6893 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj;
6895 wxFont *arg1 = (wxFont *) 0 ;
6896 int result;
6897 PyObject * obj0 = 0 ;
6898 char *kwnames[] = {
6899 (char *) "self", NULL
6900 };
6901
6902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
6903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (int)((wxFont const *)arg1)->GetEncoding();
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = PyInt_FromLong((long)result);
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxFont *arg1 = (wxFont *) 0 ;
6921 wxNativeFontInfo *result;
6922 PyObject * obj0 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "self", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6929 {
6930 PyThreadState* __tstate = wxPyBeginAllowThreads();
6931 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
6932
6933 wxPyEndAllowThreads(__tstate);
6934 if (PyErr_Occurred()) SWIG_fail;
6935 }
6936 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
6937 return resultobj;
6938 fail:
6939 return NULL;
6940 }
6941
6942
6943 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6944 PyObject *resultobj;
6945 wxFont *arg1 = (wxFont *) 0 ;
6946 bool result;
6947 PyObject * obj0 = 0 ;
6948 char *kwnames[] = {
6949 (char *) "self", NULL
6950 };
6951
6952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
6953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = PyInt_FromLong((long)result);
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj;
6970 wxFont *arg1 = (wxFont *) 0 ;
6971 wxString result;
6972 PyObject * obj0 = 0 ;
6973 char *kwnames[] = {
6974 (char *) "self", NULL
6975 };
6976
6977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
6978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6979 {
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
6982
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 {
6987 #if wxUSE_UNICODE
6988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6989 #else
6990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6991 #endif
6992 }
6993 return resultobj;
6994 fail:
6995 return NULL;
6996 }
6997
6998
6999 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7000 PyObject *resultobj;
7001 wxFont *arg1 = (wxFont *) 0 ;
7002 wxString result;
7003 PyObject * obj0 = 0 ;
7004 char *kwnames[] = {
7005 (char *) "self", NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7010 {
7011 PyThreadState* __tstate = wxPyBeginAllowThreads();
7012 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7013
7014 wxPyEndAllowThreads(__tstate);
7015 if (PyErr_Occurred()) SWIG_fail;
7016 }
7017 {
7018 #if wxUSE_UNICODE
7019 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7020 #else
7021 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7022 #endif
7023 }
7024 return resultobj;
7025 fail:
7026 return NULL;
7027 }
7028
7029
7030 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7031 PyObject *resultobj;
7032 wxFont *arg1 = (wxFont *) 0 ;
7033 int arg2 ;
7034 PyObject * obj0 = 0 ;
7035 char *kwnames[] = {
7036 (char *) "self",(char *) "pointSize", NULL
7037 };
7038
7039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
7040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 (arg1)->SetPointSize(arg2);
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 Py_INCREF(Py_None); resultobj = Py_None;
7049 return resultobj;
7050 fail:
7051 return NULL;
7052 }
7053
7054
7055 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7056 PyObject *resultobj;
7057 wxFont *arg1 = (wxFont *) 0 ;
7058 int arg2 ;
7059 PyObject * obj0 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "self",(char *) "family", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
7065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 (arg1)->SetFamily(arg2);
7069
7070 wxPyEndAllowThreads(__tstate);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 Py_INCREF(Py_None); resultobj = Py_None;
7074 return resultobj;
7075 fail:
7076 return NULL;
7077 }
7078
7079
7080 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7081 PyObject *resultobj;
7082 wxFont *arg1 = (wxFont *) 0 ;
7083 int arg2 ;
7084 PyObject * obj0 = 0 ;
7085 char *kwnames[] = {
7086 (char *) "self",(char *) "style", NULL
7087 };
7088
7089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
7090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 (arg1)->SetStyle(arg2);
7094
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 Py_INCREF(Py_None); resultobj = Py_None;
7099 return resultobj;
7100 fail:
7101 return NULL;
7102 }
7103
7104
7105 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7106 PyObject *resultobj;
7107 wxFont *arg1 = (wxFont *) 0 ;
7108 int arg2 ;
7109 PyObject * obj0 = 0 ;
7110 char *kwnames[] = {
7111 (char *) "self",(char *) "weight", NULL
7112 };
7113
7114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 (arg1)->SetWeight(arg2);
7119
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 Py_INCREF(Py_None); resultobj = Py_None;
7124 return resultobj;
7125 fail:
7126 return NULL;
7127 }
7128
7129
7130 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj;
7132 wxFont *arg1 = (wxFont *) 0 ;
7133 wxString *arg2 = 0 ;
7134 bool temp2 = False ;
7135 PyObject * obj0 = 0 ;
7136 PyObject * obj1 = 0 ;
7137 char *kwnames[] = {
7138 (char *) "self",(char *) "faceName", NULL
7139 };
7140
7141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7143 {
7144 arg2 = wxString_in_helper(obj1);
7145 if (arg2 == NULL) SWIG_fail;
7146 temp2 = True;
7147 }
7148 {
7149 PyThreadState* __tstate = wxPyBeginAllowThreads();
7150 (arg1)->SetFaceName((wxString const &)*arg2);
7151
7152 wxPyEndAllowThreads(__tstate);
7153 if (PyErr_Occurred()) SWIG_fail;
7154 }
7155 Py_INCREF(Py_None); resultobj = Py_None;
7156 {
7157 if (temp2)
7158 delete arg2;
7159 }
7160 return resultobj;
7161 fail:
7162 {
7163 if (temp2)
7164 delete arg2;
7165 }
7166 return NULL;
7167 }
7168
7169
7170 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7171 PyObject *resultobj;
7172 wxFont *arg1 = (wxFont *) 0 ;
7173 bool arg2 ;
7174 PyObject * obj0 = 0 ;
7175 PyObject * obj1 = 0 ;
7176 char *kwnames[] = {
7177 (char *) "self",(char *) "underlined", NULL
7178 };
7179
7180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7182 arg2 = PyInt_AsLong(obj1) ? true : false;
7183 if (PyErr_Occurred()) SWIG_fail;
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 (arg1)->SetUnderlined(arg2);
7187
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 Py_INCREF(Py_None); resultobj = Py_None;
7192 return resultobj;
7193 fail:
7194 return NULL;
7195 }
7196
7197
7198 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7199 PyObject *resultobj;
7200 wxFont *arg1 = (wxFont *) 0 ;
7201 int arg2 ;
7202 PyObject * obj0 = 0 ;
7203 char *kwnames[] = {
7204 (char *) "self",(char *) "encoding", NULL
7205 };
7206
7207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 (arg1)->SetEncoding((wxFontEncoding )arg2);
7212
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 Py_INCREF(Py_None); resultobj = Py_None;
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj;
7225 wxFont *arg1 = (wxFont *) 0 ;
7226 wxNativeFontInfo *arg2 = 0 ;
7227 PyObject * obj0 = 0 ;
7228 PyObject * obj1 = 0 ;
7229 char *kwnames[] = {
7230 (char *) "self",(char *) "info", NULL
7231 };
7232
7233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7235 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7236 if (arg2 == NULL) {
7237 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7238 }
7239 {
7240 PyThreadState* __tstate = wxPyBeginAllowThreads();
7241 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7242
7243 wxPyEndAllowThreads(__tstate);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 Py_INCREF(Py_None); resultobj = Py_None;
7247 return resultobj;
7248 fail:
7249 return NULL;
7250 }
7251
7252
7253 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj;
7255 wxFont *arg1 = (wxFont *) 0 ;
7256 wxString *arg2 = 0 ;
7257 bool temp2 = False ;
7258 PyObject * obj0 = 0 ;
7259 PyObject * obj1 = 0 ;
7260 char *kwnames[] = {
7261 (char *) "self",(char *) "info", NULL
7262 };
7263
7264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7266 {
7267 arg2 = wxString_in_helper(obj1);
7268 if (arg2 == NULL) SWIG_fail;
7269 temp2 = True;
7270 }
7271 {
7272 PyThreadState* __tstate = wxPyBeginAllowThreads();
7273 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7274
7275 wxPyEndAllowThreads(__tstate);
7276 if (PyErr_Occurred()) SWIG_fail;
7277 }
7278 Py_INCREF(Py_None); resultobj = Py_None;
7279 {
7280 if (temp2)
7281 delete arg2;
7282 }
7283 return resultobj;
7284 fail:
7285 {
7286 if (temp2)
7287 delete arg2;
7288 }
7289 return NULL;
7290 }
7291
7292
7293 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7294 PyObject *resultobj;
7295 wxFont *arg1 = (wxFont *) 0 ;
7296 wxString *arg2 = 0 ;
7297 bool temp2 = False ;
7298 PyObject * obj0 = 0 ;
7299 PyObject * obj1 = 0 ;
7300 char *kwnames[] = {
7301 (char *) "self",(char *) "info", NULL
7302 };
7303
7304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7306 {
7307 arg2 = wxString_in_helper(obj1);
7308 if (arg2 == NULL) SWIG_fail;
7309 temp2 = True;
7310 }
7311 {
7312 PyThreadState* __tstate = wxPyBeginAllowThreads();
7313 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7314
7315 wxPyEndAllowThreads(__tstate);
7316 if (PyErr_Occurred()) SWIG_fail;
7317 }
7318 Py_INCREF(Py_None); resultobj = Py_None;
7319 {
7320 if (temp2)
7321 delete arg2;
7322 }
7323 return resultobj;
7324 fail:
7325 {
7326 if (temp2)
7327 delete arg2;
7328 }
7329 return NULL;
7330 }
7331
7332
7333 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7334 PyObject *resultobj;
7335 wxFont *arg1 = (wxFont *) 0 ;
7336 wxString result;
7337 PyObject * obj0 = 0 ;
7338 char *kwnames[] = {
7339 (char *) "self", NULL
7340 };
7341
7342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 result = ((wxFont const *)arg1)->GetFamilyString();
7347
7348 wxPyEndAllowThreads(__tstate);
7349 if (PyErr_Occurred()) SWIG_fail;
7350 }
7351 {
7352 #if wxUSE_UNICODE
7353 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7354 #else
7355 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7356 #endif
7357 }
7358 return resultobj;
7359 fail:
7360 return NULL;
7361 }
7362
7363
7364 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7365 PyObject *resultobj;
7366 wxFont *arg1 = (wxFont *) 0 ;
7367 wxString result;
7368 PyObject * obj0 = 0 ;
7369 char *kwnames[] = {
7370 (char *) "self", NULL
7371 };
7372
7373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7375 {
7376 PyThreadState* __tstate = wxPyBeginAllowThreads();
7377 result = ((wxFont const *)arg1)->GetStyleString();
7378
7379 wxPyEndAllowThreads(__tstate);
7380 if (PyErr_Occurred()) SWIG_fail;
7381 }
7382 {
7383 #if wxUSE_UNICODE
7384 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7385 #else
7386 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7387 #endif
7388 }
7389 return resultobj;
7390 fail:
7391 return NULL;
7392 }
7393
7394
7395 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7396 PyObject *resultobj;
7397 wxFont *arg1 = (wxFont *) 0 ;
7398 wxString result;
7399 PyObject * obj0 = 0 ;
7400 char *kwnames[] = {
7401 (char *) "self", NULL
7402 };
7403
7404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7406 {
7407 PyThreadState* __tstate = wxPyBeginAllowThreads();
7408 result = ((wxFont const *)arg1)->GetWeightString();
7409
7410 wxPyEndAllowThreads(__tstate);
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 {
7414 #if wxUSE_UNICODE
7415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7416 #else
7417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7418 #endif
7419 }
7420 return resultobj;
7421 fail:
7422 return NULL;
7423 }
7424
7425
7426 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7427 PyObject *resultobj;
7428 wxFont *arg1 = (wxFont *) 0 ;
7429 bool arg2 = (bool) True ;
7430 PyObject * obj0 = 0 ;
7431 PyObject * obj1 = 0 ;
7432 char *kwnames[] = {
7433 (char *) "self",(char *) "no", NULL
7434 };
7435
7436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7438 if (obj1) {
7439 arg2 = PyInt_AsLong(obj1) ? true : false;
7440 if (PyErr_Occurred()) SWIG_fail;
7441 }
7442 {
7443 PyThreadState* __tstate = wxPyBeginAllowThreads();
7444 (arg1)->SetNoAntiAliasing(arg2);
7445
7446 wxPyEndAllowThreads(__tstate);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 Py_INCREF(Py_None); resultobj = Py_None;
7450 return resultobj;
7451 fail:
7452 return NULL;
7453 }
7454
7455
7456 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7457 PyObject *resultobj;
7458 wxFont *arg1 = (wxFont *) 0 ;
7459 bool result;
7460 PyObject * obj0 = 0 ;
7461 char *kwnames[] = {
7462 (char *) "self", NULL
7463 };
7464
7465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7467 {
7468 PyThreadState* __tstate = wxPyBeginAllowThreads();
7469 result = (bool)(arg1)->GetNoAntiAliasing();
7470
7471 wxPyEndAllowThreads(__tstate);
7472 if (PyErr_Occurred()) SWIG_fail;
7473 }
7474 resultobj = PyInt_FromLong((long)result);
7475 return resultobj;
7476 fail:
7477 return NULL;
7478 }
7479
7480
7481 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7482 PyObject *resultobj;
7483 int result;
7484 char *kwnames[] = {
7485 NULL
7486 };
7487
7488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7489 {
7490 PyThreadState* __tstate = wxPyBeginAllowThreads();
7491 result = (int)wxFont::GetDefaultEncoding();
7492
7493 wxPyEndAllowThreads(__tstate);
7494 if (PyErr_Occurred()) SWIG_fail;
7495 }
7496 resultobj = PyInt_FromLong((long)result);
7497 return resultobj;
7498 fail:
7499 return NULL;
7500 }
7501
7502
7503 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7504 PyObject *resultobj;
7505 int arg1 ;
7506 char *kwnames[] = {
7507 (char *) "encoding", NULL
7508 };
7509
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7511 {
7512 PyThreadState* __tstate = wxPyBeginAllowThreads();
7513 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7514
7515 wxPyEndAllowThreads(__tstate);
7516 if (PyErr_Occurred()) SWIG_fail;
7517 }
7518 Py_INCREF(Py_None); resultobj = Py_None;
7519 return resultobj;
7520 fail:
7521 return NULL;
7522 }
7523
7524
7525 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7526 PyObject *obj;
7527 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7528 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7529 Py_INCREF(obj);
7530 return Py_BuildValue((char *)"");
7531 }
7532 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7533 PyObject *resultobj;
7534 wxPyFontEnumerator *result;
7535 char *kwnames[] = {
7536 NULL
7537 };
7538
7539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7548 return resultobj;
7549 fail:
7550 return NULL;
7551 }
7552
7553
7554 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7555 PyObject *resultobj;
7556 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7557 PyObject * obj0 = 0 ;
7558 char *kwnames[] = {
7559 (char *) "self", NULL
7560 };
7561
7562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 delete arg1;
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 Py_INCREF(Py_None); resultobj = Py_None;
7572 return resultobj;
7573 fail:
7574 return NULL;
7575 }
7576
7577
7578 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7579 PyObject *resultobj;
7580 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7581 PyObject *arg2 = (PyObject *) 0 ;
7582 PyObject *arg3 = (PyObject *) 0 ;
7583 bool arg4 ;
7584 PyObject * obj0 = 0 ;
7585 PyObject * obj1 = 0 ;
7586 PyObject * obj2 = 0 ;
7587 PyObject * obj3 = 0 ;
7588 char *kwnames[] = {
7589 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7590 };
7591
7592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7594 arg2 = obj1;
7595 arg3 = obj2;
7596 arg4 = PyInt_AsLong(obj3) ? true : false;
7597 if (PyErr_Occurred()) SWIG_fail;
7598 {
7599 PyThreadState* __tstate = wxPyBeginAllowThreads();
7600 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7601
7602 wxPyEndAllowThreads(__tstate);
7603 if (PyErr_Occurred()) SWIG_fail;
7604 }
7605 Py_INCREF(Py_None); resultobj = Py_None;
7606 return resultobj;
7607 fail:
7608 return NULL;
7609 }
7610
7611
7612 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7613 PyObject *resultobj;
7614 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7615 int arg2 = (int) wxFONTENCODING_SYSTEM ;
7616 bool arg3 = (bool) False ;
7617 bool result;
7618 PyObject * obj0 = 0 ;
7619 PyObject * obj2 = 0 ;
7620 char *kwnames[] = {
7621 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7622 };
7623
7624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7626 if (obj2) {
7627 arg3 = PyInt_AsLong(obj2) ? true : false;
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 {
7631 PyThreadState* __tstate = wxPyBeginAllowThreads();
7632 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7633
7634 wxPyEndAllowThreads(__tstate);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 }
7637 resultobj = PyInt_FromLong((long)result);
7638 return resultobj;
7639 fail:
7640 return NULL;
7641 }
7642
7643
7644 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7645 PyObject *resultobj;
7646 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7647 wxString const &arg2_defvalue = wxPyEmptyString ;
7648 wxString *arg2 = (wxString *) &arg2_defvalue ;
7649 bool result;
7650 bool temp2 = False ;
7651 PyObject * obj0 = 0 ;
7652 PyObject * obj1 = 0 ;
7653 char *kwnames[] = {
7654 (char *) "self",(char *) "facename", NULL
7655 };
7656
7657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7659 if (obj1) {
7660 {
7661 arg2 = wxString_in_helper(obj1);
7662 if (arg2 == NULL) SWIG_fail;
7663 temp2 = True;
7664 }
7665 }
7666 {
7667 PyThreadState* __tstate = wxPyBeginAllowThreads();
7668 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7669
7670 wxPyEndAllowThreads(__tstate);
7671 if (PyErr_Occurred()) SWIG_fail;
7672 }
7673 resultobj = PyInt_FromLong((long)result);
7674 {
7675 if (temp2)
7676 delete arg2;
7677 }
7678 return resultobj;
7679 fail:
7680 {
7681 if (temp2)
7682 delete arg2;
7683 }
7684 return NULL;
7685 }
7686
7687
7688 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7689 PyObject *resultobj;
7690 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7691 PyObject *result;
7692 PyObject * obj0 = 0 ;
7693 char *kwnames[] = {
7694 (char *) "self", NULL
7695 };
7696
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7699 {
7700 PyThreadState* __tstate = wxPyBeginAllowThreads();
7701 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7702
7703 wxPyEndAllowThreads(__tstate);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 }
7706 resultobj = result;
7707 return resultobj;
7708 fail:
7709 return NULL;
7710 }
7711
7712
7713 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj;
7715 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7716 PyObject *result;
7717 PyObject * obj0 = 0 ;
7718 char *kwnames[] = {
7719 (char *) "self", NULL
7720 };
7721
7722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7724 {
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7727
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 resultobj = result;
7732 return resultobj;
7733 fail:
7734 return NULL;
7735 }
7736
7737
7738 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7739 PyObject *obj;
7740 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7741 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7742 Py_INCREF(obj);
7743 return Py_BuildValue((char *)"");
7744 }
7745 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7746 PyObject *resultobj;
7747 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7748 int arg2 ;
7749 PyObject * obj0 = 0 ;
7750 char *kwnames[] = {
7751 (char *) "self",(char *) "Language", NULL
7752 };
7753
7754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7756 if (arg1) (arg1)->Language = arg2;
7757
7758 Py_INCREF(Py_None); resultobj = Py_None;
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7766 PyObject *resultobj;
7767 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7768 int result;
7769 PyObject * obj0 = 0 ;
7770 char *kwnames[] = {
7771 (char *) "self", NULL
7772 };
7773
7774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7776 result = (int) ((arg1)->Language);
7777
7778 resultobj = PyInt_FromLong((long)result);
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7786 PyObject *resultobj;
7787 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7788 wxString *arg2 = (wxString *) 0 ;
7789 bool temp2 = False ;
7790 PyObject * obj0 = 0 ;
7791 PyObject * obj1 = 0 ;
7792 char *kwnames[] = {
7793 (char *) "self",(char *) "CanonicalName", NULL
7794 };
7795
7796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7798 {
7799 arg2 = wxString_in_helper(obj1);
7800 if (arg2 == NULL) SWIG_fail;
7801 temp2 = True;
7802 }
7803 if (arg1) (arg1)->CanonicalName = *arg2;
7804
7805 Py_INCREF(Py_None); resultobj = Py_None;
7806 {
7807 if (temp2)
7808 delete arg2;
7809 }
7810 return resultobj;
7811 fail:
7812 {
7813 if (temp2)
7814 delete arg2;
7815 }
7816 return NULL;
7817 }
7818
7819
7820 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7821 PyObject *resultobj;
7822 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7823 wxString *result;
7824 PyObject * obj0 = 0 ;
7825 char *kwnames[] = {
7826 (char *) "self", NULL
7827 };
7828
7829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7831 result = (wxString *)& ((arg1)->CanonicalName);
7832
7833 {
7834 #if wxUSE_UNICODE
7835 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7836 #else
7837 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7838 #endif
7839 }
7840 return resultobj;
7841 fail:
7842 return NULL;
7843 }
7844
7845
7846 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7847 PyObject *resultobj;
7848 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7849 wxString *arg2 = (wxString *) 0 ;
7850 bool temp2 = False ;
7851 PyObject * obj0 = 0 ;
7852 PyObject * obj1 = 0 ;
7853 char *kwnames[] = {
7854 (char *) "self",(char *) "Description", NULL
7855 };
7856
7857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
7858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7859 {
7860 arg2 = wxString_in_helper(obj1);
7861 if (arg2 == NULL) SWIG_fail;
7862 temp2 = True;
7863 }
7864 if (arg1) (arg1)->Description = *arg2;
7865
7866 Py_INCREF(Py_None); resultobj = Py_None;
7867 {
7868 if (temp2)
7869 delete arg2;
7870 }
7871 return resultobj;
7872 fail:
7873 {
7874 if (temp2)
7875 delete arg2;
7876 }
7877 return NULL;
7878 }
7879
7880
7881 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7882 PyObject *resultobj;
7883 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7884 wxString *result;
7885 PyObject * obj0 = 0 ;
7886 char *kwnames[] = {
7887 (char *) "self", NULL
7888 };
7889
7890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
7891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7892 result = (wxString *)& ((arg1)->Description);
7893
7894 {
7895 #if wxUSE_UNICODE
7896 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7897 #else
7898 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7899 #endif
7900 }
7901 return resultobj;
7902 fail:
7903 return NULL;
7904 }
7905
7906
7907 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
7908 PyObject *obj;
7909 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7910 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
7911 Py_INCREF(obj);
7912 return Py_BuildValue((char *)"");
7913 }
7914 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7915 PyObject *resultobj;
7916 int arg1 = (int) wxLANGUAGE_DEFAULT ;
7917 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7918 wxLocale *result;
7919 char *kwnames[] = {
7920 (char *) "language",(char *) "flags", NULL
7921 };
7922
7923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = (wxLocale *)new wxLocale(arg1,arg2);
7927
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
7932 return resultobj;
7933 fail:
7934 return NULL;
7935 }
7936
7937
7938 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7939 PyObject *resultobj;
7940 wxLocale *arg1 = (wxLocale *) 0 ;
7941 PyObject * obj0 = 0 ;
7942 char *kwnames[] = {
7943 (char *) "self", NULL
7944 };
7945
7946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
7947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7948 {
7949 PyThreadState* __tstate = wxPyBeginAllowThreads();
7950 delete arg1;
7951
7952 wxPyEndAllowThreads(__tstate);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 }
7955 Py_INCREF(Py_None); resultobj = Py_None;
7956 return resultobj;
7957 fail:
7958 return NULL;
7959 }
7960
7961
7962 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
7963 PyObject *resultobj;
7964 wxLocale *arg1 = (wxLocale *) 0 ;
7965 wxString *arg2 = 0 ;
7966 wxString const &arg3_defvalue = wxPyEmptyString ;
7967 wxString *arg3 = (wxString *) &arg3_defvalue ;
7968 wxString const &arg4_defvalue = wxPyEmptyString ;
7969 wxString *arg4 = (wxString *) &arg4_defvalue ;
7970 bool arg5 = (bool) True ;
7971 bool arg6 = (bool) False ;
7972 bool result;
7973 bool temp2 = False ;
7974 bool temp3 = False ;
7975 bool temp4 = False ;
7976 PyObject * obj0 = 0 ;
7977 PyObject * obj1 = 0 ;
7978 PyObject * obj2 = 0 ;
7979 PyObject * obj3 = 0 ;
7980 PyObject * obj4 = 0 ;
7981 PyObject * obj5 = 0 ;
7982 char *kwnames[] = {
7983 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
7984 };
7985
7986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7988 {
7989 arg2 = wxString_in_helper(obj1);
7990 if (arg2 == NULL) SWIG_fail;
7991 temp2 = True;
7992 }
7993 if (obj2) {
7994 {
7995 arg3 = wxString_in_helper(obj2);
7996 if (arg3 == NULL) SWIG_fail;
7997 temp3 = True;
7998 }
7999 }
8000 if (obj3) {
8001 {
8002 arg4 = wxString_in_helper(obj3);
8003 if (arg4 == NULL) SWIG_fail;
8004 temp4 = True;
8005 }
8006 }
8007 if (obj4) {
8008 arg5 = PyInt_AsLong(obj4) ? true : false;
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 if (obj5) {
8012 arg6 = PyInt_AsLong(obj5) ? true : false;
8013 if (PyErr_Occurred()) SWIG_fail;
8014 }
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8018
8019 wxPyEndAllowThreads(__tstate);
8020 if (PyErr_Occurred()) SWIG_fail;
8021 }
8022 resultobj = PyInt_FromLong((long)result);
8023 {
8024 if (temp2)
8025 delete arg2;
8026 }
8027 {
8028 if (temp3)
8029 delete arg3;
8030 }
8031 {
8032 if (temp4)
8033 delete arg4;
8034 }
8035 return resultobj;
8036 fail:
8037 {
8038 if (temp2)
8039 delete arg2;
8040 }
8041 {
8042 if (temp3)
8043 delete arg3;
8044 }
8045 {
8046 if (temp4)
8047 delete arg4;
8048 }
8049 return NULL;
8050 }
8051
8052
8053 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8054 PyObject *resultobj;
8055 wxLocale *arg1 = (wxLocale *) 0 ;
8056 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8057 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8058 bool result;
8059 PyObject * obj0 = 0 ;
8060 char *kwnames[] = {
8061 (char *) "self",(char *) "language",(char *) "flags", NULL
8062 };
8063
8064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
8065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8066 {
8067 PyThreadState* __tstate = wxPyBeginAllowThreads();
8068 result = (bool)(arg1)->Init(arg2,arg3);
8069
8070 wxPyEndAllowThreads(__tstate);
8071 if (PyErr_Occurred()) SWIG_fail;
8072 }
8073 resultobj = PyInt_FromLong((long)result);
8074 return resultobj;
8075 fail:
8076 return NULL;
8077 }
8078
8079
8080 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8081 PyObject *resultobj;
8082 int result;
8083 char *kwnames[] = {
8084 NULL
8085 };
8086
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8088 {
8089 PyThreadState* __tstate = wxPyBeginAllowThreads();
8090 result = (int)wxLocale::GetSystemLanguage();
8091
8092 wxPyEndAllowThreads(__tstate);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 }
8095 resultobj = PyInt_FromLong((long)result);
8096 return resultobj;
8097 fail:
8098 return NULL;
8099 }
8100
8101
8102 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8103 PyObject *resultobj;
8104 int result;
8105 char *kwnames[] = {
8106 NULL
8107 };
8108
8109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8110 {
8111 PyThreadState* __tstate = wxPyBeginAllowThreads();
8112 result = (int)wxLocale::GetSystemEncoding();
8113
8114 wxPyEndAllowThreads(__tstate);
8115 if (PyErr_Occurred()) SWIG_fail;
8116 }
8117 resultobj = PyInt_FromLong((long)result);
8118 return resultobj;
8119 fail:
8120 return NULL;
8121 }
8122
8123
8124 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8125 PyObject *resultobj;
8126 wxString result;
8127 char *kwnames[] = {
8128 NULL
8129 };
8130
8131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8132 {
8133 PyThreadState* __tstate = wxPyBeginAllowThreads();
8134 result = wxLocale::GetSystemEncodingName();
8135
8136 wxPyEndAllowThreads(__tstate);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 {
8140 #if wxUSE_UNICODE
8141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8142 #else
8143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8144 #endif
8145 }
8146 return resultobj;
8147 fail:
8148 return NULL;
8149 }
8150
8151
8152 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8153 PyObject *resultobj;
8154 wxLocale *arg1 = (wxLocale *) 0 ;
8155 bool result;
8156 PyObject * obj0 = 0 ;
8157 char *kwnames[] = {
8158 (char *) "self", NULL
8159 };
8160
8161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8163 {
8164 PyThreadState* __tstate = wxPyBeginAllowThreads();
8165 result = (bool)((wxLocale const *)arg1)->IsOk();
8166
8167 wxPyEndAllowThreads(__tstate);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 resultobj = PyInt_FromLong((long)result);
8171 return resultobj;
8172 fail:
8173 return NULL;
8174 }
8175
8176
8177 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj;
8179 wxLocale *arg1 = (wxLocale *) 0 ;
8180 wxString result;
8181 PyObject * obj0 = 0 ;
8182 char *kwnames[] = {
8183 (char *) "self", NULL
8184 };
8185
8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8188 {
8189 PyThreadState* __tstate = wxPyBeginAllowThreads();
8190 result = ((wxLocale const *)arg1)->GetLocale();
8191
8192 wxPyEndAllowThreads(__tstate);
8193 if (PyErr_Occurred()) SWIG_fail;
8194 }
8195 {
8196 #if wxUSE_UNICODE
8197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8198 #else
8199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8200 #endif
8201 }
8202 return resultobj;
8203 fail:
8204 return NULL;
8205 }
8206
8207
8208 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj;
8210 wxLocale *arg1 = (wxLocale *) 0 ;
8211 int result;
8212 PyObject * obj0 = 0 ;
8213 char *kwnames[] = {
8214 (char *) "self", NULL
8215 };
8216
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8219 {
8220 PyThreadState* __tstate = wxPyBeginAllowThreads();
8221 result = (int)((wxLocale const *)arg1)->GetLanguage();
8222
8223 wxPyEndAllowThreads(__tstate);
8224 if (PyErr_Occurred()) SWIG_fail;
8225 }
8226 resultobj = PyInt_FromLong((long)result);
8227 return resultobj;
8228 fail:
8229 return NULL;
8230 }
8231
8232
8233 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8234 PyObject *resultobj;
8235 wxLocale *arg1 = (wxLocale *) 0 ;
8236 wxString result;
8237 PyObject * obj0 = 0 ;
8238 char *kwnames[] = {
8239 (char *) "self", NULL
8240 };
8241
8242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8244 {
8245 PyThreadState* __tstate = wxPyBeginAllowThreads();
8246 result = ((wxLocale const *)arg1)->GetSysName();
8247
8248 wxPyEndAllowThreads(__tstate);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 {
8252 #if wxUSE_UNICODE
8253 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8254 #else
8255 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8256 #endif
8257 }
8258 return resultobj;
8259 fail:
8260 return NULL;
8261 }
8262
8263
8264 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8265 PyObject *resultobj;
8266 wxLocale *arg1 = (wxLocale *) 0 ;
8267 wxString result;
8268 PyObject * obj0 = 0 ;
8269 char *kwnames[] = {
8270 (char *) "self", NULL
8271 };
8272
8273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8275 {
8276 PyThreadState* __tstate = wxPyBeginAllowThreads();
8277 result = ((wxLocale const *)arg1)->GetCanonicalName();
8278
8279 wxPyEndAllowThreads(__tstate);
8280 if (PyErr_Occurred()) SWIG_fail;
8281 }
8282 {
8283 #if wxUSE_UNICODE
8284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8285 #else
8286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8287 #endif
8288 }
8289 return resultobj;
8290 fail:
8291 return NULL;
8292 }
8293
8294
8295 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8296 PyObject *resultobj;
8297 wxString *arg1 = 0 ;
8298 bool temp1 = False ;
8299 PyObject * obj0 = 0 ;
8300 char *kwnames[] = {
8301 (char *) "prefix", NULL
8302 };
8303
8304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8305 {
8306 arg1 = wxString_in_helper(obj0);
8307 if (arg1 == NULL) SWIG_fail;
8308 temp1 = True;
8309 }
8310 {
8311 PyThreadState* __tstate = wxPyBeginAllowThreads();
8312 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8313
8314 wxPyEndAllowThreads(__tstate);
8315 if (PyErr_Occurred()) SWIG_fail;
8316 }
8317 Py_INCREF(Py_None); resultobj = Py_None;
8318 {
8319 if (temp1)
8320 delete arg1;
8321 }
8322 return resultobj;
8323 fail:
8324 {
8325 if (temp1)
8326 delete arg1;
8327 }
8328 return NULL;
8329 }
8330
8331
8332 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8333 PyObject *resultobj;
8334 wxLocale *arg1 = (wxLocale *) 0 ;
8335 wxString *arg2 = 0 ;
8336 bool result;
8337 bool temp2 = False ;
8338 PyObject * obj0 = 0 ;
8339 PyObject * obj1 = 0 ;
8340 char *kwnames[] = {
8341 (char *) "self",(char *) "szDomain", NULL
8342 };
8343
8344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8346 {
8347 arg2 = wxString_in_helper(obj1);
8348 if (arg2 == NULL) SWIG_fail;
8349 temp2 = True;
8350 }
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8354
8355 wxPyEndAllowThreads(__tstate);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 resultobj = PyInt_FromLong((long)result);
8359 {
8360 if (temp2)
8361 delete arg2;
8362 }
8363 return resultobj;
8364 fail:
8365 {
8366 if (temp2)
8367 delete arg2;
8368 }
8369 return NULL;
8370 }
8371
8372
8373 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8374 PyObject *resultobj;
8375 wxLocale *arg1 = (wxLocale *) 0 ;
8376 wxString *arg2 = 0 ;
8377 bool result;
8378 bool temp2 = False ;
8379 PyObject * obj0 = 0 ;
8380 PyObject * obj1 = 0 ;
8381 char *kwnames[] = {
8382 (char *) "self",(char *) "szDomain", NULL
8383 };
8384
8385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8387 {
8388 arg2 = wxString_in_helper(obj1);
8389 if (arg2 == NULL) SWIG_fail;
8390 temp2 = True;
8391 }
8392 {
8393 PyThreadState* __tstate = wxPyBeginAllowThreads();
8394 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8395
8396 wxPyEndAllowThreads(__tstate);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 }
8399 resultobj = PyInt_FromLong((long)result);
8400 {
8401 if (temp2)
8402 delete arg2;
8403 }
8404 return resultobj;
8405 fail:
8406 {
8407 if (temp2)
8408 delete arg2;
8409 }
8410 return NULL;
8411 }
8412
8413
8414 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8415 PyObject *resultobj;
8416 int arg1 ;
8417 wxLanguageInfo *result;
8418 char *kwnames[] = {
8419 (char *) "lang", NULL
8420 };
8421
8422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8423 {
8424 PyThreadState* __tstate = wxPyBeginAllowThreads();
8425 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8426
8427 wxPyEndAllowThreads(__tstate);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
8430 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8431 return resultobj;
8432 fail:
8433 return NULL;
8434 }
8435
8436
8437 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8438 PyObject *resultobj;
8439 int arg1 ;
8440 wxString result;
8441 char *kwnames[] = {
8442 (char *) "lang", NULL
8443 };
8444
8445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8446 {
8447 PyThreadState* __tstate = wxPyBeginAllowThreads();
8448 result = wxLocale::GetLanguageName(arg1);
8449
8450 wxPyEndAllowThreads(__tstate);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 }
8453 {
8454 #if wxUSE_UNICODE
8455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8456 #else
8457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8458 #endif
8459 }
8460 return resultobj;
8461 fail:
8462 return NULL;
8463 }
8464
8465
8466 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8467 PyObject *resultobj;
8468 wxString *arg1 = 0 ;
8469 wxLanguageInfo *result;
8470 bool temp1 = False ;
8471 PyObject * obj0 = 0 ;
8472 char *kwnames[] = {
8473 (char *) "locale", NULL
8474 };
8475
8476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8477 {
8478 arg1 = wxString_in_helper(obj0);
8479 if (arg1 == NULL) SWIG_fail;
8480 temp1 = True;
8481 }
8482 {
8483 PyThreadState* __tstate = wxPyBeginAllowThreads();
8484 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8485
8486 wxPyEndAllowThreads(__tstate);
8487 if (PyErr_Occurred()) SWIG_fail;
8488 }
8489 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8490 {
8491 if (temp1)
8492 delete arg1;
8493 }
8494 return resultobj;
8495 fail:
8496 {
8497 if (temp1)
8498 delete arg1;
8499 }
8500 return NULL;
8501 }
8502
8503
8504 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8505 PyObject *resultobj;
8506 wxLanguageInfo *arg1 = 0 ;
8507 PyObject * obj0 = 0 ;
8508 char *kwnames[] = {
8509 (char *) "info", NULL
8510 };
8511
8512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8514 if (arg1 == NULL) {
8515 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8516 }
8517 {
8518 PyThreadState* __tstate = wxPyBeginAllowThreads();
8519 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8520
8521 wxPyEndAllowThreads(__tstate);
8522 if (PyErr_Occurred()) SWIG_fail;
8523 }
8524 Py_INCREF(Py_None); resultobj = Py_None;
8525 return resultobj;
8526 fail:
8527 return NULL;
8528 }
8529
8530
8531 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8532 PyObject *resultobj;
8533 wxLocale *arg1 = (wxLocale *) 0 ;
8534 wxString *arg2 = 0 ;
8535 wxString const &arg3_defvalue = wxPyEmptyString ;
8536 wxString *arg3 = (wxString *) &arg3_defvalue ;
8537 wxString result;
8538 bool temp2 = False ;
8539 bool temp3 = False ;
8540 PyObject * obj0 = 0 ;
8541 PyObject * obj1 = 0 ;
8542 PyObject * obj2 = 0 ;
8543 char *kwnames[] = {
8544 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8545 };
8546
8547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8549 {
8550 arg2 = wxString_in_helper(obj1);
8551 if (arg2 == NULL) SWIG_fail;
8552 temp2 = True;
8553 }
8554 if (obj2) {
8555 {
8556 arg3 = wxString_in_helper(obj2);
8557 if (arg3 == NULL) SWIG_fail;
8558 temp3 = True;
8559 }
8560 }
8561 {
8562 PyThreadState* __tstate = wxPyBeginAllowThreads();
8563 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8564
8565 wxPyEndAllowThreads(__tstate);
8566 if (PyErr_Occurred()) SWIG_fail;
8567 }
8568 {
8569 #if wxUSE_UNICODE
8570 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8571 #else
8572 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8573 #endif
8574 }
8575 {
8576 if (temp2)
8577 delete arg2;
8578 }
8579 {
8580 if (temp3)
8581 delete arg3;
8582 }
8583 return resultobj;
8584 fail:
8585 {
8586 if (temp2)
8587 delete arg2;
8588 }
8589 {
8590 if (temp3)
8591 delete arg3;
8592 }
8593 return NULL;
8594 }
8595
8596
8597 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8598 PyObject *resultobj;
8599 wxLocale *arg1 = (wxLocale *) 0 ;
8600 wxString *result;
8601 PyObject * obj0 = 0 ;
8602 char *kwnames[] = {
8603 (char *) "self", NULL
8604 };
8605
8606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8608 {
8609 PyThreadState* __tstate = wxPyBeginAllowThreads();
8610 {
8611 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8612 result = (wxString *) &_result_ref;
8613 }
8614
8615 wxPyEndAllowThreads(__tstate);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 {
8619 #if wxUSE_UNICODE
8620 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8621 #else
8622 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8623 #endif
8624 }
8625 return resultobj;
8626 fail:
8627 return NULL;
8628 }
8629
8630
8631 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8632 PyObject *obj;
8633 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8634 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8635 Py_INCREF(obj);
8636 return Py_BuildValue((char *)"");
8637 }
8638 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8639 PyObject *resultobj;
8640 wxLocale *result;
8641 char *kwnames[] = {
8642 NULL
8643 };
8644
8645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8646 {
8647 PyThreadState* __tstate = wxPyBeginAllowThreads();
8648 result = (wxLocale *)wxGetLocale();
8649
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8654 return resultobj;
8655 fail:
8656 return NULL;
8657 }
8658
8659
8660 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8661 PyObject *resultobj;
8662 wxString *arg1 = 0 ;
8663 wxString result;
8664 bool temp1 = False ;
8665 PyObject * obj0 = 0 ;
8666
8667 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8668 {
8669 arg1 = wxString_in_helper(obj0);
8670 if (arg1 == NULL) SWIG_fail;
8671 temp1 = True;
8672 }
8673 {
8674 PyThreadState* __tstate = wxPyBeginAllowThreads();
8675 result = wxGetTranslation((wxString const &)*arg1);
8676
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 {
8681 #if wxUSE_UNICODE
8682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8683 #else
8684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8685 #endif
8686 }
8687 {
8688 if (temp1)
8689 delete arg1;
8690 }
8691 return resultobj;
8692 fail:
8693 {
8694 if (temp1)
8695 delete arg1;
8696 }
8697 return NULL;
8698 }
8699
8700
8701 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8702 PyObject *resultobj;
8703 wxString *arg1 = 0 ;
8704 wxString *arg2 = 0 ;
8705 size_t arg3 ;
8706 wxString result;
8707 bool temp1 = False ;
8708 bool temp2 = False ;
8709 PyObject * obj0 = 0 ;
8710 PyObject * obj1 = 0 ;
8711 PyObject * obj2 = 0 ;
8712
8713 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8714 {
8715 arg1 = wxString_in_helper(obj0);
8716 if (arg1 == NULL) SWIG_fail;
8717 temp1 = True;
8718 }
8719 {
8720 arg2 = wxString_in_helper(obj1);
8721 if (arg2 == NULL) SWIG_fail;
8722 temp2 = True;
8723 }
8724 arg3 = (size_t) PyInt_AsLong(obj2);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 {
8727 PyThreadState* __tstate = wxPyBeginAllowThreads();
8728 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8729
8730 wxPyEndAllowThreads(__tstate);
8731 if (PyErr_Occurred()) SWIG_fail;
8732 }
8733 {
8734 #if wxUSE_UNICODE
8735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8736 #else
8737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8738 #endif
8739 }
8740 {
8741 if (temp1)
8742 delete arg1;
8743 }
8744 {
8745 if (temp2)
8746 delete arg2;
8747 }
8748 return resultobj;
8749 fail:
8750 {
8751 if (temp1)
8752 delete arg1;
8753 }
8754 {
8755 if (temp2)
8756 delete arg2;
8757 }
8758 return NULL;
8759 }
8760
8761
8762 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8763 int argc;
8764 PyObject *argv[4];
8765 int ii;
8766
8767 argc = PyObject_Length(args);
8768 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8769 argv[ii] = PyTuple_GetItem(args,ii);
8770 }
8771 if (argc == 1) {
8772 int _v;
8773 {
8774 void *ptr;
8775 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8776 _v = 0;
8777 PyErr_Clear();
8778 } else {
8779 _v = 1;
8780 }
8781 }
8782 if (_v) {
8783 return _wrap_GetTranslation__SWIG_0(self,args);
8784 }
8785 }
8786 if (argc == 3) {
8787 int _v;
8788 {
8789 void *ptr;
8790 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8791 _v = 0;
8792 PyErr_Clear();
8793 } else {
8794 _v = 1;
8795 }
8796 }
8797 if (_v) {
8798 {
8799 void *ptr;
8800 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8801 _v = 0;
8802 PyErr_Clear();
8803 } else {
8804 _v = 1;
8805 }
8806 }
8807 if (_v) {
8808 {
8809 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8810 }
8811 if (_v) {
8812 return _wrap_GetTranslation__SWIG_1(self,args);
8813 }
8814 }
8815 }
8816 }
8817
8818 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8819 return NULL;
8820 }
8821
8822
8823 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 wxEncodingConverter *result;
8826 char *kwnames[] = {
8827 NULL
8828 };
8829
8830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
8831 {
8832 PyThreadState* __tstate = wxPyBeginAllowThreads();
8833 result = (wxEncodingConverter *)new wxEncodingConverter();
8834
8835 wxPyEndAllowThreads(__tstate);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
8839 return resultobj;
8840 fail:
8841 return NULL;
8842 }
8843
8844
8845 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj;
8847 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8848 PyObject * obj0 = 0 ;
8849 char *kwnames[] = {
8850 (char *) "self", NULL
8851 };
8852
8853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
8854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8855 {
8856 PyThreadState* __tstate = wxPyBeginAllowThreads();
8857 delete arg1;
8858
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 Py_INCREF(Py_None); resultobj = Py_None;
8863 return resultobj;
8864 fail:
8865 return NULL;
8866 }
8867
8868
8869 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
8870 PyObject *resultobj;
8871 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8872 int arg2 ;
8873 int arg3 ;
8874 int arg4 = (int) wxCONVERT_STRICT ;
8875 bool result;
8876 PyObject * obj0 = 0 ;
8877 char *kwnames[] = {
8878 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
8879 };
8880
8881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
8882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8883 {
8884 PyThreadState* __tstate = wxPyBeginAllowThreads();
8885 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
8886
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 resultobj = PyInt_FromLong((long)result);
8891 return resultobj;
8892 fail:
8893 return NULL;
8894 }
8895
8896
8897 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
8898 PyObject *resultobj;
8899 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8900 wxString *arg2 = 0 ;
8901 wxString result;
8902 bool temp2 = False ;
8903 PyObject * obj0 = 0 ;
8904 PyObject * obj1 = 0 ;
8905 char *kwnames[] = {
8906 (char *) "self",(char *) "input", NULL
8907 };
8908
8909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
8910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8911 {
8912 arg2 = wxString_in_helper(obj1);
8913 if (arg2 == NULL) SWIG_fail;
8914 temp2 = True;
8915 }
8916 {
8917 PyThreadState* __tstate = wxPyBeginAllowThreads();
8918 result = (arg1)->Convert((wxString const &)*arg2);
8919
8920 wxPyEndAllowThreads(__tstate);
8921 if (PyErr_Occurred()) SWIG_fail;
8922 }
8923 {
8924 #if wxUSE_UNICODE
8925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8926 #else
8927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8928 #endif
8929 }
8930 {
8931 if (temp2)
8932 delete arg2;
8933 }
8934 return resultobj;
8935 fail:
8936 {
8937 if (temp2)
8938 delete arg2;
8939 }
8940 return NULL;
8941 }
8942
8943
8944 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj;
8946 int arg1 ;
8947 int arg2 = (int) wxPLATFORM_CURRENT ;
8948 wxFontEncodingArray result;
8949 char *kwnames[] = {
8950 (char *) "enc",(char *) "platform", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
8954 {
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
8957
8958 wxPyEndAllowThreads(__tstate);
8959 if (PyErr_Occurred()) SWIG_fail;
8960 }
8961 {
8962 resultobj = PyList_New(0);
8963 for (size_t i=0; i < (&result)->GetCount(); i++) {
8964 PyObject* number = PyInt_FromLong((&result)->Item(i));
8965 PyList_Append(resultobj, number);
8966 Py_DECREF(number);
8967 }
8968 }
8969 return resultobj;
8970 fail:
8971 return NULL;
8972 }
8973
8974
8975 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8976 PyObject *resultobj;
8977 int arg1 ;
8978 wxFontEncodingArray result;
8979 char *kwnames[] = {
8980 (char *) "enc", NULL
8981 };
8982
8983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
8984 {
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
8987
8988 wxPyEndAllowThreads(__tstate);
8989 if (PyErr_Occurred()) SWIG_fail;
8990 }
8991 {
8992 resultobj = PyList_New(0);
8993 for (size_t i=0; i < (&result)->GetCount(); i++) {
8994 PyObject* number = PyInt_FromLong((&result)->Item(i));
8995 PyList_Append(resultobj, number);
8996 Py_DECREF(number);
8997 }
8998 }
8999 return resultobj;
9000 fail:
9001 return NULL;
9002 }
9003
9004
9005 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9006 PyObject *resultobj;
9007 int arg1 ;
9008 int arg2 ;
9009 bool result;
9010 char *kwnames[] = {
9011 (char *) "encIn",(char *) "encOut", NULL
9012 };
9013
9014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
9015 {
9016 PyThreadState* __tstate = wxPyBeginAllowThreads();
9017 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9018
9019 wxPyEndAllowThreads(__tstate);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 resultobj = PyInt_FromLong((long)result);
9023 return resultobj;
9024 fail:
9025 return NULL;
9026 }
9027
9028
9029 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9030 PyObject *obj;
9031 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9032 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9033 Py_INCREF(obj);
9034 return Py_BuildValue((char *)"");
9035 }
9036 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9037 PyObject *resultobj;
9038 wxDC *arg1 = (wxDC *) 0 ;
9039 PyObject * obj0 = 0 ;
9040 char *kwnames[] = {
9041 (char *) "self", NULL
9042 };
9043
9044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9046 {
9047 PyThreadState* __tstate = wxPyBeginAllowThreads();
9048 delete arg1;
9049
9050 wxPyEndAllowThreads(__tstate);
9051 if (PyErr_Occurred()) SWIG_fail;
9052 }
9053 Py_INCREF(Py_None); resultobj = Py_None;
9054 return resultobj;
9055 fail:
9056 return NULL;
9057 }
9058
9059
9060 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9061 PyObject *resultobj;
9062 wxDC *arg1 = (wxDC *) 0 ;
9063 PyObject * obj0 = 0 ;
9064 char *kwnames[] = {
9065 (char *) "self", NULL
9066 };
9067
9068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9070 {
9071 PyThreadState* __tstate = wxPyBeginAllowThreads();
9072 (arg1)->BeginDrawing();
9073
9074 wxPyEndAllowThreads(__tstate);
9075 if (PyErr_Occurred()) SWIG_fail;
9076 }
9077 Py_INCREF(Py_None); resultobj = Py_None;
9078 return resultobj;
9079 fail:
9080 return NULL;
9081 }
9082
9083
9084 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject *resultobj;
9086 wxDC *arg1 = (wxDC *) 0 ;
9087 PyObject * obj0 = 0 ;
9088 char *kwnames[] = {
9089 (char *) "self", NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9094 {
9095 PyThreadState* __tstate = wxPyBeginAllowThreads();
9096 (arg1)->EndDrawing();
9097
9098 wxPyEndAllowThreads(__tstate);
9099 if (PyErr_Occurred()) SWIG_fail;
9100 }
9101 Py_INCREF(Py_None); resultobj = Py_None;
9102 return resultobj;
9103 fail:
9104 return NULL;
9105 }
9106
9107
9108 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9109 PyObject *resultobj;
9110 wxDC *arg1 = (wxDC *) 0 ;
9111 int arg2 ;
9112 int arg3 ;
9113 wxColour *arg4 = 0 ;
9114 int arg5 = (int) wxFLOOD_SURFACE ;
9115 bool result;
9116 wxColour temp4 ;
9117 PyObject * obj0 = 0 ;
9118 PyObject * obj3 = 0 ;
9119 char *kwnames[] = {
9120 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9121 };
9122
9123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9125 {
9126 arg4 = &temp4;
9127 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9128 }
9129 {
9130 PyThreadState* __tstate = wxPyBeginAllowThreads();
9131 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9132
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 resultobj = PyInt_FromLong((long)result);
9137 return resultobj;
9138 fail:
9139 return NULL;
9140 }
9141
9142
9143 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9144 PyObject *resultobj;
9145 wxDC *arg1 = (wxDC *) 0 ;
9146 wxPoint *arg2 = 0 ;
9147 wxColour *arg3 = 0 ;
9148 int arg4 = (int) wxFLOOD_SURFACE ;
9149 bool result;
9150 wxPoint temp2 ;
9151 wxColour temp3 ;
9152 PyObject * obj0 = 0 ;
9153 PyObject * obj1 = 0 ;
9154 PyObject * obj2 = 0 ;
9155 char *kwnames[] = {
9156 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9161 {
9162 arg2 = &temp2;
9163 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9164 }
9165 {
9166 arg3 = &temp3;
9167 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9168 }
9169 {
9170 PyThreadState* __tstate = wxPyBeginAllowThreads();
9171 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9172
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = PyInt_FromLong((long)result);
9177 return resultobj;
9178 fail:
9179 return NULL;
9180 }
9181
9182
9183 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9184 PyObject *resultobj;
9185 wxDC *arg1 = (wxDC *) 0 ;
9186 int arg2 ;
9187 int arg3 ;
9188 wxColour result;
9189 PyObject * obj0 = 0 ;
9190 char *kwnames[] = {
9191 (char *) "self",(char *) "x",(char *) "y", NULL
9192 };
9193
9194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9196 {
9197 PyThreadState* __tstate = wxPyBeginAllowThreads();
9198 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9199
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 {
9204 wxColour * resultptr;
9205 resultptr = new wxColour((wxColour &) result);
9206 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9207 }
9208 return resultobj;
9209 fail:
9210 return NULL;
9211 }
9212
9213
9214 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9215 PyObject *resultobj;
9216 wxDC *arg1 = (wxDC *) 0 ;
9217 wxPoint *arg2 = 0 ;
9218 wxColour result;
9219 wxPoint temp2 ;
9220 PyObject * obj0 = 0 ;
9221 PyObject * obj1 = 0 ;
9222 char *kwnames[] = {
9223 (char *) "self",(char *) "pt", NULL
9224 };
9225
9226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9228 {
9229 arg2 = &temp2;
9230 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9231 }
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9235
9236 wxPyEndAllowThreads(__tstate);
9237 if (PyErr_Occurred()) SWIG_fail;
9238 }
9239 {
9240 wxColour * resultptr;
9241 resultptr = new wxColour((wxColour &) result);
9242 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9243 }
9244 return resultobj;
9245 fail:
9246 return NULL;
9247 }
9248
9249
9250 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj;
9252 wxDC *arg1 = (wxDC *) 0 ;
9253 int arg2 ;
9254 int arg3 ;
9255 int arg4 ;
9256 int arg5 ;
9257 PyObject * obj0 = 0 ;
9258 char *kwnames[] = {
9259 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9260 };
9261
9262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9264 {
9265 PyThreadState* __tstate = wxPyBeginAllowThreads();
9266 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9267
9268 wxPyEndAllowThreads(__tstate);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 Py_INCREF(Py_None); resultobj = Py_None;
9272 return resultobj;
9273 fail:
9274 return NULL;
9275 }
9276
9277
9278 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9279 PyObject *resultobj;
9280 wxDC *arg1 = (wxDC *) 0 ;
9281 wxPoint *arg2 = 0 ;
9282 wxPoint *arg3 = 0 ;
9283 wxPoint temp2 ;
9284 wxPoint temp3 ;
9285 PyObject * obj0 = 0 ;
9286 PyObject * obj1 = 0 ;
9287 PyObject * obj2 = 0 ;
9288 char *kwnames[] = {
9289 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9290 };
9291
9292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9294 {
9295 arg2 = &temp2;
9296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9297 }
9298 {
9299 arg3 = &temp3;
9300 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9301 }
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9305
9306 wxPyEndAllowThreads(__tstate);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 Py_INCREF(Py_None); resultobj = Py_None;
9310 return resultobj;
9311 fail:
9312 return NULL;
9313 }
9314
9315
9316 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9317 PyObject *resultobj;
9318 wxDC *arg1 = (wxDC *) 0 ;
9319 int arg2 ;
9320 int arg3 ;
9321 PyObject * obj0 = 0 ;
9322 char *kwnames[] = {
9323 (char *) "self",(char *) "x",(char *) "y", NULL
9324 };
9325
9326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 (arg1)->CrossHair(arg2,arg3);
9331
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 Py_INCREF(Py_None); resultobj = Py_None;
9336 return resultobj;
9337 fail:
9338 return NULL;
9339 }
9340
9341
9342 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9343 PyObject *resultobj;
9344 wxDC *arg1 = (wxDC *) 0 ;
9345 wxPoint *arg2 = 0 ;
9346 wxPoint temp2 ;
9347 PyObject * obj0 = 0 ;
9348 PyObject * obj1 = 0 ;
9349 char *kwnames[] = {
9350 (char *) "self",(char *) "pt", NULL
9351 };
9352
9353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9355 {
9356 arg2 = &temp2;
9357 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9358 }
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->CrossHair((wxPoint const &)*arg2);
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 Py_INCREF(Py_None); resultobj = Py_None;
9367 return resultobj;
9368 fail:
9369 return NULL;
9370 }
9371
9372
9373 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9374 PyObject *resultobj;
9375 wxDC *arg1 = (wxDC *) 0 ;
9376 int arg2 ;
9377 int arg3 ;
9378 int arg4 ;
9379 int arg5 ;
9380 int arg6 ;
9381 int arg7 ;
9382 PyObject * obj0 = 0 ;
9383 char *kwnames[] = {
9384 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9385 };
9386
9387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9389 {
9390 PyThreadState* __tstate = wxPyBeginAllowThreads();
9391 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9392
9393 wxPyEndAllowThreads(__tstate);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 }
9396 Py_INCREF(Py_None); resultobj = Py_None;
9397 return resultobj;
9398 fail:
9399 return NULL;
9400 }
9401
9402
9403 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj;
9405 wxDC *arg1 = (wxDC *) 0 ;
9406 wxPoint *arg2 = 0 ;
9407 wxPoint *arg3 = 0 ;
9408 wxPoint *arg4 = 0 ;
9409 wxPoint temp2 ;
9410 wxPoint temp3 ;
9411 wxPoint temp4 ;
9412 PyObject * obj0 = 0 ;
9413 PyObject * obj1 = 0 ;
9414 PyObject * obj2 = 0 ;
9415 PyObject * obj3 = 0 ;
9416 char *kwnames[] = {
9417 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9418 };
9419
9420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9422 {
9423 arg2 = &temp2;
9424 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9425 }
9426 {
9427 arg3 = &temp3;
9428 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9429 }
9430 {
9431 arg4 = &temp4;
9432 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9433 }
9434 {
9435 PyThreadState* __tstate = wxPyBeginAllowThreads();
9436 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9437
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 Py_INCREF(Py_None); resultobj = Py_None;
9442 return resultobj;
9443 fail:
9444 return NULL;
9445 }
9446
9447
9448 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9449 PyObject *resultobj;
9450 wxDC *arg1 = (wxDC *) 0 ;
9451 int arg2 ;
9452 int arg3 ;
9453 int arg4 ;
9454 int arg5 ;
9455 PyObject * obj0 = 0 ;
9456 char *kwnames[] = {
9457 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9458 };
9459
9460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9462 {
9463 PyThreadState* __tstate = wxPyBeginAllowThreads();
9464 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9465
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 Py_INCREF(Py_None); resultobj = Py_None;
9470 return resultobj;
9471 fail:
9472 return NULL;
9473 }
9474
9475
9476 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj;
9478 wxDC *arg1 = (wxDC *) 0 ;
9479 wxRect *arg2 = 0 ;
9480 wxRect temp2 ;
9481 PyObject * obj0 = 0 ;
9482 PyObject * obj1 = 0 ;
9483 char *kwnames[] = {
9484 (char *) "self",(char *) "rect", NULL
9485 };
9486
9487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9489 {
9490 arg2 = &temp2;
9491 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9492 }
9493 {
9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
9495 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9496
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 Py_INCREF(Py_None); resultobj = Py_None;
9501 return resultobj;
9502 fail:
9503 return NULL;
9504 }
9505
9506
9507 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9508 PyObject *resultobj;
9509 wxDC *arg1 = (wxDC *) 0 ;
9510 int arg2 ;
9511 int arg3 ;
9512 int arg4 ;
9513 int arg5 ;
9514 double arg6 ;
9515 double arg7 ;
9516 PyObject * obj0 = 0 ;
9517 char *kwnames[] = {
9518 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9519 };
9520
9521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9526
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 Py_INCREF(Py_None); resultobj = Py_None;
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj;
9539 wxDC *arg1 = (wxDC *) 0 ;
9540 wxPoint *arg2 = 0 ;
9541 wxSize *arg3 = 0 ;
9542 double arg4 ;
9543 double arg5 ;
9544 wxPoint temp2 ;
9545 wxSize temp3 ;
9546 PyObject * obj0 = 0 ;
9547 PyObject * obj1 = 0 ;
9548 PyObject * obj2 = 0 ;
9549 char *kwnames[] = {
9550 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9551 };
9552
9553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9555 {
9556 arg2 = &temp2;
9557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9558 }
9559 {
9560 arg3 = &temp3;
9561 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9562 }
9563 {
9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
9565 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9566
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
9570 Py_INCREF(Py_None); resultobj = Py_None;
9571 return resultobj;
9572 fail:
9573 return NULL;
9574 }
9575
9576
9577 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9578 PyObject *resultobj;
9579 wxDC *arg1 = (wxDC *) 0 ;
9580 int arg2 ;
9581 int arg3 ;
9582 PyObject * obj0 = 0 ;
9583 char *kwnames[] = {
9584 (char *) "self",(char *) "x",(char *) "y", NULL
9585 };
9586
9587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 (arg1)->DrawPoint(arg2,arg3);
9592
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
9596 Py_INCREF(Py_None); resultobj = Py_None;
9597 return resultobj;
9598 fail:
9599 return NULL;
9600 }
9601
9602
9603 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj;
9605 wxDC *arg1 = (wxDC *) 0 ;
9606 wxPoint *arg2 = 0 ;
9607 wxPoint temp2 ;
9608 PyObject * obj0 = 0 ;
9609 PyObject * obj1 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "self",(char *) "pt", NULL
9612 };
9613
9614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9616 {
9617 arg2 = &temp2;
9618 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9619 }
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 (arg1)->DrawPoint((wxPoint const &)*arg2);
9623
9624 wxPyEndAllowThreads(__tstate);
9625 if (PyErr_Occurred()) SWIG_fail;
9626 }
9627 Py_INCREF(Py_None); resultobj = Py_None;
9628 return resultobj;
9629 fail:
9630 return NULL;
9631 }
9632
9633
9634 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9635 PyObject *resultobj;
9636 wxDC *arg1 = (wxDC *) 0 ;
9637 int arg2 ;
9638 int arg3 ;
9639 int arg4 ;
9640 int arg5 ;
9641 PyObject * obj0 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9651
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 Py_INCREF(Py_None); resultobj = Py_None;
9656 return resultobj;
9657 fail:
9658 return NULL;
9659 }
9660
9661
9662 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9663 PyObject *resultobj;
9664 wxDC *arg1 = (wxDC *) 0 ;
9665 wxPoint *arg2 = 0 ;
9666 wxSize *arg3 = 0 ;
9667 wxPoint temp2 ;
9668 wxSize temp3 ;
9669 PyObject * obj0 = 0 ;
9670 PyObject * obj1 = 0 ;
9671 PyObject * obj2 = 0 ;
9672 char *kwnames[] = {
9673 (char *) "self",(char *) "pt",(char *) "sz", NULL
9674 };
9675
9676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9678 {
9679 arg2 = &temp2;
9680 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9681 }
9682 {
9683 arg3 = &temp3;
9684 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9685 }
9686 {
9687 PyThreadState* __tstate = wxPyBeginAllowThreads();
9688 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9689
9690 wxPyEndAllowThreads(__tstate);
9691 if (PyErr_Occurred()) SWIG_fail;
9692 }
9693 Py_INCREF(Py_None); resultobj = Py_None;
9694 return resultobj;
9695 fail:
9696 return NULL;
9697 }
9698
9699
9700 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9701 PyObject *resultobj;
9702 wxDC *arg1 = (wxDC *) 0 ;
9703 wxRect *arg2 = 0 ;
9704 wxRect temp2 ;
9705 PyObject * obj0 = 0 ;
9706 PyObject * obj1 = 0 ;
9707 char *kwnames[] = {
9708 (char *) "self",(char *) "rect", NULL
9709 };
9710
9711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9713 {
9714 arg2 = &temp2;
9715 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9716 }
9717 {
9718 PyThreadState* __tstate = wxPyBeginAllowThreads();
9719 (arg1)->DrawRectangle((wxRect const &)*arg2);
9720
9721 wxPyEndAllowThreads(__tstate);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
9724 Py_INCREF(Py_None); resultobj = Py_None;
9725 return resultobj;
9726 fail:
9727 return NULL;
9728 }
9729
9730
9731 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9732 PyObject *resultobj;
9733 wxDC *arg1 = (wxDC *) 0 ;
9734 int arg2 ;
9735 int arg3 ;
9736 int arg4 ;
9737 int arg5 ;
9738 double arg6 ;
9739 PyObject * obj0 = 0 ;
9740 char *kwnames[] = {
9741 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9742 };
9743
9744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9746 {
9747 PyThreadState* __tstate = wxPyBeginAllowThreads();
9748 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9749
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 Py_INCREF(Py_None); resultobj = Py_None;
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj;
9762 wxDC *arg1 = (wxDC *) 0 ;
9763 wxPoint *arg2 = 0 ;
9764 wxSize *arg3 = 0 ;
9765 double arg4 ;
9766 wxPoint temp2 ;
9767 wxSize temp3 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 PyObject * obj2 = 0 ;
9771 char *kwnames[] = {
9772 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9773 };
9774
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9777 {
9778 arg2 = &temp2;
9779 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9780 }
9781 {
9782 arg3 = &temp3;
9783 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9784 }
9785 {
9786 PyThreadState* __tstate = wxPyBeginAllowThreads();
9787 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9788
9789 wxPyEndAllowThreads(__tstate);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 }
9792 Py_INCREF(Py_None); resultobj = Py_None;
9793 return resultobj;
9794 fail:
9795 return NULL;
9796 }
9797
9798
9799 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9800 PyObject *resultobj;
9801 wxDC *arg1 = (wxDC *) 0 ;
9802 wxRect *arg2 = 0 ;
9803 double arg3 ;
9804 wxRect temp2 ;
9805 PyObject * obj0 = 0 ;
9806 PyObject * obj1 = 0 ;
9807 char *kwnames[] = {
9808 (char *) "self",(char *) "r",(char *) "radius", NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9813 {
9814 arg2 = &temp2;
9815 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9816 }
9817 {
9818 PyThreadState* __tstate = wxPyBeginAllowThreads();
9819 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9820
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 Py_INCREF(Py_None); resultobj = Py_None;
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj;
9833 wxDC *arg1 = (wxDC *) 0 ;
9834 int arg2 ;
9835 int arg3 ;
9836 int arg4 ;
9837 PyObject * obj0 = 0 ;
9838 char *kwnames[] = {
9839 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
9840 };
9841
9842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 (arg1)->DrawCircle(arg2,arg3,arg4);
9847
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 Py_INCREF(Py_None); resultobj = Py_None;
9852 return resultobj;
9853 fail:
9854 return NULL;
9855 }
9856
9857
9858 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
9859 PyObject *resultobj;
9860 wxDC *arg1 = (wxDC *) 0 ;
9861 wxPoint *arg2 = 0 ;
9862 int arg3 ;
9863 wxPoint temp2 ;
9864 PyObject * obj0 = 0 ;
9865 PyObject * obj1 = 0 ;
9866 char *kwnames[] = {
9867 (char *) "self",(char *) "pt",(char *) "radius", NULL
9868 };
9869
9870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
9871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9872 {
9873 arg2 = &temp2;
9874 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9875 }
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
9879
9880 wxPyEndAllowThreads(__tstate);
9881 if (PyErr_Occurred()) SWIG_fail;
9882 }
9883 Py_INCREF(Py_None); resultobj = Py_None;
9884 return resultobj;
9885 fail:
9886 return NULL;
9887 }
9888
9889
9890 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9891 PyObject *resultobj;
9892 wxDC *arg1 = (wxDC *) 0 ;
9893 int arg2 ;
9894 int arg3 ;
9895 int arg4 ;
9896 int arg5 ;
9897 PyObject * obj0 = 0 ;
9898 char *kwnames[] = {
9899 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9900 };
9901
9902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 Py_INCREF(Py_None); resultobj = Py_None;
9912 return resultobj;
9913 fail:
9914 return NULL;
9915 }
9916
9917
9918 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxDC *arg1 = (wxDC *) 0 ;
9921 wxPoint *arg2 = 0 ;
9922 wxSize *arg3 = 0 ;
9923 wxPoint temp2 ;
9924 wxSize temp3 ;
9925 PyObject * obj0 = 0 ;
9926 PyObject * obj1 = 0 ;
9927 PyObject * obj2 = 0 ;
9928 char *kwnames[] = {
9929 (char *) "self",(char *) "pt",(char *) "sz", NULL
9930 };
9931
9932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
9933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9934 {
9935 arg2 = &temp2;
9936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9937 }
9938 {
9939 arg3 = &temp3;
9940 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9941 }
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
9945
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 Py_INCREF(Py_None); resultobj = Py_None;
9950 return resultobj;
9951 fail:
9952 return NULL;
9953 }
9954
9955
9956 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj;
9958 wxDC *arg1 = (wxDC *) 0 ;
9959 wxRect *arg2 = 0 ;
9960 wxRect temp2 ;
9961 PyObject * obj0 = 0 ;
9962 PyObject * obj1 = 0 ;
9963 char *kwnames[] = {
9964 (char *) "self",(char *) "rect", NULL
9965 };
9966
9967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
9968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9969 {
9970 arg2 = &temp2;
9971 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9972 }
9973 {
9974 PyThreadState* __tstate = wxPyBeginAllowThreads();
9975 (arg1)->DrawEllipse((wxRect const &)*arg2);
9976
9977 wxPyEndAllowThreads(__tstate);
9978 if (PyErr_Occurred()) SWIG_fail;
9979 }
9980 Py_INCREF(Py_None); resultobj = Py_None;
9981 return resultobj;
9982 fail:
9983 return NULL;
9984 }
9985
9986
9987 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9988 PyObject *resultobj;
9989 wxDC *arg1 = (wxDC *) 0 ;
9990 wxIcon *arg2 = 0 ;
9991 int arg3 ;
9992 int arg4 ;
9993 PyObject * obj0 = 0 ;
9994 PyObject * obj1 = 0 ;
9995 char *kwnames[] = {
9996 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
9997 };
9998
9999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10001 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10002 if (arg2 == NULL) {
10003 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10004 }
10005 {
10006 PyThreadState* __tstate = wxPyBeginAllowThreads();
10007 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
10008
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) SWIG_fail;
10011 }
10012 Py_INCREF(Py_None); resultobj = Py_None;
10013 return resultobj;
10014 fail:
10015 return NULL;
10016 }
10017
10018
10019 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10020 PyObject *resultobj;
10021 wxDC *arg1 = (wxDC *) 0 ;
10022 wxIcon *arg2 = 0 ;
10023 wxPoint *arg3 = 0 ;
10024 wxPoint temp3 ;
10025 PyObject * obj0 = 0 ;
10026 PyObject * obj1 = 0 ;
10027 PyObject * obj2 = 0 ;
10028 char *kwnames[] = {
10029 (char *) "self",(char *) "icon",(char *) "pt", NULL
10030 };
10031
10032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
10033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10034 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10035 if (arg2 == NULL) {
10036 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10037 }
10038 {
10039 arg3 = &temp3;
10040 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10041 }
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 Py_INCREF(Py_None); resultobj = Py_None;
10050 return resultobj;
10051 fail:
10052 return NULL;
10053 }
10054
10055
10056 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10057 PyObject *resultobj;
10058 wxDC *arg1 = (wxDC *) 0 ;
10059 wxBitmap *arg2 = 0 ;
10060 int arg3 ;
10061 int arg4 ;
10062 bool arg5 = (bool) False ;
10063 PyObject * obj0 = 0 ;
10064 PyObject * obj1 = 0 ;
10065 PyObject * obj4 = 0 ;
10066 char *kwnames[] = {
10067 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
10068 };
10069
10070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
10071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10072 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10073 if (arg2 == NULL) {
10074 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10075 }
10076 if (obj4) {
10077 arg5 = PyInt_AsLong(obj4) ? true : false;
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
10080 {
10081 PyThreadState* __tstate = wxPyBeginAllowThreads();
10082 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
10083
10084 wxPyEndAllowThreads(__tstate);
10085 if (PyErr_Occurred()) SWIG_fail;
10086 }
10087 Py_INCREF(Py_None); resultobj = Py_None;
10088 return resultobj;
10089 fail:
10090 return NULL;
10091 }
10092
10093
10094 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10095 PyObject *resultobj;
10096 wxDC *arg1 = (wxDC *) 0 ;
10097 wxBitmap *arg2 = 0 ;
10098 wxPoint *arg3 = 0 ;
10099 bool arg4 = (bool) False ;
10100 wxPoint temp3 ;
10101 PyObject * obj0 = 0 ;
10102 PyObject * obj1 = 0 ;
10103 PyObject * obj2 = 0 ;
10104 PyObject * obj3 = 0 ;
10105 char *kwnames[] = {
10106 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
10107 };
10108
10109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10111 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10112 if (arg2 == NULL) {
10113 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10114 }
10115 {
10116 arg3 = &temp3;
10117 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10118 }
10119 if (obj3) {
10120 arg4 = PyInt_AsLong(obj3) ? true : false;
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 {
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10126
10127 wxPyEndAllowThreads(__tstate);
10128 if (PyErr_Occurred()) SWIG_fail;
10129 }
10130 Py_INCREF(Py_None); resultobj = Py_None;
10131 return resultobj;
10132 fail:
10133 return NULL;
10134 }
10135
10136
10137 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10138 PyObject *resultobj;
10139 wxDC *arg1 = (wxDC *) 0 ;
10140 wxString *arg2 = 0 ;
10141 int arg3 ;
10142 int arg4 ;
10143 bool temp2 = False ;
10144 PyObject * obj0 = 0 ;
10145 PyObject * obj1 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10152 {
10153 arg2 = wxString_in_helper(obj1);
10154 if (arg2 == NULL) SWIG_fail;
10155 temp2 = True;
10156 }
10157 {
10158 PyThreadState* __tstate = wxPyBeginAllowThreads();
10159 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10160
10161 wxPyEndAllowThreads(__tstate);
10162 if (PyErr_Occurred()) SWIG_fail;
10163 }
10164 Py_INCREF(Py_None); resultobj = Py_None;
10165 {
10166 if (temp2)
10167 delete arg2;
10168 }
10169 return resultobj;
10170 fail:
10171 {
10172 if (temp2)
10173 delete arg2;
10174 }
10175 return NULL;
10176 }
10177
10178
10179 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj;
10181 wxDC *arg1 = (wxDC *) 0 ;
10182 wxString *arg2 = 0 ;
10183 wxPoint *arg3 = 0 ;
10184 bool temp2 = False ;
10185 wxPoint temp3 ;
10186 PyObject * obj0 = 0 ;
10187 PyObject * obj1 = 0 ;
10188 PyObject * obj2 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self",(char *) "text",(char *) "pt", NULL
10191 };
10192
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10195 {
10196 arg2 = wxString_in_helper(obj1);
10197 if (arg2 == NULL) SWIG_fail;
10198 temp2 = True;
10199 }
10200 {
10201 arg3 = &temp3;
10202 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10203 }
10204 {
10205 PyThreadState* __tstate = wxPyBeginAllowThreads();
10206 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10207
10208 wxPyEndAllowThreads(__tstate);
10209 if (PyErr_Occurred()) SWIG_fail;
10210 }
10211 Py_INCREF(Py_None); resultobj = Py_None;
10212 {
10213 if (temp2)
10214 delete arg2;
10215 }
10216 return resultobj;
10217 fail:
10218 {
10219 if (temp2)
10220 delete arg2;
10221 }
10222 return NULL;
10223 }
10224
10225
10226 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10227 PyObject *resultobj;
10228 wxDC *arg1 = (wxDC *) 0 ;
10229 wxString *arg2 = 0 ;
10230 int arg3 ;
10231 int arg4 ;
10232 double arg5 ;
10233 bool temp2 = False ;
10234 PyObject * obj0 = 0 ;
10235 PyObject * obj1 = 0 ;
10236 char *kwnames[] = {
10237 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10238 };
10239
10240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10242 {
10243 arg2 = wxString_in_helper(obj1);
10244 if (arg2 == NULL) SWIG_fail;
10245 temp2 = True;
10246 }
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10250
10251 wxPyEndAllowThreads(__tstate);
10252 if (PyErr_Occurred()) SWIG_fail;
10253 }
10254 Py_INCREF(Py_None); resultobj = Py_None;
10255 {
10256 if (temp2)
10257 delete arg2;
10258 }
10259 return resultobj;
10260 fail:
10261 {
10262 if (temp2)
10263 delete arg2;
10264 }
10265 return NULL;
10266 }
10267
10268
10269 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10270 PyObject *resultobj;
10271 wxDC *arg1 = (wxDC *) 0 ;
10272 wxString *arg2 = 0 ;
10273 wxPoint *arg3 = 0 ;
10274 double arg4 ;
10275 bool temp2 = False ;
10276 wxPoint temp3 ;
10277 PyObject * obj0 = 0 ;
10278 PyObject * obj1 = 0 ;
10279 PyObject * obj2 = 0 ;
10280 char *kwnames[] = {
10281 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10282 };
10283
10284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10286 {
10287 arg2 = wxString_in_helper(obj1);
10288 if (arg2 == NULL) SWIG_fail;
10289 temp2 = True;
10290 }
10291 {
10292 arg3 = &temp3;
10293 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10294 }
10295 {
10296 PyThreadState* __tstate = wxPyBeginAllowThreads();
10297 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10298
10299 wxPyEndAllowThreads(__tstate);
10300 if (PyErr_Occurred()) SWIG_fail;
10301 }
10302 Py_INCREF(Py_None); resultobj = Py_None;
10303 {
10304 if (temp2)
10305 delete arg2;
10306 }
10307 return resultobj;
10308 fail:
10309 {
10310 if (temp2)
10311 delete arg2;
10312 }
10313 return NULL;
10314 }
10315
10316
10317 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj;
10319 wxDC *arg1 = (wxDC *) 0 ;
10320 int arg2 ;
10321 int arg3 ;
10322 int arg4 ;
10323 int arg5 ;
10324 wxDC *arg6 = (wxDC *) 0 ;
10325 int arg7 ;
10326 int arg8 ;
10327 int arg9 = (int) wxCOPY ;
10328 bool arg10 = (bool) False ;
10329 int arg11 = (int) -1 ;
10330 int arg12 = (int) -1 ;
10331 bool result;
10332 PyObject * obj0 = 0 ;
10333 PyObject * obj5 = 0 ;
10334 PyObject * obj9 = 0 ;
10335 char *kwnames[] = {
10336 (char *) "self",(char *) "xdest",(char *) "ydest",(char *) "width",(char *) "height",(char *) "source",(char *) "xsrc",(char *) "ysrc",(char *) "rop",(char *) "useMask",(char *) "xsrcMask",(char *) "ysrcMask", NULL
10337 };
10338
10339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiiOii|iOii:DC_BlitXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&arg7,&arg8,&arg9,&obj9,&arg11,&arg12)) goto fail;
10340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10341 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10342 if (obj9) {
10343 arg10 = PyInt_AsLong(obj9) ? true : false;
10344 if (PyErr_Occurred()) SWIG_fail;
10345 }
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = PyInt_FromLong((long)result);
10354 return resultobj;
10355 fail:
10356 return NULL;
10357 }
10358
10359
10360 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj;
10362 wxDC *arg1 = (wxDC *) 0 ;
10363 wxPoint *arg2 = 0 ;
10364 wxSize *arg3 = 0 ;
10365 wxDC *arg4 = (wxDC *) 0 ;
10366 wxPoint *arg5 = 0 ;
10367 int arg6 = (int) wxCOPY ;
10368 bool arg7 = (bool) False ;
10369 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10370 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10371 bool result;
10372 wxPoint temp2 ;
10373 wxSize temp3 ;
10374 wxPoint temp5 ;
10375 wxPoint temp8 ;
10376 PyObject * obj0 = 0 ;
10377 PyObject * obj1 = 0 ;
10378 PyObject * obj2 = 0 ;
10379 PyObject * obj3 = 0 ;
10380 PyObject * obj4 = 0 ;
10381 PyObject * obj6 = 0 ;
10382 PyObject * obj7 = 0 ;
10383 char *kwnames[] = {
10384 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10385 };
10386
10387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10389 {
10390 arg2 = &temp2;
10391 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10392 }
10393 {
10394 arg3 = &temp3;
10395 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10396 }
10397 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10398 {
10399 arg5 = &temp5;
10400 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10401 }
10402 if (obj6) {
10403 arg7 = PyInt_AsLong(obj6) ? true : false;
10404 if (PyErr_Occurred()) SWIG_fail;
10405 }
10406 if (obj7) {
10407 {
10408 arg8 = &temp8;
10409 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10410 }
10411 }
10412 {
10413 PyThreadState* __tstate = wxPyBeginAllowThreads();
10414 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10415
10416 wxPyEndAllowThreads(__tstate);
10417 if (PyErr_Occurred()) SWIG_fail;
10418 }
10419 resultobj = PyInt_FromLong((long)result);
10420 return resultobj;
10421 fail:
10422 return NULL;
10423 }
10424
10425
10426 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10427 PyObject *resultobj;
10428 wxDC *arg1 = (wxDC *) 0 ;
10429 int arg2 ;
10430 wxPoint *arg3 = (wxPoint *) 0 ;
10431 int arg4 = (int) 0 ;
10432 int arg5 = (int) 0 ;
10433 PyObject * obj0 = 0 ;
10434 PyObject * obj1 = 0 ;
10435 char *kwnames[] = {
10436 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10437 };
10438
10439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10441 {
10442 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10443 if (arg3 == NULL) SWIG_fail;
10444 }
10445 {
10446 PyThreadState* __tstate = wxPyBeginAllowThreads();
10447 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10448
10449 wxPyEndAllowThreads(__tstate);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 }
10452 Py_INCREF(Py_None); resultobj = Py_None;
10453 {
10454 if (arg3) delete [] arg3;
10455 }
10456 return resultobj;
10457 fail:
10458 {
10459 if (arg3) delete [] arg3;
10460 }
10461 return NULL;
10462 }
10463
10464
10465 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10466 PyObject *resultobj;
10467 wxDC *arg1 = (wxDC *) 0 ;
10468 int arg2 ;
10469 wxPoint *arg3 = (wxPoint *) 0 ;
10470 int arg4 = (int) 0 ;
10471 int arg5 = (int) 0 ;
10472 int arg6 = (int) wxODDEVEN_RULE ;
10473 PyObject * obj0 = 0 ;
10474 PyObject * obj1 = 0 ;
10475 char *kwnames[] = {
10476 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10477 };
10478
10479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10481 {
10482 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10483 if (arg3 == NULL) SWIG_fail;
10484 }
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10488
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 Py_INCREF(Py_None); resultobj = Py_None;
10493 {
10494 if (arg3) delete [] arg3;
10495 }
10496 return resultobj;
10497 fail:
10498 {
10499 if (arg3) delete [] arg3;
10500 }
10501 return NULL;
10502 }
10503
10504
10505 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10506 PyObject *resultobj;
10507 wxDC *arg1 = (wxDC *) 0 ;
10508 wxString *arg2 = 0 ;
10509 wxRect *arg3 = 0 ;
10510 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10511 int arg5 = (int) -1 ;
10512 bool temp2 = False ;
10513 wxRect temp3 ;
10514 PyObject * obj0 = 0 ;
10515 PyObject * obj1 = 0 ;
10516 PyObject * obj2 = 0 ;
10517 char *kwnames[] = {
10518 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10519 };
10520
10521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10523 {
10524 arg2 = wxString_in_helper(obj1);
10525 if (arg2 == NULL) SWIG_fail;
10526 temp2 = True;
10527 }
10528 {
10529 arg3 = &temp3;
10530 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10531 }
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10535
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 Py_INCREF(Py_None); resultobj = Py_None;
10540 {
10541 if (temp2)
10542 delete arg2;
10543 }
10544 return resultobj;
10545 fail:
10546 {
10547 if (temp2)
10548 delete arg2;
10549 }
10550 return NULL;
10551 }
10552
10553
10554 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10555 PyObject *resultobj;
10556 wxDC *arg1 = (wxDC *) 0 ;
10557 wxString *arg2 = 0 ;
10558 wxBitmap *arg3 = 0 ;
10559 wxRect *arg4 = 0 ;
10560 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10561 int arg6 = (int) -1 ;
10562 wxRect result;
10563 bool temp2 = False ;
10564 wxRect temp4 ;
10565 PyObject * obj0 = 0 ;
10566 PyObject * obj1 = 0 ;
10567 PyObject * obj2 = 0 ;
10568 PyObject * obj3 = 0 ;
10569 char *kwnames[] = {
10570 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10571 };
10572
10573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10575 {
10576 arg2 = wxString_in_helper(obj1);
10577 if (arg2 == NULL) SWIG_fail;
10578 temp2 = True;
10579 }
10580 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10581 if (arg3 == NULL) {
10582 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10583 }
10584 {
10585 arg4 = &temp4;
10586 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10587 }
10588 {
10589 PyThreadState* __tstate = wxPyBeginAllowThreads();
10590 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10591
10592 wxPyEndAllowThreads(__tstate);
10593 if (PyErr_Occurred()) SWIG_fail;
10594 }
10595 {
10596 wxRect * resultptr;
10597 resultptr = new wxRect((wxRect &) result);
10598 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10599 }
10600 {
10601 if (temp2)
10602 delete arg2;
10603 }
10604 return resultobj;
10605 fail:
10606 {
10607 if (temp2)
10608 delete arg2;
10609 }
10610 return NULL;
10611 }
10612
10613
10614 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj;
10616 wxDC *arg1 = (wxDC *) 0 ;
10617 int arg2 ;
10618 wxPoint *arg3 = (wxPoint *) 0 ;
10619 PyObject * obj0 = 0 ;
10620 PyObject * obj1 = 0 ;
10621 char *kwnames[] = {
10622 (char *) "self",(char *) "points", NULL
10623 };
10624
10625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10627 {
10628 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10629 if (arg3 == NULL) SWIG_fail;
10630 }
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 (arg1)->DrawSpline(arg2,arg3);
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 Py_INCREF(Py_None); resultobj = Py_None;
10639 {
10640 if (arg3) delete [] arg3;
10641 }
10642 return resultobj;
10643 fail:
10644 {
10645 if (arg3) delete [] arg3;
10646 }
10647 return NULL;
10648 }
10649
10650
10651 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj;
10653 wxDC *arg1 = (wxDC *) 0 ;
10654 PyObject * obj0 = 0 ;
10655 char *kwnames[] = {
10656 (char *) "self", NULL
10657 };
10658
10659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10661 {
10662 PyThreadState* __tstate = wxPyBeginAllowThreads();
10663 (arg1)->Clear();
10664
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 Py_INCREF(Py_None); resultobj = Py_None;
10669 return resultobj;
10670 fail:
10671 return NULL;
10672 }
10673
10674
10675 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10676 PyObject *resultobj;
10677 wxDC *arg1 = (wxDC *) 0 ;
10678 wxString *arg2 = 0 ;
10679 bool result;
10680 bool temp2 = False ;
10681 PyObject * obj0 = 0 ;
10682 PyObject * obj1 = 0 ;
10683 char *kwnames[] = {
10684 (char *) "self",(char *) "message", NULL
10685 };
10686
10687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10689 {
10690 arg2 = wxString_in_helper(obj1);
10691 if (arg2 == NULL) SWIG_fail;
10692 temp2 = True;
10693 }
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10697
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 resultobj = PyInt_FromLong((long)result);
10702 {
10703 if (temp2)
10704 delete arg2;
10705 }
10706 return resultobj;
10707 fail:
10708 {
10709 if (temp2)
10710 delete arg2;
10711 }
10712 return NULL;
10713 }
10714
10715
10716 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj;
10718 wxDC *arg1 = (wxDC *) 0 ;
10719 PyObject * obj0 = 0 ;
10720 char *kwnames[] = {
10721 (char *) "self", NULL
10722 };
10723
10724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10726 {
10727 PyThreadState* __tstate = wxPyBeginAllowThreads();
10728 (arg1)->EndDoc();
10729
10730 wxPyEndAllowThreads(__tstate);
10731 if (PyErr_Occurred()) SWIG_fail;
10732 }
10733 Py_INCREF(Py_None); resultobj = Py_None;
10734 return resultobj;
10735 fail:
10736 return NULL;
10737 }
10738
10739
10740 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10741 PyObject *resultobj;
10742 wxDC *arg1 = (wxDC *) 0 ;
10743 PyObject * obj0 = 0 ;
10744 char *kwnames[] = {
10745 (char *) "self", NULL
10746 };
10747
10748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 (arg1)->StartPage();
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 Py_INCREF(Py_None); resultobj = Py_None;
10758 return resultobj;
10759 fail:
10760 return NULL;
10761 }
10762
10763
10764 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10765 PyObject *resultobj;
10766 wxDC *arg1 = (wxDC *) 0 ;
10767 PyObject * obj0 = 0 ;
10768 char *kwnames[] = {
10769 (char *) "self", NULL
10770 };
10771
10772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10774 {
10775 PyThreadState* __tstate = wxPyBeginAllowThreads();
10776 (arg1)->EndPage();
10777
10778 wxPyEndAllowThreads(__tstate);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 }
10781 Py_INCREF(Py_None); resultobj = Py_None;
10782 return resultobj;
10783 fail:
10784 return NULL;
10785 }
10786
10787
10788 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10789 PyObject *resultobj;
10790 wxDC *arg1 = (wxDC *) 0 ;
10791 wxFont *arg2 = 0 ;
10792 PyObject * obj0 = 0 ;
10793 PyObject * obj1 = 0 ;
10794 char *kwnames[] = {
10795 (char *) "self",(char *) "font", NULL
10796 };
10797
10798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10800 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10801 if (arg2 == NULL) {
10802 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10803 }
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 (arg1)->SetFont((wxFont const &)*arg2);
10807
10808 wxPyEndAllowThreads(__tstate);
10809 if (PyErr_Occurred()) SWIG_fail;
10810 }
10811 Py_INCREF(Py_None); resultobj = Py_None;
10812 return resultobj;
10813 fail:
10814 return NULL;
10815 }
10816
10817
10818 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
10819 PyObject *resultobj;
10820 wxDC *arg1 = (wxDC *) 0 ;
10821 wxPen *arg2 = 0 ;
10822 PyObject * obj0 = 0 ;
10823 PyObject * obj1 = 0 ;
10824 char *kwnames[] = {
10825 (char *) "self",(char *) "pen", NULL
10826 };
10827
10828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
10829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10830 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10831 if (arg2 == NULL) {
10832 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10833 }
10834 {
10835 PyThreadState* __tstate = wxPyBeginAllowThreads();
10836 (arg1)->SetPen((wxPen const &)*arg2);
10837
10838 wxPyEndAllowThreads(__tstate);
10839 if (PyErr_Occurred()) SWIG_fail;
10840 }
10841 Py_INCREF(Py_None); resultobj = Py_None;
10842 return resultobj;
10843 fail:
10844 return NULL;
10845 }
10846
10847
10848 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
10849 PyObject *resultobj;
10850 wxDC *arg1 = (wxDC *) 0 ;
10851 wxBrush *arg2 = 0 ;
10852 PyObject * obj0 = 0 ;
10853 PyObject * obj1 = 0 ;
10854 char *kwnames[] = {
10855 (char *) "self",(char *) "brush", NULL
10856 };
10857
10858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
10859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10860 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10861 if (arg2 == NULL) {
10862 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10863 }
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 (arg1)->SetBrush((wxBrush const &)*arg2);
10867
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 Py_INCREF(Py_None); resultobj = Py_None;
10872 return resultobj;
10873 fail:
10874 return NULL;
10875 }
10876
10877
10878 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
10879 PyObject *resultobj;
10880 wxDC *arg1 = (wxDC *) 0 ;
10881 wxBrush *arg2 = 0 ;
10882 PyObject * obj0 = 0 ;
10883 PyObject * obj1 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self",(char *) "brush", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10890 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10891 if (arg2 == NULL) {
10892 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10893 }
10894 {
10895 PyThreadState* __tstate = wxPyBeginAllowThreads();
10896 (arg1)->SetBackground((wxBrush const &)*arg2);
10897
10898 wxPyEndAllowThreads(__tstate);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 Py_INCREF(Py_None); resultobj = Py_None;
10902 return resultobj;
10903 fail:
10904 return NULL;
10905 }
10906
10907
10908 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
10909 PyObject *resultobj;
10910 wxDC *arg1 = (wxDC *) 0 ;
10911 int arg2 ;
10912 PyObject * obj0 = 0 ;
10913 char *kwnames[] = {
10914 (char *) "self",(char *) "mode", NULL
10915 };
10916
10917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
10918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10919 {
10920 PyThreadState* __tstate = wxPyBeginAllowThreads();
10921 (arg1)->SetBackgroundMode(arg2);
10922
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 Py_INCREF(Py_None); resultobj = Py_None;
10927 return resultobj;
10928 fail:
10929 return NULL;
10930 }
10931
10932
10933 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10934 PyObject *resultobj;
10935 wxDC *arg1 = (wxDC *) 0 ;
10936 wxPalette *arg2 = 0 ;
10937 PyObject * obj0 = 0 ;
10938 PyObject * obj1 = 0 ;
10939 char *kwnames[] = {
10940 (char *) "self",(char *) "palette", NULL
10941 };
10942
10943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
10944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10945 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10946 if (arg2 == NULL) {
10947 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10948 }
10949 {
10950 PyThreadState* __tstate = wxPyBeginAllowThreads();
10951 (arg1)->SetPalette((wxPalette const &)*arg2);
10952
10953 wxPyEndAllowThreads(__tstate);
10954 if (PyErr_Occurred()) SWIG_fail;
10955 }
10956 Py_INCREF(Py_None); resultobj = Py_None;
10957 return resultobj;
10958 fail:
10959 return NULL;
10960 }
10961
10962
10963 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10964 PyObject *resultobj;
10965 wxDC *arg1 = (wxDC *) 0 ;
10966 int arg2 ;
10967 int arg3 ;
10968 int arg4 ;
10969 int arg5 ;
10970 PyObject * obj0 = 0 ;
10971 char *kwnames[] = {
10972 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10973 };
10974
10975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
10980
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 Py_INCREF(Py_None); resultobj = Py_None;
10985 return resultobj;
10986 fail:
10987 return NULL;
10988 }
10989
10990
10991 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj;
10993 wxDC *arg1 = (wxDC *) 0 ;
10994 wxPoint *arg2 = 0 ;
10995 wxSize *arg3 = 0 ;
10996 wxPoint temp2 ;
10997 wxSize temp3 ;
10998 PyObject * obj0 = 0 ;
10999 PyObject * obj1 = 0 ;
11000 PyObject * obj2 = 0 ;
11001 char *kwnames[] = {
11002 (char *) "self",(char *) "pt",(char *) "sz", NULL
11003 };
11004
11005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
11006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11007 {
11008 arg2 = &temp2;
11009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11010 }
11011 {
11012 arg3 = &temp3;
11013 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11014 }
11015 {
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
11018
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 Py_INCREF(Py_None); resultobj = Py_None;
11023 return resultobj;
11024 fail:
11025 return NULL;
11026 }
11027
11028
11029 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11030 PyObject *resultobj;
11031 wxDC *arg1 = (wxDC *) 0 ;
11032 wxRect *arg2 = 0 ;
11033 wxRect temp2 ;
11034 PyObject * obj0 = 0 ;
11035 PyObject * obj1 = 0 ;
11036 char *kwnames[] = {
11037 (char *) "self",(char *) "rect", NULL
11038 };
11039
11040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
11041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11042 {
11043 arg2 = &temp2;
11044 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11045 }
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 (arg1)->SetClippingRegion((wxRect const &)*arg2);
11049
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 Py_INCREF(Py_None); resultobj = Py_None;
11054 return resultobj;
11055 fail:
11056 return NULL;
11057 }
11058
11059
11060 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11061 PyObject *resultobj;
11062 wxDC *arg1 = (wxDC *) 0 ;
11063 wxRegion *arg2 = 0 ;
11064 PyObject * obj0 = 0 ;
11065 PyObject * obj1 = 0 ;
11066 char *kwnames[] = {
11067 (char *) "self",(char *) "region", NULL
11068 };
11069
11070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11072 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11073 if (arg2 == NULL) {
11074 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11075 }
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11079
11080 wxPyEndAllowThreads(__tstate);
11081 if (PyErr_Occurred()) SWIG_fail;
11082 }
11083 Py_INCREF(Py_None); resultobj = Py_None;
11084 return resultobj;
11085 fail:
11086 return NULL;
11087 }
11088
11089
11090 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11091 PyObject *resultobj;
11092 wxDC *arg1 = (wxDC *) 0 ;
11093 PyObject * obj0 = 0 ;
11094 char *kwnames[] = {
11095 (char *) "self", NULL
11096 };
11097
11098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
11099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 (arg1)->DestroyClippingRegion();
11103
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 Py_INCREF(Py_None); resultobj = Py_None;
11108 return resultobj;
11109 fail:
11110 return NULL;
11111 }
11112
11113
11114 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11115 PyObject *resultobj;
11116 wxDC *arg1 = (wxDC *) 0 ;
11117 int *arg2 = (int *) 0 ;
11118 int *arg3 = (int *) 0 ;
11119 int *arg4 = (int *) 0 ;
11120 int *arg5 = (int *) 0 ;
11121 int temp2 ;
11122 int temp3 ;
11123 int temp4 ;
11124 int temp5 ;
11125 PyObject * obj0 = 0 ;
11126 char *kwnames[] = {
11127 (char *) "self", NULL
11128 };
11129
11130 arg2 = &temp2;
11131 arg3 = &temp3;
11132 arg4 = &temp4;
11133 arg5 = &temp5;
11134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11139
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 Py_INCREF(Py_None); resultobj = Py_None;
11144 {
11145 PyObject *o = PyInt_FromLong((long) (*arg2));
11146 resultobj = t_output_helper(resultobj,o);
11147 }
11148 {
11149 PyObject *o = PyInt_FromLong((long) (*arg3));
11150 resultobj = t_output_helper(resultobj,o);
11151 }
11152 {
11153 PyObject *o = PyInt_FromLong((long) (*arg4));
11154 resultobj = t_output_helper(resultobj,o);
11155 }
11156 {
11157 PyObject *o = PyInt_FromLong((long) (*arg5));
11158 resultobj = t_output_helper(resultobj,o);
11159 }
11160 return resultobj;
11161 fail:
11162 return NULL;
11163 }
11164
11165
11166 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11167 PyObject *resultobj;
11168 wxDC *arg1 = (wxDC *) 0 ;
11169 wxRect result;
11170 PyObject * obj0 = 0 ;
11171 char *kwnames[] = {
11172 (char *) "self", NULL
11173 };
11174
11175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11177 {
11178 PyThreadState* __tstate = wxPyBeginAllowThreads();
11179 result = wxDC_GetClippingRect(arg1);
11180
11181 wxPyEndAllowThreads(__tstate);
11182 if (PyErr_Occurred()) SWIG_fail;
11183 }
11184 {
11185 wxRect * resultptr;
11186 resultptr = new wxRect((wxRect &) result);
11187 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11188 }
11189 return resultobj;
11190 fail:
11191 return NULL;
11192 }
11193
11194
11195 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj;
11197 wxDC *arg1 = (wxDC *) 0 ;
11198 int result;
11199 PyObject * obj0 = 0 ;
11200 char *kwnames[] = {
11201 (char *) "self", NULL
11202 };
11203
11204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 result = (int)((wxDC const *)arg1)->GetCharHeight();
11209
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 resultobj = PyInt_FromLong((long)result);
11214 return resultobj;
11215 fail:
11216 return NULL;
11217 }
11218
11219
11220 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11221 PyObject *resultobj;
11222 wxDC *arg1 = (wxDC *) 0 ;
11223 int result;
11224 PyObject * obj0 = 0 ;
11225 char *kwnames[] = {
11226 (char *) "self", NULL
11227 };
11228
11229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11231 {
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 result = (int)((wxDC const *)arg1)->GetCharWidth();
11234
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 resultobj = PyInt_FromLong((long)result);
11239 return resultobj;
11240 fail:
11241 return NULL;
11242 }
11243
11244
11245 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11246 PyObject *resultobj;
11247 wxDC *arg1 = (wxDC *) 0 ;
11248 wxString *arg2 = 0 ;
11249 int *arg3 = (int *) 0 ;
11250 int *arg4 = (int *) 0 ;
11251 bool temp2 = False ;
11252 int temp3 ;
11253 int temp4 ;
11254 PyObject * obj0 = 0 ;
11255 PyObject * obj1 = 0 ;
11256 char *kwnames[] = {
11257 (char *) "self",(char *) "string", NULL
11258 };
11259
11260 arg3 = &temp3;
11261 arg4 = &temp4;
11262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11264 {
11265 arg2 = wxString_in_helper(obj1);
11266 if (arg2 == NULL) SWIG_fail;
11267 temp2 = True;
11268 }
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11272
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 }
11276 Py_INCREF(Py_None); resultobj = Py_None;
11277 {
11278 PyObject *o = PyInt_FromLong((long) (*arg3));
11279 resultobj = t_output_helper(resultobj,o);
11280 }
11281 {
11282 PyObject *o = PyInt_FromLong((long) (*arg4));
11283 resultobj = t_output_helper(resultobj,o);
11284 }
11285 {
11286 if (temp2)
11287 delete arg2;
11288 }
11289 return resultobj;
11290 fail:
11291 {
11292 if (temp2)
11293 delete arg2;
11294 }
11295 return NULL;
11296 }
11297
11298
11299 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11300 PyObject *resultobj;
11301 wxDC *arg1 = (wxDC *) 0 ;
11302 wxString *arg2 = 0 ;
11303 int *arg3 = (int *) 0 ;
11304 int *arg4 = (int *) 0 ;
11305 int *arg5 = (int *) 0 ;
11306 int *arg6 = (int *) 0 ;
11307 wxFont *arg7 = (wxFont *) NULL ;
11308 bool temp2 = False ;
11309 int temp3 ;
11310 int temp4 ;
11311 int temp5 ;
11312 int temp6 ;
11313 PyObject * obj0 = 0 ;
11314 PyObject * obj1 = 0 ;
11315 PyObject * obj2 = 0 ;
11316 char *kwnames[] = {
11317 (char *) "self",(char *) "string",(char *) "font", NULL
11318 };
11319
11320 arg3 = &temp3;
11321 arg4 = &temp4;
11322 arg5 = &temp5;
11323 arg6 = &temp6;
11324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11326 {
11327 arg2 = wxString_in_helper(obj1);
11328 if (arg2 == NULL) SWIG_fail;
11329 temp2 = True;
11330 }
11331 if (obj2) {
11332 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11333 }
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11337
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 Py_INCREF(Py_None); resultobj = Py_None;
11342 {
11343 PyObject *o = PyInt_FromLong((long) (*arg3));
11344 resultobj = t_output_helper(resultobj,o);
11345 }
11346 {
11347 PyObject *o = PyInt_FromLong((long) (*arg4));
11348 resultobj = t_output_helper(resultobj,o);
11349 }
11350 {
11351 PyObject *o = PyInt_FromLong((long) (*arg5));
11352 resultobj = t_output_helper(resultobj,o);
11353 }
11354 {
11355 PyObject *o = PyInt_FromLong((long) (*arg6));
11356 resultobj = t_output_helper(resultobj,o);
11357 }
11358 {
11359 if (temp2)
11360 delete arg2;
11361 }
11362 return resultobj;
11363 fail:
11364 {
11365 if (temp2)
11366 delete arg2;
11367 }
11368 return NULL;
11369 }
11370
11371
11372 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11373 PyObject *resultobj;
11374 wxDC *arg1 = (wxDC *) 0 ;
11375 wxString *arg2 = 0 ;
11376 int *arg3 = (int *) 0 ;
11377 int *arg4 = (int *) 0 ;
11378 int *arg5 = (int *) 0 ;
11379 wxFont *arg6 = (wxFont *) NULL ;
11380 bool temp2 = False ;
11381 int temp3 ;
11382 int temp4 ;
11383 int temp5 ;
11384 PyObject * obj0 = 0 ;
11385 PyObject * obj1 = 0 ;
11386 PyObject * obj2 = 0 ;
11387 char *kwnames[] = {
11388 (char *) "self",(char *) "text",(char *) "font", NULL
11389 };
11390
11391 arg3 = &temp3;
11392 arg4 = &temp4;
11393 arg5 = &temp5;
11394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11396 {
11397 arg2 = wxString_in_helper(obj1);
11398 if (arg2 == NULL) SWIG_fail;
11399 temp2 = True;
11400 }
11401 if (obj2) {
11402 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11403 }
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11407
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 Py_INCREF(Py_None); resultobj = Py_None;
11412 {
11413 PyObject *o = PyInt_FromLong((long) (*arg3));
11414 resultobj = t_output_helper(resultobj,o);
11415 }
11416 {
11417 PyObject *o = PyInt_FromLong((long) (*arg4));
11418 resultobj = t_output_helper(resultobj,o);
11419 }
11420 {
11421 PyObject *o = PyInt_FromLong((long) (*arg5));
11422 resultobj = t_output_helper(resultobj,o);
11423 }
11424 {
11425 if (temp2)
11426 delete arg2;
11427 }
11428 return resultobj;
11429 fail:
11430 {
11431 if (temp2)
11432 delete arg2;
11433 }
11434 return NULL;
11435 }
11436
11437
11438 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11439 PyObject *resultobj;
11440 wxDC *arg1 = (wxDC *) 0 ;
11441 wxSize result;
11442 PyObject * obj0 = 0 ;
11443 char *kwnames[] = {
11444 (char *) "self", NULL
11445 };
11446
11447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11449 {
11450 PyThreadState* __tstate = wxPyBeginAllowThreads();
11451 result = (arg1)->GetSize();
11452
11453 wxPyEndAllowThreads(__tstate);
11454 if (PyErr_Occurred()) SWIG_fail;
11455 }
11456 {
11457 wxSize * resultptr;
11458 resultptr = new wxSize((wxSize &) result);
11459 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11460 }
11461 return resultobj;
11462 fail:
11463 return NULL;
11464 }
11465
11466
11467 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11468 PyObject *resultobj;
11469 wxDC *arg1 = (wxDC *) 0 ;
11470 int *arg2 = (int *) 0 ;
11471 int *arg3 = (int *) 0 ;
11472 int temp2 ;
11473 int temp3 ;
11474 PyObject * obj0 = 0 ;
11475 char *kwnames[] = {
11476 (char *) "self", NULL
11477 };
11478
11479 arg2 = &temp2;
11480 arg3 = &temp3;
11481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11483 {
11484 PyThreadState* __tstate = wxPyBeginAllowThreads();
11485 (arg1)->GetSize(arg2,arg3);
11486
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 Py_INCREF(Py_None); resultobj = Py_None;
11491 {
11492 PyObject *o = PyInt_FromLong((long) (*arg2));
11493 resultobj = t_output_helper(resultobj,o);
11494 }
11495 {
11496 PyObject *o = PyInt_FromLong((long) (*arg3));
11497 resultobj = t_output_helper(resultobj,o);
11498 }
11499 return resultobj;
11500 fail:
11501 return NULL;
11502 }
11503
11504
11505 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11506 PyObject *resultobj;
11507 wxDC *arg1 = (wxDC *) 0 ;
11508 wxSize result;
11509 PyObject * obj0 = 0 ;
11510 char *kwnames[] = {
11511 (char *) "self", NULL
11512 };
11513
11514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = ((wxDC const *)arg1)->GetSizeMM();
11519
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 {
11524 wxSize * resultptr;
11525 resultptr = new wxSize((wxSize &) result);
11526 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11527 }
11528 return resultobj;
11529 fail:
11530 return NULL;
11531 }
11532
11533
11534 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11535 PyObject *resultobj;
11536 wxDC *arg1 = (wxDC *) 0 ;
11537 int *arg2 = (int *) 0 ;
11538 int *arg3 = (int *) 0 ;
11539 int temp2 ;
11540 int temp3 ;
11541 PyObject * obj0 = 0 ;
11542 char *kwnames[] = {
11543 (char *) "self", NULL
11544 };
11545
11546 arg2 = &temp2;
11547 arg3 = &temp3;
11548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
11549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11550 {
11551 PyThreadState* __tstate = wxPyBeginAllowThreads();
11552 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11553
11554 wxPyEndAllowThreads(__tstate);
11555 if (PyErr_Occurred()) SWIG_fail;
11556 }
11557 Py_INCREF(Py_None); resultobj = Py_None;
11558 {
11559 PyObject *o = PyInt_FromLong((long) (*arg2));
11560 resultobj = t_output_helper(resultobj,o);
11561 }
11562 {
11563 PyObject *o = PyInt_FromLong((long) (*arg3));
11564 resultobj = t_output_helper(resultobj,o);
11565 }
11566 return resultobj;
11567 fail:
11568 return NULL;
11569 }
11570
11571
11572 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11573 PyObject *resultobj;
11574 wxDC *arg1 = (wxDC *) 0 ;
11575 int arg2 ;
11576 int result;
11577 PyObject * obj0 = 0 ;
11578 char *kwnames[] = {
11579 (char *) "self",(char *) "x", NULL
11580 };
11581
11582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
11587
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 resultobj = PyInt_FromLong((long)result);
11592 return resultobj;
11593 fail:
11594 return NULL;
11595 }
11596
11597
11598 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11599 PyObject *resultobj;
11600 wxDC *arg1 = (wxDC *) 0 ;
11601 int arg2 ;
11602 int result;
11603 PyObject * obj0 = 0 ;
11604 char *kwnames[] = {
11605 (char *) "self",(char *) "y", NULL
11606 };
11607
11608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
11613
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 resultobj = PyInt_FromLong((long)result);
11618 return resultobj;
11619 fail:
11620 return NULL;
11621 }
11622
11623
11624 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11625 PyObject *resultobj;
11626 wxDC *arg1 = (wxDC *) 0 ;
11627 int arg2 ;
11628 int result;
11629 PyObject * obj0 = 0 ;
11630 char *kwnames[] = {
11631 (char *) "self",(char *) "x", NULL
11632 };
11633
11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11636 {
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
11639
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 resultobj = PyInt_FromLong((long)result);
11644 return resultobj;
11645 fail:
11646 return NULL;
11647 }
11648
11649
11650 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11651 PyObject *resultobj;
11652 wxDC *arg1 = (wxDC *) 0 ;
11653 int arg2 ;
11654 int result;
11655 PyObject * obj0 = 0 ;
11656 char *kwnames[] = {
11657 (char *) "self",(char *) "y", NULL
11658 };
11659
11660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11662 {
11663 PyThreadState* __tstate = wxPyBeginAllowThreads();
11664 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
11665
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 }
11669 resultobj = PyInt_FromLong((long)result);
11670 return resultobj;
11671 fail:
11672 return NULL;
11673 }
11674
11675
11676 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11677 PyObject *resultobj;
11678 wxDC *arg1 = (wxDC *) 0 ;
11679 int arg2 ;
11680 int result;
11681 PyObject * obj0 = 0 ;
11682 char *kwnames[] = {
11683 (char *) "self",(char *) "x", NULL
11684 };
11685
11686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
11691
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 resultobj = PyInt_FromLong((long)result);
11696 return resultobj;
11697 fail:
11698 return NULL;
11699 }
11700
11701
11702 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj;
11704 wxDC *arg1 = (wxDC *) 0 ;
11705 int arg2 ;
11706 int result;
11707 PyObject * obj0 = 0 ;
11708 char *kwnames[] = {
11709 (char *) "self",(char *) "y", NULL
11710 };
11711
11712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11714 {
11715 PyThreadState* __tstate = wxPyBeginAllowThreads();
11716 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
11717
11718 wxPyEndAllowThreads(__tstate);
11719 if (PyErr_Occurred()) SWIG_fail;
11720 }
11721 resultobj = PyInt_FromLong((long)result);
11722 return resultobj;
11723 fail:
11724 return NULL;
11725 }
11726
11727
11728 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11729 PyObject *resultobj;
11730 wxDC *arg1 = (wxDC *) 0 ;
11731 int arg2 ;
11732 int result;
11733 PyObject * obj0 = 0 ;
11734 char *kwnames[] = {
11735 (char *) "self",(char *) "x", NULL
11736 };
11737
11738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11740 {
11741 PyThreadState* __tstate = wxPyBeginAllowThreads();
11742 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
11743
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 resultobj = PyInt_FromLong((long)result);
11748 return resultobj;
11749 fail:
11750 return NULL;
11751 }
11752
11753
11754 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11755 PyObject *resultobj;
11756 wxDC *arg1 = (wxDC *) 0 ;
11757 int arg2 ;
11758 int result;
11759 PyObject * obj0 = 0 ;
11760 char *kwnames[] = {
11761 (char *) "self",(char *) "y", NULL
11762 };
11763
11764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11766 {
11767 PyThreadState* __tstate = wxPyBeginAllowThreads();
11768 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
11769
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 resultobj = PyInt_FromLong((long)result);
11774 return resultobj;
11775 fail:
11776 return NULL;
11777 }
11778
11779
11780 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11781 PyObject *resultobj;
11782 wxDC *arg1 = (wxDC *) 0 ;
11783 bool result;
11784 PyObject * obj0 = 0 ;
11785 char *kwnames[] = {
11786 (char *) "self", NULL
11787 };
11788
11789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11794
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 resultobj = PyInt_FromLong((long)result);
11799 return resultobj;
11800 fail:
11801 return NULL;
11802 }
11803
11804
11805 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11806 PyObject *resultobj;
11807 wxDC *arg1 = (wxDC *) 0 ;
11808 bool result;
11809 PyObject * obj0 = 0 ;
11810 char *kwnames[] = {
11811 (char *) "self", NULL
11812 };
11813
11814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
11815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 resultobj = PyInt_FromLong((long)result);
11824 return resultobj;
11825 fail:
11826 return NULL;
11827 }
11828
11829
11830 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj;
11832 wxDC *arg1 = (wxDC *) 0 ;
11833 int result;
11834 PyObject * obj0 = 0 ;
11835 char *kwnames[] = {
11836 (char *) "self", NULL
11837 };
11838
11839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
11840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11841 {
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 result = (int)((wxDC const *)arg1)->GetDepth();
11844
11845 wxPyEndAllowThreads(__tstate);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 }
11848 resultobj = PyInt_FromLong((long)result);
11849 return resultobj;
11850 fail:
11851 return NULL;
11852 }
11853
11854
11855 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
11856 PyObject *resultobj;
11857 wxDC *arg1 = (wxDC *) 0 ;
11858 wxSize result;
11859 PyObject * obj0 = 0 ;
11860 char *kwnames[] = {
11861 (char *) "self", NULL
11862 };
11863
11864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
11865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 result = ((wxDC const *)arg1)->GetPPI();
11869
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 {
11874 wxSize * resultptr;
11875 resultptr = new wxSize((wxSize &) result);
11876 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11877 }
11878 return resultobj;
11879 fail:
11880 return NULL;
11881 }
11882
11883
11884 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11885 PyObject *resultobj;
11886 wxDC *arg1 = (wxDC *) 0 ;
11887 bool result;
11888 PyObject * obj0 = 0 ;
11889 char *kwnames[] = {
11890 (char *) "self", NULL
11891 };
11892
11893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
11894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 result = (bool)((wxDC const *)arg1)->Ok();
11898
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 }
11902 resultobj = PyInt_FromLong((long)result);
11903 return resultobj;
11904 fail:
11905 return NULL;
11906 }
11907
11908
11909 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11910 PyObject *resultobj;
11911 wxDC *arg1 = (wxDC *) 0 ;
11912 int result;
11913 PyObject * obj0 = 0 ;
11914 char *kwnames[] = {
11915 (char *) "self", NULL
11916 };
11917
11918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
11919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
11923
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 resultobj = PyInt_FromLong((long)result);
11928 return resultobj;
11929 fail:
11930 return NULL;
11931 }
11932
11933
11934 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11935 PyObject *resultobj;
11936 wxDC *arg1 = (wxDC *) 0 ;
11937 wxBrush *result;
11938 PyObject * obj0 = 0 ;
11939 char *kwnames[] = {
11940 (char *) "self", NULL
11941 };
11942
11943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
11944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11945 {
11946 PyThreadState* __tstate = wxPyBeginAllowThreads();
11947 {
11948 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
11949 result = (wxBrush *) &_result_ref;
11950 }
11951
11952 wxPyEndAllowThreads(__tstate);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11956 return resultobj;
11957 fail:
11958 return NULL;
11959 }
11960
11961
11962 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11963 PyObject *resultobj;
11964 wxDC *arg1 = (wxDC *) 0 ;
11965 wxBrush *result;
11966 PyObject * obj0 = 0 ;
11967 char *kwnames[] = {
11968 (char *) "self", NULL
11969 };
11970
11971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
11972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11973 {
11974 PyThreadState* __tstate = wxPyBeginAllowThreads();
11975 {
11976 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
11977 result = (wxBrush *) &_result_ref;
11978 }
11979
11980 wxPyEndAllowThreads(__tstate);
11981 if (PyErr_Occurred()) SWIG_fail;
11982 }
11983 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11984 return resultobj;
11985 fail:
11986 return NULL;
11987 }
11988
11989
11990 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj;
11992 wxDC *arg1 = (wxDC *) 0 ;
11993 wxFont *result;
11994 PyObject * obj0 = 0 ;
11995 char *kwnames[] = {
11996 (char *) "self", NULL
11997 };
11998
11999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
12000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12001 {
12002 PyThreadState* __tstate = wxPyBeginAllowThreads();
12003 {
12004 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
12005 result = (wxFont *) &_result_ref;
12006 }
12007
12008 wxPyEndAllowThreads(__tstate);
12009 if (PyErr_Occurred()) SWIG_fail;
12010 }
12011 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
12012 return resultobj;
12013 fail:
12014 return NULL;
12015 }
12016
12017
12018 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12019 PyObject *resultobj;
12020 wxDC *arg1 = (wxDC *) 0 ;
12021 wxPen *result;
12022 PyObject * obj0 = 0 ;
12023 char *kwnames[] = {
12024 (char *) "self", NULL
12025 };
12026
12027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
12028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12029 {
12030 PyThreadState* __tstate = wxPyBeginAllowThreads();
12031 {
12032 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
12033 result = (wxPen *) &_result_ref;
12034 }
12035
12036 wxPyEndAllowThreads(__tstate);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
12040 return resultobj;
12041 fail:
12042 return NULL;
12043 }
12044
12045
12046 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12047 PyObject *resultobj;
12048 wxDC *arg1 = (wxDC *) 0 ;
12049 wxColour *result;
12050 PyObject * obj0 = 0 ;
12051 char *kwnames[] = {
12052 (char *) "self", NULL
12053 };
12054
12055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
12056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12057 {
12058 PyThreadState* __tstate = wxPyBeginAllowThreads();
12059 {
12060 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
12061 result = (wxColour *) &_result_ref;
12062 }
12063
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12068 return resultobj;
12069 fail:
12070 return NULL;
12071 }
12072
12073
12074 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12075 PyObject *resultobj;
12076 wxDC *arg1 = (wxDC *) 0 ;
12077 wxColour *result;
12078 PyObject * obj0 = 0 ;
12079 char *kwnames[] = {
12080 (char *) "self", NULL
12081 };
12082
12083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
12084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12085 {
12086 PyThreadState* __tstate = wxPyBeginAllowThreads();
12087 {
12088 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
12089 result = (wxColour *) &_result_ref;
12090 }
12091
12092 wxPyEndAllowThreads(__tstate);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12096 return resultobj;
12097 fail:
12098 return NULL;
12099 }
12100
12101
12102 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12103 PyObject *resultobj;
12104 wxDC *arg1 = (wxDC *) 0 ;
12105 wxColour *arg2 = 0 ;
12106 wxColour temp2 ;
12107 PyObject * obj0 = 0 ;
12108 PyObject * obj1 = 0 ;
12109 char *kwnames[] = {
12110 (char *) "self",(char *) "colour", NULL
12111 };
12112
12113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
12114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12115 {
12116 arg2 = &temp2;
12117 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12118 }
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
12121 (arg1)->SetTextForeground((wxColour const &)*arg2);
12122
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 Py_INCREF(Py_None); resultobj = Py_None;
12127 return resultobj;
12128 fail:
12129 return NULL;
12130 }
12131
12132
12133 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12134 PyObject *resultobj;
12135 wxDC *arg1 = (wxDC *) 0 ;
12136 wxColour *arg2 = 0 ;
12137 wxColour temp2 ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 char *kwnames[] = {
12141 (char *) "self",(char *) "colour", NULL
12142 };
12143
12144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12146 {
12147 arg2 = &temp2;
12148 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12149 }
12150 {
12151 PyThreadState* __tstate = wxPyBeginAllowThreads();
12152 (arg1)->SetTextBackground((wxColour const &)*arg2);
12153
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 Py_INCREF(Py_None); resultobj = Py_None;
12158 return resultobj;
12159 fail:
12160 return NULL;
12161 }
12162
12163
12164 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12165 PyObject *resultobj;
12166 wxDC *arg1 = (wxDC *) 0 ;
12167 int result;
12168 PyObject * obj0 = 0 ;
12169 char *kwnames[] = {
12170 (char *) "self", NULL
12171 };
12172
12173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 result = (int)((wxDC const *)arg1)->GetMapMode();
12178
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 resultobj = PyInt_FromLong((long)result);
12183 return resultobj;
12184 fail:
12185 return NULL;
12186 }
12187
12188
12189 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12190 PyObject *resultobj;
12191 wxDC *arg1 = (wxDC *) 0 ;
12192 int arg2 ;
12193 PyObject * obj0 = 0 ;
12194 char *kwnames[] = {
12195 (char *) "self",(char *) "mode", NULL
12196 };
12197
12198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 (arg1)->SetMapMode(arg2);
12203
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 Py_INCREF(Py_None); resultobj = Py_None;
12208 return resultobj;
12209 fail:
12210 return NULL;
12211 }
12212
12213
12214 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12215 PyObject *resultobj;
12216 wxDC *arg1 = (wxDC *) 0 ;
12217 double *arg2 = (double *) 0 ;
12218 double *arg3 = (double *) 0 ;
12219 double temp2 ;
12220 double temp3 ;
12221 PyObject * obj0 = 0 ;
12222 char *kwnames[] = {
12223 (char *) "self", NULL
12224 };
12225
12226 arg2 = &temp2;
12227 arg3 = &temp3;
12228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12230 {
12231 PyThreadState* __tstate = wxPyBeginAllowThreads();
12232 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12233
12234 wxPyEndAllowThreads(__tstate);
12235 if (PyErr_Occurred()) SWIG_fail;
12236 }
12237 Py_INCREF(Py_None); resultobj = Py_None;
12238 {
12239 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12240 resultobj = t_output_helper(resultobj,o);
12241 }
12242 {
12243 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12244 resultobj = t_output_helper(resultobj,o);
12245 }
12246 return resultobj;
12247 fail:
12248 return NULL;
12249 }
12250
12251
12252 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12253 PyObject *resultobj;
12254 wxDC *arg1 = (wxDC *) 0 ;
12255 double arg2 ;
12256 double arg3 ;
12257 PyObject * obj0 = 0 ;
12258 char *kwnames[] = {
12259 (char *) "self",(char *) "x",(char *) "y", NULL
12260 };
12261
12262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12264 {
12265 PyThreadState* __tstate = wxPyBeginAllowThreads();
12266 (arg1)->SetUserScale(arg2,arg3);
12267
12268 wxPyEndAllowThreads(__tstate);
12269 if (PyErr_Occurred()) SWIG_fail;
12270 }
12271 Py_INCREF(Py_None); resultobj = Py_None;
12272 return resultobj;
12273 fail:
12274 return NULL;
12275 }
12276
12277
12278 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12279 PyObject *resultobj;
12280 wxDC *arg1 = (wxDC *) 0 ;
12281 double *arg2 = (double *) 0 ;
12282 double *arg3 = (double *) 0 ;
12283 double temp2 ;
12284 double temp3 ;
12285 PyObject * obj0 = 0 ;
12286 char *kwnames[] = {
12287 (char *) "self", NULL
12288 };
12289
12290 arg2 = &temp2;
12291 arg3 = &temp3;
12292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 (arg1)->GetLogicalScale(arg2,arg3);
12297
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 Py_INCREF(Py_None); resultobj = Py_None;
12302 {
12303 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12304 resultobj = t_output_helper(resultobj,o);
12305 }
12306 {
12307 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12308 resultobj = t_output_helper(resultobj,o);
12309 }
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12317 PyObject *resultobj;
12318 wxDC *arg1 = (wxDC *) 0 ;
12319 double arg2 ;
12320 double arg3 ;
12321 PyObject * obj0 = 0 ;
12322 char *kwnames[] = {
12323 (char *) "self",(char *) "x",(char *) "y", NULL
12324 };
12325
12326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12328 {
12329 PyThreadState* __tstate = wxPyBeginAllowThreads();
12330 (arg1)->SetLogicalScale(arg2,arg3);
12331
12332 wxPyEndAllowThreads(__tstate);
12333 if (PyErr_Occurred()) SWIG_fail;
12334 }
12335 Py_INCREF(Py_None); resultobj = Py_None;
12336 return resultobj;
12337 fail:
12338 return NULL;
12339 }
12340
12341
12342 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12343 PyObject *resultobj;
12344 wxDC *arg1 = (wxDC *) 0 ;
12345 wxPoint result;
12346 PyObject * obj0 = 0 ;
12347 char *kwnames[] = {
12348 (char *) "self", NULL
12349 };
12350
12351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12356
12357 wxPyEndAllowThreads(__tstate);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 }
12360 {
12361 wxPoint * resultptr;
12362 resultptr = new wxPoint((wxPoint &) result);
12363 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12364 }
12365 return resultobj;
12366 fail:
12367 return NULL;
12368 }
12369
12370
12371 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj;
12373 wxDC *arg1 = (wxDC *) 0 ;
12374 int *arg2 = (int *) 0 ;
12375 int *arg3 = (int *) 0 ;
12376 int temp2 ;
12377 int temp3 ;
12378 PyObject * obj0 = 0 ;
12379 char *kwnames[] = {
12380 (char *) "self", NULL
12381 };
12382
12383 arg2 = &temp2;
12384 arg3 = &temp3;
12385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12387 {
12388 PyThreadState* __tstate = wxPyBeginAllowThreads();
12389 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12390
12391 wxPyEndAllowThreads(__tstate);
12392 if (PyErr_Occurred()) SWIG_fail;
12393 }
12394 Py_INCREF(Py_None); resultobj = Py_None;
12395 {
12396 PyObject *o = PyInt_FromLong((long) (*arg2));
12397 resultobj = t_output_helper(resultobj,o);
12398 }
12399 {
12400 PyObject *o = PyInt_FromLong((long) (*arg3));
12401 resultobj = t_output_helper(resultobj,o);
12402 }
12403 return resultobj;
12404 fail:
12405 return NULL;
12406 }
12407
12408
12409 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12410 PyObject *resultobj;
12411 wxDC *arg1 = (wxDC *) 0 ;
12412 int arg2 ;
12413 int arg3 ;
12414 PyObject * obj0 = 0 ;
12415 char *kwnames[] = {
12416 (char *) "self",(char *) "x",(char *) "y", NULL
12417 };
12418
12419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 (arg1)->SetLogicalOrigin(arg2,arg3);
12424
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 Py_INCREF(Py_None); resultobj = Py_None;
12429 return resultobj;
12430 fail:
12431 return NULL;
12432 }
12433
12434
12435 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12436 PyObject *resultobj;
12437 wxDC *arg1 = (wxDC *) 0 ;
12438 wxPoint result;
12439 PyObject * obj0 = 0 ;
12440 char *kwnames[] = {
12441 (char *) "self", NULL
12442 };
12443
12444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12449
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 {
12454 wxPoint * resultptr;
12455 resultptr = new wxPoint((wxPoint &) result);
12456 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12457 }
12458 return resultobj;
12459 fail:
12460 return NULL;
12461 }
12462
12463
12464 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12465 PyObject *resultobj;
12466 wxDC *arg1 = (wxDC *) 0 ;
12467 int *arg2 = (int *) 0 ;
12468 int *arg3 = (int *) 0 ;
12469 int temp2 ;
12470 int temp3 ;
12471 PyObject * obj0 = 0 ;
12472 char *kwnames[] = {
12473 (char *) "self", NULL
12474 };
12475
12476 arg2 = &temp2;
12477 arg3 = &temp3;
12478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12483
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 Py_INCREF(Py_None); resultobj = Py_None;
12488 {
12489 PyObject *o = PyInt_FromLong((long) (*arg2));
12490 resultobj = t_output_helper(resultobj,o);
12491 }
12492 {
12493 PyObject *o = PyInt_FromLong((long) (*arg3));
12494 resultobj = t_output_helper(resultobj,o);
12495 }
12496 return resultobj;
12497 fail:
12498 return NULL;
12499 }
12500
12501
12502 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12503 PyObject *resultobj;
12504 wxDC *arg1 = (wxDC *) 0 ;
12505 int arg2 ;
12506 int arg3 ;
12507 PyObject * obj0 = 0 ;
12508 char *kwnames[] = {
12509 (char *) "self",(char *) "x",(char *) "y", NULL
12510 };
12511
12512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 (arg1)->SetDeviceOrigin(arg2,arg3);
12517
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 Py_INCREF(Py_None); resultobj = Py_None;
12522 return resultobj;
12523 fail:
12524 return NULL;
12525 }
12526
12527
12528 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj;
12530 wxDC *arg1 = (wxDC *) 0 ;
12531 bool arg2 ;
12532 bool arg3 ;
12533 PyObject * obj0 = 0 ;
12534 PyObject * obj1 = 0 ;
12535 PyObject * obj2 = 0 ;
12536 char *kwnames[] = {
12537 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12538 };
12539
12540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12542 arg2 = PyInt_AsLong(obj1) ? true : false;
12543 if (PyErr_Occurred()) SWIG_fail;
12544 arg3 = PyInt_AsLong(obj2) ? true : false;
12545 if (PyErr_Occurred()) SWIG_fail;
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->SetAxisOrientation(arg2,arg3);
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 Py_INCREF(Py_None); resultobj = Py_None;
12554 return resultobj;
12555 fail:
12556 return NULL;
12557 }
12558
12559
12560 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxDC *arg1 = (wxDC *) 0 ;
12563 int result;
12564 PyObject * obj0 = 0 ;
12565 char *kwnames[] = {
12566 (char *) "self", NULL
12567 };
12568
12569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12574
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 resultobj = PyInt_FromLong((long)result);
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj;
12587 wxDC *arg1 = (wxDC *) 0 ;
12588 int arg2 ;
12589 PyObject * obj0 = 0 ;
12590 char *kwnames[] = {
12591 (char *) "self",(char *) "function", NULL
12592 };
12593
12594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 (arg1)->SetLogicalFunction(arg2);
12599
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 Py_INCREF(Py_None); resultobj = Py_None;
12604 return resultobj;
12605 fail:
12606 return NULL;
12607 }
12608
12609
12610 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12611 PyObject *resultobj;
12612 wxDC *arg1 = (wxDC *) 0 ;
12613 bool arg2 ;
12614 PyObject * obj0 = 0 ;
12615 PyObject * obj1 = 0 ;
12616 char *kwnames[] = {
12617 (char *) "self",(char *) "opt", NULL
12618 };
12619
12620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12622 arg2 = PyInt_AsLong(obj1) ? true : false;
12623 if (PyErr_Occurred()) SWIG_fail;
12624 {
12625 PyThreadState* __tstate = wxPyBeginAllowThreads();
12626 (arg1)->SetOptimization(arg2);
12627
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 Py_INCREF(Py_None); resultobj = Py_None;
12632 return resultobj;
12633 fail:
12634 return NULL;
12635 }
12636
12637
12638 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12639 PyObject *resultobj;
12640 wxDC *arg1 = (wxDC *) 0 ;
12641 bool result;
12642 PyObject * obj0 = 0 ;
12643 char *kwnames[] = {
12644 (char *) "self", NULL
12645 };
12646
12647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 result = (bool)(arg1)->GetOptimization();
12652
12653 wxPyEndAllowThreads(__tstate);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 }
12656 resultobj = PyInt_FromLong((long)result);
12657 return resultobj;
12658 fail:
12659 return NULL;
12660 }
12661
12662
12663 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12664 PyObject *resultobj;
12665 wxDC *arg1 = (wxDC *) 0 ;
12666 int arg2 ;
12667 int arg3 ;
12668 PyObject * obj0 = 0 ;
12669 char *kwnames[] = {
12670 (char *) "self",(char *) "x",(char *) "y", NULL
12671 };
12672
12673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12675 {
12676 PyThreadState* __tstate = wxPyBeginAllowThreads();
12677 (arg1)->CalcBoundingBox(arg2,arg3);
12678
12679 wxPyEndAllowThreads(__tstate);
12680 if (PyErr_Occurred()) SWIG_fail;
12681 }
12682 Py_INCREF(Py_None); resultobj = Py_None;
12683 return resultobj;
12684 fail:
12685 return NULL;
12686 }
12687
12688
12689 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12690 PyObject *resultobj;
12691 wxDC *arg1 = (wxDC *) 0 ;
12692 PyObject * obj0 = 0 ;
12693 char *kwnames[] = {
12694 (char *) "self", NULL
12695 };
12696
12697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12699 {
12700 PyThreadState* __tstate = wxPyBeginAllowThreads();
12701 (arg1)->ResetBoundingBox();
12702
12703 wxPyEndAllowThreads(__tstate);
12704 if (PyErr_Occurred()) SWIG_fail;
12705 }
12706 Py_INCREF(Py_None); resultobj = Py_None;
12707 return resultobj;
12708 fail:
12709 return NULL;
12710 }
12711
12712
12713 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12714 PyObject *resultobj;
12715 wxDC *arg1 = (wxDC *) 0 ;
12716 int result;
12717 PyObject * obj0 = 0 ;
12718 char *kwnames[] = {
12719 (char *) "self", NULL
12720 };
12721
12722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 result = (int)((wxDC const *)arg1)->MinX();
12727
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = PyInt_FromLong((long)result);
12732 return resultobj;
12733 fail:
12734 return NULL;
12735 }
12736
12737
12738 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12739 PyObject *resultobj;
12740 wxDC *arg1 = (wxDC *) 0 ;
12741 int result;
12742 PyObject * obj0 = 0 ;
12743 char *kwnames[] = {
12744 (char *) "self", NULL
12745 };
12746
12747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12749 {
12750 PyThreadState* __tstate = wxPyBeginAllowThreads();
12751 result = (int)((wxDC const *)arg1)->MaxX();
12752
12753 wxPyEndAllowThreads(__tstate);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 resultobj = PyInt_FromLong((long)result);
12757 return resultobj;
12758 fail:
12759 return NULL;
12760 }
12761
12762
12763 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
12764 PyObject *resultobj;
12765 wxDC *arg1 = (wxDC *) 0 ;
12766 int result;
12767 PyObject * obj0 = 0 ;
12768 char *kwnames[] = {
12769 (char *) "self", NULL
12770 };
12771
12772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
12773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12774 {
12775 PyThreadState* __tstate = wxPyBeginAllowThreads();
12776 result = (int)((wxDC const *)arg1)->MinY();
12777
12778 wxPyEndAllowThreads(__tstate);
12779 if (PyErr_Occurred()) SWIG_fail;
12780 }
12781 resultobj = PyInt_FromLong((long)result);
12782 return resultobj;
12783 fail:
12784 return NULL;
12785 }
12786
12787
12788 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
12789 PyObject *resultobj;
12790 wxDC *arg1 = (wxDC *) 0 ;
12791 int result;
12792 PyObject * obj0 = 0 ;
12793 char *kwnames[] = {
12794 (char *) "self", NULL
12795 };
12796
12797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
12798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12799 {
12800 PyThreadState* __tstate = wxPyBeginAllowThreads();
12801 result = (int)((wxDC const *)arg1)->MaxY();
12802
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 resultobj = PyInt_FromLong((long)result);
12807 return resultobj;
12808 fail:
12809 return NULL;
12810 }
12811
12812
12813 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12814 PyObject *resultobj;
12815 wxDC *arg1 = (wxDC *) 0 ;
12816 int *arg2 = (int *) 0 ;
12817 int *arg3 = (int *) 0 ;
12818 int *arg4 = (int *) 0 ;
12819 int *arg5 = (int *) 0 ;
12820 int temp2 ;
12821 int temp3 ;
12822 int temp4 ;
12823 int temp5 ;
12824 PyObject * obj0 = 0 ;
12825 char *kwnames[] = {
12826 (char *) "self", NULL
12827 };
12828
12829 arg2 = &temp2;
12830 arg3 = &temp3;
12831 arg4 = &temp4;
12832 arg5 = &temp5;
12833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
12834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
12838
12839 wxPyEndAllowThreads(__tstate);
12840 if (PyErr_Occurred()) SWIG_fail;
12841 }
12842 Py_INCREF(Py_None); resultobj = Py_None;
12843 {
12844 PyObject *o = PyInt_FromLong((long) (*arg2));
12845 resultobj = t_output_helper(resultobj,o);
12846 }
12847 {
12848 PyObject *o = PyInt_FromLong((long) (*arg3));
12849 resultobj = t_output_helper(resultobj,o);
12850 }
12851 {
12852 PyObject *o = PyInt_FromLong((long) (*arg4));
12853 resultobj = t_output_helper(resultobj,o);
12854 }
12855 {
12856 PyObject *o = PyInt_FromLong((long) (*arg5));
12857 resultobj = t_output_helper(resultobj,o);
12858 }
12859 return resultobj;
12860 fail:
12861 return NULL;
12862 }
12863
12864
12865 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj;
12867 wxDC *arg1 = (wxDC *) 0 ;
12868 PyObject *arg2 = (PyObject *) 0 ;
12869 PyObject *arg3 = (PyObject *) 0 ;
12870 PyObject *arg4 = (PyObject *) 0 ;
12871 PyObject *result;
12872 PyObject * obj0 = 0 ;
12873 PyObject * obj1 = 0 ;
12874 PyObject * obj2 = 0 ;
12875 PyObject * obj3 = 0 ;
12876 char *kwnames[] = {
12877 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12878 };
12879
12880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12882 arg2 = obj1;
12883 arg3 = obj2;
12884 arg4 = obj3;
12885 {
12886 PyThreadState* __tstate = wxPyBeginAllowThreads();
12887 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
12888
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 resultobj = result;
12893 return resultobj;
12894 fail:
12895 return NULL;
12896 }
12897
12898
12899 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
12900 PyObject *resultobj;
12901 wxDC *arg1 = (wxDC *) 0 ;
12902 PyObject *arg2 = (PyObject *) 0 ;
12903 PyObject *arg3 = (PyObject *) 0 ;
12904 PyObject *arg4 = (PyObject *) 0 ;
12905 PyObject *result;
12906 PyObject * obj0 = 0 ;
12907 PyObject * obj1 = 0 ;
12908 PyObject * obj2 = 0 ;
12909 PyObject * obj3 = 0 ;
12910 char *kwnames[] = {
12911 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12912 };
12913
12914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12916 arg2 = obj1;
12917 arg3 = obj2;
12918 arg4 = obj3;
12919 {
12920 PyThreadState* __tstate = wxPyBeginAllowThreads();
12921 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
12922
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 resultobj = result;
12927 return resultobj;
12928 fail:
12929 return NULL;
12930 }
12931
12932
12933 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
12934 PyObject *resultobj;
12935 wxDC *arg1 = (wxDC *) 0 ;
12936 PyObject *arg2 = (PyObject *) 0 ;
12937 PyObject *arg3 = (PyObject *) 0 ;
12938 PyObject *arg4 = (PyObject *) 0 ;
12939 PyObject *result;
12940 PyObject * obj0 = 0 ;
12941 PyObject * obj1 = 0 ;
12942 PyObject * obj2 = 0 ;
12943 PyObject * obj3 = 0 ;
12944 char *kwnames[] = {
12945 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12946 };
12947
12948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12950 arg2 = obj1;
12951 arg3 = obj2;
12952 arg4 = obj3;
12953 {
12954 PyThreadState* __tstate = wxPyBeginAllowThreads();
12955 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
12956
12957 wxPyEndAllowThreads(__tstate);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 resultobj = result;
12961 return resultobj;
12962 fail:
12963 return NULL;
12964 }
12965
12966
12967 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
12968 PyObject *resultobj;
12969 wxDC *arg1 = (wxDC *) 0 ;
12970 PyObject *arg2 = (PyObject *) 0 ;
12971 PyObject *arg3 = (PyObject *) 0 ;
12972 PyObject *arg4 = (PyObject *) 0 ;
12973 PyObject *result;
12974 PyObject * obj0 = 0 ;
12975 PyObject * obj1 = 0 ;
12976 PyObject * obj2 = 0 ;
12977 PyObject * obj3 = 0 ;
12978 char *kwnames[] = {
12979 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12980 };
12981
12982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12984 arg2 = obj1;
12985 arg3 = obj2;
12986 arg4 = obj3;
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
12990
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 resultobj = result;
12995 return resultobj;
12996 fail:
12997 return NULL;
12998 }
12999
13000
13001 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
13002 PyObject *resultobj;
13003 wxDC *arg1 = (wxDC *) 0 ;
13004 PyObject *arg2 = (PyObject *) 0 ;
13005 PyObject *arg3 = (PyObject *) 0 ;
13006 PyObject *arg4 = (PyObject *) 0 ;
13007 PyObject *result;
13008 PyObject * obj0 = 0 ;
13009 PyObject * obj1 = 0 ;
13010 PyObject * obj2 = 0 ;
13011 PyObject * obj3 = 0 ;
13012 char *kwnames[] = {
13013 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13014 };
13015
13016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13018 arg2 = obj1;
13019 arg3 = obj2;
13020 arg4 = obj3;
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
13024
13025 wxPyEndAllowThreads(__tstate);
13026 if (PyErr_Occurred()) SWIG_fail;
13027 }
13028 resultobj = result;
13029 return resultobj;
13030 fail:
13031 return NULL;
13032 }
13033
13034
13035 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
13036 PyObject *resultobj;
13037 wxDC *arg1 = (wxDC *) 0 ;
13038 PyObject *arg2 = (PyObject *) 0 ;
13039 PyObject *arg3 = (PyObject *) 0 ;
13040 PyObject *arg4 = (PyObject *) 0 ;
13041 PyObject *arg5 = (PyObject *) 0 ;
13042 PyObject *result;
13043 PyObject * obj0 = 0 ;
13044 PyObject * obj1 = 0 ;
13045 PyObject * obj2 = 0 ;
13046 PyObject * obj3 = 0 ;
13047 PyObject * obj4 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13054 arg2 = obj1;
13055 arg3 = obj2;
13056 arg4 = obj3;
13057 arg5 = obj4;
13058 {
13059 PyThreadState* __tstate = wxPyBeginAllowThreads();
13060 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
13061
13062 wxPyEndAllowThreads(__tstate);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 }
13065 resultobj = result;
13066 return resultobj;
13067 fail:
13068 return NULL;
13069 }
13070
13071
13072 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
13073 PyObject *obj;
13074 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13075 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
13076 Py_INCREF(obj);
13077 return Py_BuildValue((char *)"");
13078 }
13079 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13080 PyObject *resultobj;
13081 wxMemoryDC *result;
13082 char *kwnames[] = {
13083 NULL
13084 };
13085
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
13087 {
13088 PyThreadState* __tstate = wxPyBeginAllowThreads();
13089 result = (wxMemoryDC *)new wxMemoryDC();
13090
13091 wxPyEndAllowThreads(__tstate);
13092 if (PyErr_Occurred()) SWIG_fail;
13093 }
13094 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13095 return resultobj;
13096 fail:
13097 return NULL;
13098 }
13099
13100
13101 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13102 PyObject *resultobj;
13103 wxDC *arg1 = (wxDC *) 0 ;
13104 wxMemoryDC *result;
13105 PyObject * obj0 = 0 ;
13106 char *kwnames[] = {
13107 (char *) "oldDC", NULL
13108 };
13109
13110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
13111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (wxMemoryDC *)new wxMemoryDC(arg1);
13115
13116 wxPyEndAllowThreads(__tstate);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 }
13119 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13120 return resultobj;
13121 fail:
13122 return NULL;
13123 }
13124
13125
13126 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13127 PyObject *resultobj;
13128 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13129 wxBitmap *arg2 = 0 ;
13130 PyObject * obj0 = 0 ;
13131 PyObject * obj1 = 0 ;
13132 char *kwnames[] = {
13133 (char *) "self",(char *) "bitmap", NULL
13134 };
13135
13136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13138 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13139 if (arg2 == NULL) {
13140 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13141 }
13142 {
13143 PyThreadState* __tstate = wxPyBeginAllowThreads();
13144 (arg1)->SelectObject((wxBitmap const &)*arg2);
13145
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 Py_INCREF(Py_None); resultobj = Py_None;
13150 return resultobj;
13151 fail:
13152 return NULL;
13153 }
13154
13155
13156 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13157 PyObject *obj;
13158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13159 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13160 Py_INCREF(obj);
13161 return Py_BuildValue((char *)"");
13162 }
13163 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj;
13165 wxDC *arg1 = (wxDC *) 0 ;
13166 wxBitmap *arg2 = 0 ;
13167 wxBufferedDC *result;
13168 PyObject * obj0 = 0 ;
13169 PyObject * obj1 = 0 ;
13170 char *kwnames[] = {
13171 (char *) "dc",(char *) "buffer", NULL
13172 };
13173
13174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13176 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13177 if (arg2 == NULL) {
13178 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13179 }
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13183
13184 wxPyEndAllowThreads(__tstate);
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj;
13196 wxDC *arg1 = (wxDC *) 0 ;
13197 wxSize *arg2 = 0 ;
13198 wxBufferedDC *result;
13199 wxSize temp2 ;
13200 PyObject * obj0 = 0 ;
13201 PyObject * obj1 = 0 ;
13202 char *kwnames[] = {
13203 (char *) "dc",(char *) "area", NULL
13204 };
13205
13206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13208 {
13209 arg2 = &temp2;
13210 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13211 }
13212 {
13213 PyThreadState* __tstate = wxPyBeginAllowThreads();
13214 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13215
13216 wxPyEndAllowThreads(__tstate);
13217 if (PyErr_Occurred()) SWIG_fail;
13218 }
13219 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13220 return resultobj;
13221 fail:
13222 return NULL;
13223 }
13224
13225
13226 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj;
13228 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13229 PyObject * obj0 = 0 ;
13230 char *kwnames[] = {
13231 (char *) "self", NULL
13232 };
13233
13234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13236 {
13237 PyThreadState* __tstate = wxPyBeginAllowThreads();
13238 (arg1)->UnMask();
13239
13240 wxPyEndAllowThreads(__tstate);
13241 if (PyErr_Occurred()) SWIG_fail;
13242 }
13243 Py_INCREF(Py_None); resultobj = Py_None;
13244 return resultobj;
13245 fail:
13246 return NULL;
13247 }
13248
13249
13250 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13251 PyObject *obj;
13252 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13253 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13254 Py_INCREF(obj);
13255 return Py_BuildValue((char *)"");
13256 }
13257 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13258 PyObject *resultobj;
13259 wxWindow *arg1 = (wxWindow *) 0 ;
13260 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13261 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13262 wxBufferedPaintDC *result;
13263 PyObject * obj0 = 0 ;
13264 PyObject * obj1 = 0 ;
13265 char *kwnames[] = {
13266 (char *) "window",(char *) "buffer", NULL
13267 };
13268
13269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13271 if (obj1) {
13272 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13273 if (arg2 == NULL) {
13274 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13275 }
13276 }
13277 {
13278 PyThreadState* __tstate = wxPyBeginAllowThreads();
13279 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13280
13281 wxPyEndAllowThreads(__tstate);
13282 if (PyErr_Occurred()) SWIG_fail;
13283 }
13284 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13285 return resultobj;
13286 fail:
13287 return NULL;
13288 }
13289
13290
13291 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13292 PyObject *obj;
13293 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13294 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13295 Py_INCREF(obj);
13296 return Py_BuildValue((char *)"");
13297 }
13298 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13299 PyObject *resultobj;
13300 wxScreenDC *result;
13301 char *kwnames[] = {
13302 NULL
13303 };
13304
13305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 result = (wxScreenDC *)new wxScreenDC();
13309
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13314 return resultobj;
13315 fail:
13316 return NULL;
13317 }
13318
13319
13320 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13321 PyObject *resultobj;
13322 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13323 wxWindow *arg2 = (wxWindow *) 0 ;
13324 bool result;
13325 PyObject * obj0 = 0 ;
13326 PyObject * obj1 = 0 ;
13327 char *kwnames[] = {
13328 (char *) "self",(char *) "window", NULL
13329 };
13330
13331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13333 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13337
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 resultobj = PyInt_FromLong((long)result);
13342 return resultobj;
13343 fail:
13344 return NULL;
13345 }
13346
13347
13348 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13349 PyObject *resultobj;
13350 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13351 wxRect *arg2 = (wxRect *) NULL ;
13352 bool result;
13353 PyObject * obj0 = 0 ;
13354 PyObject * obj1 = 0 ;
13355 char *kwnames[] = {
13356 (char *) "self",(char *) "rect", NULL
13357 };
13358
13359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13361 if (obj1) {
13362 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13363 }
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13367
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 resultobj = PyInt_FromLong((long)result);
13372 return resultobj;
13373 fail:
13374 return NULL;
13375 }
13376
13377
13378 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13379 PyObject *resultobj;
13380 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13381 bool result;
13382 PyObject * obj0 = 0 ;
13383 char *kwnames[] = {
13384 (char *) "self", NULL
13385 };
13386
13387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 result = (bool)(arg1)->EndDrawingOnTop();
13392
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 resultobj = PyInt_FromLong((long)result);
13397 return resultobj;
13398 fail:
13399 return NULL;
13400 }
13401
13402
13403 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13404 PyObject *obj;
13405 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13406 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13407 Py_INCREF(obj);
13408 return Py_BuildValue((char *)"");
13409 }
13410 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13411 PyObject *resultobj;
13412 wxWindow *arg1 = (wxWindow *) 0 ;
13413 wxClientDC *result;
13414 PyObject * obj0 = 0 ;
13415 char *kwnames[] = {
13416 (char *) "win", NULL
13417 };
13418
13419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13421 {
13422 PyThreadState* __tstate = wxPyBeginAllowThreads();
13423 result = (wxClientDC *)new wxClientDC(arg1);
13424
13425 wxPyEndAllowThreads(__tstate);
13426 if (PyErr_Occurred()) SWIG_fail;
13427 }
13428 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13429 return resultobj;
13430 fail:
13431 return NULL;
13432 }
13433
13434
13435 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13436 PyObject *obj;
13437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13438 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13439 Py_INCREF(obj);
13440 return Py_BuildValue((char *)"");
13441 }
13442 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13443 PyObject *resultobj;
13444 wxWindow *arg1 = (wxWindow *) 0 ;
13445 wxPaintDC *result;
13446 PyObject * obj0 = 0 ;
13447 char *kwnames[] = {
13448 (char *) "win", NULL
13449 };
13450
13451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13453 {
13454 PyThreadState* __tstate = wxPyBeginAllowThreads();
13455 result = (wxPaintDC *)new wxPaintDC(arg1);
13456
13457 wxPyEndAllowThreads(__tstate);
13458 if (PyErr_Occurred()) SWIG_fail;
13459 }
13460 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13461 return resultobj;
13462 fail:
13463 return NULL;
13464 }
13465
13466
13467 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13468 PyObject *obj;
13469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13470 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13471 Py_INCREF(obj);
13472 return Py_BuildValue((char *)"");
13473 }
13474 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj;
13476 wxWindow *arg1 = (wxWindow *) 0 ;
13477 wxWindowDC *result;
13478 PyObject * obj0 = 0 ;
13479 char *kwnames[] = {
13480 (char *) "win", NULL
13481 };
13482
13483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 result = (wxWindowDC *)new wxWindowDC(arg1);
13488
13489 wxPyEndAllowThreads(__tstate);
13490 if (PyErr_Occurred()) SWIG_fail;
13491 }
13492 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13493 return resultobj;
13494 fail:
13495 return NULL;
13496 }
13497
13498
13499 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13500 PyObject *obj;
13501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13502 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13503 Py_INCREF(obj);
13504 return Py_BuildValue((char *)"");
13505 }
13506 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13507 PyObject *resultobj;
13508 wxDC *arg1 = 0 ;
13509 bool arg2 ;
13510 wxMirrorDC *result;
13511 PyObject * obj0 = 0 ;
13512 PyObject * obj1 = 0 ;
13513 char *kwnames[] = {
13514 (char *) "dc",(char *) "mirror", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13519 if (arg1 == NULL) {
13520 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13521 }
13522 arg2 = PyInt_AsLong(obj1) ? true : false;
13523 if (PyErr_Occurred()) SWIG_fail;
13524 {
13525 PyThreadState* __tstate = wxPyBeginAllowThreads();
13526 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13527
13528 wxPyEndAllowThreads(__tstate);
13529 if (PyErr_Occurred()) SWIG_fail;
13530 }
13531 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13532 return resultobj;
13533 fail:
13534 return NULL;
13535 }
13536
13537
13538 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13539 PyObject *obj;
13540 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13541 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13542 Py_INCREF(obj);
13543 return Py_BuildValue((char *)"");
13544 }
13545 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13546 PyObject *resultobj;
13547 wxPrintData *arg1 = 0 ;
13548 wxPostScriptDC *result;
13549 PyObject * obj0 = 0 ;
13550 char *kwnames[] = {
13551 (char *) "printData", NULL
13552 };
13553
13554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13556 if (arg1 == NULL) {
13557 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13558 }
13559 {
13560 PyThreadState* __tstate = wxPyBeginAllowThreads();
13561 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13562
13563 wxPyEndAllowThreads(__tstate);
13564 if (PyErr_Occurred()) SWIG_fail;
13565 }
13566 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13567 return resultobj;
13568 fail:
13569 return NULL;
13570 }
13571
13572
13573 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13574 PyObject *resultobj;
13575 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13576 wxPrintData *result;
13577 PyObject * obj0 = 0 ;
13578 char *kwnames[] = {
13579 (char *) "self", NULL
13580 };
13581
13582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13584 {
13585 PyThreadState* __tstate = wxPyBeginAllowThreads();
13586 {
13587 wxPrintData &_result_ref = (arg1)->GetPrintData();
13588 result = (wxPrintData *) &_result_ref;
13589 }
13590
13591 wxPyEndAllowThreads(__tstate);
13592 if (PyErr_Occurred()) SWIG_fail;
13593 }
13594 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13595 return resultobj;
13596 fail:
13597 return NULL;
13598 }
13599
13600
13601 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13602 PyObject *resultobj;
13603 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13604 wxPrintData *arg2 = 0 ;
13605 PyObject * obj0 = 0 ;
13606 PyObject * obj1 = 0 ;
13607 char *kwnames[] = {
13608 (char *) "self",(char *) "data", NULL
13609 };
13610
13611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13613 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13614 if (arg2 == NULL) {
13615 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13616 }
13617 {
13618 PyThreadState* __tstate = wxPyBeginAllowThreads();
13619 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13620
13621 wxPyEndAllowThreads(__tstate);
13622 if (PyErr_Occurred()) SWIG_fail;
13623 }
13624 Py_INCREF(Py_None); resultobj = Py_None;
13625 return resultobj;
13626 fail:
13627 return NULL;
13628 }
13629
13630
13631 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13632 PyObject *resultobj;
13633 int arg1 ;
13634 char *kwnames[] = {
13635 (char *) "ppi", NULL
13636 };
13637
13638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13639 {
13640 PyThreadState* __tstate = wxPyBeginAllowThreads();
13641 wxPostScriptDC::SetResolution(arg1);
13642
13643 wxPyEndAllowThreads(__tstate);
13644 if (PyErr_Occurred()) SWIG_fail;
13645 }
13646 Py_INCREF(Py_None); resultobj = Py_None;
13647 return resultobj;
13648 fail:
13649 return NULL;
13650 }
13651
13652
13653 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13654 PyObject *resultobj;
13655 int result;
13656 char *kwnames[] = {
13657 NULL
13658 };
13659
13660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 result = (int)wxPostScriptDC::GetResolution();
13664
13665 wxPyEndAllowThreads(__tstate);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
13668 resultobj = PyInt_FromLong((long)result);
13669 return resultobj;
13670 fail:
13671 return NULL;
13672 }
13673
13674
13675 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13676 PyObject *obj;
13677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13678 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13679 Py_INCREF(obj);
13680 return Py_BuildValue((char *)"");
13681 }
13682 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxString const &arg1_defvalue = wxPyEmptyString ;
13685 wxString *arg1 = (wxString *) &arg1_defvalue ;
13686 wxMetaFile *result;
13687 bool temp1 = False ;
13688 PyObject * obj0 = 0 ;
13689 char *kwnames[] = {
13690 (char *) "filename", NULL
13691 };
13692
13693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13694 if (obj0) {
13695 {
13696 arg1 = wxString_in_helper(obj0);
13697 if (arg1 == NULL) SWIG_fail;
13698 temp1 = True;
13699 }
13700 }
13701 {
13702 PyThreadState* __tstate = wxPyBeginAllowThreads();
13703 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13704
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13709 {
13710 if (temp1)
13711 delete arg1;
13712 }
13713 return resultobj;
13714 fail:
13715 {
13716 if (temp1)
13717 delete arg1;
13718 }
13719 return NULL;
13720 }
13721
13722
13723 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13724 PyObject *obj;
13725 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13726 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13727 Py_INCREF(obj);
13728 return Py_BuildValue((char *)"");
13729 }
13730 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13731 PyObject *resultobj;
13732 wxString const &arg1_defvalue = wxPyEmptyString ;
13733 wxString *arg1 = (wxString *) &arg1_defvalue ;
13734 int arg2 = (int) 0 ;
13735 int arg3 = (int) 0 ;
13736 wxString const &arg4_defvalue = wxPyEmptyString ;
13737 wxString *arg4 = (wxString *) &arg4_defvalue ;
13738 wxMetaFileDC *result;
13739 bool temp1 = False ;
13740 bool temp4 = False ;
13741 PyObject * obj0 = 0 ;
13742 PyObject * obj3 = 0 ;
13743 char *kwnames[] = {
13744 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13745 };
13746
13747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13748 if (obj0) {
13749 {
13750 arg1 = wxString_in_helper(obj0);
13751 if (arg1 == NULL) SWIG_fail;
13752 temp1 = True;
13753 }
13754 }
13755 if (obj3) {
13756 {
13757 arg4 = wxString_in_helper(obj3);
13758 if (arg4 == NULL) SWIG_fail;
13759 temp4 = True;
13760 }
13761 }
13762 {
13763 PyThreadState* __tstate = wxPyBeginAllowThreads();
13764 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13765
13766 wxPyEndAllowThreads(__tstate);
13767 if (PyErr_Occurred()) SWIG_fail;
13768 }
13769 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13770 {
13771 if (temp1)
13772 delete arg1;
13773 }
13774 {
13775 if (temp4)
13776 delete arg4;
13777 }
13778 return resultobj;
13779 fail:
13780 {
13781 if (temp1)
13782 delete arg1;
13783 }
13784 {
13785 if (temp4)
13786 delete arg4;
13787 }
13788 return NULL;
13789 }
13790
13791
13792 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13793 PyObject *obj;
13794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13795 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13796 Py_INCREF(obj);
13797 return Py_BuildValue((char *)"");
13798 }
13799 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13800 PyObject *resultobj;
13801 wxPrintData *arg1 = 0 ;
13802 wxPrinterDC *result;
13803 PyObject * obj0 = 0 ;
13804 char *kwnames[] = {
13805 (char *) "printData", NULL
13806 };
13807
13808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
13809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13810 if (arg1 == NULL) {
13811 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13812 }
13813 {
13814 PyThreadState* __tstate = wxPyBeginAllowThreads();
13815 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
13816
13817 wxPyEndAllowThreads(__tstate);
13818 if (PyErr_Occurred()) SWIG_fail;
13819 }
13820 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
13821 return resultobj;
13822 fail:
13823 return NULL;
13824 }
13825
13826
13827 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
13828 PyObject *obj;
13829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13830 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
13831 Py_INCREF(obj);
13832 return Py_BuildValue((char *)"");
13833 }
13834 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13835 PyObject *resultobj;
13836 int arg1 ;
13837 int arg2 ;
13838 int arg3 = (int) True ;
13839 int arg4 = (int) 1 ;
13840 wxImageList *result;
13841 char *kwnames[] = {
13842 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
13843 };
13844
13845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
13846 {
13847 PyThreadState* __tstate = wxPyBeginAllowThreads();
13848 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
13849
13850 wxPyEndAllowThreads(__tstate);
13851 if (PyErr_Occurred()) SWIG_fail;
13852 }
13853 {
13854 resultobj = wxPyMake_wxObject(result);
13855 }
13856 return resultobj;
13857 fail:
13858 return NULL;
13859 }
13860
13861
13862 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13863 PyObject *resultobj;
13864 wxImageList *arg1 = (wxImageList *) 0 ;
13865 PyObject * obj0 = 0 ;
13866 char *kwnames[] = {
13867 (char *) "self", NULL
13868 };
13869
13870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
13871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13872 {
13873 PyThreadState* __tstate = wxPyBeginAllowThreads();
13874 delete arg1;
13875
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 Py_INCREF(Py_None); resultobj = Py_None;
13880 return resultobj;
13881 fail:
13882 return NULL;
13883 }
13884
13885
13886 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj;
13888 wxImageList *arg1 = (wxImageList *) 0 ;
13889 wxBitmap *arg2 = 0 ;
13890 wxBitmap const &arg3_defvalue = wxNullBitmap ;
13891 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
13892 int result;
13893 PyObject * obj0 = 0 ;
13894 PyObject * obj1 = 0 ;
13895 PyObject * obj2 = 0 ;
13896 char *kwnames[] = {
13897 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
13898 };
13899
13900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
13901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13902 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13903 if (arg2 == NULL) {
13904 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13905 }
13906 if (obj2) {
13907 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13908 if (arg3 == NULL) {
13909 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13910 }
13911 }
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
13915
13916 wxPyEndAllowThreads(__tstate);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 }
13919 resultobj = PyInt_FromLong((long)result);
13920 return resultobj;
13921 fail:
13922 return NULL;
13923 }
13924
13925
13926 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13927 PyObject *resultobj;
13928 wxImageList *arg1 = (wxImageList *) 0 ;
13929 wxBitmap *arg2 = 0 ;
13930 wxColour *arg3 = 0 ;
13931 int result;
13932 wxColour temp3 ;
13933 PyObject * obj0 = 0 ;
13934 PyObject * obj1 = 0 ;
13935 PyObject * obj2 = 0 ;
13936 char *kwnames[] = {
13937 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
13938 };
13939
13940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
13941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13942 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13943 if (arg2 == NULL) {
13944 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13945 }
13946 {
13947 arg3 = &temp3;
13948 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13949 }
13950 {
13951 PyThreadState* __tstate = wxPyBeginAllowThreads();
13952 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
13953
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 resultobj = PyInt_FromLong((long)result);
13958 return resultobj;
13959 fail:
13960 return NULL;
13961 }
13962
13963
13964 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13965 PyObject *resultobj;
13966 wxImageList *arg1 = (wxImageList *) 0 ;
13967 wxIcon *arg2 = 0 ;
13968 int result;
13969 PyObject * obj0 = 0 ;
13970 PyObject * obj1 = 0 ;
13971 char *kwnames[] = {
13972 (char *) "self",(char *) "icon", NULL
13973 };
13974
13975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
13976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13977 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13978 if (arg2 == NULL) {
13979 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13980 }
13981 {
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
13983 result = (int)(arg1)->Add((wxIcon const &)*arg2);
13984
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 resultobj = PyInt_FromLong((long)result);
13989 return resultobj;
13990 fail:
13991 return NULL;
13992 }
13993
13994
13995 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
13996 PyObject *resultobj;
13997 wxImageList *arg1 = (wxImageList *) 0 ;
13998 int arg2 ;
13999 wxBitmap *arg3 = 0 ;
14000 bool result;
14001 PyObject * obj0 = 0 ;
14002 PyObject * obj2 = 0 ;
14003 char *kwnames[] = {
14004 (char *) "self",(char *) "index",(char *) "bitmap", NULL
14005 };
14006
14007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
14008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14009 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14010 if (arg3 == NULL) {
14011 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14012 }
14013 {
14014 PyThreadState* __tstate = wxPyBeginAllowThreads();
14015 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
14016
14017 wxPyEndAllowThreads(__tstate);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 }
14020 resultobj = PyInt_FromLong((long)result);
14021 return resultobj;
14022 fail:
14023 return NULL;
14024 }
14025
14026
14027 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
14028 PyObject *resultobj;
14029 wxImageList *arg1 = (wxImageList *) 0 ;
14030 int arg2 ;
14031 wxDC *arg3 = 0 ;
14032 int arg4 ;
14033 int arg5 ;
14034 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
14035 bool arg7 = (bool) (bool)False ;
14036 bool result;
14037 PyObject * obj0 = 0 ;
14038 PyObject * obj2 = 0 ;
14039 PyObject * obj6 = 0 ;
14040 char *kwnames[] = {
14041 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
14042 };
14043
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14046 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14047 if (arg3 == NULL) {
14048 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14049 }
14050 if (obj6) {
14051 arg7 = PyInt_AsLong(obj6) ? true : false;
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 {
14055 PyThreadState* __tstate = wxPyBeginAllowThreads();
14056 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
14057
14058 wxPyEndAllowThreads(__tstate);
14059 if (PyErr_Occurred()) SWIG_fail;
14060 }
14061 resultobj = PyInt_FromLong((long)result);
14062 return resultobj;
14063 fail:
14064 return NULL;
14065 }
14066
14067
14068 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14069 PyObject *resultobj;
14070 wxImageList *arg1 = (wxImageList *) 0 ;
14071 int result;
14072 PyObject * obj0 = 0 ;
14073 char *kwnames[] = {
14074 (char *) "self", NULL
14075 };
14076
14077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
14078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14079 {
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 result = (int)(arg1)->GetImageCount();
14082
14083 wxPyEndAllowThreads(__tstate);
14084 if (PyErr_Occurred()) SWIG_fail;
14085 }
14086 resultobj = PyInt_FromLong((long)result);
14087 return resultobj;
14088 fail:
14089 return NULL;
14090 }
14091
14092
14093 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
14094 PyObject *resultobj;
14095 wxImageList *arg1 = (wxImageList *) 0 ;
14096 int arg2 ;
14097 bool result;
14098 PyObject * obj0 = 0 ;
14099 char *kwnames[] = {
14100 (char *) "self",(char *) "index", NULL
14101 };
14102
14103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
14104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14105 {
14106 PyThreadState* __tstate = wxPyBeginAllowThreads();
14107 result = (bool)(arg1)->Remove(arg2);
14108
14109 wxPyEndAllowThreads(__tstate);
14110 if (PyErr_Occurred()) SWIG_fail;
14111 }
14112 resultobj = PyInt_FromLong((long)result);
14113 return resultobj;
14114 fail:
14115 return NULL;
14116 }
14117
14118
14119 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14120 PyObject *resultobj;
14121 wxImageList *arg1 = (wxImageList *) 0 ;
14122 bool result;
14123 PyObject * obj0 = 0 ;
14124 char *kwnames[] = {
14125 (char *) "self", NULL
14126 };
14127
14128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14130 {
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 result = (bool)(arg1)->RemoveAll();
14133
14134 wxPyEndAllowThreads(__tstate);
14135 if (PyErr_Occurred()) SWIG_fail;
14136 }
14137 resultobj = PyInt_FromLong((long)result);
14138 return resultobj;
14139 fail:
14140 return NULL;
14141 }
14142
14143
14144 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14145 PyObject *resultobj;
14146 wxImageList *arg1 = (wxImageList *) 0 ;
14147 int arg2 ;
14148 int *arg3 = 0 ;
14149 int *arg4 = 0 ;
14150 int temp3 ;
14151 int temp4 ;
14152 PyObject * obj0 = 0 ;
14153 char *kwnames[] = {
14154 (char *) "self",(char *) "index", NULL
14155 };
14156
14157 arg3 = &temp3;
14158 arg4 = &temp4;
14159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14161 {
14162 PyThreadState* __tstate = wxPyBeginAllowThreads();
14163 (arg1)->GetSize(arg2,*arg3,*arg4);
14164
14165 wxPyEndAllowThreads(__tstate);
14166 if (PyErr_Occurred()) SWIG_fail;
14167 }
14168 Py_INCREF(Py_None); resultobj = Py_None;
14169 {
14170 PyObject *o = PyInt_FromLong((long) (*arg3));
14171 resultobj = t_output_helper(resultobj,o);
14172 }
14173 {
14174 PyObject *o = PyInt_FromLong((long) (*arg4));
14175 resultobj = t_output_helper(resultobj,o);
14176 }
14177 return resultobj;
14178 fail:
14179 return NULL;
14180 }
14181
14182
14183 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14184 PyObject *obj;
14185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14186 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14187 Py_INCREF(obj);
14188 return Py_BuildValue((char *)"");
14189 }
14190 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14191 PyObject *resultobj;
14192 wxPenList *arg1 = (wxPenList *) 0 ;
14193 wxPen *arg2 = (wxPen *) 0 ;
14194 PyObject * obj0 = 0 ;
14195 PyObject * obj1 = 0 ;
14196 char *kwnames[] = {
14197 (char *) "self",(char *) "pen", NULL
14198 };
14199
14200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14202 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 (arg1)->AddPen(arg2);
14206
14207 wxPyEndAllowThreads(__tstate);
14208 if (PyErr_Occurred()) SWIG_fail;
14209 }
14210 Py_INCREF(Py_None); resultobj = Py_None;
14211 return resultobj;
14212 fail:
14213 return NULL;
14214 }
14215
14216
14217 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14218 PyObject *resultobj;
14219 wxPenList *arg1 = (wxPenList *) 0 ;
14220 wxColour *arg2 = 0 ;
14221 int arg3 ;
14222 int arg4 ;
14223 wxPen *result;
14224 wxColour temp2 ;
14225 PyObject * obj0 = 0 ;
14226 PyObject * obj1 = 0 ;
14227 char *kwnames[] = {
14228 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14229 };
14230
14231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14233 {
14234 arg2 = &temp2;
14235 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14236 }
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14240
14241 wxPyEndAllowThreads(__tstate);
14242 if (PyErr_Occurred()) SWIG_fail;
14243 }
14244 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14245 return resultobj;
14246 fail:
14247 return NULL;
14248 }
14249
14250
14251 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14252 PyObject *resultobj;
14253 wxPenList *arg1 = (wxPenList *) 0 ;
14254 wxPen *arg2 = (wxPen *) 0 ;
14255 PyObject * obj0 = 0 ;
14256 PyObject * obj1 = 0 ;
14257 char *kwnames[] = {
14258 (char *) "self",(char *) "pen", NULL
14259 };
14260
14261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14263 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14264 {
14265 PyThreadState* __tstate = wxPyBeginAllowThreads();
14266 (arg1)->RemovePen(arg2);
14267
14268 wxPyEndAllowThreads(__tstate);
14269 if (PyErr_Occurred()) SWIG_fail;
14270 }
14271 Py_INCREF(Py_None); resultobj = Py_None;
14272 return resultobj;
14273 fail:
14274 return NULL;
14275 }
14276
14277
14278 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14279 PyObject *resultobj;
14280 wxPenList *arg1 = (wxPenList *) 0 ;
14281 int result;
14282 PyObject * obj0 = 0 ;
14283 char *kwnames[] = {
14284 (char *) "self", NULL
14285 };
14286
14287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (int)(arg1)->GetCount();
14292
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 resultobj = PyInt_FromLong((long)result);
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14304 PyObject *obj;
14305 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14306 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14307 Py_INCREF(obj);
14308 return Py_BuildValue((char *)"");
14309 }
14310 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14311 PyObject *resultobj;
14312 wxBrushList *arg1 = (wxBrushList *) 0 ;
14313 wxBrush *arg2 = (wxBrush *) 0 ;
14314 PyObject * obj0 = 0 ;
14315 PyObject * obj1 = 0 ;
14316 char *kwnames[] = {
14317 (char *) "self",(char *) "brush", NULL
14318 };
14319
14320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14322 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14323 {
14324 PyThreadState* __tstate = wxPyBeginAllowThreads();
14325 (arg1)->AddBrush(arg2);
14326
14327 wxPyEndAllowThreads(__tstate);
14328 if (PyErr_Occurred()) SWIG_fail;
14329 }
14330 Py_INCREF(Py_None); resultobj = Py_None;
14331 return resultobj;
14332 fail:
14333 return NULL;
14334 }
14335
14336
14337 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14338 PyObject *resultobj;
14339 wxBrushList *arg1 = (wxBrushList *) 0 ;
14340 wxColour *arg2 = 0 ;
14341 int arg3 ;
14342 wxBrush *result;
14343 wxColour temp2 ;
14344 PyObject * obj0 = 0 ;
14345 PyObject * obj1 = 0 ;
14346 char *kwnames[] = {
14347 (char *) "self",(char *) "colour",(char *) "style", NULL
14348 };
14349
14350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14352 {
14353 arg2 = &temp2;
14354 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14355 }
14356 {
14357 PyThreadState* __tstate = wxPyBeginAllowThreads();
14358 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14359
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14364 return resultobj;
14365 fail:
14366 return NULL;
14367 }
14368
14369
14370 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14371 PyObject *resultobj;
14372 wxBrushList *arg1 = (wxBrushList *) 0 ;
14373 wxBrush *arg2 = (wxBrush *) 0 ;
14374 PyObject * obj0 = 0 ;
14375 PyObject * obj1 = 0 ;
14376 char *kwnames[] = {
14377 (char *) "self",(char *) "brush", NULL
14378 };
14379
14380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14381 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14382 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14383 {
14384 PyThreadState* __tstate = wxPyBeginAllowThreads();
14385 (arg1)->RemoveBrush(arg2);
14386
14387 wxPyEndAllowThreads(__tstate);
14388 if (PyErr_Occurred()) SWIG_fail;
14389 }
14390 Py_INCREF(Py_None); resultobj = Py_None;
14391 return resultobj;
14392 fail:
14393 return NULL;
14394 }
14395
14396
14397 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj;
14399 wxBrushList *arg1 = (wxBrushList *) 0 ;
14400 int result;
14401 PyObject * obj0 = 0 ;
14402 char *kwnames[] = {
14403 (char *) "self", NULL
14404 };
14405
14406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14408 {
14409 PyThreadState* __tstate = wxPyBeginAllowThreads();
14410 result = (int)(arg1)->GetCount();
14411
14412 wxPyEndAllowThreads(__tstate);
14413 if (PyErr_Occurred()) SWIG_fail;
14414 }
14415 resultobj = PyInt_FromLong((long)result);
14416 return resultobj;
14417 fail:
14418 return NULL;
14419 }
14420
14421
14422 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14423 PyObject *obj;
14424 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14425 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14426 Py_INCREF(obj);
14427 return Py_BuildValue((char *)"");
14428 }
14429 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14430 PyObject *resultobj;
14431 wxColourDatabase *result;
14432 char *kwnames[] = {
14433 NULL
14434 };
14435
14436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14437 {
14438 PyThreadState* __tstate = wxPyBeginAllowThreads();
14439 result = (wxColourDatabase *)new wxColourDatabase();
14440
14441 wxPyEndAllowThreads(__tstate);
14442 if (PyErr_Occurred()) SWIG_fail;
14443 }
14444 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14445 return resultobj;
14446 fail:
14447 return NULL;
14448 }
14449
14450
14451 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14452 PyObject *resultobj;
14453 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14454 PyObject * obj0 = 0 ;
14455 char *kwnames[] = {
14456 (char *) "self", NULL
14457 };
14458
14459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14461 {
14462 PyThreadState* __tstate = wxPyBeginAllowThreads();
14463 delete arg1;
14464
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
14468 Py_INCREF(Py_None); resultobj = Py_None;
14469 return resultobj;
14470 fail:
14471 return NULL;
14472 }
14473
14474
14475 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14476 PyObject *resultobj;
14477 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14478 wxString *arg2 = 0 ;
14479 wxColour result;
14480 bool temp2 = False ;
14481 PyObject * obj0 = 0 ;
14482 PyObject * obj1 = 0 ;
14483 char *kwnames[] = {
14484 (char *) "self",(char *) "name", NULL
14485 };
14486
14487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14489 {
14490 arg2 = wxString_in_helper(obj1);
14491 if (arg2 == NULL) SWIG_fail;
14492 temp2 = True;
14493 }
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14497
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 {
14502 wxColour * resultptr;
14503 resultptr = new wxColour((wxColour &) result);
14504 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14505 }
14506 {
14507 if (temp2)
14508 delete arg2;
14509 }
14510 return resultobj;
14511 fail:
14512 {
14513 if (temp2)
14514 delete arg2;
14515 }
14516 return NULL;
14517 }
14518
14519
14520 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14521 PyObject *resultobj;
14522 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14523 wxColour *arg2 = 0 ;
14524 wxString result;
14525 wxColour temp2 ;
14526 PyObject * obj0 = 0 ;
14527 PyObject * obj1 = 0 ;
14528 char *kwnames[] = {
14529 (char *) "self",(char *) "colour", NULL
14530 };
14531
14532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14534 {
14535 arg2 = &temp2;
14536 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14537 }
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14541
14542 wxPyEndAllowThreads(__tstate);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 }
14545 {
14546 #if wxUSE_UNICODE
14547 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14548 #else
14549 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14550 #endif
14551 }
14552 return resultobj;
14553 fail:
14554 return NULL;
14555 }
14556
14557
14558 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14559 PyObject *resultobj;
14560 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14561 wxString *arg2 = 0 ;
14562 wxColour *arg3 = 0 ;
14563 bool temp2 = False ;
14564 wxColour temp3 ;
14565 PyObject * obj0 = 0 ;
14566 PyObject * obj1 = 0 ;
14567 PyObject * obj2 = 0 ;
14568 char *kwnames[] = {
14569 (char *) "self",(char *) "name",(char *) "colour", NULL
14570 };
14571
14572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14574 {
14575 arg2 = wxString_in_helper(obj1);
14576 if (arg2 == NULL) SWIG_fail;
14577 temp2 = True;
14578 }
14579 {
14580 arg3 = &temp3;
14581 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14582 }
14583 {
14584 PyThreadState* __tstate = wxPyBeginAllowThreads();
14585 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14586
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 Py_INCREF(Py_None); resultobj = Py_None;
14591 {
14592 if (temp2)
14593 delete arg2;
14594 }
14595 return resultobj;
14596 fail:
14597 {
14598 if (temp2)
14599 delete arg2;
14600 }
14601 return NULL;
14602 }
14603
14604
14605 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14606 PyObject *resultobj;
14607 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14608 wxString *arg2 = 0 ;
14609 int arg3 ;
14610 int arg4 ;
14611 int arg5 ;
14612 bool temp2 = False ;
14613 PyObject * obj0 = 0 ;
14614 PyObject * obj1 = 0 ;
14615 char *kwnames[] = {
14616 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14617 };
14618
14619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14621 {
14622 arg2 = wxString_in_helper(obj1);
14623 if (arg2 == NULL) SWIG_fail;
14624 temp2 = True;
14625 }
14626 {
14627 PyThreadState* __tstate = wxPyBeginAllowThreads();
14628 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14629
14630 wxPyEndAllowThreads(__tstate);
14631 if (PyErr_Occurred()) SWIG_fail;
14632 }
14633 Py_INCREF(Py_None); resultobj = Py_None;
14634 {
14635 if (temp2)
14636 delete arg2;
14637 }
14638 return resultobj;
14639 fail:
14640 {
14641 if (temp2)
14642 delete arg2;
14643 }
14644 return NULL;
14645 }
14646
14647
14648 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14649 PyObject *obj;
14650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14651 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14652 Py_INCREF(obj);
14653 return Py_BuildValue((char *)"");
14654 }
14655 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14656 PyObject *resultobj;
14657 wxFontList *arg1 = (wxFontList *) 0 ;
14658 wxFont *arg2 = (wxFont *) 0 ;
14659 PyObject * obj0 = 0 ;
14660 PyObject * obj1 = 0 ;
14661 char *kwnames[] = {
14662 (char *) "self",(char *) "font", NULL
14663 };
14664
14665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14667 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14668 {
14669 PyThreadState* __tstate = wxPyBeginAllowThreads();
14670 (arg1)->AddFont(arg2);
14671
14672 wxPyEndAllowThreads(__tstate);
14673 if (PyErr_Occurred()) SWIG_fail;
14674 }
14675 Py_INCREF(Py_None); resultobj = Py_None;
14676 return resultobj;
14677 fail:
14678 return NULL;
14679 }
14680
14681
14682 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14683 PyObject *resultobj;
14684 wxFontList *arg1 = (wxFontList *) 0 ;
14685 int arg2 ;
14686 int arg3 ;
14687 int arg4 ;
14688 int arg5 ;
14689 bool arg6 = (bool) False ;
14690 wxString const &arg7_defvalue = wxPyEmptyString ;
14691 wxString *arg7 = (wxString *) &arg7_defvalue ;
14692 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14693 wxFont *result;
14694 bool temp7 = False ;
14695 PyObject * obj0 = 0 ;
14696 PyObject * obj5 = 0 ;
14697 PyObject * obj6 = 0 ;
14698 char *kwnames[] = {
14699 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14700 };
14701
14702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14704 if (obj5) {
14705 arg6 = PyInt_AsLong(obj5) ? true : false;
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 if (obj6) {
14709 {
14710 arg7 = wxString_in_helper(obj6);
14711 if (arg7 == NULL) SWIG_fail;
14712 temp7 = True;
14713 }
14714 }
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14718
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14723 {
14724 if (temp7)
14725 delete arg7;
14726 }
14727 return resultobj;
14728 fail:
14729 {
14730 if (temp7)
14731 delete arg7;
14732 }
14733 return NULL;
14734 }
14735
14736
14737 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14738 PyObject *resultobj;
14739 wxFontList *arg1 = (wxFontList *) 0 ;
14740 wxFont *arg2 = (wxFont *) 0 ;
14741 PyObject * obj0 = 0 ;
14742 PyObject * obj1 = 0 ;
14743 char *kwnames[] = {
14744 (char *) "self",(char *) "font", NULL
14745 };
14746
14747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14749 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14750 {
14751 PyThreadState* __tstate = wxPyBeginAllowThreads();
14752 (arg1)->RemoveFont(arg2);
14753
14754 wxPyEndAllowThreads(__tstate);
14755 if (PyErr_Occurred()) SWIG_fail;
14756 }
14757 Py_INCREF(Py_None); resultobj = Py_None;
14758 return resultobj;
14759 fail:
14760 return NULL;
14761 }
14762
14763
14764 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14765 PyObject *resultobj;
14766 wxFontList *arg1 = (wxFontList *) 0 ;
14767 int result;
14768 PyObject * obj0 = 0 ;
14769 char *kwnames[] = {
14770 (char *) "self", NULL
14771 };
14772
14773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14775 {
14776 PyThreadState* __tstate = wxPyBeginAllowThreads();
14777 result = (int)(arg1)->GetCount();
14778
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = PyInt_FromLong((long)result);
14783 return resultobj;
14784 fail:
14785 return NULL;
14786 }
14787
14788
14789 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14790 PyObject *obj;
14791 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14792 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14793 Py_INCREF(obj);
14794 return Py_BuildValue((char *)"");
14795 }
14796 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14797 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14798 return 1;
14799 }
14800
14801
14802 static PyObject *_wrap_NORMAL_FONT_get() {
14803 PyObject *pyobj;
14804
14805 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
14806 return pyobj;
14807 }
14808
14809
14810 static int _wrap_SMALL_FONT_set(PyObject *_val) {
14811 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
14812 return 1;
14813 }
14814
14815
14816 static PyObject *_wrap_SMALL_FONT_get() {
14817 PyObject *pyobj;
14818
14819 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
14820 return pyobj;
14821 }
14822
14823
14824 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
14825 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
14826 return 1;
14827 }
14828
14829
14830 static PyObject *_wrap_ITALIC_FONT_get() {
14831 PyObject *pyobj;
14832
14833 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
14834 return pyobj;
14835 }
14836
14837
14838 static int _wrap_SWISS_FONT_set(PyObject *_val) {
14839 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
14840 return 1;
14841 }
14842
14843
14844 static PyObject *_wrap_SWISS_FONT_get() {
14845 PyObject *pyobj;
14846
14847 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
14848 return pyobj;
14849 }
14850
14851
14852 static int _wrap_RED_PEN_set(PyObject *_val) {
14853 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
14854 return 1;
14855 }
14856
14857
14858 static PyObject *_wrap_RED_PEN_get() {
14859 PyObject *pyobj;
14860
14861 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
14862 return pyobj;
14863 }
14864
14865
14866 static int _wrap_CYAN_PEN_set(PyObject *_val) {
14867 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
14868 return 1;
14869 }
14870
14871
14872 static PyObject *_wrap_CYAN_PEN_get() {
14873 PyObject *pyobj;
14874
14875 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
14876 return pyobj;
14877 }
14878
14879
14880 static int _wrap_GREEN_PEN_set(PyObject *_val) {
14881 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
14882 return 1;
14883 }
14884
14885
14886 static PyObject *_wrap_GREEN_PEN_get() {
14887 PyObject *pyobj;
14888
14889 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
14890 return pyobj;
14891 }
14892
14893
14894 static int _wrap_BLACK_PEN_set(PyObject *_val) {
14895 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
14896 return 1;
14897 }
14898
14899
14900 static PyObject *_wrap_BLACK_PEN_get() {
14901 PyObject *pyobj;
14902
14903 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
14904 return pyobj;
14905 }
14906
14907
14908 static int _wrap_WHITE_PEN_set(PyObject *_val) {
14909 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
14910 return 1;
14911 }
14912
14913
14914 static PyObject *_wrap_WHITE_PEN_get() {
14915 PyObject *pyobj;
14916
14917 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
14918 return pyobj;
14919 }
14920
14921
14922 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
14923 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
14924 return 1;
14925 }
14926
14927
14928 static PyObject *_wrap_TRANSPARENT_PEN_get() {
14929 PyObject *pyobj;
14930
14931 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
14932 return pyobj;
14933 }
14934
14935
14936 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
14937 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
14938 return 1;
14939 }
14940
14941
14942 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
14943 PyObject *pyobj;
14944
14945 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
14946 return pyobj;
14947 }
14948
14949
14950 static int _wrap_GREY_PEN_set(PyObject *_val) {
14951 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
14952 return 1;
14953 }
14954
14955
14956 static PyObject *_wrap_GREY_PEN_get() {
14957 PyObject *pyobj;
14958
14959 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
14960 return pyobj;
14961 }
14962
14963
14964 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
14965 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
14966 return 1;
14967 }
14968
14969
14970 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
14971 PyObject *pyobj;
14972
14973 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14974 return pyobj;
14975 }
14976
14977
14978 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
14979 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
14980 return 1;
14981 }
14982
14983
14984 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
14985 PyObject *pyobj;
14986
14987 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14988 return pyobj;
14989 }
14990
14991
14992 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
14993 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
14994 return 1;
14995 }
14996
14997
14998 static PyObject *_wrap_BLUE_BRUSH_get() {
14999 PyObject *pyobj;
15000
15001 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15002 return pyobj;
15003 }
15004
15005
15006 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
15007 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
15008 return 1;
15009 }
15010
15011
15012 static PyObject *_wrap_GREEN_BRUSH_get() {
15013 PyObject *pyobj;
15014
15015 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15016 return pyobj;
15017 }
15018
15019
15020 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
15021 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
15022 return 1;
15023 }
15024
15025
15026 static PyObject *_wrap_WHITE_BRUSH_get() {
15027 PyObject *pyobj;
15028
15029 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15030 return pyobj;
15031 }
15032
15033
15034 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
15035 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
15036 return 1;
15037 }
15038
15039
15040 static PyObject *_wrap_BLACK_BRUSH_get() {
15041 PyObject *pyobj;
15042
15043 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
15044 return pyobj;
15045 }
15046
15047
15048 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
15049 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15050 return 1;
15051 }
15052
15053
15054 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15055 PyObject *pyobj;
15056
15057 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15058 return pyobj;
15059 }
15060
15061
15062 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
15063 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15064 return 1;
15065 }
15066
15067
15068 static PyObject *_wrap_CYAN_BRUSH_get() {
15069 PyObject *pyobj;
15070
15071 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15072 return pyobj;
15073 }
15074
15075
15076 static int _wrap_RED_BRUSH_set(PyObject *_val) {
15077 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15078 return 1;
15079 }
15080
15081
15082 static PyObject *_wrap_RED_BRUSH_get() {
15083 PyObject *pyobj;
15084
15085 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15086 return pyobj;
15087 }
15088
15089
15090 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
15091 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15092 return 1;
15093 }
15094
15095
15096 static PyObject *_wrap_GREY_BRUSH_get() {
15097 PyObject *pyobj;
15098
15099 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15100 return pyobj;
15101 }
15102
15103
15104 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15105 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15106 return 1;
15107 }
15108
15109
15110 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15111 PyObject *pyobj;
15112
15113 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15114 return pyobj;
15115 }
15116
15117
15118 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15119 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15120 return 1;
15121 }
15122
15123
15124 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15125 PyObject *pyobj;
15126
15127 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15128 return pyobj;
15129 }
15130
15131
15132 static int _wrap_BLACK_set(PyObject *_val) {
15133 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15134 return 1;
15135 }
15136
15137
15138 static PyObject *_wrap_BLACK_get() {
15139 PyObject *pyobj;
15140
15141 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15142 return pyobj;
15143 }
15144
15145
15146 static int _wrap_WHITE_set(PyObject *_val) {
15147 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15148 return 1;
15149 }
15150
15151
15152 static PyObject *_wrap_WHITE_get() {
15153 PyObject *pyobj;
15154
15155 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15156 return pyobj;
15157 }
15158
15159
15160 static int _wrap_RED_set(PyObject *_val) {
15161 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15162 return 1;
15163 }
15164
15165
15166 static PyObject *_wrap_RED_get() {
15167 PyObject *pyobj;
15168
15169 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15170 return pyobj;
15171 }
15172
15173
15174 static int _wrap_BLUE_set(PyObject *_val) {
15175 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15176 return 1;
15177 }
15178
15179
15180 static PyObject *_wrap_BLUE_get() {
15181 PyObject *pyobj;
15182
15183 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15184 return pyobj;
15185 }
15186
15187
15188 static int _wrap_GREEN_set(PyObject *_val) {
15189 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15190 return 1;
15191 }
15192
15193
15194 static PyObject *_wrap_GREEN_get() {
15195 PyObject *pyobj;
15196
15197 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15198 return pyobj;
15199 }
15200
15201
15202 static int _wrap_CYAN_set(PyObject *_val) {
15203 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15204 return 1;
15205 }
15206
15207
15208 static PyObject *_wrap_CYAN_get() {
15209 PyObject *pyobj;
15210
15211 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15212 return pyobj;
15213 }
15214
15215
15216 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15217 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15218 return 1;
15219 }
15220
15221
15222 static PyObject *_wrap_LIGHT_GREY_get() {
15223 PyObject *pyobj;
15224
15225 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15226 return pyobj;
15227 }
15228
15229
15230 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15231 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15232 return 1;
15233 }
15234
15235
15236 static PyObject *_wrap_STANDARD_CURSOR_get() {
15237 PyObject *pyobj;
15238
15239 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15240 return pyobj;
15241 }
15242
15243
15244 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15245 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15246 return 1;
15247 }
15248
15249
15250 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15251 PyObject *pyobj;
15252
15253 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15254 return pyobj;
15255 }
15256
15257
15258 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15259 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15260 return 1;
15261 }
15262
15263
15264 static PyObject *_wrap_CROSS_CURSOR_get() {
15265 PyObject *pyobj;
15266
15267 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15268 return pyobj;
15269 }
15270
15271
15272 static int _wrap_NullBitmap_set(PyObject *_val) {
15273 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15274 return 1;
15275 }
15276
15277
15278 static PyObject *_wrap_NullBitmap_get() {
15279 PyObject *pyobj;
15280
15281 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15282 return pyobj;
15283 }
15284
15285
15286 static int _wrap_NullIcon_set(PyObject *_val) {
15287 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15288 return 1;
15289 }
15290
15291
15292 static PyObject *_wrap_NullIcon_get() {
15293 PyObject *pyobj;
15294
15295 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15296 return pyobj;
15297 }
15298
15299
15300 static int _wrap_NullCursor_set(PyObject *_val) {
15301 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15302 return 1;
15303 }
15304
15305
15306 static PyObject *_wrap_NullCursor_get() {
15307 PyObject *pyobj;
15308
15309 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15310 return pyobj;
15311 }
15312
15313
15314 static int _wrap_NullPen_set(PyObject *_val) {
15315 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15316 return 1;
15317 }
15318
15319
15320 static PyObject *_wrap_NullPen_get() {
15321 PyObject *pyobj;
15322
15323 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15324 return pyobj;
15325 }
15326
15327
15328 static int _wrap_NullBrush_set(PyObject *_val) {
15329 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15330 return 1;
15331 }
15332
15333
15334 static PyObject *_wrap_NullBrush_get() {
15335 PyObject *pyobj;
15336
15337 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15338 return pyobj;
15339 }
15340
15341
15342 static int _wrap_NullPalette_set(PyObject *_val) {
15343 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15344 return 1;
15345 }
15346
15347
15348 static PyObject *_wrap_NullPalette_get() {
15349 PyObject *pyobj;
15350
15351 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15352 return pyobj;
15353 }
15354
15355
15356 static int _wrap_NullFont_set(PyObject *_val) {
15357 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15358 return 1;
15359 }
15360
15361
15362 static PyObject *_wrap_NullFont_get() {
15363 PyObject *pyobj;
15364
15365 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15366 return pyobj;
15367 }
15368
15369
15370 static int _wrap_NullColour_set(PyObject *_val) {
15371 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15372 return 1;
15373 }
15374
15375
15376 static PyObject *_wrap_NullColour_get() {
15377 PyObject *pyobj;
15378
15379 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15380 return pyobj;
15381 }
15382
15383
15384 static int _wrap_TheFontList_set(PyObject *_val) {
15385 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15386 return 1;
15387 }
15388
15389
15390 static PyObject *_wrap_TheFontList_get() {
15391 PyObject *pyobj;
15392
15393 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15394 return pyobj;
15395 }
15396
15397
15398 static int _wrap_ThePenList_set(PyObject *_val) {
15399 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15400 return 1;
15401 }
15402
15403
15404 static PyObject *_wrap_ThePenList_get() {
15405 PyObject *pyobj;
15406
15407 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15408 return pyobj;
15409 }
15410
15411
15412 static int _wrap_TheBrushList_set(PyObject *_val) {
15413 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15414 return 1;
15415 }
15416
15417
15418 static PyObject *_wrap_TheBrushList_get() {
15419 PyObject *pyobj;
15420
15421 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15422 return pyobj;
15423 }
15424
15425
15426 static int _wrap_TheColourDatabase_set(PyObject *_val) {
15427 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15428 return 1;
15429 }
15430
15431
15432 static PyObject *_wrap_TheColourDatabase_get() {
15433 PyObject *pyobj;
15434
15435 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15436 return pyobj;
15437 }
15438
15439
15440 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
15441 PyObject *resultobj;
15442 wxEffects *result;
15443 char *kwnames[] = {
15444 NULL
15445 };
15446
15447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
15448 {
15449 PyThreadState* __tstate = wxPyBeginAllowThreads();
15450 result = (wxEffects *)new wxEffects();
15451
15452 wxPyEndAllowThreads(__tstate);
15453 if (PyErr_Occurred()) SWIG_fail;
15454 }
15455 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
15456 return resultobj;
15457 fail:
15458 return NULL;
15459 }
15460
15461
15462 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15463 PyObject *resultobj;
15464 wxEffects *arg1 = (wxEffects *) 0 ;
15465 wxColour result;
15466 PyObject * obj0 = 0 ;
15467 char *kwnames[] = {
15468 (char *) "self", NULL
15469 };
15470
15471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15473 {
15474 PyThreadState* __tstate = wxPyBeginAllowThreads();
15475 result = ((wxEffects const *)arg1)->GetHighlightColour();
15476
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 {
15481 wxColour * resultptr;
15482 resultptr = new wxColour((wxColour &) result);
15483 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15484 }
15485 return resultobj;
15486 fail:
15487 return NULL;
15488 }
15489
15490
15491 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15492 PyObject *resultobj;
15493 wxEffects *arg1 = (wxEffects *) 0 ;
15494 wxColour result;
15495 PyObject * obj0 = 0 ;
15496 char *kwnames[] = {
15497 (char *) "self", NULL
15498 };
15499
15500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 result = ((wxEffects const *)arg1)->GetLightShadow();
15505
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 {
15510 wxColour * resultptr;
15511 resultptr = new wxColour((wxColour &) result);
15512 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15513 }
15514 return resultobj;
15515 fail:
15516 return NULL;
15517 }
15518
15519
15520 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15521 PyObject *resultobj;
15522 wxEffects *arg1 = (wxEffects *) 0 ;
15523 wxColour result;
15524 PyObject * obj0 = 0 ;
15525 char *kwnames[] = {
15526 (char *) "self", NULL
15527 };
15528
15529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 result = ((wxEffects const *)arg1)->GetFaceColour();
15534
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 {
15539 wxColour * resultptr;
15540 resultptr = new wxColour((wxColour &) result);
15541 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15542 }
15543 return resultobj;
15544 fail:
15545 return NULL;
15546 }
15547
15548
15549 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15550 PyObject *resultobj;
15551 wxEffects *arg1 = (wxEffects *) 0 ;
15552 wxColour result;
15553 PyObject * obj0 = 0 ;
15554 char *kwnames[] = {
15555 (char *) "self", NULL
15556 };
15557
15558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15560 {
15561 PyThreadState* __tstate = wxPyBeginAllowThreads();
15562 result = ((wxEffects const *)arg1)->GetMediumShadow();
15563
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 {
15568 wxColour * resultptr;
15569 resultptr = new wxColour((wxColour &) result);
15570 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15571 }
15572 return resultobj;
15573 fail:
15574 return NULL;
15575 }
15576
15577
15578 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj;
15580 wxEffects *arg1 = (wxEffects *) 0 ;
15581 wxColour result;
15582 PyObject * obj0 = 0 ;
15583 char *kwnames[] = {
15584 (char *) "self", NULL
15585 };
15586
15587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15589 {
15590 PyThreadState* __tstate = wxPyBeginAllowThreads();
15591 result = ((wxEffects const *)arg1)->GetDarkShadow();
15592
15593 wxPyEndAllowThreads(__tstate);
15594 if (PyErr_Occurred()) SWIG_fail;
15595 }
15596 {
15597 wxColour * resultptr;
15598 resultptr = new wxColour((wxColour &) result);
15599 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15600 }
15601 return resultobj;
15602 fail:
15603 return NULL;
15604 }
15605
15606
15607 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15608 PyObject *resultobj;
15609 wxEffects *arg1 = (wxEffects *) 0 ;
15610 wxColour *arg2 = 0 ;
15611 wxColour temp2 ;
15612 PyObject * obj0 = 0 ;
15613 PyObject * obj1 = 0 ;
15614 char *kwnames[] = {
15615 (char *) "self",(char *) "c", NULL
15616 };
15617
15618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15620 {
15621 arg2 = &temp2;
15622 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15623 }
15624 {
15625 PyThreadState* __tstate = wxPyBeginAllowThreads();
15626 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15627
15628 wxPyEndAllowThreads(__tstate);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
15631 Py_INCREF(Py_None); resultobj = Py_None;
15632 return resultobj;
15633 fail:
15634 return NULL;
15635 }
15636
15637
15638 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15639 PyObject *resultobj;
15640 wxEffects *arg1 = (wxEffects *) 0 ;
15641 wxColour *arg2 = 0 ;
15642 wxColour temp2 ;
15643 PyObject * obj0 = 0 ;
15644 PyObject * obj1 = 0 ;
15645 char *kwnames[] = {
15646 (char *) "self",(char *) "c", NULL
15647 };
15648
15649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15651 {
15652 arg2 = &temp2;
15653 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15654 }
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 (arg1)->SetLightShadow((wxColour const &)*arg2);
15658
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 Py_INCREF(Py_None); resultobj = Py_None;
15663 return resultobj;
15664 fail:
15665 return NULL;
15666 }
15667
15668
15669 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15670 PyObject *resultobj;
15671 wxEffects *arg1 = (wxEffects *) 0 ;
15672 wxColour *arg2 = 0 ;
15673 wxColour temp2 ;
15674 PyObject * obj0 = 0 ;
15675 PyObject * obj1 = 0 ;
15676 char *kwnames[] = {
15677 (char *) "self",(char *) "c", NULL
15678 };
15679
15680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15682 {
15683 arg2 = &temp2;
15684 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15685 }
15686 {
15687 PyThreadState* __tstate = wxPyBeginAllowThreads();
15688 (arg1)->SetFaceColour((wxColour const &)*arg2);
15689
15690 wxPyEndAllowThreads(__tstate);
15691 if (PyErr_Occurred()) SWIG_fail;
15692 }
15693 Py_INCREF(Py_None); resultobj = Py_None;
15694 return resultobj;
15695 fail:
15696 return NULL;
15697 }
15698
15699
15700 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15701 PyObject *resultobj;
15702 wxEffects *arg1 = (wxEffects *) 0 ;
15703 wxColour *arg2 = 0 ;
15704 wxColour temp2 ;
15705 PyObject * obj0 = 0 ;
15706 PyObject * obj1 = 0 ;
15707 char *kwnames[] = {
15708 (char *) "self",(char *) "c", NULL
15709 };
15710
15711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15713 {
15714 arg2 = &temp2;
15715 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15716 }
15717 {
15718 PyThreadState* __tstate = wxPyBeginAllowThreads();
15719 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15720
15721 wxPyEndAllowThreads(__tstate);
15722 if (PyErr_Occurred()) SWIG_fail;
15723 }
15724 Py_INCREF(Py_None); resultobj = Py_None;
15725 return resultobj;
15726 fail:
15727 return NULL;
15728 }
15729
15730
15731 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15732 PyObject *resultobj;
15733 wxEffects *arg1 = (wxEffects *) 0 ;
15734 wxColour *arg2 = 0 ;
15735 wxColour temp2 ;
15736 PyObject * obj0 = 0 ;
15737 PyObject * obj1 = 0 ;
15738 char *kwnames[] = {
15739 (char *) "self",(char *) "c", NULL
15740 };
15741
15742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15744 {
15745 arg2 = &temp2;
15746 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15747 }
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 Py_INCREF(Py_None); resultobj = Py_None;
15756 return resultobj;
15757 fail:
15758 return NULL;
15759 }
15760
15761
15762 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15763 PyObject *resultobj;
15764 wxEffects *arg1 = (wxEffects *) 0 ;
15765 wxColour *arg2 = 0 ;
15766 wxColour *arg3 = 0 ;
15767 wxColour *arg4 = 0 ;
15768 wxColour *arg5 = 0 ;
15769 wxColour *arg6 = 0 ;
15770 wxColour temp2 ;
15771 wxColour temp3 ;
15772 wxColour temp4 ;
15773 wxColour temp5 ;
15774 wxColour temp6 ;
15775 PyObject * obj0 = 0 ;
15776 PyObject * obj1 = 0 ;
15777 PyObject * obj2 = 0 ;
15778 PyObject * obj3 = 0 ;
15779 PyObject * obj4 = 0 ;
15780 PyObject * obj5 = 0 ;
15781 char *kwnames[] = {
15782 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
15783 };
15784
15785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15787 {
15788 arg2 = &temp2;
15789 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15790 }
15791 {
15792 arg3 = &temp3;
15793 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15794 }
15795 {
15796 arg4 = &temp4;
15797 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15798 }
15799 {
15800 arg5 = &temp5;
15801 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
15802 }
15803 {
15804 arg6 = &temp6;
15805 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
15806 }
15807 {
15808 PyThreadState* __tstate = wxPyBeginAllowThreads();
15809 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
15810
15811 wxPyEndAllowThreads(__tstate);
15812 if (PyErr_Occurred()) SWIG_fail;
15813 }
15814 Py_INCREF(Py_None); resultobj = Py_None;
15815 return resultobj;
15816 fail:
15817 return NULL;
15818 }
15819
15820
15821 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
15822 PyObject *resultobj;
15823 wxEffects *arg1 = (wxEffects *) 0 ;
15824 wxDC *arg2 = 0 ;
15825 wxRect *arg3 = 0 ;
15826 int arg4 = (int) 1 ;
15827 wxRect temp3 ;
15828 PyObject * obj0 = 0 ;
15829 PyObject * obj1 = 0 ;
15830 PyObject * obj2 = 0 ;
15831 char *kwnames[] = {
15832 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
15833 };
15834
15835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
15836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15837 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15838 if (arg2 == NULL) {
15839 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15840 }
15841 {
15842 arg3 = &temp3;
15843 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15844 }
15845 {
15846 PyThreadState* __tstate = wxPyBeginAllowThreads();
15847 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
15848
15849 wxPyEndAllowThreads(__tstate);
15850 if (PyErr_Occurred()) SWIG_fail;
15851 }
15852 Py_INCREF(Py_None); resultobj = Py_None;
15853 return resultobj;
15854 fail:
15855 return NULL;
15856 }
15857
15858
15859 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15860 PyObject *resultobj;
15861 wxEffects *arg1 = (wxEffects *) 0 ;
15862 wxRect *arg2 = 0 ;
15863 wxDC *arg3 = 0 ;
15864 wxBitmap *arg4 = 0 ;
15865 bool result;
15866 wxRect temp2 ;
15867 PyObject * obj0 = 0 ;
15868 PyObject * obj1 = 0 ;
15869 PyObject * obj2 = 0 ;
15870 PyObject * obj3 = 0 ;
15871 char *kwnames[] = {
15872 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
15873 };
15874
15875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15877 {
15878 arg2 = &temp2;
15879 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15880 }
15881 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15882 if (arg3 == NULL) {
15883 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15884 }
15885 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15886 if (arg4 == NULL) {
15887 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15888 }
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
15892
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 resultobj = PyInt_FromLong((long)result);
15897 return resultobj;
15898 fail:
15899 return NULL;
15900 }
15901
15902
15903 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
15904 PyObject *obj;
15905 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15906 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
15907 Py_INCREF(obj);
15908 return Py_BuildValue((char *)"");
15909 }
15910 static PyMethodDef SwigMethods[] = {
15911 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
15912 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
15913 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
15914 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
15915 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
15916 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
15917 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
15918 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
15919 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
15920 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
15921 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
15922 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
15923 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
15924 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
15925 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
15926 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
15927 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
15928 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
15929 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
15930 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
15931 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
15932 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
15933 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
15934 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
15935 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
15936 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
15937 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
15938 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
15939 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
15940 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
15941 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
15942 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
15943 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
15944 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
15945 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
15946 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
15947 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
15948 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
15949 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
15950 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
15951 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15952 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
15953 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
15954 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
15955 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
15956 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
15957 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15958 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
15959 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
15960 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
15961 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
15962 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
15963 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
15964 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
15965 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
15966 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
15967 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
15968 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
15969 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
15970 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
15971 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
15972 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
15973 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
15974 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
15975 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
15976 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
15977 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
15978 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
15979 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
15980 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
15981 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
15982 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
15983 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
15984 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
15985 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
15986 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
15987 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
15988 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
15989 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
15990 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
15991 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
15992 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
15993 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
15994 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
15995 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
15996 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
15997 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
15998 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
15999 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
16000 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
16001 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
16002 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
16003 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
16004 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
16005 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
16006 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
16007 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
16008 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
16009 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
16010 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
16011 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
16012 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
16013 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
16014 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
16015 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
16016 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
16017 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
16018 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
16019 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
16020 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
16021 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
16022 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
16023 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
16024 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
16025 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
16026 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
16027 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
16028 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
16029 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
16030 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
16031 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
16032 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
16033 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
16034 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
16035 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
16036 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
16037 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
16038 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
16039 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
16040 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
16041 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
16042 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
16043 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
16044 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
16045 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
16046 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
16047 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
16048 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
16049 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
16050 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
16051 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
16052 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
16053 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
16054 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
16055 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
16056 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
16057 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
16058 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
16059 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
16060 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
16061 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16062 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16063 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
16064 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
16065 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
16066 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
16067 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
16068 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
16069 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
16070 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
16071 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
16072 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
16073 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
16074 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
16075 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16076 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16077 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
16078 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
16079 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16080 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
16081 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
16082 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16083 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16084 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
16085 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16086 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16087 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
16088 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
16089 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16090 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16091 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
16092 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16093 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16094 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16095 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
16096 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
16097 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
16098 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
16099 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
16100 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16101 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16102 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16103 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16104 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16105 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16106 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16107 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16108 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16109 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16110 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16111 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16112 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16113 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16114 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16115 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16116 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16117 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16118 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16119 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16120 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16121 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16122 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16123 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16124 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16125 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16126 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16127 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16128 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16129 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16130 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16131 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16132 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16133 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16134 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16135 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16136 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16137 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16138 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16139 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16140 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16141 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16142 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16143 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16144 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16145 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16146 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16147 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16148 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16149 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16150 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16151 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16152 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16153 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16154 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16155 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16156 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16157 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16160 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16161 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16162 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16163 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16164 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16165 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16166 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16172 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16178 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16179 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16184 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16189 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16192 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16193 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16194 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16195 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16196 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16197 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16198 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16201 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16203 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16205 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16207 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16211 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16213 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16215 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16216 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16217 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16218 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16220 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16221 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16222 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16223 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16224 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16226 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16228 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16229 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16230 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16231 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16232 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16233 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16234 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16235 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16236 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16237 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16238 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16239 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16241 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16242 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16243 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16244 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16245 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16246 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16247 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16248 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16249 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16250 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16251 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16252 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16253 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16254 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16255 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16256 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16257 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16258 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16260 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16261 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16262 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16263 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16264 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16265 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16266 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16267 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
16268 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16270 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16271 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16272 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16273 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16275 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16277 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16279 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16280 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16281 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16282 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16284 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16285 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16286 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16287 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16288 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16289 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16290 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16292 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16293 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16294 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16295 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16297 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16298 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16299 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16300 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16301 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16302 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16303 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16304 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16305 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16306 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16307 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16308 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16309 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16310 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16311 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16312 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
16313 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16314 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16315 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
16316 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16317 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16318 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16319 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16320 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16321 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16322 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16323 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16324 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16325 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16326 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16327 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16328 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16329 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16330 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16331 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16332 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16333 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16334 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16335 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16336 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16337 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16338 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16339 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16340 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16341 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16342 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16343 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16344 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16345 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16346 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16347 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16348 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16349 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16350 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16351 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16352 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16353 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16354 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16355 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16356 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16357 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16358 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16359 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16360 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16361 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16362 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16363 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16364 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16365 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16366 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16367 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16368 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16369 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16370 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16371 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16372 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16373 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16374 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16375 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16376 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16377 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16378 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16379 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16380 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16381 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16382 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16383 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16384 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16385 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16386 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16387 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16388 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16389 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16390 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16391 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16392 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16393 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16394 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16395 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16396 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16397 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16398 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16399 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16400 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16401 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16402 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16403 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16404 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
16405 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16406 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16407 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16408 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16409 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16410 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16411 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16412 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16413 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16414 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16415 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16416 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16417 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16418 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16419 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16420 { NULL, NULL }
16421 };
16422
16423
16424 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16425
16426 static void *_p_wxControlTo_p_wxWindow(void *x) {
16427 return (void *)((wxWindow *) ((wxControl *) x));
16428 }
16429 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16430 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16431 }
16432 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16433 return (void *)((wxWindow *) ((wxMenuBar *) x));
16434 }
16435 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16436 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16437 }
16438 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16439 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16440 }
16441 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16442 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16443 }
16444 static void *_p_wxPenTo_p_wxObject(void *x) {
16445 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16446 }
16447 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16448 return (void *)((wxObject *) ((wxRegionIterator *) x));
16449 }
16450 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16451 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16452 }
16453 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16454 return (void *)((wxObject *) ((wxSizerItem *) x));
16455 }
16456 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16457 return (void *)((wxObject *) ((wxColourDatabase *) x));
16458 }
16459 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16460 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16461 }
16462 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16463 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16464 }
16465 static void *_p_wxIconTo_p_wxObject(void *x) {
16466 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16467 }
16468 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16469 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16470 }
16471 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16472 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16473 }
16474 static void *_p_wxSizerTo_p_wxObject(void *x) {
16475 return (void *)((wxObject *) ((wxSizer *) x));
16476 }
16477 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16478 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16479 }
16480 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16481 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16482 }
16483 static void *_p_wxPenListTo_p_wxObject(void *x) {
16484 return (void *)((wxObject *) ((wxPenList *) x));
16485 }
16486 static void *_p_wxEventTo_p_wxObject(void *x) {
16487 return (void *)((wxObject *) ((wxEvent *) x));
16488 }
16489 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16490 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16491 }
16492 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16493 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16494 }
16495 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16496 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16497 }
16498 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16499 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16500 }
16501 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16502 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16503 }
16504 static void *_p_wxDCTo_p_wxObject(void *x) {
16505 return (void *)((wxObject *) ((wxDC *) x));
16506 }
16507 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16508 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16509 }
16510 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16511 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16512 }
16513 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16514 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16515 }
16516 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16517 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16518 }
16519 static void *_p_wxControlTo_p_wxObject(void *x) {
16520 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16521 }
16522 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16523 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16524 }
16525 static void *_p_wxClientDCTo_p_wxObject(void *x) {
16526 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16527 }
16528 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16529 return (void *)((wxObject *) ((wxFSFile *) x));
16530 }
16531 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16532 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16533 }
16534 static void *_p_wxRegionTo_p_wxObject(void *x) {
16535 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16536 }
16537 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16538 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16539 }
16540 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16541 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16542 }
16543 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16544 return (void *)((wxObject *) ((wxGDIObject *) x));
16545 }
16546 static void *_p_wxEffectsTo_p_wxObject(void *x) {
16547 return (void *)((wxObject *) ((wxEffects *) x));
16548 }
16549 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16550 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16551 }
16552 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16553 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16554 }
16555 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16556 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16557 }
16558 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16559 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16560 }
16561 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16562 return (void *)((wxObject *) ((wxMenuItem *) x));
16563 }
16564 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16565 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16566 }
16567 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16569 }
16570 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16571 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16572 }
16573 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16574 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16575 }
16576 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16577 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16578 }
16579 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16580 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16581 }
16582 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16583 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16584 }
16585 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16586 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16587 }
16588 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16589 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16590 }
16591 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16592 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16593 }
16594 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16595 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16596 }
16597 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16598 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16599 }
16600 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16601 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16602 }
16603 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16604 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16605 }
16606 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16607 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16608 }
16609 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16610 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16611 }
16612 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16613 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16614 }
16615 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16616 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16617 }
16618 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16619 return (void *)((wxObject *) ((wxImageHandler *) x));
16620 }
16621 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16622 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16623 }
16624 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16625 return (void *)((wxObject *) ((wxEvtHandler *) x));
16626 }
16627 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16628 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16629 }
16630 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16631 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16632 }
16633 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16634 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16635 }
16636 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16637 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16638 }
16639 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16640 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16641 }
16642 static void *_p_wxImageTo_p_wxObject(void *x) {
16643 return (void *)((wxObject *) ((wxImage *) x));
16644 }
16645 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16646 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16647 }
16648 static void *_p_wxPaletteTo_p_wxObject(void *x) {
16649 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16650 }
16651 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16652 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16653 }
16654 static void *_p_wxImageListTo_p_wxObject(void *x) {
16655 return (void *)((wxObject *) ((wxImageList *) x));
16656 }
16657 static void *_p_wxCursorTo_p_wxObject(void *x) {
16658 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16659 }
16660 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16661 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16662 }
16663 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16664 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16665 }
16666 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16667 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16668 }
16669 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16670 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16671 }
16672 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16673 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16674 }
16675 static void *_p_wxWindowTo_p_wxObject(void *x) {
16676 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16677 }
16678 static void *_p_wxMenuTo_p_wxObject(void *x) {
16679 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16680 }
16681 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16682 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16683 }
16684 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16685 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16686 }
16687 static void *_p_wxBrushListTo_p_wxObject(void *x) {
16688 return (void *)((wxObject *) ((wxBrushList *) x));
16689 }
16690 static void *_p_wxPyPenTo_p_wxObject(void *x) {
16691 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16692 }
16693 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16694 return (void *)((wxObject *) ((wxFileSystem *) x));
16695 }
16696 static void *_p_wxBitmapTo_p_wxObject(void *x) {
16697 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16698 }
16699 static void *_p_wxMaskTo_p_wxObject(void *x) {
16700 return (void *)((wxObject *) ((wxMask *) x));
16701 }
16702 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16703 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16704 }
16705 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16706 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16707 }
16708 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16709 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16710 }
16711 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16712 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16713 }
16714 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16715 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16716 }
16717 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16718 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16719 }
16720 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16721 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16722 }
16723 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16724 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16725 }
16726 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16727 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16728 }
16729 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16730 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16731 }
16732 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16733 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16734 }
16735 static void *_p_wxFontTo_p_wxObject(void *x) {
16736 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16737 }
16738 static void *_p_wxBrushTo_p_wxObject(void *x) {
16739 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16740 }
16741 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16742 return (void *)((wxObject *) ((wxMetaFile *) x));
16743 }
16744 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16745 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16746 }
16747 static void *_p_wxColourTo_p_wxObject(void *x) {
16748 return (void *)((wxObject *) ((wxColour *) x));
16749 }
16750 static void *_p_wxFontListTo_p_wxObject(void *x) {
16751 return (void *)((wxObject *) ((wxFontList *) x));
16752 }
16753 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16754 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16755 }
16756 static void *_p_wxValidatorTo_p_wxObject(void *x) {
16757 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16758 }
16759 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16760 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
16761 }
16762 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16763 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
16764 }
16765 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16766 return (void *)((wxDC *) ((wxScreenDC *) x));
16767 }
16768 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16769 return (void *)((wxDC *) ((wxMirrorDC *) x));
16770 }
16771 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16772 return (void *)((wxDC *) ((wxMemoryDC *) x));
16773 }
16774 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16775 return (void *)((wxDC *) ((wxWindowDC *) x));
16776 }
16777 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16778 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16779 }
16780 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16781 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16782 }
16783 static void *_p_wxClientDCTo_p_wxDC(void *x) {
16784 return (void *)((wxDC *) ((wxClientDC *) x));
16785 }
16786 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16787 return (void *)((wxDC *) ((wxPaintDC *) x));
16788 }
16789 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16790 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16791 }
16792 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16793 return (void *)((wxDC *) ((wxPrinterDC *) x));
16794 }
16795 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16796 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16797 }
16798 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16799 return (void *)((wxGDIObject *) ((wxIcon *) x));
16800 }
16801 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16802 return (void *)((wxGDIObject *) ((wxPalette *) x));
16803 }
16804 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
16805 return (void *)((wxGDIObject *) ((wxPen *) x));
16806 }
16807 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
16808 return (void *)((wxGDIObject *) ((wxFont *) x));
16809 }
16810 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
16811 return (void *)((wxGDIObject *) ((wxCursor *) x));
16812 }
16813 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
16814 return (void *)((wxGDIObject *) ((wxBitmap *) x));
16815 }
16816 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
16817 return (void *)((wxGDIObject *) ((wxRegion *) x));
16818 }
16819 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
16820 return (void *)((wxGDIObject *) ((wxBrush *) x));
16821 }
16822 static void *_p_wxPyPenTo_p_wxPen(void *x) {
16823 return (void *)((wxPen *) ((wxPyPen *) x));
16824 }
16825 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
16826 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
16827 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
16828 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC},{"_p_wxDC"},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC},{0}};
16829 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
16830 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16831 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
16832 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
16833 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
16834 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
16835 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
16836 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
16837 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}};
16838 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
16839 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
16840 static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC},{"_p_wxMemoryDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC},{0}};
16841 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
16842 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
16843 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
16844 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
16845 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
16846 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject},{"_p_wxPen", _p_wxPenTo_p_wxObject},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxPenList", _p_wxPenListTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxMask", _p_wxMaskTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxFont", _p_wxFontTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject},{"_p_wxRegion", _p_wxRegionTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxDC", _p_wxDCTo_p_wxObject},{"_p_wxIcon", _p_wxIconTo_p_wxObject},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject},{"_p_wxImageList", _p_wxImageListTo_p_wxObject},{"_p_wxCursor", _p_wxCursorTo_p_wxObject},{"_p_wxObject"},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxBrush", _p_wxBrushTo_p_wxObject},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxColour", _p_wxColourTo_p_wxObject},{"_p_wxFontList", _p_wxFontListTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}};
16847 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
16848 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
16849 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
16850 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
16851 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
16852 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
16853 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
16854 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
16855 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
16856 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
16857 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
16858 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
16859 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16860 static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject},{"_p_wxGDIObject"},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject},{0}};
16861 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
16862 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
16863 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
16864 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
16865 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
16866 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
16867 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
16868 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
16869 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
16870 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
16871 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
16872 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
16873 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
16874 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
16875 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
16876 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
16877 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
16878 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
16879 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
16880
16881 static swig_type_info *swig_types_initial[] = {
16882 _swigt__p_wxPostScriptDC,
16883 _swigt__p_wxBrush,
16884 _swigt__p_wxColour,
16885 _swigt__p_wxDC,
16886 _swigt__p_wxMirrorDC,
16887 _swigt__p_byte,
16888 _swigt__p_wxPyFontEnumerator,
16889 _swigt__p_wxIconLocation,
16890 _swigt__p_wxImage,
16891 _swigt__p_wxMetaFileDC,
16892 _swigt__p_wxMask,
16893 _swigt__p_wxFont,
16894 _swigt__p_wxWindow,
16895 _swigt__p_wxSize,
16896 _swigt__p_double,
16897 _swigt__p_wxMemoryDC,
16898 _swigt__p_wxFontMapper,
16899 _swigt__p_wxEffects,
16900 _swigt__p_wxNativeEncodingInfo,
16901 _swigt__p_wxPalette,
16902 _swigt__p_wxBitmap,
16903 _swigt__p_wxObject,
16904 _swigt__p_wxRegionIterator,
16905 _swigt__p_wxRect,
16906 _swigt__p_wxString,
16907 _swigt__p_wxPrinterDC,
16908 _swigt__p_wxIconBundle,
16909 _swigt__p_wxPoint,
16910 _swigt__p_wxDash,
16911 _swigt__p_wxScreenDC,
16912 _swigt__p_wxCursor,
16913 _swigt__p_wxClientDC,
16914 _swigt__p_wxBufferedDC,
16915 _swigt__p_wxImageList,
16916 _swigt__p_unsigned_char,
16917 _swigt__p_wxGDIObject,
16918 _swigt__p_wxLocale,
16919 _swigt__p_wxIcon,
16920 _swigt__p_wxRegion,
16921 _swigt__p_wxLanguageInfo,
16922 _swigt__p_wxConfigBase,
16923 _swigt__p_wxWindowDC,
16924 _swigt__p_wxPrintData,
16925 _swigt__p_wxBrushList,
16926 _swigt__p_wxFontList,
16927 _swigt__p_wxPen,
16928 _swigt__p_wxBufferedPaintDC,
16929 _swigt__p_wxPaintDC,
16930 _swigt__p_wxPenList,
16931 _swigt__p_wxPyPen,
16932 _swigt__p_int,
16933 _swigt__p_wxMetaFile,
16934 _swigt__p_wxNativeFontInfo,
16935 _swigt__p_wxEncodingConverter,
16936 _swigt__p_wxColourDatabase,
16937 0
16938 };
16939
16940
16941 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16942
16943 static swig_const_info swig_const_table[] = {
16944 { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
16945 { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
16946 { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
16947 { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
16948 { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
16949 { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
16950 { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
16951 { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
16952 { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
16953 { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
16954 { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
16955 { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
16956 { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
16957 { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
16958 { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
16959 { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
16960 { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
16961 { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
16962 { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
16963 { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
16964 { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
16965 { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
16966 { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
16967 { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
16968 { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
16969 { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
16970 { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
16971 { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
16972 { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
16973 { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
16974 { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
16975 { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
16976 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
16977 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
16978 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
16979 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
16980 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
16981 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
16982 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
16983 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
16984 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
16985 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
16986 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
16987 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
16988 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
16989 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
16990 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
16991 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
16992 { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
16993 { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
16994 { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
16995 { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
16996 { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
16997 { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
16998 { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
16999 { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
17000 { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
17001 { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
17002 { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
17003 { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
17004 { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
17005 { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
17006 { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
17007 { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
17008 { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
17009 { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
17010 { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
17011 { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
17012 { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
17013 { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
17014 { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
17015 { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
17016 { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
17017 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
17018 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
17019 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
17020 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
17021 { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
17022 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
17023 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
17024 { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
17025 { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
17026 { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
17027 { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
17028 { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
17029 { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
17030 { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
17031 { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
17032 { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
17033 { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
17034 { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
17035 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
17036 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
17037 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
17038 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
17039 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
17040 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
17041 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
17042 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
17043 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
17044 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
17045 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
17046 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
17047 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
17048 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
17049 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
17050 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
17051 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
17052 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
17053 { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
17054 { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
17055 { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
17056 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
17057 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
17058 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
17059 { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
17060 { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
17061 { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
17062 { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
17063 { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
17064 { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
17065 { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
17066 { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
17067 { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
17068 { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
17069 { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
17070 { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
17071 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
17072 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
17073 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
17074 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
17075 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
17076 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
17077 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
17078 { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
17079 { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
17080 { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
17081 { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
17082 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
17083 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
17084 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
17085 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
17086 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
17087 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
17088 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
17089 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
17090 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
17091 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
17092 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
17093 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
17094 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
17095 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
17096 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
17097 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
17098 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
17099 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
17100 { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17101 { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17102 { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17103 { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17104 { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17105 { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17106 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17107 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17108 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17109 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17110 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17111 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17112 { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17113 { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17114 { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17115 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17116 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17117 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17118 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17119 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17120 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17121 { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17122 { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17123 { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17124 { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17125 { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17126 { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17127 { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17128 { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17129 { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17130 { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17131 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17132 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17133 { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17134 { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17135 { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17136 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17137 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17138 { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17139 { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17140 { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17141 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17142 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17143 { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17144 { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17145 { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17146 { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17147 { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17148 { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17149 { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17150 { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17151 { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17152 { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17153 { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17154 { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17155 { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17156 { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17157 { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17158 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17159 { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17160 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17161 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17162 { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17163 { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17164 { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17165 { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17166 { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17167 { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17168 { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17169 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17170 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17171 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17172 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17173 { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17174 { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17175 { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17176 { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17177 { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17178 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17179 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17180 { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17181 { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17182 { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17183 { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17184 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17185 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17186 { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17187 { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17188 { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17189 { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17190 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17191 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17192 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17193 { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17194 { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17195 { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17196 { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17197 { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17198 { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17199 { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17200 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17201 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17202 { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17203 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17204 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17205 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17206 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17207 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17208 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17209 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17210 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17211 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17212 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17213 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17214 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17215 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17216 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17217 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17218 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17219 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17220 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17221 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17222 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17223 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17224 { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17225 { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17226 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17227 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17228 { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17229 { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17230 { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17231 { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17232 { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17233 { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17234 { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17235 { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17236 { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17237 { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17238 { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17239 { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17240 { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17241 { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17242 { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17243 { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17244 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17245 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17246 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17247 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17248 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17249 { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17250 { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17251 { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17252 { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17253 { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17254 { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17255 { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17256 { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17257 { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17258 { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17259 { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17260 { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17261 { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17262 { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17263 { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17264 { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17265 { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17266 { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17267 { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17268 { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17269 { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17270 { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17271 { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17272 { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17273 { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17274 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17275 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17276 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17277 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17278 { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17279 { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17280 { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17281 {0}};
17282
17283 #ifdef __cplusplus
17284 }
17285 #endif
17286
17287 #ifdef __cplusplus
17288 extern "C"
17289 #endif
17290 SWIGEXPORT(void) SWIG_init(void) {
17291 static PyObject *SWIG_globals = 0;
17292 static int typeinit = 0;
17293 PyObject *m, *d;
17294 int i;
17295 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17296 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17297 d = PyModule_GetDict(m);
17298
17299 if (!typeinit) {
17300 for (i = 0; swig_types_initial[i]; i++) {
17301 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17302 }
17303 typeinit = 1;
17304 }
17305 SWIG_InstallConstants(d,swig_const_table);
17306
17307
17308 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17309
17310 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17311 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17312 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17313 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17314 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17315 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17316 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17317 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17318 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17319 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17320 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17321 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17322 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17323 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17324 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17325 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17326 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17327 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17328 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17329 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17330 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17331 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17332 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17333 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17334 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17335 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17336 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17337 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17338 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17339 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17340 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17341 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17342 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17343 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17344 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17345 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17346 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17347 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17348 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17349 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17350 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17351 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17352 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17353 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17354 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17355 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17356 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
17357
17358 // Work around a chicken/egg problem in drawlist.cpp
17359 wxPyDrawList_SetAPIPtr();
17360
17361 }
17362