]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
In GSocket_Destroy reorder GUI_Destroy and Shutdown when compiling for Darwin.
[wxWidgets.git] / wxPython / src / mac / 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
440
441
442 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
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 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
457 wxPyRaiseNotImplemented();
458 return NULL;
459 }
460 void wxRegionIterator_Next(wxRegionIterator *self){
461 (*self) ++;
462 }
463 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
464 return self->operator bool();
465 }
466
467 #include <wx/fontutil.h>
468 #include <wx/fontmap.h>
469 #include <wx/fontenum.h>
470
471 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
472 return self->ToString();
473 }
474
475 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
476 static wxNativeEncodingInfo info;
477 if ( wxGetNativeFontEncoding(encoding, &info) )
478 return &info;
479 else
480 return NULL;
481 }
482
483 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
484 wxFontEncoding alt_enc;
485 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
486 return PyInt_FromLong(alt_enc);
487 else {
488 Py_INCREF(Py_None);
489 return Py_None;
490 }
491 }
492 wxFont *new_wxFont(wxString const &info){
493 wxNativeFontInfo nfi;
494 nfi.FromString(info);
495 return new wxFont(nfi);
496 }
497 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
498 return wxFont::New(pointSize, family, flags, face, encoding);
499 }
500
501 class wxPyFontEnumerator : public wxFontEnumerator {
502 public:
503 wxPyFontEnumerator() {}
504 ~wxPyFontEnumerator() {}
505
506 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
507 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
508
509 PYPRIVATE;
510 };
511
512 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
513 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
514
515
516 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
517 wxArrayString* arr = self->GetEncodings();
518 return wxArrayString2PyList_helper(*arr);
519 }
520 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
521 wxArrayString* arr = self->GetFacenames();
522 return wxArrayString2PyList_helper(*arr);
523 }
524
525
526
527 #include "wx/wxPython/pydrawxxx.h"
528
529 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
530 wxColour col;
531 self->GetPixel(x, y, &col);
532 return col;
533 }
534 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
535 wxColour col;
536 self->GetPixel(pt, &col);
537 return col;
538 }
539 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
540 wxRect rv;
541 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
542 return rv;
543 }
544 wxRect wxDC_GetClippingRect(wxDC *self){
545 wxRect rect;
546 self->GetClippingBox(rect);
547 return rect;
548 }
549 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
550 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
551 }
552 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
553 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
554 }
555 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
556 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
557 }
558 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
559 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
560 }
561 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
562 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
563 }
564 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
565 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
566 }
567
568 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
569 *x1 = dc->MinX();
570 *y1 = dc->MinY();
571 *x2 = dc->MaxX();
572 *y2 = dc->MaxY();
573 }
574
575
576 #include <wx/dcps.h>
577
578
579 class wxMetaFile : public wxObject {
580 public:
581 wxMetaFile(const wxString&)
582 { wxPyRaiseNotImplemented(); }
583 };
584
585 class wxMetaFileDC : public wxClientDC {
586 public:
587 wxMetaFileDC(const wxString&, int, int, const wxString&)
588 { wxPyRaiseNotImplemented(); }
589 };
590
591
592
593
594 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
595 self->AddColour(name, wxColour(red, green, blue));
596 }
597
598 #include <wx/effects.h>
599
600 #ifdef __cplusplus
601 extern "C" {
602 #endif
603 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
604 PyObject *resultobj;
605 wxGDIObject *result;
606 char *kwnames[] = {
607 NULL
608 };
609
610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
611 {
612 PyThreadState* __tstate = wxPyBeginAllowThreads();
613 result = (wxGDIObject *)new wxGDIObject();
614
615 wxPyEndAllowThreads(__tstate);
616 if (PyErr_Occurred()) SWIG_fail;
617 }
618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
619 return resultobj;
620 fail:
621 return NULL;
622 }
623
624
625 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
626 PyObject *resultobj;
627 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
628 PyObject * obj0 = 0 ;
629 char *kwnames[] = {
630 (char *) "self", NULL
631 };
632
633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
635 {
636 PyThreadState* __tstate = wxPyBeginAllowThreads();
637 delete arg1;
638
639 wxPyEndAllowThreads(__tstate);
640 if (PyErr_Occurred()) SWIG_fail;
641 }
642 Py_INCREF(Py_None); resultobj = Py_None;
643 return resultobj;
644 fail:
645 return NULL;
646 }
647
648
649 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
650 PyObject *resultobj;
651 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
652 bool result;
653 PyObject * obj0 = 0 ;
654 char *kwnames[] = {
655 (char *) "self", NULL
656 };
657
658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
660 {
661 PyThreadState* __tstate = wxPyBeginAllowThreads();
662 result = (bool)(arg1)->GetVisible();
663
664 wxPyEndAllowThreads(__tstate);
665 if (PyErr_Occurred()) SWIG_fail;
666 }
667 resultobj = PyInt_FromLong((long)result);
668 return resultobj;
669 fail:
670 return NULL;
671 }
672
673
674 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
675 PyObject *resultobj;
676 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
677 bool arg2 ;
678 PyObject * obj0 = 0 ;
679 PyObject * obj1 = 0 ;
680 char *kwnames[] = {
681 (char *) "self",(char *) "visible", NULL
682 };
683
684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
686 arg2 = PyInt_AsLong(obj1) ? true : false;
687 if (PyErr_Occurred()) SWIG_fail;
688 {
689 PyThreadState* __tstate = wxPyBeginAllowThreads();
690 (arg1)->SetVisible(arg2);
691
692 wxPyEndAllowThreads(__tstate);
693 if (PyErr_Occurred()) SWIG_fail;
694 }
695 Py_INCREF(Py_None); resultobj = Py_None;
696 return resultobj;
697 fail:
698 return NULL;
699 }
700
701
702 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
703 PyObject *resultobj;
704 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
705 bool result;
706 PyObject * obj0 = 0 ;
707 char *kwnames[] = {
708 (char *) "self", NULL
709 };
710
711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
713 {
714 PyThreadState* __tstate = wxPyBeginAllowThreads();
715 result = (bool)(arg1)->IsNull();
716
717 wxPyEndAllowThreads(__tstate);
718 if (PyErr_Occurred()) SWIG_fail;
719 }
720 resultobj = PyInt_FromLong((long)result);
721 return resultobj;
722 fail:
723 return NULL;
724 }
725
726
727 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
728 PyObject *obj;
729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
730 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
731 Py_INCREF(obj);
732 return Py_BuildValue((char *)"");
733 }
734 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
735 PyObject *resultobj;
736 unsigned char arg1 = (unsigned char) 0 ;
737 unsigned char arg2 = (unsigned char) 0 ;
738 unsigned char arg3 = (unsigned char) 0 ;
739 wxColour *result;
740 PyObject * obj0 = 0 ;
741 PyObject * obj1 = 0 ;
742 PyObject * obj2 = 0 ;
743 char *kwnames[] = {
744 (char *) "red",(char *) "green",(char *) "blue", NULL
745 };
746
747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
748 if (obj0) {
749 arg1 = (unsigned char) PyInt_AsLong(obj0);
750 if (PyErr_Occurred()) SWIG_fail;
751 }
752 if (obj1) {
753 arg2 = (unsigned char) PyInt_AsLong(obj1);
754 if (PyErr_Occurred()) SWIG_fail;
755 }
756 if (obj2) {
757 arg3 = (unsigned char) PyInt_AsLong(obj2);
758 if (PyErr_Occurred()) SWIG_fail;
759 }
760 {
761 PyThreadState* __tstate = wxPyBeginAllowThreads();
762 result = (wxColour *)new wxColour(arg1,arg2,arg3);
763
764 wxPyEndAllowThreads(__tstate);
765 if (PyErr_Occurred()) SWIG_fail;
766 }
767 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
768 return resultobj;
769 fail:
770 return NULL;
771 }
772
773
774 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
775 PyObject *resultobj;
776 wxColour *arg1 = (wxColour *) 0 ;
777 PyObject * obj0 = 0 ;
778 char *kwnames[] = {
779 (char *) "self", NULL
780 };
781
782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
784 {
785 PyThreadState* __tstate = wxPyBeginAllowThreads();
786 delete arg1;
787
788 wxPyEndAllowThreads(__tstate);
789 if (PyErr_Occurred()) SWIG_fail;
790 }
791 Py_INCREF(Py_None); resultobj = Py_None;
792 return resultobj;
793 fail:
794 return NULL;
795 }
796
797
798 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
799 PyObject *resultobj;
800 wxString *arg1 = 0 ;
801 wxColour *result;
802 bool temp1 = False ;
803 PyObject * obj0 = 0 ;
804 char *kwnames[] = {
805 (char *) "colorName", NULL
806 };
807
808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
809 {
810 arg1 = wxString_in_helper(obj0);
811 if (arg1 == NULL) SWIG_fail;
812 temp1 = True;
813 }
814 {
815 PyThreadState* __tstate = wxPyBeginAllowThreads();
816 result = (wxColour *)new wxColour((wxString const &)*arg1);
817
818 wxPyEndAllowThreads(__tstate);
819 if (PyErr_Occurred()) SWIG_fail;
820 }
821 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
822 {
823 if (temp1)
824 delete arg1;
825 }
826 return resultobj;
827 fail:
828 {
829 if (temp1)
830 delete arg1;
831 }
832 return NULL;
833 }
834
835
836 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
837 PyObject *resultobj;
838 unsigned long arg1 ;
839 wxColour *result;
840 PyObject * obj0 = 0 ;
841 char *kwnames[] = {
842 (char *) "colRGB", NULL
843 };
844
845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
846 arg1 = (unsigned long) PyInt_AsLong(obj0);
847 if (PyErr_Occurred()) SWIG_fail;
848 {
849 PyThreadState* __tstate = wxPyBeginAllowThreads();
850 result = (wxColour *)new wxColour(arg1);
851
852 wxPyEndAllowThreads(__tstate);
853 if (PyErr_Occurred()) SWIG_fail;
854 }
855 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
856 return resultobj;
857 fail:
858 return NULL;
859 }
860
861
862 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
863 PyObject *resultobj;
864 wxColour *arg1 = (wxColour *) 0 ;
865 unsigned char result;
866 PyObject * obj0 = 0 ;
867 char *kwnames[] = {
868 (char *) "self", NULL
869 };
870
871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
873 {
874 PyThreadState* __tstate = wxPyBeginAllowThreads();
875 result = (unsigned char)(arg1)->Red();
876
877 wxPyEndAllowThreads(__tstate);
878 if (PyErr_Occurred()) SWIG_fail;
879 }
880 resultobj = PyInt_FromLong((long)result);
881 return resultobj;
882 fail:
883 return NULL;
884 }
885
886
887 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
888 PyObject *resultobj;
889 wxColour *arg1 = (wxColour *) 0 ;
890 unsigned char result;
891 PyObject * obj0 = 0 ;
892 char *kwnames[] = {
893 (char *) "self", NULL
894 };
895
896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
898 {
899 PyThreadState* __tstate = wxPyBeginAllowThreads();
900 result = (unsigned char)(arg1)->Green();
901
902 wxPyEndAllowThreads(__tstate);
903 if (PyErr_Occurred()) SWIG_fail;
904 }
905 resultobj = PyInt_FromLong((long)result);
906 return resultobj;
907 fail:
908 return NULL;
909 }
910
911
912 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
913 PyObject *resultobj;
914 wxColour *arg1 = (wxColour *) 0 ;
915 unsigned char result;
916 PyObject * obj0 = 0 ;
917 char *kwnames[] = {
918 (char *) "self", NULL
919 };
920
921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
923 {
924 PyThreadState* __tstate = wxPyBeginAllowThreads();
925 result = (unsigned char)(arg1)->Blue();
926
927 wxPyEndAllowThreads(__tstate);
928 if (PyErr_Occurred()) SWIG_fail;
929 }
930 resultobj = PyInt_FromLong((long)result);
931 return resultobj;
932 fail:
933 return NULL;
934 }
935
936
937 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
938 PyObject *resultobj;
939 wxColour *arg1 = (wxColour *) 0 ;
940 bool result;
941 PyObject * obj0 = 0 ;
942 char *kwnames[] = {
943 (char *) "self", NULL
944 };
945
946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
948 {
949 PyThreadState* __tstate = wxPyBeginAllowThreads();
950 result = (bool)(arg1)->Ok();
951
952 wxPyEndAllowThreads(__tstate);
953 if (PyErr_Occurred()) SWIG_fail;
954 }
955 resultobj = PyInt_FromLong((long)result);
956 return resultobj;
957 fail:
958 return NULL;
959 }
960
961
962 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
963 PyObject *resultobj;
964 wxColour *arg1 = (wxColour *) 0 ;
965 unsigned char arg2 ;
966 unsigned char arg3 ;
967 unsigned char arg4 ;
968 PyObject * obj0 = 0 ;
969 PyObject * obj1 = 0 ;
970 PyObject * obj2 = 0 ;
971 PyObject * obj3 = 0 ;
972 char *kwnames[] = {
973 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
974 };
975
976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
978 arg2 = (unsigned char) PyInt_AsLong(obj1);
979 if (PyErr_Occurred()) SWIG_fail;
980 arg3 = (unsigned char) PyInt_AsLong(obj2);
981 if (PyErr_Occurred()) SWIG_fail;
982 arg4 = (unsigned char) PyInt_AsLong(obj3);
983 if (PyErr_Occurred()) SWIG_fail;
984 {
985 PyThreadState* __tstate = wxPyBeginAllowThreads();
986 (arg1)->Set(arg2,arg3,arg4);
987
988 wxPyEndAllowThreads(__tstate);
989 if (PyErr_Occurred()) SWIG_fail;
990 }
991 Py_INCREF(Py_None); resultobj = Py_None;
992 return resultobj;
993 fail:
994 return NULL;
995 }
996
997
998 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
999 PyObject *resultobj;
1000 wxColour *arg1 = (wxColour *) 0 ;
1001 unsigned long arg2 ;
1002 PyObject * obj0 = 0 ;
1003 PyObject * obj1 = 0 ;
1004 char *kwnames[] = {
1005 (char *) "self",(char *) "colRGB", NULL
1006 };
1007
1008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1010 arg2 = (unsigned long) PyInt_AsLong(obj1);
1011 if (PyErr_Occurred()) SWIG_fail;
1012 {
1013 PyThreadState* __tstate = wxPyBeginAllowThreads();
1014 (arg1)->Set(arg2);
1015
1016 wxPyEndAllowThreads(__tstate);
1017 if (PyErr_Occurred()) SWIG_fail;
1018 }
1019 Py_INCREF(Py_None); resultobj = Py_None;
1020 return resultobj;
1021 fail:
1022 return NULL;
1023 }
1024
1025
1026 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1027 PyObject *resultobj;
1028 wxColour *arg1 = (wxColour *) 0 ;
1029 wxColour *arg2 = 0 ;
1030 bool result;
1031 wxColour temp2 ;
1032 PyObject * obj0 = 0 ;
1033 PyObject * obj1 = 0 ;
1034 char *kwnames[] = {
1035 (char *) "self",(char *) "colour", NULL
1036 };
1037
1038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1040 {
1041 arg2 = &temp2;
1042 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1043 }
1044 {
1045 PyThreadState* __tstate = wxPyBeginAllowThreads();
1046 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1047
1048 wxPyEndAllowThreads(__tstate);
1049 if (PyErr_Occurred()) SWIG_fail;
1050 }
1051 resultobj = PyInt_FromLong((long)result);
1052 return resultobj;
1053 fail:
1054 return NULL;
1055 }
1056
1057
1058 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1059 PyObject *resultobj;
1060 wxColour *arg1 = (wxColour *) 0 ;
1061 wxColour *arg2 = 0 ;
1062 bool result;
1063 wxColour temp2 ;
1064 PyObject * obj0 = 0 ;
1065 PyObject * obj1 = 0 ;
1066 char *kwnames[] = {
1067 (char *) "self",(char *) "colour", NULL
1068 };
1069
1070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1072 {
1073 arg2 = &temp2;
1074 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1075 }
1076 {
1077 PyThreadState* __tstate = wxPyBeginAllowThreads();
1078 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1079
1080 wxPyEndAllowThreads(__tstate);
1081 if (PyErr_Occurred()) SWIG_fail;
1082 }
1083 resultobj = PyInt_FromLong((long)result);
1084 return resultobj;
1085 fail:
1086 return NULL;
1087 }
1088
1089
1090 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1091 PyObject *resultobj;
1092 wxColour *arg1 = (wxColour *) 0 ;
1093 wxString *arg2 = 0 ;
1094 bool temp2 = False ;
1095 PyObject * obj0 = 0 ;
1096 PyObject * obj1 = 0 ;
1097 char *kwnames[] = {
1098 (char *) "self",(char *) "colourName", NULL
1099 };
1100
1101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1103 {
1104 arg2 = wxString_in_helper(obj1);
1105 if (arg2 == NULL) SWIG_fail;
1106 temp2 = True;
1107 }
1108 {
1109 PyThreadState* __tstate = wxPyBeginAllowThreads();
1110 (arg1)->InitFromName((wxString const &)*arg2);
1111
1112 wxPyEndAllowThreads(__tstate);
1113 if (PyErr_Occurred()) SWIG_fail;
1114 }
1115 Py_INCREF(Py_None); resultobj = Py_None;
1116 {
1117 if (temp2)
1118 delete arg2;
1119 }
1120 return resultobj;
1121 fail:
1122 {
1123 if (temp2)
1124 delete arg2;
1125 }
1126 return NULL;
1127 }
1128
1129
1130 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1131 PyObject *resultobj;
1132 wxColour *arg1 = (wxColour *) 0 ;
1133 PyObject *result;
1134 PyObject * obj0 = 0 ;
1135 char *kwnames[] = {
1136 (char *) "self", NULL
1137 };
1138
1139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1141 {
1142 PyThreadState* __tstate = wxPyBeginAllowThreads();
1143 result = (PyObject *)wxColour_Get(arg1);
1144
1145 wxPyEndAllowThreads(__tstate);
1146 if (PyErr_Occurred()) SWIG_fail;
1147 }
1148 resultobj = result;
1149 return resultobj;
1150 fail:
1151 return NULL;
1152 }
1153
1154
1155 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1156 PyObject *obj;
1157 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1158 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1159 Py_INCREF(obj);
1160 return Py_BuildValue((char *)"");
1161 }
1162 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1163 PyObject *resultobj;
1164 int arg1 ;
1165 unsigned char *arg2 = (unsigned char *) 0 ;
1166 unsigned char *arg3 = (unsigned char *) 0 ;
1167 unsigned char *arg4 = (unsigned char *) 0 ;
1168 wxPalette *result;
1169 PyObject * obj1 = 0 ;
1170 PyObject * obj2 = 0 ;
1171 PyObject * obj3 = 0 ;
1172 char *kwnames[] = {
1173 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1174 };
1175
1176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1177 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1178 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1179 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1180 {
1181 PyThreadState* __tstate = wxPyBeginAllowThreads();
1182 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1183
1184 wxPyEndAllowThreads(__tstate);
1185 if (PyErr_Occurred()) SWIG_fail;
1186 }
1187 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1188 return resultobj;
1189 fail:
1190 return NULL;
1191 }
1192
1193
1194 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1195 PyObject *resultobj;
1196 wxPalette *arg1 = (wxPalette *) 0 ;
1197 PyObject * obj0 = 0 ;
1198 char *kwnames[] = {
1199 (char *) "self", NULL
1200 };
1201
1202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1204 {
1205 PyThreadState* __tstate = wxPyBeginAllowThreads();
1206 delete arg1;
1207
1208 wxPyEndAllowThreads(__tstate);
1209 if (PyErr_Occurred()) SWIG_fail;
1210 }
1211 Py_INCREF(Py_None); resultobj = Py_None;
1212 return resultobj;
1213 fail:
1214 return NULL;
1215 }
1216
1217
1218 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1219 PyObject *resultobj;
1220 wxPalette *arg1 = (wxPalette *) 0 ;
1221 byte arg2 ;
1222 byte arg3 ;
1223 byte arg4 ;
1224 int result;
1225 PyObject * obj0 = 0 ;
1226 PyObject * obj1 = 0 ;
1227 PyObject * obj2 = 0 ;
1228 PyObject * obj3 = 0 ;
1229 char *kwnames[] = {
1230 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1231 };
1232
1233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1235 arg2 = (byte) PyInt_AsLong(obj1);
1236 if (PyErr_Occurred()) SWIG_fail;
1237 arg3 = (byte) PyInt_AsLong(obj2);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 arg4 = (byte) PyInt_AsLong(obj3);
1240 if (PyErr_Occurred()) SWIG_fail;
1241 {
1242 PyThreadState* __tstate = wxPyBeginAllowThreads();
1243 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1244
1245 wxPyEndAllowThreads(__tstate);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 }
1248 resultobj = PyInt_FromLong((long)result);
1249 return resultobj;
1250 fail:
1251 return NULL;
1252 }
1253
1254
1255 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1256 PyObject *resultobj;
1257 wxPalette *arg1 = (wxPalette *) 0 ;
1258 int arg2 ;
1259 byte *arg3 = (byte *) 0 ;
1260 byte *arg4 = (byte *) 0 ;
1261 byte *arg5 = (byte *) 0 ;
1262 bool result;
1263 byte temp3 ;
1264 byte temp4 ;
1265 byte temp5 ;
1266 PyObject * obj0 = 0 ;
1267 char *kwnames[] = {
1268 (char *) "self",(char *) "pixel", NULL
1269 };
1270
1271 arg3 = &temp3;
1272 arg4 = &temp4;
1273 arg5 = &temp5;
1274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1276 {
1277 PyThreadState* __tstate = wxPyBeginAllowThreads();
1278 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1279
1280 wxPyEndAllowThreads(__tstate);
1281 if (PyErr_Occurred()) SWIG_fail;
1282 }
1283 resultobj = PyInt_FromLong((long)result);
1284 {
1285 PyObject *o = PyInt_FromLong((long) (*arg3));
1286 resultobj = t_output_helper(resultobj,o);
1287 }
1288 {
1289 PyObject *o = PyInt_FromLong((long) (*arg4));
1290 resultobj = t_output_helper(resultobj,o);
1291 }
1292 {
1293 PyObject *o = PyInt_FromLong((long) (*arg5));
1294 resultobj = t_output_helper(resultobj,o);
1295 }
1296 return resultobj;
1297 fail:
1298 return NULL;
1299 }
1300
1301
1302 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1303 PyObject *resultobj;
1304 wxPalette *arg1 = (wxPalette *) 0 ;
1305 bool result;
1306 PyObject * obj0 = 0 ;
1307 char *kwnames[] = {
1308 (char *) "self", NULL
1309 };
1310
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1313 {
1314 PyThreadState* __tstate = wxPyBeginAllowThreads();
1315 result = (bool)(arg1)->Ok();
1316
1317 wxPyEndAllowThreads(__tstate);
1318 if (PyErr_Occurred()) SWIG_fail;
1319 }
1320 resultobj = PyInt_FromLong((long)result);
1321 return resultobj;
1322 fail:
1323 return NULL;
1324 }
1325
1326
1327 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1328 PyObject *obj;
1329 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1330 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1331 Py_INCREF(obj);
1332 return Py_BuildValue((char *)"");
1333 }
1334 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1335 PyObject *resultobj;
1336 wxColour *arg1 = 0 ;
1337 int arg2 = (int) 1 ;
1338 int arg3 = (int) wxSOLID ;
1339 wxPen *result;
1340 wxColour temp1 ;
1341 PyObject * obj0 = 0 ;
1342 char *kwnames[] = {
1343 (char *) "colour",(char *) "width",(char *) "style", NULL
1344 };
1345
1346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1347 {
1348 arg1 = &temp1;
1349 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1350 }
1351 {
1352 PyThreadState* __tstate = wxPyBeginAllowThreads();
1353 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1354
1355 wxPyEndAllowThreads(__tstate);
1356 if (PyErr_Occurred()) SWIG_fail;
1357 }
1358 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1359 return resultobj;
1360 fail:
1361 return NULL;
1362 }
1363
1364
1365 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1366 PyObject *resultobj;
1367 wxPen *arg1 = (wxPen *) 0 ;
1368 PyObject * obj0 = 0 ;
1369 char *kwnames[] = {
1370 (char *) "self", NULL
1371 };
1372
1373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1375 {
1376 PyThreadState* __tstate = wxPyBeginAllowThreads();
1377 delete arg1;
1378
1379 wxPyEndAllowThreads(__tstate);
1380 if (PyErr_Occurred()) SWIG_fail;
1381 }
1382 Py_INCREF(Py_None); resultobj = Py_None;
1383 return resultobj;
1384 fail:
1385 return NULL;
1386 }
1387
1388
1389 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1390 PyObject *resultobj;
1391 wxPen *arg1 = (wxPen *) 0 ;
1392 int result;
1393 PyObject * obj0 = 0 ;
1394 char *kwnames[] = {
1395 (char *) "self", NULL
1396 };
1397
1398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1400 {
1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
1402 result = (int)(arg1)->GetCap();
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
1407 resultobj = PyInt_FromLong((long)result);
1408 return resultobj;
1409 fail:
1410 return NULL;
1411 }
1412
1413
1414 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject *resultobj;
1416 wxPen *arg1 = (wxPen *) 0 ;
1417 wxColour result;
1418 PyObject * obj0 = 0 ;
1419 char *kwnames[] = {
1420 (char *) "self", NULL
1421 };
1422
1423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1425 {
1426 PyThreadState* __tstate = wxPyBeginAllowThreads();
1427 result = (arg1)->GetColour();
1428
1429 wxPyEndAllowThreads(__tstate);
1430 if (PyErr_Occurred()) SWIG_fail;
1431 }
1432 {
1433 wxColour * resultptr;
1434 resultptr = new wxColour((wxColour &) result);
1435 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1436 }
1437 return resultobj;
1438 fail:
1439 return NULL;
1440 }
1441
1442
1443 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject *resultobj;
1445 wxPen *arg1 = (wxPen *) 0 ;
1446 int result;
1447 PyObject * obj0 = 0 ;
1448 char *kwnames[] = {
1449 (char *) "self", NULL
1450 };
1451
1452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1454 {
1455 PyThreadState* __tstate = wxPyBeginAllowThreads();
1456 result = (int)(arg1)->GetJoin();
1457
1458 wxPyEndAllowThreads(__tstate);
1459 if (PyErr_Occurred()) SWIG_fail;
1460 }
1461 resultobj = PyInt_FromLong((long)result);
1462 return resultobj;
1463 fail:
1464 return NULL;
1465 }
1466
1467
1468 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1469 PyObject *resultobj;
1470 wxPen *arg1 = (wxPen *) 0 ;
1471 int result;
1472 PyObject * obj0 = 0 ;
1473 char *kwnames[] = {
1474 (char *) "self", NULL
1475 };
1476
1477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1479 {
1480 PyThreadState* __tstate = wxPyBeginAllowThreads();
1481 result = (int)(arg1)->GetStyle();
1482
1483 wxPyEndAllowThreads(__tstate);
1484 if (PyErr_Occurred()) SWIG_fail;
1485 }
1486 resultobj = PyInt_FromLong((long)result);
1487 return resultobj;
1488 fail:
1489 return NULL;
1490 }
1491
1492
1493 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1494 PyObject *resultobj;
1495 wxPen *arg1 = (wxPen *) 0 ;
1496 int result;
1497 PyObject * obj0 = 0 ;
1498 char *kwnames[] = {
1499 (char *) "self", NULL
1500 };
1501
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1504 {
1505 PyThreadState* __tstate = wxPyBeginAllowThreads();
1506 result = (int)(arg1)->GetWidth();
1507
1508 wxPyEndAllowThreads(__tstate);
1509 if (PyErr_Occurred()) SWIG_fail;
1510 }
1511 resultobj = PyInt_FromLong((long)result);
1512 return resultobj;
1513 fail:
1514 return NULL;
1515 }
1516
1517
1518 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1519 PyObject *resultobj;
1520 wxPen *arg1 = (wxPen *) 0 ;
1521 bool result;
1522 PyObject * obj0 = 0 ;
1523 char *kwnames[] = {
1524 (char *) "self", NULL
1525 };
1526
1527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1529 {
1530 PyThreadState* __tstate = wxPyBeginAllowThreads();
1531 result = (bool)(arg1)->Ok();
1532
1533 wxPyEndAllowThreads(__tstate);
1534 if (PyErr_Occurred()) SWIG_fail;
1535 }
1536 resultobj = PyInt_FromLong((long)result);
1537 return resultobj;
1538 fail:
1539 return NULL;
1540 }
1541
1542
1543 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1544 PyObject *resultobj;
1545 wxPen *arg1 = (wxPen *) 0 ;
1546 int arg2 ;
1547 PyObject * obj0 = 0 ;
1548 char *kwnames[] = {
1549 (char *) "self",(char *) "cap_style", NULL
1550 };
1551
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 (arg1)->SetCap(arg2);
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 Py_INCREF(Py_None); resultobj = Py_None;
1562 return resultobj;
1563 fail:
1564 return NULL;
1565 }
1566
1567
1568 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1569 PyObject *resultobj;
1570 wxPen *arg1 = (wxPen *) 0 ;
1571 wxColour *arg2 = 0 ;
1572 wxColour temp2 ;
1573 PyObject * obj0 = 0 ;
1574 PyObject * obj1 = 0 ;
1575 char *kwnames[] = {
1576 (char *) "self",(char *) "colour", NULL
1577 };
1578
1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1581 {
1582 arg2 = &temp2;
1583 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1584 }
1585 {
1586 PyThreadState* __tstate = wxPyBeginAllowThreads();
1587 (arg1)->SetColour(*arg2);
1588
1589 wxPyEndAllowThreads(__tstate);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 }
1592 Py_INCREF(Py_None); resultobj = Py_None;
1593 return resultobj;
1594 fail:
1595 return NULL;
1596 }
1597
1598
1599 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1600 PyObject *resultobj;
1601 wxPen *arg1 = (wxPen *) 0 ;
1602 int arg2 ;
1603 PyObject * obj0 = 0 ;
1604 char *kwnames[] = {
1605 (char *) "self",(char *) "join_style", NULL
1606 };
1607
1608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1610 {
1611 PyThreadState* __tstate = wxPyBeginAllowThreads();
1612 (arg1)->SetJoin(arg2);
1613
1614 wxPyEndAllowThreads(__tstate);
1615 if (PyErr_Occurred()) SWIG_fail;
1616 }
1617 Py_INCREF(Py_None); resultobj = Py_None;
1618 return resultobj;
1619 fail:
1620 return NULL;
1621 }
1622
1623
1624 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1625 PyObject *resultobj;
1626 wxPen *arg1 = (wxPen *) 0 ;
1627 int arg2 ;
1628 PyObject * obj0 = 0 ;
1629 char *kwnames[] = {
1630 (char *) "self",(char *) "style", NULL
1631 };
1632
1633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1635 {
1636 PyThreadState* __tstate = wxPyBeginAllowThreads();
1637 (arg1)->SetStyle(arg2);
1638
1639 wxPyEndAllowThreads(__tstate);
1640 if (PyErr_Occurred()) SWIG_fail;
1641 }
1642 Py_INCREF(Py_None); resultobj = Py_None;
1643 return resultobj;
1644 fail:
1645 return NULL;
1646 }
1647
1648
1649 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1650 PyObject *resultobj;
1651 wxPen *arg1 = (wxPen *) 0 ;
1652 int arg2 ;
1653 PyObject * obj0 = 0 ;
1654 char *kwnames[] = {
1655 (char *) "self",(char *) "width", NULL
1656 };
1657
1658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1660 {
1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
1662 (arg1)->SetWidth(arg2);
1663
1664 wxPyEndAllowThreads(__tstate);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 }
1667 Py_INCREF(Py_None); resultobj = Py_None;
1668 return resultobj;
1669 fail:
1670 return NULL;
1671 }
1672
1673
1674 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1675 PyObject *resultobj;
1676 wxPen *arg1 = (wxPen *) 0 ;
1677 int arg2 ;
1678 wxDash *arg3 = (wxDash *) 0 ;
1679 PyObject * obj0 = 0 ;
1680 PyObject * obj1 = 0 ;
1681 char *kwnames[] = {
1682 (char *) "self",(char *) "dashes", NULL
1683 };
1684
1685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1687 {
1688 arg2 = PyList_Size(obj1);
1689 arg3 = (wxDash*)byte_LIST_helper(obj1);
1690 if (arg3 == NULL) SWIG_fail;
1691 }
1692 {
1693 PyThreadState* __tstate = wxPyBeginAllowThreads();
1694 (arg1)->SetDashes(arg2,arg3);
1695
1696 wxPyEndAllowThreads(__tstate);
1697 if (PyErr_Occurred()) SWIG_fail;
1698 }
1699 Py_INCREF(Py_None); resultobj = Py_None;
1700 {
1701 if (arg3) delete [] arg3;
1702 }
1703 return resultobj;
1704 fail:
1705 {
1706 if (arg3) delete [] arg3;
1707 }
1708 return NULL;
1709 }
1710
1711
1712 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1713 PyObject *resultobj;
1714 wxPen *arg1 = (wxPen *) 0 ;
1715 PyObject *result;
1716 PyObject * obj0 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "self", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1723 {
1724 PyThreadState* __tstate = wxPyBeginAllowThreads();
1725 result = (PyObject *)wxPen_GetDashes(arg1);
1726
1727 wxPyEndAllowThreads(__tstate);
1728 if (PyErr_Occurred()) SWIG_fail;
1729 }
1730 resultobj = result;
1731 return resultobj;
1732 fail:
1733 return NULL;
1734 }
1735
1736
1737 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1738 PyObject *obj;
1739 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1740 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1741 Py_INCREF(obj);
1742 return Py_BuildValue((char *)"");
1743 }
1744 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxColour *arg1 = 0 ;
1747 int arg2 = (int) 1 ;
1748 int arg3 = (int) wxSOLID ;
1749 wxPyPen *result;
1750 wxColour temp1 ;
1751 PyObject * obj0 = 0 ;
1752 char *kwnames[] = {
1753 (char *) "colour",(char *) "width",(char *) "style", NULL
1754 };
1755
1756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1757 {
1758 arg1 = &temp1;
1759 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1760 }
1761 {
1762 PyThreadState* __tstate = wxPyBeginAllowThreads();
1763 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1764
1765 wxPyEndAllowThreads(__tstate);
1766 if (PyErr_Occurred()) SWIG_fail;
1767 }
1768 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1769 return resultobj;
1770 fail:
1771 return NULL;
1772 }
1773
1774
1775 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1776 PyObject *resultobj;
1777 wxPyPen *arg1 = (wxPyPen *) 0 ;
1778 PyObject * obj0 = 0 ;
1779 char *kwnames[] = {
1780 (char *) "self", NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1785 {
1786 PyThreadState* __tstate = wxPyBeginAllowThreads();
1787 delete arg1;
1788
1789 wxPyEndAllowThreads(__tstate);
1790 if (PyErr_Occurred()) SWIG_fail;
1791 }
1792 Py_INCREF(Py_None); resultobj = Py_None;
1793 return resultobj;
1794 fail:
1795 return NULL;
1796 }
1797
1798
1799 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1800 PyObject *resultobj;
1801 wxPyPen *arg1 = (wxPyPen *) 0 ;
1802 int arg2 ;
1803 wxDash *arg3 = (wxDash *) 0 ;
1804 PyObject * obj0 = 0 ;
1805 PyObject * obj1 = 0 ;
1806 char *kwnames[] = {
1807 (char *) "self",(char *) "dashes", NULL
1808 };
1809
1810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1812 {
1813 arg2 = PyList_Size(obj1);
1814 arg3 = (wxDash*)byte_LIST_helper(obj1);
1815 if (arg3 == NULL) SWIG_fail;
1816 }
1817 {
1818 PyThreadState* __tstate = wxPyBeginAllowThreads();
1819 (arg1)->SetDashes(arg2,arg3);
1820
1821 wxPyEndAllowThreads(__tstate);
1822 if (PyErr_Occurred()) SWIG_fail;
1823 }
1824 Py_INCREF(Py_None); resultobj = Py_None;
1825 {
1826 if (arg3) delete [] arg3;
1827 }
1828 return resultobj;
1829 fail:
1830 {
1831 if (arg3) delete [] arg3;
1832 }
1833 return NULL;
1834 }
1835
1836
1837 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
1838 PyObject *obj;
1839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1840 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
1841 Py_INCREF(obj);
1842 return Py_BuildValue((char *)"");
1843 }
1844 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1845 PyObject *resultobj;
1846 wxColour *arg1 = 0 ;
1847 int arg2 = (int) wxSOLID ;
1848 wxBrush *result;
1849 wxColour temp1 ;
1850 PyObject * obj0 = 0 ;
1851 char *kwnames[] = {
1852 (char *) "colour",(char *) "style", NULL
1853 };
1854
1855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
1856 {
1857 arg1 = &temp1;
1858 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1859 }
1860 {
1861 PyThreadState* __tstate = wxPyBeginAllowThreads();
1862 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
1863
1864 wxPyEndAllowThreads(__tstate);
1865 if (PyErr_Occurred()) SWIG_fail;
1866 }
1867 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
1868 return resultobj;
1869 fail:
1870 return NULL;
1871 }
1872
1873
1874 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1875 PyObject *resultobj;
1876 wxBrush *arg1 = (wxBrush *) 0 ;
1877 PyObject * obj0 = 0 ;
1878 char *kwnames[] = {
1879 (char *) "self", NULL
1880 };
1881
1882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
1883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 delete arg1;
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 Py_INCREF(Py_None); resultobj = Py_None;
1892 return resultobj;
1893 fail:
1894 return NULL;
1895 }
1896
1897
1898 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 wxBrush *arg1 = (wxBrush *) 0 ;
1901 wxColour *arg2 = 0 ;
1902 wxColour temp2 ;
1903 PyObject * obj0 = 0 ;
1904 PyObject * obj1 = 0 ;
1905 char *kwnames[] = {
1906 (char *) "self",(char *) "col", NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
1910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1911 {
1912 arg2 = &temp2;
1913 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1914 }
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 (arg1)->SetColour((wxColour const &)*arg2);
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_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject *resultobj;
1931 wxBrush *arg1 = (wxBrush *) 0 ;
1932 int arg2 ;
1933 PyObject * obj0 = 0 ;
1934 char *kwnames[] = {
1935 (char *) "self",(char *) "style", NULL
1936 };
1937
1938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1940 {
1941 PyThreadState* __tstate = wxPyBeginAllowThreads();
1942 (arg1)->SetStyle(arg2);
1943
1944 wxPyEndAllowThreads(__tstate);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 }
1947 Py_INCREF(Py_None); resultobj = Py_None;
1948 return resultobj;
1949 fail:
1950 return NULL;
1951 }
1952
1953
1954 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1955 PyObject *resultobj;
1956 wxBrush *arg1 = (wxBrush *) 0 ;
1957 wxBitmap *arg2 = 0 ;
1958 PyObject * obj0 = 0 ;
1959 PyObject * obj1 = 0 ;
1960 char *kwnames[] = {
1961 (char *) "self",(char *) "stipple", NULL
1962 };
1963
1964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1966 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1967 if (arg2 == NULL) {
1968 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1969 }
1970 {
1971 PyThreadState* __tstate = wxPyBeginAllowThreads();
1972 (arg1)->SetStipple((wxBitmap const &)*arg2);
1973
1974 wxPyEndAllowThreads(__tstate);
1975 if (PyErr_Occurred()) SWIG_fail;
1976 }
1977 Py_INCREF(Py_None); resultobj = Py_None;
1978 return resultobj;
1979 fail:
1980 return NULL;
1981 }
1982
1983
1984 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1985 PyObject *resultobj;
1986 wxBrush *arg1 = (wxBrush *) 0 ;
1987 wxColour result;
1988 PyObject * obj0 = 0 ;
1989 char *kwnames[] = {
1990 (char *) "self", NULL
1991 };
1992
1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
1994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1995 {
1996 PyThreadState* __tstate = wxPyBeginAllowThreads();
1997 result = ((wxBrush const *)arg1)->GetColour();
1998
1999 wxPyEndAllowThreads(__tstate);
2000 if (PyErr_Occurred()) SWIG_fail;
2001 }
2002 {
2003 wxColour * resultptr;
2004 resultptr = new wxColour((wxColour &) result);
2005 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2006 }
2007 return resultobj;
2008 fail:
2009 return NULL;
2010 }
2011
2012
2013 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject *resultobj;
2015 wxBrush *arg1 = (wxBrush *) 0 ;
2016 int result;
2017 PyObject * obj0 = 0 ;
2018 char *kwnames[] = {
2019 (char *) "self", NULL
2020 };
2021
2022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2024 {
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
2026 result = (int)((wxBrush const *)arg1)->GetStyle();
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) SWIG_fail;
2030 }
2031 resultobj = PyInt_FromLong((long)result);
2032 return resultobj;
2033 fail:
2034 return NULL;
2035 }
2036
2037
2038 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2039 PyObject *resultobj;
2040 wxBrush *arg1 = (wxBrush *) 0 ;
2041 wxBitmap *result;
2042 PyObject * obj0 = 0 ;
2043 char *kwnames[] = {
2044 (char *) "self", NULL
2045 };
2046
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2049 {
2050 PyThreadState* __tstate = wxPyBeginAllowThreads();
2051 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2052
2053 wxPyEndAllowThreads(__tstate);
2054 if (PyErr_Occurred()) SWIG_fail;
2055 }
2056 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2057 return resultobj;
2058 fail:
2059 return NULL;
2060 }
2061
2062
2063 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject *resultobj;
2065 wxBrush *arg1 = (wxBrush *) 0 ;
2066 bool result;
2067 PyObject * obj0 = 0 ;
2068 char *kwnames[] = {
2069 (char *) "self", NULL
2070 };
2071
2072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2074 {
2075 PyThreadState* __tstate = wxPyBeginAllowThreads();
2076 result = (bool)(arg1)->Ok();
2077
2078 wxPyEndAllowThreads(__tstate);
2079 if (PyErr_Occurred()) SWIG_fail;
2080 }
2081 resultobj = PyInt_FromLong((long)result);
2082 return resultobj;
2083 fail:
2084 return NULL;
2085 }
2086
2087
2088 static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2089 PyObject *resultobj;
2090 wxBrush *arg1 = (wxBrush *) 0 ;
2091 short result;
2092 PyObject * obj0 = 0 ;
2093 char *kwnames[] = {
2094 (char *) "self", NULL
2095 };
2096
2097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2099 {
2100 PyThreadState* __tstate = wxPyBeginAllowThreads();
2101 result = (short)(arg1)->GetMacTheme();
2102
2103 wxPyEndAllowThreads(__tstate);
2104 if (PyErr_Occurred()) SWIG_fail;
2105 }
2106 resultobj = PyInt_FromLong((long)result);
2107 return resultobj;
2108 fail:
2109 return NULL;
2110 }
2111
2112
2113 static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2114 PyObject *resultobj;
2115 wxBrush *arg1 = (wxBrush *) 0 ;
2116 short arg2 ;
2117 PyObject * obj0 = 0 ;
2118 char *kwnames[] = {
2119 (char *) "self",(char *) "macThemeBrush", NULL
2120 };
2121
2122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oh:Brush_SetMacTheme",kwnames,&obj0,&arg2)) goto fail;
2123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2124 {
2125 PyThreadState* __tstate = wxPyBeginAllowThreads();
2126 (arg1)->SetMacTheme(arg2);
2127
2128 wxPyEndAllowThreads(__tstate);
2129 if (PyErr_Occurred()) SWIG_fail;
2130 }
2131 Py_INCREF(Py_None); resultobj = Py_None;
2132 return resultobj;
2133 fail:
2134 return NULL;
2135 }
2136
2137
2138 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2139 PyObject *obj;
2140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2141 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2142 Py_INCREF(obj);
2143 return Py_BuildValue((char *)"");
2144 }
2145 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2146 PyObject *resultobj;
2147 wxString *arg1 = 0 ;
2148 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2149 wxBitmap *result;
2150 bool temp1 = False ;
2151 PyObject * obj0 = 0 ;
2152 char *kwnames[] = {
2153 (char *) "name",(char *) "type", NULL
2154 };
2155
2156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2157 {
2158 arg1 = wxString_in_helper(obj0);
2159 if (arg1 == NULL) SWIG_fail;
2160 temp1 = True;
2161 }
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2170 {
2171 if (temp1)
2172 delete arg1;
2173 }
2174 return resultobj;
2175 fail:
2176 {
2177 if (temp1)
2178 delete arg1;
2179 }
2180 return NULL;
2181 }
2182
2183
2184 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2185 PyObject *resultobj;
2186 wxBitmap *arg1 = (wxBitmap *) 0 ;
2187 PyObject * obj0 = 0 ;
2188 char *kwnames[] = {
2189 (char *) "self", NULL
2190 };
2191
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2194 {
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 delete arg1;
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 Py_INCREF(Py_None); resultobj = Py_None;
2202 return resultobj;
2203 fail:
2204 return NULL;
2205 }
2206
2207
2208 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2209 PyObject *resultobj;
2210 int arg1 ;
2211 int arg2 ;
2212 int arg3 = (int) -1 ;
2213 wxBitmap *result;
2214 char *kwnames[] = {
2215 (char *) "width",(char *) "height",(char *) "depth", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2219 {
2220 PyThreadState* __tstate = wxPyBeginAllowThreads();
2221 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2222
2223 wxPyEndAllowThreads(__tstate);
2224 if (PyErr_Occurred()) SWIG_fail;
2225 }
2226 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2227 return resultobj;
2228 fail:
2229 return NULL;
2230 }
2231
2232
2233 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2234 PyObject *resultobj;
2235 wxIcon *arg1 = 0 ;
2236 wxBitmap *result;
2237 PyObject * obj0 = 0 ;
2238 char *kwnames[] = {
2239 (char *) "icon", NULL
2240 };
2241
2242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2244 if (arg1 == NULL) {
2245 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2246 }
2247 {
2248 PyThreadState* __tstate = wxPyBeginAllowThreads();
2249 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2250
2251 wxPyEndAllowThreads(__tstate);
2252 if (PyErr_Occurred()) SWIG_fail;
2253 }
2254 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2255 return resultobj;
2256 fail:
2257 return NULL;
2258 }
2259
2260
2261 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2262 PyObject *resultobj;
2263 wxImage *arg1 = 0 ;
2264 int arg2 = (int) -1 ;
2265 wxBitmap *result;
2266 PyObject * obj0 = 0 ;
2267 char *kwnames[] = {
2268 (char *) "image",(char *) "depth", NULL
2269 };
2270
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2273 if (arg1 == NULL) {
2274 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2275 }
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2284 return resultobj;
2285 fail:
2286 return NULL;
2287 }
2288
2289
2290 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject *resultobj;
2292 PyObject *arg1 = (PyObject *) 0 ;
2293 wxBitmap *result;
2294 PyObject * obj0 = 0 ;
2295 char *kwnames[] = {
2296 (char *) "listOfStrings", NULL
2297 };
2298
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2300 arg1 = obj0;
2301 {
2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
2303 result = (wxBitmap *)new_wxBitmap(arg1);
2304
2305 wxPyEndAllowThreads(__tstate);
2306 if (PyErr_Occurred()) SWIG_fail;
2307 }
2308 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2309 return resultobj;
2310 fail:
2311 return NULL;
2312 }
2313
2314
2315 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2316 PyObject *resultobj;
2317 PyObject *arg1 = (PyObject *) 0 ;
2318 int arg2 ;
2319 int arg3 ;
2320 int arg4 = (int) 1 ;
2321 wxBitmap *result;
2322 PyObject * obj0 = 0 ;
2323 char *kwnames[] = {
2324 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2325 };
2326
2327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2328 arg1 = obj0;
2329 {
2330 PyThreadState* __tstate = wxPyBeginAllowThreads();
2331 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2332
2333 wxPyEndAllowThreads(__tstate);
2334 if (PyErr_Occurred()) SWIG_fail;
2335 }
2336 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2337 return resultobj;
2338 fail:
2339 return NULL;
2340 }
2341
2342
2343 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2344 PyObject *resultobj;
2345 wxBitmap *arg1 = (wxBitmap *) 0 ;
2346 bool result;
2347 PyObject * obj0 = 0 ;
2348 char *kwnames[] = {
2349 (char *) "self", NULL
2350 };
2351
2352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2354 {
2355 PyThreadState* __tstate = wxPyBeginAllowThreads();
2356 result = (bool)(arg1)->Ok();
2357
2358 wxPyEndAllowThreads(__tstate);
2359 if (PyErr_Occurred()) SWIG_fail;
2360 }
2361 resultobj = PyInt_FromLong((long)result);
2362 return resultobj;
2363 fail:
2364 return NULL;
2365 }
2366
2367
2368 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2369 PyObject *resultobj;
2370 wxBitmap *arg1 = (wxBitmap *) 0 ;
2371 int result;
2372 PyObject * obj0 = 0 ;
2373 char *kwnames[] = {
2374 (char *) "self", NULL
2375 };
2376
2377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 result = (int)(arg1)->GetWidth();
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 resultobj = PyInt_FromLong((long)result);
2387 return resultobj;
2388 fail:
2389 return NULL;
2390 }
2391
2392
2393 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxBitmap *arg1 = (wxBitmap *) 0 ;
2396 int result;
2397 PyObject * obj0 = 0 ;
2398 char *kwnames[] = {
2399 (char *) "self", NULL
2400 };
2401
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 result = (int)(arg1)->GetHeight();
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 resultobj = PyInt_FromLong((long)result);
2412 return resultobj;
2413 fail:
2414 return NULL;
2415 }
2416
2417
2418 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2419 PyObject *resultobj;
2420 wxBitmap *arg1 = (wxBitmap *) 0 ;
2421 int result;
2422 PyObject * obj0 = 0 ;
2423 char *kwnames[] = {
2424 (char *) "self", NULL
2425 };
2426
2427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2429 {
2430 PyThreadState* __tstate = wxPyBeginAllowThreads();
2431 result = (int)(arg1)->GetDepth();
2432
2433 wxPyEndAllowThreads(__tstate);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 }
2436 resultobj = PyInt_FromLong((long)result);
2437 return resultobj;
2438 fail:
2439 return NULL;
2440 }
2441
2442
2443 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2444 PyObject *resultobj;
2445 wxBitmap *arg1 = (wxBitmap *) 0 ;
2446 SwigValueWrapper< wxImage > result;
2447 PyObject * obj0 = 0 ;
2448 char *kwnames[] = {
2449 (char *) "self", NULL
2450 };
2451
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2454 {
2455 PyThreadState* __tstate = wxPyBeginAllowThreads();
2456 result = ((wxBitmap const *)arg1)->ConvertToImage();
2457
2458 wxPyEndAllowThreads(__tstate);
2459 if (PyErr_Occurred()) SWIG_fail;
2460 }
2461 {
2462 wxImage * resultptr;
2463 resultptr = new wxImage((wxImage &) result);
2464 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2465 }
2466 return resultobj;
2467 fail:
2468 return NULL;
2469 }
2470
2471
2472 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2473 PyObject *resultobj;
2474 wxBitmap *arg1 = (wxBitmap *) 0 ;
2475 wxMask *result;
2476 PyObject * obj0 = 0 ;
2477 char *kwnames[] = {
2478 (char *) "self", NULL
2479 };
2480
2481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2483 {
2484 PyThreadState* __tstate = wxPyBeginAllowThreads();
2485 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2486
2487 wxPyEndAllowThreads(__tstate);
2488 if (PyErr_Occurred()) SWIG_fail;
2489 }
2490 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2491 return resultobj;
2492 fail:
2493 return NULL;
2494 }
2495
2496
2497 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2498 PyObject *resultobj;
2499 wxBitmap *arg1 = (wxBitmap *) 0 ;
2500 wxMask *arg2 = (wxMask *) 0 ;
2501 PyObject * obj0 = 0 ;
2502 PyObject * obj1 = 0 ;
2503 char *kwnames[] = {
2504 (char *) "self",(char *) "mask", NULL
2505 };
2506
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2509 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2510 {
2511 PyThreadState* __tstate = wxPyBeginAllowThreads();
2512 (arg1)->SetMask(arg2);
2513
2514 wxPyEndAllowThreads(__tstate);
2515 if (PyErr_Occurred()) SWIG_fail;
2516 }
2517 Py_INCREF(Py_None); resultobj = Py_None;
2518 return resultobj;
2519 fail:
2520 return NULL;
2521 }
2522
2523
2524 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2525 PyObject *resultobj;
2526 wxBitmap *arg1 = (wxBitmap *) 0 ;
2527 wxColour *arg2 = 0 ;
2528 wxColour temp2 ;
2529 PyObject * obj0 = 0 ;
2530 PyObject * obj1 = 0 ;
2531 char *kwnames[] = {
2532 (char *) "self",(char *) "colour", NULL
2533 };
2534
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2537 {
2538 arg2 = &temp2;
2539 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2540 }
2541 {
2542 PyThreadState* __tstate = wxPyBeginAllowThreads();
2543 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2544
2545 wxPyEndAllowThreads(__tstate);
2546 if (PyErr_Occurred()) SWIG_fail;
2547 }
2548 Py_INCREF(Py_None); resultobj = Py_None;
2549 return resultobj;
2550 fail:
2551 return NULL;
2552 }
2553
2554
2555 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2556 PyObject *resultobj;
2557 wxBitmap *arg1 = (wxBitmap *) 0 ;
2558 wxRect *arg2 = 0 ;
2559 SwigValueWrapper< wxBitmap > result;
2560 wxRect temp2 ;
2561 PyObject * obj0 = 0 ;
2562 PyObject * obj1 = 0 ;
2563 char *kwnames[] = {
2564 (char *) "self",(char *) "rect", NULL
2565 };
2566
2567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2569 {
2570 arg2 = &temp2;
2571 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2572 }
2573 {
2574 PyThreadState* __tstate = wxPyBeginAllowThreads();
2575 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2576
2577 wxPyEndAllowThreads(__tstate);
2578 if (PyErr_Occurred()) SWIG_fail;
2579 }
2580 {
2581 wxBitmap * resultptr;
2582 resultptr = new wxBitmap((wxBitmap &) result);
2583 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2584 }
2585 return resultobj;
2586 fail:
2587 return NULL;
2588 }
2589
2590
2591 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject *resultobj;
2593 wxBitmap *arg1 = (wxBitmap *) 0 ;
2594 wxString *arg2 = 0 ;
2595 int arg3 ;
2596 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2597 bool result;
2598 bool temp2 = False ;
2599 PyObject * obj0 = 0 ;
2600 PyObject * obj1 = 0 ;
2601 PyObject * obj3 = 0 ;
2602 char *kwnames[] = {
2603 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2604 };
2605
2606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2608 {
2609 arg2 = wxString_in_helper(obj1);
2610 if (arg2 == NULL) SWIG_fail;
2611 temp2 = True;
2612 }
2613 if (obj3) {
2614 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2615 }
2616 {
2617 PyThreadState* __tstate = wxPyBeginAllowThreads();
2618 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2619
2620 wxPyEndAllowThreads(__tstate);
2621 if (PyErr_Occurred()) SWIG_fail;
2622 }
2623 resultobj = PyInt_FromLong((long)result);
2624 {
2625 if (temp2)
2626 delete arg2;
2627 }
2628 return resultobj;
2629 fail:
2630 {
2631 if (temp2)
2632 delete arg2;
2633 }
2634 return NULL;
2635 }
2636
2637
2638 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2639 PyObject *resultobj;
2640 wxBitmap *arg1 = (wxBitmap *) 0 ;
2641 wxString *arg2 = 0 ;
2642 int arg3 ;
2643 bool result;
2644 bool temp2 = False ;
2645 PyObject * obj0 = 0 ;
2646 PyObject * obj1 = 0 ;
2647 char *kwnames[] = {
2648 (char *) "self",(char *) "name",(char *) "type", NULL
2649 };
2650
2651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2653 {
2654 arg2 = wxString_in_helper(obj1);
2655 if (arg2 == NULL) SWIG_fail;
2656 temp2 = True;
2657 }
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 resultobj = PyInt_FromLong((long)result);
2666 {
2667 if (temp2)
2668 delete arg2;
2669 }
2670 return resultobj;
2671 fail:
2672 {
2673 if (temp2)
2674 delete arg2;
2675 }
2676 return NULL;
2677 }
2678
2679
2680 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2681 PyObject *resultobj;
2682 wxBitmap *arg1 = (wxBitmap *) 0 ;
2683 wxIcon *arg2 = 0 ;
2684 bool result;
2685 PyObject * obj0 = 0 ;
2686 PyObject * obj1 = 0 ;
2687 char *kwnames[] = {
2688 (char *) "self",(char *) "icon", NULL
2689 };
2690
2691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2693 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2694 if (arg2 == NULL) {
2695 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2696 }
2697 {
2698 PyThreadState* __tstate = wxPyBeginAllowThreads();
2699 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2700
2701 wxPyEndAllowThreads(__tstate);
2702 if (PyErr_Occurred()) SWIG_fail;
2703 }
2704 resultobj = PyInt_FromLong((long)result);
2705 return resultobj;
2706 fail:
2707 return NULL;
2708 }
2709
2710
2711 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2712 PyObject *resultobj;
2713 wxBitmap *arg1 = (wxBitmap *) 0 ;
2714 int arg2 ;
2715 PyObject * obj0 = 0 ;
2716 char *kwnames[] = {
2717 (char *) "self",(char *) "height", NULL
2718 };
2719
2720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2722 {
2723 PyThreadState* __tstate = wxPyBeginAllowThreads();
2724 (arg1)->SetHeight(arg2);
2725
2726 wxPyEndAllowThreads(__tstate);
2727 if (PyErr_Occurred()) SWIG_fail;
2728 }
2729 Py_INCREF(Py_None); resultobj = Py_None;
2730 return resultobj;
2731 fail:
2732 return NULL;
2733 }
2734
2735
2736 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2737 PyObject *resultobj;
2738 wxBitmap *arg1 = (wxBitmap *) 0 ;
2739 int arg2 ;
2740 PyObject * obj0 = 0 ;
2741 char *kwnames[] = {
2742 (char *) "self",(char *) "width", NULL
2743 };
2744
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2747 {
2748 PyThreadState* __tstate = wxPyBeginAllowThreads();
2749 (arg1)->SetWidth(arg2);
2750
2751 wxPyEndAllowThreads(__tstate);
2752 if (PyErr_Occurred()) SWIG_fail;
2753 }
2754 Py_INCREF(Py_None); resultobj = Py_None;
2755 return resultobj;
2756 fail:
2757 return NULL;
2758 }
2759
2760
2761 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2762 PyObject *resultobj;
2763 wxBitmap *arg1 = (wxBitmap *) 0 ;
2764 int arg2 ;
2765 PyObject * obj0 = 0 ;
2766 char *kwnames[] = {
2767 (char *) "self",(char *) "depth", NULL
2768 };
2769
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2772 {
2773 PyThreadState* __tstate = wxPyBeginAllowThreads();
2774 (arg1)->SetDepth(arg2);
2775
2776 wxPyEndAllowThreads(__tstate);
2777 if (PyErr_Occurred()) SWIG_fail;
2778 }
2779 Py_INCREF(Py_None); resultobj = Py_None;
2780 return resultobj;
2781 fail:
2782 return NULL;
2783 }
2784
2785
2786 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2787 PyObject *obj;
2788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2789 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2790 Py_INCREF(obj);
2791 return Py_BuildValue((char *)"");
2792 }
2793 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2794 PyObject *resultobj;
2795 wxBitmap *arg1 = 0 ;
2796 wxMask *result;
2797 PyObject * obj0 = 0 ;
2798 char *kwnames[] = {
2799 (char *) "bitmap", NULL
2800 };
2801
2802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2804 if (arg1 == NULL) {
2805 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2806 }
2807 {
2808 PyThreadState* __tstate = wxPyBeginAllowThreads();
2809 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2810
2811 wxPyEndAllowThreads(__tstate);
2812 if (PyErr_Occurred()) SWIG_fail;
2813 }
2814 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2815 return resultobj;
2816 fail:
2817 return NULL;
2818 }
2819
2820
2821 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2822 PyObject *resultobj;
2823 wxBitmap *arg1 = 0 ;
2824 wxColour *arg2 = 0 ;
2825 wxMask *result;
2826 wxColour temp2 ;
2827 PyObject * obj0 = 0 ;
2828 PyObject * obj1 = 0 ;
2829 char *kwnames[] = {
2830 (char *) "bitmap",(char *) "colour", NULL
2831 };
2832
2833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
2834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2835 if (arg1 == NULL) {
2836 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2837 }
2838 {
2839 arg2 = &temp2;
2840 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2841 }
2842 {
2843 PyThreadState* __tstate = wxPyBeginAllowThreads();
2844 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
2845
2846 wxPyEndAllowThreads(__tstate);
2847 if (PyErr_Occurred()) SWIG_fail;
2848 }
2849 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2850 return resultobj;
2851 fail:
2852 return NULL;
2853 }
2854
2855
2856 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
2857 PyObject *obj;
2858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2859 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
2860 Py_INCREF(obj);
2861 return Py_BuildValue((char *)"");
2862 }
2863 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2864 PyObject *resultobj;
2865 wxString *arg1 = 0 ;
2866 long arg2 ;
2867 int arg3 = (int) -1 ;
2868 int arg4 = (int) -1 ;
2869 wxIcon *result;
2870 bool temp1 = False ;
2871 PyObject * obj0 = 0 ;
2872 char *kwnames[] = {
2873 (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL
2874 };
2875
2876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2877 {
2878 arg1 = wxString_in_helper(obj0);
2879 if (arg1 == NULL) SWIG_fail;
2880 temp1 = True;
2881 }
2882 {
2883 PyThreadState* __tstate = wxPyBeginAllowThreads();
2884 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
2885
2886 wxPyEndAllowThreads(__tstate);
2887 if (PyErr_Occurred()) SWIG_fail;
2888 }
2889 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2890 {
2891 if (temp1)
2892 delete arg1;
2893 }
2894 return resultobj;
2895 fail:
2896 {
2897 if (temp1)
2898 delete arg1;
2899 }
2900 return NULL;
2901 }
2902
2903
2904 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2905 PyObject *resultobj;
2906 wxIcon *arg1 = (wxIcon *) 0 ;
2907 PyObject * obj0 = 0 ;
2908 char *kwnames[] = {
2909 (char *) "self", NULL
2910 };
2911
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2914 {
2915 PyThreadState* __tstate = wxPyBeginAllowThreads();
2916 delete arg1;
2917
2918 wxPyEndAllowThreads(__tstate);
2919 if (PyErr_Occurred()) SWIG_fail;
2920 }
2921 Py_INCREF(Py_None); resultobj = Py_None;
2922 return resultobj;
2923 fail:
2924 return NULL;
2925 }
2926
2927
2928 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2929 PyObject *resultobj;
2930 wxIcon *result;
2931 char *kwnames[] = {
2932 NULL
2933 };
2934
2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
2936 {
2937 PyThreadState* __tstate = wxPyBeginAllowThreads();
2938 result = (wxIcon *)new wxIcon();
2939
2940 wxPyEndAllowThreads(__tstate);
2941 if (PyErr_Occurred()) SWIG_fail;
2942 }
2943 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2944 return resultobj;
2945 fail:
2946 return NULL;
2947 }
2948
2949
2950 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2951 PyObject *resultobj;
2952 wxIconLocation *arg1 = 0 ;
2953 wxIcon *result;
2954 PyObject * obj0 = 0 ;
2955 char *kwnames[] = {
2956 (char *) "loc", NULL
2957 };
2958
2959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2961 if (arg1 == NULL) {
2962 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2963 }
2964 {
2965 PyThreadState* __tstate = wxPyBeginAllowThreads();
2966 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
2967
2968 wxPyEndAllowThreads(__tstate);
2969 if (PyErr_Occurred()) SWIG_fail;
2970 }
2971 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2972 return resultobj;
2973 fail:
2974 return NULL;
2975 }
2976
2977
2978 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2979 PyObject *resultobj;
2980 wxBitmap *arg1 = 0 ;
2981 wxIcon *result;
2982 PyObject * obj0 = 0 ;
2983 char *kwnames[] = {
2984 (char *) "bmp", NULL
2985 };
2986
2987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2989 if (arg1 == NULL) {
2990 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2991 }
2992 {
2993 PyThreadState* __tstate = wxPyBeginAllowThreads();
2994 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
2995
2996 wxPyEndAllowThreads(__tstate);
2997 if (PyErr_Occurred()) SWIG_fail;
2998 }
2999 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3000 return resultobj;
3001 fail:
3002 return NULL;
3003 }
3004
3005
3006 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3007 PyObject *resultobj;
3008 PyObject *arg1 = (PyObject *) 0 ;
3009 wxIcon *result;
3010 PyObject * obj0 = 0 ;
3011 char *kwnames[] = {
3012 (char *) "listOfStrings", NULL
3013 };
3014
3015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3016 arg1 = obj0;
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 result = (wxIcon *)new_wxIcon(arg1);
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) SWIG_fail;
3023 }
3024 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3025 return resultobj;
3026 fail:
3027 return NULL;
3028 }
3029
3030
3031 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3032 PyObject *resultobj;
3033 wxIcon *arg1 = (wxIcon *) 0 ;
3034 bool result;
3035 PyObject * obj0 = 0 ;
3036 char *kwnames[] = {
3037 (char *) "self", NULL
3038 };
3039
3040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3042 {
3043 PyThreadState* __tstate = wxPyBeginAllowThreads();
3044 result = (bool)(arg1)->Ok();
3045
3046 wxPyEndAllowThreads(__tstate);
3047 if (PyErr_Occurred()) SWIG_fail;
3048 }
3049 resultobj = PyInt_FromLong((long)result);
3050 return resultobj;
3051 fail:
3052 return NULL;
3053 }
3054
3055
3056 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3057 PyObject *resultobj;
3058 wxIcon *arg1 = (wxIcon *) 0 ;
3059 int result;
3060 PyObject * obj0 = 0 ;
3061 char *kwnames[] = {
3062 (char *) "self", NULL
3063 };
3064
3065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3067 {
3068 PyThreadState* __tstate = wxPyBeginAllowThreads();
3069 result = (int)(arg1)->GetWidth();
3070
3071 wxPyEndAllowThreads(__tstate);
3072 if (PyErr_Occurred()) SWIG_fail;
3073 }
3074 resultobj = PyInt_FromLong((long)result);
3075 return resultobj;
3076 fail:
3077 return NULL;
3078 }
3079
3080
3081 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3082 PyObject *resultobj;
3083 wxIcon *arg1 = (wxIcon *) 0 ;
3084 int result;
3085 PyObject * obj0 = 0 ;
3086 char *kwnames[] = {
3087 (char *) "self", NULL
3088 };
3089
3090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3092 {
3093 PyThreadState* __tstate = wxPyBeginAllowThreads();
3094 result = (int)(arg1)->GetHeight();
3095
3096 wxPyEndAllowThreads(__tstate);
3097 if (PyErr_Occurred()) SWIG_fail;
3098 }
3099 resultobj = PyInt_FromLong((long)result);
3100 return resultobj;
3101 fail:
3102 return NULL;
3103 }
3104
3105
3106 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3107 PyObject *resultobj;
3108 wxIcon *arg1 = (wxIcon *) 0 ;
3109 int result;
3110 PyObject * obj0 = 0 ;
3111 char *kwnames[] = {
3112 (char *) "self", NULL
3113 };
3114
3115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3117 {
3118 PyThreadState* __tstate = wxPyBeginAllowThreads();
3119 result = (int)(arg1)->GetDepth();
3120
3121 wxPyEndAllowThreads(__tstate);
3122 if (PyErr_Occurred()) SWIG_fail;
3123 }
3124 resultobj = PyInt_FromLong((long)result);
3125 return resultobj;
3126 fail:
3127 return NULL;
3128 }
3129
3130
3131 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3132 PyObject *resultobj;
3133 wxIcon *arg1 = (wxIcon *) 0 ;
3134 int arg2 ;
3135 PyObject * obj0 = 0 ;
3136 char *kwnames[] = {
3137 (char *) "self",(char *) "w", NULL
3138 };
3139
3140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3142 {
3143 PyThreadState* __tstate = wxPyBeginAllowThreads();
3144 (arg1)->SetWidth(arg2);
3145
3146 wxPyEndAllowThreads(__tstate);
3147 if (PyErr_Occurred()) SWIG_fail;
3148 }
3149 Py_INCREF(Py_None); resultobj = Py_None;
3150 return resultobj;
3151 fail:
3152 return NULL;
3153 }
3154
3155
3156 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3157 PyObject *resultobj;
3158 wxIcon *arg1 = (wxIcon *) 0 ;
3159 int arg2 ;
3160 PyObject * obj0 = 0 ;
3161 char *kwnames[] = {
3162 (char *) "self",(char *) "h", NULL
3163 };
3164
3165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3167 {
3168 PyThreadState* __tstate = wxPyBeginAllowThreads();
3169 (arg1)->SetHeight(arg2);
3170
3171 wxPyEndAllowThreads(__tstate);
3172 if (PyErr_Occurred()) SWIG_fail;
3173 }
3174 Py_INCREF(Py_None); resultobj = Py_None;
3175 return resultobj;
3176 fail:
3177 return NULL;
3178 }
3179
3180
3181 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3182 PyObject *resultobj;
3183 wxIcon *arg1 = (wxIcon *) 0 ;
3184 int arg2 ;
3185 PyObject * obj0 = 0 ;
3186 char *kwnames[] = {
3187 (char *) "self",(char *) "d", NULL
3188 };
3189
3190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3192 {
3193 PyThreadState* __tstate = wxPyBeginAllowThreads();
3194 (arg1)->SetDepth(arg2);
3195
3196 wxPyEndAllowThreads(__tstate);
3197 if (PyErr_Occurred()) SWIG_fail;
3198 }
3199 Py_INCREF(Py_None); resultobj = Py_None;
3200 return resultobj;
3201 fail:
3202 return NULL;
3203 }
3204
3205
3206 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3207 PyObject *resultobj;
3208 wxIcon *arg1 = (wxIcon *) 0 ;
3209 wxBitmap *arg2 = 0 ;
3210 PyObject * obj0 = 0 ;
3211 PyObject * obj1 = 0 ;
3212 char *kwnames[] = {
3213 (char *) "self",(char *) "bmp", NULL
3214 };
3215
3216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3218 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3219 if (arg2 == NULL) {
3220 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3221 }
3222 {
3223 PyThreadState* __tstate = wxPyBeginAllowThreads();
3224 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3225
3226 wxPyEndAllowThreads(__tstate);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 }
3229 Py_INCREF(Py_None); resultobj = Py_None;
3230 return resultobj;
3231 fail:
3232 return NULL;
3233 }
3234
3235
3236 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3237 PyObject *obj;
3238 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3239 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3240 Py_INCREF(obj);
3241 return Py_BuildValue((char *)"");
3242 }
3243 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3244 PyObject *resultobj;
3245 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3246 int arg2 = (int) 0 ;
3247 wxIconLocation *result;
3248 PyObject * obj0 = 0 ;
3249 char *kwnames[] = {
3250 (char *) "filename",(char *) "num", NULL
3251 };
3252
3253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3254 if (obj0) {
3255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3256 }
3257 {
3258 PyThreadState* __tstate = wxPyBeginAllowThreads();
3259 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3260
3261 wxPyEndAllowThreads(__tstate);
3262 if (PyErr_Occurred()) SWIG_fail;
3263 }
3264 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3265 return resultobj;
3266 fail:
3267 return NULL;
3268 }
3269
3270
3271 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject *resultobj;
3273 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3274 PyObject * obj0 = 0 ;
3275 char *kwnames[] = {
3276 (char *) "self", NULL
3277 };
3278
3279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 delete arg1;
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 Py_INCREF(Py_None); resultobj = Py_None;
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3296 PyObject *resultobj;
3297 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3298 bool result;
3299 PyObject * obj0 = 0 ;
3300 char *kwnames[] = {
3301 (char *) "self", NULL
3302 };
3303
3304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3306 {
3307 PyThreadState* __tstate = wxPyBeginAllowThreads();
3308 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3309
3310 wxPyEndAllowThreads(__tstate);
3311 if (PyErr_Occurred()) SWIG_fail;
3312 }
3313 resultobj = PyInt_FromLong((long)result);
3314 return resultobj;
3315 fail:
3316 return NULL;
3317 }
3318
3319
3320 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3321 PyObject *resultobj;
3322 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3323 wxString *arg2 = 0 ;
3324 bool temp2 = False ;
3325 PyObject * obj0 = 0 ;
3326 PyObject * obj1 = 0 ;
3327 char *kwnames[] = {
3328 (char *) "self",(char *) "filename", NULL
3329 };
3330
3331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3333 {
3334 arg2 = wxString_in_helper(obj1);
3335 if (arg2 == NULL) SWIG_fail;
3336 temp2 = True;
3337 }
3338 {
3339 PyThreadState* __tstate = wxPyBeginAllowThreads();
3340 (arg1)->SetFileName((wxString const &)*arg2);
3341
3342 wxPyEndAllowThreads(__tstate);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 }
3345 Py_INCREF(Py_None); resultobj = Py_None;
3346 {
3347 if (temp2)
3348 delete arg2;
3349 }
3350 return resultobj;
3351 fail:
3352 {
3353 if (temp2)
3354 delete arg2;
3355 }
3356 return NULL;
3357 }
3358
3359
3360 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3361 PyObject *resultobj;
3362 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3363 wxString *result;
3364 PyObject * obj0 = 0 ;
3365 char *kwnames[] = {
3366 (char *) "self", NULL
3367 };
3368
3369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3371 {
3372 PyThreadState* __tstate = wxPyBeginAllowThreads();
3373 {
3374 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3375 result = (wxString *) &_result_ref;
3376 }
3377
3378 wxPyEndAllowThreads(__tstate);
3379 if (PyErr_Occurred()) SWIG_fail;
3380 }
3381 {
3382 #if wxUSE_UNICODE
3383 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3384 #else
3385 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3386 #endif
3387 }
3388 return resultobj;
3389 fail:
3390 return NULL;
3391 }
3392
3393
3394 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3395 PyObject *resultobj;
3396 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3397 int arg2 ;
3398 PyObject * obj0 = 0 ;
3399 char *kwnames[] = {
3400 (char *) "self",(char *) "num", NULL
3401 };
3402
3403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3405 {
3406 PyThreadState* __tstate = wxPyBeginAllowThreads();
3407 wxIconLocation_SetIndex(arg1,arg2);
3408
3409 wxPyEndAllowThreads(__tstate);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
3412 Py_INCREF(Py_None); resultobj = Py_None;
3413 return resultobj;
3414 fail:
3415 return NULL;
3416 }
3417
3418
3419 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3420 PyObject *resultobj;
3421 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3422 int result;
3423 PyObject * obj0 = 0 ;
3424 char *kwnames[] = {
3425 (char *) "self", NULL
3426 };
3427
3428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3430 {
3431 PyThreadState* __tstate = wxPyBeginAllowThreads();
3432 result = (int)wxIconLocation_GetIndex(arg1);
3433
3434 wxPyEndAllowThreads(__tstate);
3435 if (PyErr_Occurred()) SWIG_fail;
3436 }
3437 resultobj = PyInt_FromLong((long)result);
3438 return resultobj;
3439 fail:
3440 return NULL;
3441 }
3442
3443
3444 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3445 PyObject *obj;
3446 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3447 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3448 Py_INCREF(obj);
3449 return Py_BuildValue((char *)"");
3450 }
3451 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxIconBundle *result;
3454 char *kwnames[] = {
3455 NULL
3456 };
3457
3458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3459 {
3460 PyThreadState* __tstate = wxPyBeginAllowThreads();
3461 result = (wxIconBundle *)new wxIconBundle();
3462
3463 wxPyEndAllowThreads(__tstate);
3464 if (PyErr_Occurred()) SWIG_fail;
3465 }
3466 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3467 return resultobj;
3468 fail:
3469 return NULL;
3470 }
3471
3472
3473 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3474 PyObject *resultobj;
3475 wxString *arg1 = 0 ;
3476 long arg2 ;
3477 wxIconBundle *result;
3478 bool temp1 = False ;
3479 PyObject * obj0 = 0 ;
3480 char *kwnames[] = {
3481 (char *) "file",(char *) "type", NULL
3482 };
3483
3484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3485 {
3486 arg1 = wxString_in_helper(obj0);
3487 if (arg1 == NULL) SWIG_fail;
3488 temp1 = True;
3489 }
3490 {
3491 PyThreadState* __tstate = wxPyBeginAllowThreads();
3492 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3493
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3498 {
3499 if (temp1)
3500 delete arg1;
3501 }
3502 return resultobj;
3503 fail:
3504 {
3505 if (temp1)
3506 delete arg1;
3507 }
3508 return NULL;
3509 }
3510
3511
3512 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3513 PyObject *resultobj;
3514 wxIcon *arg1 = 0 ;
3515 wxIconBundle *result;
3516 PyObject * obj0 = 0 ;
3517 char *kwnames[] = {
3518 (char *) "icon", NULL
3519 };
3520
3521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3523 if (arg1 == NULL) {
3524 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3525 }
3526 {
3527 PyThreadState* __tstate = wxPyBeginAllowThreads();
3528 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3529
3530 wxPyEndAllowThreads(__tstate);
3531 if (PyErr_Occurred()) SWIG_fail;
3532 }
3533 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3534 return resultobj;
3535 fail:
3536 return NULL;
3537 }
3538
3539
3540 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3541 PyObject *resultobj;
3542 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3543 PyObject * obj0 = 0 ;
3544 char *kwnames[] = {
3545 (char *) "self", NULL
3546 };
3547
3548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3550 {
3551 PyThreadState* __tstate = wxPyBeginAllowThreads();
3552 delete arg1;
3553
3554 wxPyEndAllowThreads(__tstate);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 Py_INCREF(Py_None); resultobj = Py_None;
3558 return resultobj;
3559 fail:
3560 return NULL;
3561 }
3562
3563
3564 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3565 PyObject *resultobj;
3566 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3567 wxIcon *arg2 = 0 ;
3568 PyObject * obj0 = 0 ;
3569 PyObject * obj1 = 0 ;
3570 char *kwnames[] = {
3571 (char *) "self",(char *) "icon", NULL
3572 };
3573
3574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3576 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3577 if (arg2 == NULL) {
3578 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3579 }
3580 {
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 (arg1)->AddIcon((wxIcon const &)*arg2);
3583
3584 wxPyEndAllowThreads(__tstate);
3585 if (PyErr_Occurred()) SWIG_fail;
3586 }
3587 Py_INCREF(Py_None); resultobj = Py_None;
3588 return resultobj;
3589 fail:
3590 return NULL;
3591 }
3592
3593
3594 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3595 PyObject *resultobj;
3596 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3597 wxString *arg2 = 0 ;
3598 long arg3 ;
3599 bool temp2 = False ;
3600 PyObject * obj0 = 0 ;
3601 PyObject * obj1 = 0 ;
3602 char *kwnames[] = {
3603 (char *) "self",(char *) "file",(char *) "type", NULL
3604 };
3605
3606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3608 {
3609 arg2 = wxString_in_helper(obj1);
3610 if (arg2 == NULL) SWIG_fail;
3611 temp2 = True;
3612 }
3613 {
3614 PyThreadState* __tstate = wxPyBeginAllowThreads();
3615 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3616
3617 wxPyEndAllowThreads(__tstate);
3618 if (PyErr_Occurred()) SWIG_fail;
3619 }
3620 Py_INCREF(Py_None); resultobj = Py_None;
3621 {
3622 if (temp2)
3623 delete arg2;
3624 }
3625 return resultobj;
3626 fail:
3627 {
3628 if (temp2)
3629 delete arg2;
3630 }
3631 return NULL;
3632 }
3633
3634
3635 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3636 PyObject *resultobj;
3637 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3638 wxSize *arg2 = 0 ;
3639 wxIcon *result;
3640 wxSize temp2 ;
3641 PyObject * obj0 = 0 ;
3642 PyObject * obj1 = 0 ;
3643 char *kwnames[] = {
3644 (char *) "self",(char *) "size", NULL
3645 };
3646
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3649 {
3650 arg2 = &temp2;
3651 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3652 }
3653 {
3654 PyThreadState* __tstate = wxPyBeginAllowThreads();
3655 {
3656 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3657 result = (wxIcon *) &_result_ref;
3658 }
3659
3660 wxPyEndAllowThreads(__tstate);
3661 if (PyErr_Occurred()) SWIG_fail;
3662 }
3663 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3664 return resultobj;
3665 fail:
3666 return NULL;
3667 }
3668
3669
3670 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3671 PyObject *obj;
3672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3673 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3674 Py_INCREF(obj);
3675 return Py_BuildValue((char *)"");
3676 }
3677 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3678 PyObject *resultobj;
3679 wxString *arg1 = (wxString *) 0 ;
3680 long arg2 ;
3681 int arg3 = (int) 0 ;
3682 int arg4 = (int) 0 ;
3683 wxCursor *result;
3684 PyObject * obj0 = 0 ;
3685 char *kwnames[] = {
3686 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3687 };
3688
3689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3691 {
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3694
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3699 return resultobj;
3700 fail:
3701 return NULL;
3702 }
3703
3704
3705 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3706 PyObject *resultobj;
3707 wxCursor *arg1 = (wxCursor *) 0 ;
3708 PyObject * obj0 = 0 ;
3709 char *kwnames[] = {
3710 (char *) "self", NULL
3711 };
3712
3713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3715 {
3716 PyThreadState* __tstate = wxPyBeginAllowThreads();
3717 delete arg1;
3718
3719 wxPyEndAllowThreads(__tstate);
3720 if (PyErr_Occurred()) SWIG_fail;
3721 }
3722 Py_INCREF(Py_None); resultobj = Py_None;
3723 return resultobj;
3724 fail:
3725 return NULL;
3726 }
3727
3728
3729 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3730 PyObject *resultobj;
3731 int arg1 ;
3732 wxCursor *result;
3733 char *kwnames[] = {
3734 (char *) "id", NULL
3735 };
3736
3737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 result = (wxCursor *)new wxCursor(arg1);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3746 return resultobj;
3747 fail:
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 wxImage *arg1 = 0 ;
3755 wxCursor *result;
3756 PyObject * obj0 = 0 ;
3757 char *kwnames[] = {
3758 (char *) "image", NULL
3759 };
3760
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
3762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3763 if (arg1 == NULL) {
3764 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3765 }
3766 {
3767 PyThreadState* __tstate = wxPyBeginAllowThreads();
3768 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
3769
3770 wxPyEndAllowThreads(__tstate);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3774 return resultobj;
3775 fail:
3776 return NULL;
3777 }
3778
3779
3780 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
3781 PyObject *resultobj;
3782 PyObject *arg1 = (PyObject *) 0 ;
3783 int arg2 ;
3784 int arg3 ;
3785 int arg4 = (int) -1 ;
3786 int arg5 = (int) -1 ;
3787 PyObject *arg6 = (PyObject *) 0 ;
3788 wxCursor *result;
3789 PyObject * obj0 = 0 ;
3790 PyObject * obj5 = 0 ;
3791 char *kwnames[] = {
3792 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
3793 };
3794
3795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
3796 arg1 = obj0;
3797 if (obj5) {
3798 arg6 = obj5;
3799 }
3800 {
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
3803
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3808 return resultobj;
3809 fail:
3810 return NULL;
3811 }
3812
3813
3814 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3815 PyObject *resultobj;
3816 wxCursor *arg1 = (wxCursor *) 0 ;
3817 bool result;
3818 PyObject * obj0 = 0 ;
3819 char *kwnames[] = {
3820 (char *) "self", NULL
3821 };
3822
3823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
3824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3825 {
3826 PyThreadState* __tstate = wxPyBeginAllowThreads();
3827 result = (bool)(arg1)->Ok();
3828
3829 wxPyEndAllowThreads(__tstate);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 }
3832 resultobj = PyInt_FromLong((long)result);
3833 return resultobj;
3834 fail:
3835 return NULL;
3836 }
3837
3838
3839 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
3840 PyObject *obj;
3841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3842 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
3843 Py_INCREF(obj);
3844 return Py_BuildValue((char *)"");
3845 }
3846 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3847 PyObject *resultobj;
3848 int arg1 = (int) 0 ;
3849 int arg2 = (int) 0 ;
3850 int arg3 = (int) 0 ;
3851 int arg4 = (int) 0 ;
3852 wxRegion *result;
3853 char *kwnames[] = {
3854 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
3858 {
3859 PyThreadState* __tstate = wxPyBeginAllowThreads();
3860 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
3861
3862 wxPyEndAllowThreads(__tstate);
3863 if (PyErr_Occurred()) SWIG_fail;
3864 }
3865 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3866 return resultobj;
3867 fail:
3868 return NULL;
3869 }
3870
3871
3872 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3873 PyObject *resultobj;
3874 wxBitmap *arg1 = 0 ;
3875 wxColour const &arg2_defvalue = wxNullColour ;
3876 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3877 int arg3 = (int) 0 ;
3878 wxRegion *result;
3879 wxColour temp2 ;
3880 PyObject * obj0 = 0 ;
3881 PyObject * obj1 = 0 ;
3882 char *kwnames[] = {
3883 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
3884 };
3885
3886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
3887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3888 if (arg1 == NULL) {
3889 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3890 }
3891 if (obj1) {
3892 {
3893 arg2 = &temp2;
3894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3895 }
3896 }
3897 {
3898 PyThreadState* __tstate = wxPyBeginAllowThreads();
3899 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
3900
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3905 return resultobj;
3906 fail:
3907 return NULL;
3908 }
3909
3910
3911 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
3912 PyObject *resultobj;
3913 int arg1 ;
3914 wxPoint *arg2 = (wxPoint *) 0 ;
3915 int arg3 = (int) wxWINDING_RULE ;
3916 wxRegion *result;
3917 PyObject * obj0 = 0 ;
3918 char *kwnames[] = {
3919 (char *) "points",(char *) "fillStyle", NULL
3920 };
3921
3922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
3923 {
3924 arg2 = wxPoint_LIST_helper(obj0, &arg1);
3925 if (arg2 == NULL) SWIG_fail;
3926 }
3927 {
3928 PyThreadState* __tstate = wxPyBeginAllowThreads();
3929 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
3930
3931 wxPyEndAllowThreads(__tstate);
3932 if (PyErr_Occurred()) SWIG_fail;
3933 }
3934 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3935 {
3936 if (arg2) delete [] arg2;
3937 }
3938 return resultobj;
3939 fail:
3940 {
3941 if (arg2) delete [] arg2;
3942 }
3943 return NULL;
3944 }
3945
3946
3947 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3948 PyObject *resultobj;
3949 wxRegion *arg1 = (wxRegion *) 0 ;
3950 PyObject * obj0 = 0 ;
3951 char *kwnames[] = {
3952 (char *) "self", NULL
3953 };
3954
3955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
3956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3957 {
3958 PyThreadState* __tstate = wxPyBeginAllowThreads();
3959 delete arg1;
3960
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
3964 Py_INCREF(Py_None); resultobj = Py_None;
3965 return resultobj;
3966 fail:
3967 return NULL;
3968 }
3969
3970
3971 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3972 PyObject *resultobj;
3973 wxRegion *arg1 = (wxRegion *) 0 ;
3974 PyObject * obj0 = 0 ;
3975 char *kwnames[] = {
3976 (char *) "self", NULL
3977 };
3978
3979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
3980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3981 {
3982 PyThreadState* __tstate = wxPyBeginAllowThreads();
3983 (arg1)->Clear();
3984
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 Py_INCREF(Py_None); resultobj = Py_None;
3989 return resultobj;
3990 fail:
3991 return NULL;
3992 }
3993
3994
3995 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
3996 PyObject *resultobj;
3997 wxRegion *arg1 = (wxRegion *) 0 ;
3998 int arg2 ;
3999 int arg3 ;
4000 int result;
4001 PyObject * obj0 = 0 ;
4002 char *kwnames[] = {
4003 (char *) "self",(char *) "x",(char *) "y", NULL
4004 };
4005
4006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
4007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4008 {
4009 PyThreadState* __tstate = wxPyBeginAllowThreads();
4010 result = (int)(arg1)->Contains(arg2,arg3);
4011
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 resultobj = PyInt_FromLong((long)result);
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj;
4024 wxRegion *arg1 = (wxRegion *) 0 ;
4025 wxPoint *arg2 = 0 ;
4026 int result;
4027 wxPoint temp2 ;
4028 PyObject * obj0 = 0 ;
4029 PyObject * obj1 = 0 ;
4030 char *kwnames[] = {
4031 (char *) "self",(char *) "pt", NULL
4032 };
4033
4034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4036 {
4037 arg2 = &temp2;
4038 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4039 }
4040 {
4041 PyThreadState* __tstate = wxPyBeginAllowThreads();
4042 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4043
4044 wxPyEndAllowThreads(__tstate);
4045 if (PyErr_Occurred()) SWIG_fail;
4046 }
4047 resultobj = PyInt_FromLong((long)result);
4048 return resultobj;
4049 fail:
4050 return NULL;
4051 }
4052
4053
4054 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4055 PyObject *resultobj;
4056 wxRegion *arg1 = (wxRegion *) 0 ;
4057 wxRect *arg2 = 0 ;
4058 int result;
4059 wxRect temp2 ;
4060 PyObject * obj0 = 0 ;
4061 PyObject * obj1 = 0 ;
4062 char *kwnames[] = {
4063 (char *) "self",(char *) "rect", NULL
4064 };
4065
4066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4068 {
4069 arg2 = &temp2;
4070 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4071 }
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4075
4076 wxPyEndAllowThreads(__tstate);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 resultobj = PyInt_FromLong((long)result);
4080 return resultobj;
4081 fail:
4082 return NULL;
4083 }
4084
4085
4086 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4087 PyObject *resultobj;
4088 wxRegion *arg1 = (wxRegion *) 0 ;
4089 int arg2 ;
4090 int arg3 ;
4091 int arg4 ;
4092 int arg5 ;
4093 int result;
4094 PyObject * obj0 = 0 ;
4095 char *kwnames[] = {
4096 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4097 };
4098
4099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4101 {
4102 PyThreadState* __tstate = wxPyBeginAllowThreads();
4103 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4104
4105 wxPyEndAllowThreads(__tstate);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 }
4108 resultobj = PyInt_FromLong((long)result);
4109 return resultobj;
4110 fail:
4111 return NULL;
4112 }
4113
4114
4115 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4116 PyObject *resultobj;
4117 wxRegion *arg1 = (wxRegion *) 0 ;
4118 wxRect result;
4119 PyObject * obj0 = 0 ;
4120 char *kwnames[] = {
4121 (char *) "self", NULL
4122 };
4123
4124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4126 {
4127 PyThreadState* __tstate = wxPyBeginAllowThreads();
4128 result = (arg1)->GetBox();
4129
4130 wxPyEndAllowThreads(__tstate);
4131 if (PyErr_Occurred()) SWIG_fail;
4132 }
4133 {
4134 wxRect * resultptr;
4135 resultptr = new wxRect((wxRect &) result);
4136 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4137 }
4138 return resultobj;
4139 fail:
4140 return NULL;
4141 }
4142
4143
4144 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4145 PyObject *resultobj;
4146 wxRegion *arg1 = (wxRegion *) 0 ;
4147 int arg2 ;
4148 int arg3 ;
4149 int arg4 ;
4150 int arg5 ;
4151 bool result;
4152 PyObject * obj0 = 0 ;
4153 char *kwnames[] = {
4154 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4155 };
4156
4157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4159 {
4160 PyThreadState* __tstate = wxPyBeginAllowThreads();
4161 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4162
4163 wxPyEndAllowThreads(__tstate);
4164 if (PyErr_Occurred()) SWIG_fail;
4165 }
4166 resultobj = PyInt_FromLong((long)result);
4167 return resultobj;
4168 fail:
4169 return NULL;
4170 }
4171
4172
4173 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4174 PyObject *resultobj;
4175 wxRegion *arg1 = (wxRegion *) 0 ;
4176 wxRect *arg2 = 0 ;
4177 bool result;
4178 wxRect temp2 ;
4179 PyObject * obj0 = 0 ;
4180 PyObject * obj1 = 0 ;
4181 char *kwnames[] = {
4182 (char *) "self",(char *) "rect", NULL
4183 };
4184
4185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4187 {
4188 arg2 = &temp2;
4189 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4190 }
4191 {
4192 PyThreadState* __tstate = wxPyBeginAllowThreads();
4193 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4194
4195 wxPyEndAllowThreads(__tstate);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 }
4198 resultobj = PyInt_FromLong((long)result);
4199 return resultobj;
4200 fail:
4201 return NULL;
4202 }
4203
4204
4205 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4206 PyObject *resultobj;
4207 wxRegion *arg1 = (wxRegion *) 0 ;
4208 wxRegion *arg2 = 0 ;
4209 bool result;
4210 PyObject * obj0 = 0 ;
4211 PyObject * obj1 = 0 ;
4212 char *kwnames[] = {
4213 (char *) "self",(char *) "region", NULL
4214 };
4215
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4218 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4219 if (arg2 == NULL) {
4220 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4221 }
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4225
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 resultobj = PyInt_FromLong((long)result);
4230 return resultobj;
4231 fail:
4232 return NULL;
4233 }
4234
4235
4236 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4237 PyObject *resultobj;
4238 wxRegion *arg1 = (wxRegion *) 0 ;
4239 bool result;
4240 PyObject * obj0 = 0 ;
4241 char *kwnames[] = {
4242 (char *) "self", NULL
4243 };
4244
4245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 result = (bool)(arg1)->IsEmpty();
4250
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 resultobj = PyInt_FromLong((long)result);
4255 return resultobj;
4256 fail:
4257 return NULL;
4258 }
4259
4260
4261 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj;
4263 wxRegion *arg1 = (wxRegion *) 0 ;
4264 int arg2 ;
4265 int arg3 ;
4266 int arg4 ;
4267 int arg5 ;
4268 bool result;
4269 PyObject * obj0 = 0 ;
4270 char *kwnames[] = {
4271 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4272 };
4273
4274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4276 {
4277 PyThreadState* __tstate = wxPyBeginAllowThreads();
4278 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4279
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 resultobj = PyInt_FromLong((long)result);
4284 return resultobj;
4285 fail:
4286 return NULL;
4287 }
4288
4289
4290 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4291 PyObject *resultobj;
4292 wxRegion *arg1 = (wxRegion *) 0 ;
4293 wxRect *arg2 = 0 ;
4294 bool result;
4295 wxRect temp2 ;
4296 PyObject * obj0 = 0 ;
4297 PyObject * obj1 = 0 ;
4298 char *kwnames[] = {
4299 (char *) "self",(char *) "rect", NULL
4300 };
4301
4302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4304 {
4305 arg2 = &temp2;
4306 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4307 }
4308 {
4309 PyThreadState* __tstate = wxPyBeginAllowThreads();
4310 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4311
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = PyInt_FromLong((long)result);
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj;
4324 wxRegion *arg1 = (wxRegion *) 0 ;
4325 wxRegion *arg2 = 0 ;
4326 bool result;
4327 PyObject * obj0 = 0 ;
4328 PyObject * obj1 = 0 ;
4329 char *kwnames[] = {
4330 (char *) "self",(char *) "region", NULL
4331 };
4332
4333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4335 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4336 if (arg2 == NULL) {
4337 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4338 }
4339 {
4340 PyThreadState* __tstate = wxPyBeginAllowThreads();
4341 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4342
4343 wxPyEndAllowThreads(__tstate);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 resultobj = PyInt_FromLong((long)result);
4347 return resultobj;
4348 fail:
4349 return NULL;
4350 }
4351
4352
4353 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4354 PyObject *resultobj;
4355 wxRegion *arg1 = (wxRegion *) 0 ;
4356 int arg2 ;
4357 int arg3 ;
4358 int arg4 ;
4359 int arg5 ;
4360 bool result;
4361 PyObject * obj0 = 0 ;
4362 char *kwnames[] = {
4363 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4364 };
4365
4366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4368 {
4369 PyThreadState* __tstate = wxPyBeginAllowThreads();
4370 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4371
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = PyInt_FromLong((long)result);
4376 return resultobj;
4377 fail:
4378 return NULL;
4379 }
4380
4381
4382 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj;
4384 wxRegion *arg1 = (wxRegion *) 0 ;
4385 wxRect *arg2 = 0 ;
4386 bool result;
4387 wxRect temp2 ;
4388 PyObject * obj0 = 0 ;
4389 PyObject * obj1 = 0 ;
4390 char *kwnames[] = {
4391 (char *) "self",(char *) "rect", NULL
4392 };
4393
4394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4396 {
4397 arg2 = &temp2;
4398 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4399 }
4400 {
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4403
4404 wxPyEndAllowThreads(__tstate);
4405 if (PyErr_Occurred()) SWIG_fail;
4406 }
4407 resultobj = PyInt_FromLong((long)result);
4408 return resultobj;
4409 fail:
4410 return NULL;
4411 }
4412
4413
4414 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4415 PyObject *resultobj;
4416 wxRegion *arg1 = (wxRegion *) 0 ;
4417 wxRegion *arg2 = 0 ;
4418 bool result;
4419 PyObject * obj0 = 0 ;
4420 PyObject * obj1 = 0 ;
4421 char *kwnames[] = {
4422 (char *) "self",(char *) "region", NULL
4423 };
4424
4425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4427 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4428 if (arg2 == NULL) {
4429 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4430 }
4431 {
4432 PyThreadState* __tstate = wxPyBeginAllowThreads();
4433 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4434
4435 wxPyEndAllowThreads(__tstate);
4436 if (PyErr_Occurred()) SWIG_fail;
4437 }
4438 resultobj = PyInt_FromLong((long)result);
4439 return resultobj;
4440 fail:
4441 return NULL;
4442 }
4443
4444
4445 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4446 PyObject *resultobj;
4447 wxRegion *arg1 = (wxRegion *) 0 ;
4448 int arg2 ;
4449 int arg3 ;
4450 int arg4 ;
4451 int arg5 ;
4452 bool result;
4453 PyObject * obj0 = 0 ;
4454 char *kwnames[] = {
4455 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4456 };
4457
4458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4460 {
4461 PyThreadState* __tstate = wxPyBeginAllowThreads();
4462 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4463
4464 wxPyEndAllowThreads(__tstate);
4465 if (PyErr_Occurred()) SWIG_fail;
4466 }
4467 resultobj = PyInt_FromLong((long)result);
4468 return resultobj;
4469 fail:
4470 return NULL;
4471 }
4472
4473
4474 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4475 PyObject *resultobj;
4476 wxRegion *arg1 = (wxRegion *) 0 ;
4477 wxRect *arg2 = 0 ;
4478 bool result;
4479 wxRect temp2 ;
4480 PyObject * obj0 = 0 ;
4481 PyObject * obj1 = 0 ;
4482 char *kwnames[] = {
4483 (char *) "self",(char *) "rect", NULL
4484 };
4485
4486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4488 {
4489 arg2 = &temp2;
4490 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4491 }
4492 {
4493 PyThreadState* __tstate = wxPyBeginAllowThreads();
4494 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4495
4496 wxPyEndAllowThreads(__tstate);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 resultobj = PyInt_FromLong((long)result);
4500 return resultobj;
4501 fail:
4502 return NULL;
4503 }
4504
4505
4506 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4507 PyObject *resultobj;
4508 wxRegion *arg1 = (wxRegion *) 0 ;
4509 wxRegion *arg2 = 0 ;
4510 bool result;
4511 PyObject * obj0 = 0 ;
4512 PyObject * obj1 = 0 ;
4513 char *kwnames[] = {
4514 (char *) "self",(char *) "region", NULL
4515 };
4516
4517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4519 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4520 if (arg2 == NULL) {
4521 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4522 }
4523 {
4524 PyThreadState* __tstate = wxPyBeginAllowThreads();
4525 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4526
4527 wxPyEndAllowThreads(__tstate);
4528 if (PyErr_Occurred()) SWIG_fail;
4529 }
4530 resultobj = PyInt_FromLong((long)result);
4531 return resultobj;
4532 fail:
4533 return NULL;
4534 }
4535
4536
4537 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4538 PyObject *resultobj;
4539 wxRegion *arg1 = (wxRegion *) 0 ;
4540 SwigValueWrapper< wxBitmap > result;
4541 PyObject * obj0 = 0 ;
4542 char *kwnames[] = {
4543 (char *) "self", NULL
4544 };
4545
4546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 result = (arg1)->ConvertToBitmap();
4551
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 {
4556 wxBitmap * resultptr;
4557 resultptr = new wxBitmap((wxBitmap &) result);
4558 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4559 }
4560 return resultobj;
4561 fail:
4562 return NULL;
4563 }
4564
4565
4566 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4567 PyObject *resultobj;
4568 wxRegion *arg1 = (wxRegion *) 0 ;
4569 wxBitmap *arg2 = 0 ;
4570 wxColour const &arg3_defvalue = wxNullColour ;
4571 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4572 int arg4 = (int) 0 ;
4573 bool result;
4574 wxColour temp3 ;
4575 PyObject * obj0 = 0 ;
4576 PyObject * obj1 = 0 ;
4577 PyObject * obj2 = 0 ;
4578 char *kwnames[] = {
4579 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4580 };
4581
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4584 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4585 if (arg2 == NULL) {
4586 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4587 }
4588 if (obj2) {
4589 {
4590 arg3 = &temp3;
4591 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4592 }
4593 }
4594 {
4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
4596 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4597
4598 wxPyEndAllowThreads(__tstate);
4599 if (PyErr_Occurred()) SWIG_fail;
4600 }
4601 resultobj = PyInt_FromLong((long)result);
4602 return resultobj;
4603 fail:
4604 return NULL;
4605 }
4606
4607
4608 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4609 PyObject *obj;
4610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4611 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4612 Py_INCREF(obj);
4613 return Py_BuildValue((char *)"");
4614 }
4615 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4616 PyObject *resultobj;
4617 wxRegion *arg1 = 0 ;
4618 wxRegionIterator *result;
4619 PyObject * obj0 = 0 ;
4620 char *kwnames[] = {
4621 (char *) "region", NULL
4622 };
4623
4624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4626 if (arg1 == NULL) {
4627 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4628 }
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4632
4633 wxPyEndAllowThreads(__tstate);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4637 return resultobj;
4638 fail:
4639 return NULL;
4640 }
4641
4642
4643 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4644 PyObject *resultobj;
4645 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4646 PyObject * obj0 = 0 ;
4647 char *kwnames[] = {
4648 (char *) "self", NULL
4649 };
4650
4651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 delete arg1;
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 Py_INCREF(Py_None); resultobj = Py_None;
4661 return resultobj;
4662 fail:
4663 return NULL;
4664 }
4665
4666
4667 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4668 PyObject *resultobj;
4669 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4670 int result;
4671 PyObject * obj0 = 0 ;
4672 char *kwnames[] = {
4673 (char *) "self", NULL
4674 };
4675
4676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4678 {
4679 PyThreadState* __tstate = wxPyBeginAllowThreads();
4680 result = (int)(arg1)->GetX();
4681
4682 wxPyEndAllowThreads(__tstate);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 resultobj = PyInt_FromLong((long)result);
4686 return resultobj;
4687 fail:
4688 return NULL;
4689 }
4690
4691
4692 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4693 PyObject *resultobj;
4694 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4695 int result;
4696 PyObject * obj0 = 0 ;
4697 char *kwnames[] = {
4698 (char *) "self", NULL
4699 };
4700
4701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
4702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4703 {
4704 PyThreadState* __tstate = wxPyBeginAllowThreads();
4705 result = (int)(arg1)->GetY();
4706
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 resultobj = PyInt_FromLong((long)result);
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
4718 PyObject *resultobj;
4719 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4720 int result;
4721 PyObject * obj0 = 0 ;
4722 char *kwnames[] = {
4723 (char *) "self", NULL
4724 };
4725
4726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
4727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 result = (int)(arg1)->GetW();
4731
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 resultobj = PyInt_FromLong((long)result);
4736 return resultobj;
4737 fail:
4738 return NULL;
4739 }
4740
4741
4742 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4743 PyObject *resultobj;
4744 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4745 int result;
4746 PyObject * obj0 = 0 ;
4747 char *kwnames[] = {
4748 (char *) "self", NULL
4749 };
4750
4751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
4752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4753 {
4754 PyThreadState* __tstate = wxPyBeginAllowThreads();
4755 result = (int)(arg1)->GetWidth();
4756
4757 wxPyEndAllowThreads(__tstate);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 resultobj = PyInt_FromLong((long)result);
4761 return resultobj;
4762 fail:
4763 return NULL;
4764 }
4765
4766
4767 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
4768 PyObject *resultobj;
4769 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4770 int result;
4771 PyObject * obj0 = 0 ;
4772 char *kwnames[] = {
4773 (char *) "self", NULL
4774 };
4775
4776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
4777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4778 {
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
4780 result = (int)(arg1)->GetH();
4781
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 resultobj = PyInt_FromLong((long)result);
4786 return resultobj;
4787 fail:
4788 return NULL;
4789 }
4790
4791
4792 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4793 PyObject *resultobj;
4794 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4795 int result;
4796 PyObject * obj0 = 0 ;
4797 char *kwnames[] = {
4798 (char *) "self", NULL
4799 };
4800
4801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
4802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4803 {
4804 PyThreadState* __tstate = wxPyBeginAllowThreads();
4805 result = (int)(arg1)->GetHeight();
4806
4807 wxPyEndAllowThreads(__tstate);
4808 if (PyErr_Occurred()) SWIG_fail;
4809 }
4810 resultobj = PyInt_FromLong((long)result);
4811 return resultobj;
4812 fail:
4813 return NULL;
4814 }
4815
4816
4817 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4818 PyObject *resultobj;
4819 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4820 wxRect result;
4821 PyObject * obj0 = 0 ;
4822 char *kwnames[] = {
4823 (char *) "self", NULL
4824 };
4825
4826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
4827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4828 {
4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
4830 result = (arg1)->GetRect();
4831
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 {
4836 wxRect * resultptr;
4837 resultptr = new wxRect((wxRect &) result);
4838 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4839 }
4840 return resultobj;
4841 fail:
4842 return NULL;
4843 }
4844
4845
4846 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
4847 PyObject *resultobj;
4848 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4849 bool result;
4850 PyObject * obj0 = 0 ;
4851 char *kwnames[] = {
4852 (char *) "self", NULL
4853 };
4854
4855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
4856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 result = (bool)(arg1)->HaveRects();
4860
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 resultobj = PyInt_FromLong((long)result);
4865 return resultobj;
4866 fail:
4867 return NULL;
4868 }
4869
4870
4871 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
4872 PyObject *resultobj;
4873 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4874 PyObject * obj0 = 0 ;
4875 char *kwnames[] = {
4876 (char *) "self", NULL
4877 };
4878
4879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
4880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4881 {
4882 PyThreadState* __tstate = wxPyBeginAllowThreads();
4883 (arg1)->Reset();
4884
4885 wxPyEndAllowThreads(__tstate);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 Py_INCREF(Py_None); resultobj = Py_None;
4889 return resultobj;
4890 fail:
4891 return NULL;
4892 }
4893
4894
4895 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
4896 PyObject *resultobj;
4897 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4898 PyObject * obj0 = 0 ;
4899 char *kwnames[] = {
4900 (char *) "self", NULL
4901 };
4902
4903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
4904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4905 {
4906 PyThreadState* __tstate = wxPyBeginAllowThreads();
4907 wxRegionIterator_Next(arg1);
4908
4909 wxPyEndAllowThreads(__tstate);
4910 if (PyErr_Occurred()) SWIG_fail;
4911 }
4912 Py_INCREF(Py_None); resultobj = Py_None;
4913 return resultobj;
4914 fail:
4915 return NULL;
4916 }
4917
4918
4919 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
4920 PyObject *resultobj;
4921 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4922 bool result;
4923 PyObject * obj0 = 0 ;
4924 char *kwnames[] = {
4925 (char *) "self", NULL
4926 };
4927
4928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
4929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4930 {
4931 PyThreadState* __tstate = wxPyBeginAllowThreads();
4932 result = (bool)wxRegionIterator___nonzero__(arg1);
4933
4934 wxPyEndAllowThreads(__tstate);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 }
4937 resultobj = PyInt_FromLong((long)result);
4938 return resultobj;
4939 fail:
4940 return NULL;
4941 }
4942
4943
4944 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
4945 PyObject *obj;
4946 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4947 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
4948 Py_INCREF(obj);
4949 return Py_BuildValue((char *)"");
4950 }
4951 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj;
4953 wxNativeFontInfo *result;
4954 char *kwnames[] = {
4955 NULL
4956 };
4957
4958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 result = (wxNativeFontInfo *)new wxNativeFontInfo();
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
4967 return resultobj;
4968 fail:
4969 return NULL;
4970 }
4971
4972
4973 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4974 PyObject *resultobj;
4975 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
4976 PyObject * obj0 = 0 ;
4977 char *kwnames[] = {
4978 (char *) "self", NULL
4979 };
4980
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
4982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 delete arg1;
4986
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 Py_INCREF(Py_None); resultobj = Py_None;
4991 return resultobj;
4992 fail:
4993 return NULL;
4994 }
4995
4996
4997 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
4998 PyObject *resultobj;
4999 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5000 PyObject * obj0 = 0 ;
5001 char *kwnames[] = {
5002 (char *) "self", NULL
5003 };
5004
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 (arg1)->Init();
5010
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 Py_INCREF(Py_None); resultobj = Py_None;
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj;
5023 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5024 wxFont *arg2 = 0 ;
5025 PyObject * obj0 = 0 ;
5026 PyObject * obj1 = 0 ;
5027 char *kwnames[] = {
5028 (char *) "self",(char *) "font", NULL
5029 };
5030
5031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5033 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5034 if (arg2 == NULL) {
5035 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5036 }
5037 {
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 (arg1)->InitFromFont((wxFont const &)*arg2);
5040
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 Py_INCREF(Py_None); resultobj = Py_None;
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5052 PyObject *resultobj;
5053 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5054 int result;
5055 PyObject * obj0 = 0 ;
5056 char *kwnames[] = {
5057 (char *) "self", NULL
5058 };
5059
5060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5062 {
5063 PyThreadState* __tstate = wxPyBeginAllowThreads();
5064 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5065
5066 wxPyEndAllowThreads(__tstate);
5067 if (PyErr_Occurred()) SWIG_fail;
5068 }
5069 resultobj = PyInt_FromLong((long)result);
5070 return resultobj;
5071 fail:
5072 return NULL;
5073 }
5074
5075
5076 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5077 PyObject *resultobj;
5078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5079 int result;
5080 PyObject * obj0 = 0 ;
5081 char *kwnames[] = {
5082 (char *) "self", NULL
5083 };
5084
5085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5087 {
5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
5089 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5090
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 resultobj = PyInt_FromLong((long)result);
5095 return resultobj;
5096 fail:
5097 return NULL;
5098 }
5099
5100
5101 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj;
5103 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5104 int result;
5105 PyObject * obj0 = 0 ;
5106 char *kwnames[] = {
5107 (char *) "self", NULL
5108 };
5109
5110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5112 {
5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
5114 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5115
5116 wxPyEndAllowThreads(__tstate);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 }
5119 resultobj = PyInt_FromLong((long)result);
5120 return resultobj;
5121 fail:
5122 return NULL;
5123 }
5124
5125
5126 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5127 PyObject *resultobj;
5128 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5129 bool result;
5130 PyObject * obj0 = 0 ;
5131 char *kwnames[] = {
5132 (char *) "self", NULL
5133 };
5134
5135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 resultobj = PyInt_FromLong((long)result);
5145 return resultobj;
5146 fail:
5147 return NULL;
5148 }
5149
5150
5151 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5152 PyObject *resultobj;
5153 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5154 wxString result;
5155 PyObject * obj0 = 0 ;
5156 char *kwnames[] = {
5157 (char *) "self", NULL
5158 };
5159
5160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5162 {
5163 PyThreadState* __tstate = wxPyBeginAllowThreads();
5164 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5165
5166 wxPyEndAllowThreads(__tstate);
5167 if (PyErr_Occurred()) SWIG_fail;
5168 }
5169 {
5170 #if wxUSE_UNICODE
5171 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5172 #else
5173 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5174 #endif
5175 }
5176 return resultobj;
5177 fail:
5178 return NULL;
5179 }
5180
5181
5182 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5183 PyObject *resultobj;
5184 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5185 int result;
5186 PyObject * obj0 = 0 ;
5187 char *kwnames[] = {
5188 (char *) "self", NULL
5189 };
5190
5191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = PyInt_FromLong((long)result);
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5208 PyObject *resultobj;
5209 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5210 int result;
5211 PyObject * obj0 = 0 ;
5212 char *kwnames[] = {
5213 (char *) "self", NULL
5214 };
5215
5216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5221
5222 wxPyEndAllowThreads(__tstate);
5223 if (PyErr_Occurred()) SWIG_fail;
5224 }
5225 resultobj = PyInt_FromLong((long)result);
5226 return resultobj;
5227 fail:
5228 return NULL;
5229 }
5230
5231
5232 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5233 PyObject *resultobj;
5234 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5235 int arg2 ;
5236 PyObject * obj0 = 0 ;
5237 char *kwnames[] = {
5238 (char *) "self",(char *) "pointsize", NULL
5239 };
5240
5241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 (arg1)->SetPointSize(arg2);
5246
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 Py_INCREF(Py_None); resultobj = Py_None;
5251 return resultobj;
5252 fail:
5253 return NULL;
5254 }
5255
5256
5257 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5258 PyObject *resultobj;
5259 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5260 int arg2 ;
5261 PyObject * obj0 = 0 ;
5262 char *kwnames[] = {
5263 (char *) "self",(char *) "style", NULL
5264 };
5265
5266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5268 {
5269 PyThreadState* __tstate = wxPyBeginAllowThreads();
5270 (arg1)->SetStyle((wxFontStyle )arg2);
5271
5272 wxPyEndAllowThreads(__tstate);
5273 if (PyErr_Occurred()) SWIG_fail;
5274 }
5275 Py_INCREF(Py_None); resultobj = Py_None;
5276 return resultobj;
5277 fail:
5278 return NULL;
5279 }
5280
5281
5282 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5283 PyObject *resultobj;
5284 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5285 int arg2 ;
5286 PyObject * obj0 = 0 ;
5287 char *kwnames[] = {
5288 (char *) "self",(char *) "weight", NULL
5289 };
5290
5291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
5295 (arg1)->SetWeight((wxFontWeight )arg2);
5296
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 Py_INCREF(Py_None); resultobj = Py_None;
5301 return resultobj;
5302 fail:
5303 return NULL;
5304 }
5305
5306
5307 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj;
5309 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5310 bool arg2 ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 char *kwnames[] = {
5314 (char *) "self",(char *) "underlined", NULL
5315 };
5316
5317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5319 arg2 = PyInt_AsLong(obj1) ? true : false;
5320 if (PyErr_Occurred()) SWIG_fail;
5321 {
5322 PyThreadState* __tstate = wxPyBeginAllowThreads();
5323 (arg1)->SetUnderlined(arg2);
5324
5325 wxPyEndAllowThreads(__tstate);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 }
5328 Py_INCREF(Py_None); resultobj = Py_None;
5329 return resultobj;
5330 fail:
5331 return NULL;
5332 }
5333
5334
5335 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5336 PyObject *resultobj;
5337 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5338 wxString arg2 ;
5339 PyObject * obj0 = 0 ;
5340 PyObject * obj1 = 0 ;
5341 char *kwnames[] = {
5342 (char *) "self",(char *) "facename", NULL
5343 };
5344
5345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5347 {
5348 wxString* sptr = wxString_in_helper(obj1);
5349 if (sptr == NULL) SWIG_fail;
5350 arg2 = *sptr;
5351 delete sptr;
5352 }
5353 {
5354 PyThreadState* __tstate = wxPyBeginAllowThreads();
5355 (arg1)->SetFaceName(arg2);
5356
5357 wxPyEndAllowThreads(__tstate);
5358 if (PyErr_Occurred()) SWIG_fail;
5359 }
5360 Py_INCREF(Py_None); resultobj = Py_None;
5361 return resultobj;
5362 fail:
5363 return NULL;
5364 }
5365
5366
5367 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5368 PyObject *resultobj;
5369 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5370 int arg2 ;
5371 PyObject * obj0 = 0 ;
5372 char *kwnames[] = {
5373 (char *) "self",(char *) "family", NULL
5374 };
5375
5376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 (arg1)->SetFamily((wxFontFamily )arg2);
5381
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 Py_INCREF(Py_None); resultobj = Py_None;
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj;
5394 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5395 int arg2 ;
5396 PyObject * obj0 = 0 ;
5397 char *kwnames[] = {
5398 (char *) "self",(char *) "encoding", NULL
5399 };
5400
5401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5403 {
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 (arg1)->SetEncoding((wxFontEncoding )arg2);
5406
5407 wxPyEndAllowThreads(__tstate);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 Py_INCREF(Py_None); resultobj = Py_None;
5411 return resultobj;
5412 fail:
5413 return NULL;
5414 }
5415
5416
5417 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5418 PyObject *resultobj;
5419 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5420 wxString *arg2 = 0 ;
5421 bool result;
5422 bool temp2 = False ;
5423 PyObject * obj0 = 0 ;
5424 PyObject * obj1 = 0 ;
5425 char *kwnames[] = {
5426 (char *) "self",(char *) "s", NULL
5427 };
5428
5429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5431 {
5432 arg2 = wxString_in_helper(obj1);
5433 if (arg2 == NULL) SWIG_fail;
5434 temp2 = True;
5435 }
5436 {
5437 PyThreadState* __tstate = wxPyBeginAllowThreads();
5438 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5439
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 resultobj = PyInt_FromLong((long)result);
5444 {
5445 if (temp2)
5446 delete arg2;
5447 }
5448 return resultobj;
5449 fail:
5450 {
5451 if (temp2)
5452 delete arg2;
5453 }
5454 return NULL;
5455 }
5456
5457
5458 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj;
5460 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5461 wxString result;
5462 PyObject * obj0 = 0 ;
5463 char *kwnames[] = {
5464 (char *) "self", NULL
5465 };
5466
5467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5469 {
5470 PyThreadState* __tstate = wxPyBeginAllowThreads();
5471 result = ((wxNativeFontInfo const *)arg1)->ToString();
5472
5473 wxPyEndAllowThreads(__tstate);
5474 if (PyErr_Occurred()) SWIG_fail;
5475 }
5476 {
5477 #if wxUSE_UNICODE
5478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5479 #else
5480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5481 #endif
5482 }
5483 return resultobj;
5484 fail:
5485 return NULL;
5486 }
5487
5488
5489 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5490 PyObject *resultobj;
5491 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5492 wxString result;
5493 PyObject * obj0 = 0 ;
5494 char *kwnames[] = {
5495 (char *) "self", NULL
5496 };
5497
5498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 result = wxNativeFontInfo___str__(arg1);
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 {
5508 #if wxUSE_UNICODE
5509 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5510 #else
5511 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5512 #endif
5513 }
5514 return resultobj;
5515 fail:
5516 return NULL;
5517 }
5518
5519
5520 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5521 PyObject *resultobj;
5522 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5523 wxString *arg2 = 0 ;
5524 bool result;
5525 bool temp2 = False ;
5526 PyObject * obj0 = 0 ;
5527 PyObject * obj1 = 0 ;
5528 char *kwnames[] = {
5529 (char *) "self",(char *) "s", NULL
5530 };
5531
5532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5534 {
5535 arg2 = wxString_in_helper(obj1);
5536 if (arg2 == NULL) SWIG_fail;
5537 temp2 = True;
5538 }
5539 {
5540 PyThreadState* __tstate = wxPyBeginAllowThreads();
5541 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5542
5543 wxPyEndAllowThreads(__tstate);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 }
5546 resultobj = PyInt_FromLong((long)result);
5547 {
5548 if (temp2)
5549 delete arg2;
5550 }
5551 return resultobj;
5552 fail:
5553 {
5554 if (temp2)
5555 delete arg2;
5556 }
5557 return NULL;
5558 }
5559
5560
5561 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5562 PyObject *resultobj;
5563 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5564 wxString result;
5565 PyObject * obj0 = 0 ;
5566 char *kwnames[] = {
5567 (char *) "self", NULL
5568 };
5569
5570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5572 {
5573 PyThreadState* __tstate = wxPyBeginAllowThreads();
5574 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5575
5576 wxPyEndAllowThreads(__tstate);
5577 if (PyErr_Occurred()) SWIG_fail;
5578 }
5579 {
5580 #if wxUSE_UNICODE
5581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5582 #else
5583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5584 #endif
5585 }
5586 return resultobj;
5587 fail:
5588 return NULL;
5589 }
5590
5591
5592 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5593 PyObject *obj;
5594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5595 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5596 Py_INCREF(obj);
5597 return Py_BuildValue((char *)"");
5598 }
5599 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5600 PyObject *resultobj;
5601 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5602 wxString *arg2 = (wxString *) 0 ;
5603 PyObject * obj0 = 0 ;
5604 PyObject * obj1 = 0 ;
5605 char *kwnames[] = {
5606 (char *) "self",(char *) "facename", NULL
5607 };
5608
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5611 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5612 if (arg1) (arg1)->facename = *arg2;
5613
5614 Py_INCREF(Py_None); resultobj = Py_None;
5615 return resultobj;
5616 fail:
5617 return NULL;
5618 }
5619
5620
5621 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5622 PyObject *resultobj;
5623 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5624 wxString *result;
5625 PyObject * obj0 = 0 ;
5626 char *kwnames[] = {
5627 (char *) "self", NULL
5628 };
5629
5630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5632 result = (wxString *)& ((arg1)->facename);
5633
5634 {
5635 #if wxUSE_UNICODE
5636 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5637 #else
5638 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5639 #endif
5640 }
5641 return resultobj;
5642 fail:
5643 return NULL;
5644 }
5645
5646
5647 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5648 PyObject *resultobj;
5649 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5650 int arg2 ;
5651 PyObject * obj0 = 0 ;
5652 char *kwnames[] = {
5653 (char *) "self",(char *) "encoding", NULL
5654 };
5655
5656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5658 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5659
5660 Py_INCREF(Py_None); resultobj = Py_None;
5661 return resultobj;
5662 fail:
5663 return NULL;
5664 }
5665
5666
5667 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5668 PyObject *resultobj;
5669 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5670 int result;
5671 PyObject * obj0 = 0 ;
5672 char *kwnames[] = {
5673 (char *) "self", NULL
5674 };
5675
5676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5678 result = (int) ((arg1)->encoding);
5679
5680 resultobj = PyInt_FromLong((long)result);
5681 return resultobj;
5682 fail:
5683 return NULL;
5684 }
5685
5686
5687 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5688 PyObject *resultobj;
5689 wxNativeEncodingInfo *result;
5690 char *kwnames[] = {
5691 NULL
5692 };
5693
5694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5695 {
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5698
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5703 return resultobj;
5704 fail:
5705 return NULL;
5706 }
5707
5708
5709 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5710 PyObject *resultobj;
5711 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5712 PyObject * obj0 = 0 ;
5713 char *kwnames[] = {
5714 (char *) "self", NULL
5715 };
5716
5717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5719 {
5720 PyThreadState* __tstate = wxPyBeginAllowThreads();
5721 delete arg1;
5722
5723 wxPyEndAllowThreads(__tstate);
5724 if (PyErr_Occurred()) SWIG_fail;
5725 }
5726 Py_INCREF(Py_None); resultobj = Py_None;
5727 return resultobj;
5728 fail:
5729 return NULL;
5730 }
5731
5732
5733 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5734 PyObject *resultobj;
5735 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5736 wxString *arg2 = 0 ;
5737 bool result;
5738 bool temp2 = False ;
5739 PyObject * obj0 = 0 ;
5740 PyObject * obj1 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self",(char *) "s", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5747 {
5748 arg2 = wxString_in_helper(obj1);
5749 if (arg2 == NULL) SWIG_fail;
5750 temp2 = True;
5751 }
5752 {
5753 PyThreadState* __tstate = wxPyBeginAllowThreads();
5754 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5755
5756 wxPyEndAllowThreads(__tstate);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 }
5759 resultobj = PyInt_FromLong((long)result);
5760 {
5761 if (temp2)
5762 delete arg2;
5763 }
5764 return resultobj;
5765 fail:
5766 {
5767 if (temp2)
5768 delete arg2;
5769 }
5770 return NULL;
5771 }
5772
5773
5774 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5775 PyObject *resultobj;
5776 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5777 wxString result;
5778 PyObject * obj0 = 0 ;
5779 char *kwnames[] = {
5780 (char *) "self", NULL
5781 };
5782
5783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
5784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5785 {
5786 PyThreadState* __tstate = wxPyBeginAllowThreads();
5787 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
5788
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 }
5792 {
5793 #if wxUSE_UNICODE
5794 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5795 #else
5796 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5797 #endif
5798 }
5799 return resultobj;
5800 fail:
5801 return NULL;
5802 }
5803
5804
5805 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
5806 PyObject *obj;
5807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5808 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
5809 Py_INCREF(obj);
5810 return Py_BuildValue((char *)"");
5811 }
5812 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5813 PyObject *resultobj;
5814 int arg1 ;
5815 wxNativeEncodingInfo *result;
5816 char *kwnames[] = {
5817 (char *) "encoding", NULL
5818 };
5819
5820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
5821 {
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
5823 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
5824
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj;
5837 wxNativeEncodingInfo *arg1 = 0 ;
5838 bool result;
5839 PyObject * obj0 = 0 ;
5840 char *kwnames[] = {
5841 (char *) "info", NULL
5842 };
5843
5844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
5845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5846 if (arg1 == NULL) {
5847 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5848 }
5849 {
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
5852
5853 wxPyEndAllowThreads(__tstate);
5854 if (PyErr_Occurred()) SWIG_fail;
5855 }
5856 resultobj = PyInt_FromLong((long)result);
5857 return resultobj;
5858 fail:
5859 return NULL;
5860 }
5861
5862
5863 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5864 PyObject *resultobj;
5865 wxFontMapper *result;
5866 char *kwnames[] = {
5867 NULL
5868 };
5869
5870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 result = (wxFontMapper *)new wxFontMapper();
5874
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
5879 return resultobj;
5880 fail:
5881 return NULL;
5882 }
5883
5884
5885 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5886 PyObject *resultobj;
5887 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5888 PyObject * obj0 = 0 ;
5889 char *kwnames[] = {
5890 (char *) "self", NULL
5891 };
5892
5893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
5894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 delete arg1;
5898
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
5902 Py_INCREF(Py_None); resultobj = Py_None;
5903 return resultobj;
5904 fail:
5905 return NULL;
5906 }
5907
5908
5909 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj;
5911 wxFontMapper *result;
5912 char *kwnames[] = {
5913 NULL
5914 };
5915
5916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (wxFontMapper *)wxFontMapper::Get();
5920
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5925 return resultobj;
5926 fail:
5927 return NULL;
5928 }
5929
5930
5931 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5932 PyObject *resultobj;
5933 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5934 wxFontMapper *result;
5935 PyObject * obj0 = 0 ;
5936 char *kwnames[] = {
5937 (char *) "mapper", NULL
5938 };
5939
5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
5941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 result = (wxFontMapper *)wxFontMapper::Set(arg1);
5945
5946 wxPyEndAllowThreads(__tstate);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
5949 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5950 return resultobj;
5951 fail:
5952 return NULL;
5953 }
5954
5955
5956 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj;
5958 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5959 wxString *arg2 = 0 ;
5960 bool arg3 = (bool) True ;
5961 int result;
5962 bool temp2 = False ;
5963 PyObject * obj0 = 0 ;
5964 PyObject * obj1 = 0 ;
5965 PyObject * obj2 = 0 ;
5966 char *kwnames[] = {
5967 (char *) "self",(char *) "charset",(char *) "interactive", NULL
5968 };
5969
5970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
5971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5972 {
5973 arg2 = wxString_in_helper(obj1);
5974 if (arg2 == NULL) SWIG_fail;
5975 temp2 = True;
5976 }
5977 if (obj2) {
5978 arg3 = PyInt_AsLong(obj2) ? true : false;
5979 if (PyErr_Occurred()) SWIG_fail;
5980 }
5981 {
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
5984
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = PyInt_FromLong((long)result);
5989 {
5990 if (temp2)
5991 delete arg2;
5992 }
5993 return resultobj;
5994 fail:
5995 {
5996 if (temp2)
5997 delete arg2;
5998 }
5999 return NULL;
6000 }
6001
6002
6003 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj;
6005 size_t result;
6006 char *kwnames[] = {
6007 NULL
6008 };
6009
6010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6014
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 resultobj = PyInt_FromLong((long)result);
6019 return resultobj;
6020 fail:
6021 return NULL;
6022 }
6023
6024
6025 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6026 PyObject *resultobj;
6027 size_t arg1 ;
6028 int result;
6029 PyObject * obj0 = 0 ;
6030 char *kwnames[] = {
6031 (char *) "n", NULL
6032 };
6033
6034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6035 arg1 = (size_t) PyInt_AsLong(obj0);
6036 if (PyErr_Occurred()) SWIG_fail;
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 result = (int)wxFontMapper::GetEncoding(arg1);
6040
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 resultobj = PyInt_FromLong((long)result);
6045 return resultobj;
6046 fail:
6047 return NULL;
6048 }
6049
6050
6051 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6052 PyObject *resultobj;
6053 int arg1 ;
6054 wxString result;
6055 char *kwnames[] = {
6056 (char *) "encoding", NULL
6057 };
6058
6059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6063
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 {
6068 #if wxUSE_UNICODE
6069 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6070 #else
6071 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6072 #endif
6073 }
6074 return resultobj;
6075 fail:
6076 return NULL;
6077 }
6078
6079
6080 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6081 PyObject *resultobj;
6082 int arg1 ;
6083 wxString result;
6084 char *kwnames[] = {
6085 (char *) "encoding", NULL
6086 };
6087
6088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6089 {
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6092
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 {
6097 #if wxUSE_UNICODE
6098 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6099 #else
6100 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6101 #endif
6102 }
6103 return resultobj;
6104 fail:
6105 return NULL;
6106 }
6107
6108
6109 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6110 PyObject *resultobj;
6111 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6112 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6113 PyObject * obj0 = 0 ;
6114 PyObject * obj1 = 0 ;
6115 char *kwnames[] = {
6116 (char *) "self",(char *) "config", NULL
6117 };
6118
6119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6121 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6122 {
6123 PyThreadState* __tstate = wxPyBeginAllowThreads();
6124 (arg1)->SetConfig(arg2);
6125
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 Py_INCREF(Py_None); resultobj = Py_None;
6130 return resultobj;
6131 fail:
6132 return NULL;
6133 }
6134
6135
6136 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6137 PyObject *resultobj;
6138 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6139 wxString *arg2 = 0 ;
6140 bool temp2 = False ;
6141 PyObject * obj0 = 0 ;
6142 PyObject * obj1 = 0 ;
6143 char *kwnames[] = {
6144 (char *) "self",(char *) "prefix", NULL
6145 };
6146
6147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6149 {
6150 arg2 = wxString_in_helper(obj1);
6151 if (arg2 == NULL) SWIG_fail;
6152 temp2 = True;
6153 }
6154 {
6155 PyThreadState* __tstate = wxPyBeginAllowThreads();
6156 (arg1)->SetConfigPath((wxString const &)*arg2);
6157
6158 wxPyEndAllowThreads(__tstate);
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 Py_INCREF(Py_None); resultobj = Py_None;
6162 {
6163 if (temp2)
6164 delete arg2;
6165 }
6166 return resultobj;
6167 fail:
6168 {
6169 if (temp2)
6170 delete arg2;
6171 }
6172 return NULL;
6173 }
6174
6175
6176 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6177 PyObject *resultobj;
6178 wxString result;
6179 char *kwnames[] = {
6180 NULL
6181 };
6182
6183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6184 {
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 result = wxFontMapper::GetDefaultConfigPath();
6187
6188 wxPyEndAllowThreads(__tstate);
6189 if (PyErr_Occurred()) SWIG_fail;
6190 }
6191 {
6192 #if wxUSE_UNICODE
6193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6194 #else
6195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6196 #endif
6197 }
6198 return resultobj;
6199 fail:
6200 return NULL;
6201 }
6202
6203
6204 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6205 PyObject *resultobj;
6206 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6207 int arg2 ;
6208 wxString const &arg3_defvalue = wxPyEmptyString ;
6209 wxString *arg3 = (wxString *) &arg3_defvalue ;
6210 bool arg4 = (bool) True ;
6211 PyObject *result;
6212 bool temp3 = False ;
6213 PyObject * obj0 = 0 ;
6214 PyObject * obj2 = 0 ;
6215 PyObject * obj3 = 0 ;
6216 char *kwnames[] = {
6217 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6218 };
6219
6220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6222 if (obj2) {
6223 {
6224 arg3 = wxString_in_helper(obj2);
6225 if (arg3 == NULL) SWIG_fail;
6226 temp3 = True;
6227 }
6228 }
6229 if (obj3) {
6230 arg4 = PyInt_AsLong(obj3) ? true : false;
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 {
6234 PyThreadState* __tstate = wxPyBeginAllowThreads();
6235 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6236
6237 wxPyEndAllowThreads(__tstate);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 }
6240 resultobj = result;
6241 {
6242 if (temp3)
6243 delete arg3;
6244 }
6245 return resultobj;
6246 fail:
6247 {
6248 if (temp3)
6249 delete arg3;
6250 }
6251 return NULL;
6252 }
6253
6254
6255 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6256 PyObject *resultobj;
6257 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6258 int arg2 ;
6259 wxString const &arg3_defvalue = wxPyEmptyString ;
6260 wxString *arg3 = (wxString *) &arg3_defvalue ;
6261 bool result;
6262 bool temp3 = False ;
6263 PyObject * obj0 = 0 ;
6264 PyObject * obj2 = 0 ;
6265 char *kwnames[] = {
6266 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6267 };
6268
6269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6271 if (obj2) {
6272 {
6273 arg3 = wxString_in_helper(obj2);
6274 if (arg3 == NULL) SWIG_fail;
6275 temp3 = True;
6276 }
6277 }
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 resultobj = PyInt_FromLong((long)result);
6286 {
6287 if (temp3)
6288 delete arg3;
6289 }
6290 return resultobj;
6291 fail:
6292 {
6293 if (temp3)
6294 delete arg3;
6295 }
6296 return NULL;
6297 }
6298
6299
6300 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj;
6302 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6303 wxWindow *arg2 = (wxWindow *) 0 ;
6304 PyObject * obj0 = 0 ;
6305 PyObject * obj1 = 0 ;
6306 char *kwnames[] = {
6307 (char *) "self",(char *) "parent", NULL
6308 };
6309
6310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6312 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6313 {
6314 PyThreadState* __tstate = wxPyBeginAllowThreads();
6315 (arg1)->SetDialogParent(arg2);
6316
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 Py_INCREF(Py_None); resultobj = Py_None;
6321 return resultobj;
6322 fail:
6323 return NULL;
6324 }
6325
6326
6327 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6328 PyObject *resultobj;
6329 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6330 wxString *arg2 = 0 ;
6331 bool temp2 = False ;
6332 PyObject * obj0 = 0 ;
6333 PyObject * obj1 = 0 ;
6334 char *kwnames[] = {
6335 (char *) "self",(char *) "title", NULL
6336 };
6337
6338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6340 {
6341 arg2 = wxString_in_helper(obj1);
6342 if (arg2 == NULL) SWIG_fail;
6343 temp2 = True;
6344 }
6345 {
6346 PyThreadState* __tstate = wxPyBeginAllowThreads();
6347 (arg1)->SetDialogTitle((wxString const &)*arg2);
6348
6349 wxPyEndAllowThreads(__tstate);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 }
6352 Py_INCREF(Py_None); resultobj = Py_None;
6353 {
6354 if (temp2)
6355 delete arg2;
6356 }
6357 return resultobj;
6358 fail:
6359 {
6360 if (temp2)
6361 delete arg2;
6362 }
6363 return NULL;
6364 }
6365
6366
6367 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6368 PyObject *obj;
6369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6370 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6371 Py_INCREF(obj);
6372 return Py_BuildValue((char *)"");
6373 }
6374 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6375 PyObject *resultobj;
6376 int arg1 ;
6377 int arg2 ;
6378 int arg3 ;
6379 int arg4 ;
6380 bool arg5 = (bool) False ;
6381 wxString const &arg6_defvalue = wxPyEmptyString ;
6382 wxString *arg6 = (wxString *) &arg6_defvalue ;
6383 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6384 wxFont *result;
6385 bool temp6 = False ;
6386 PyObject * obj4 = 0 ;
6387 PyObject * obj5 = 0 ;
6388 char *kwnames[] = {
6389 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6390 };
6391
6392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6393 if (obj4) {
6394 arg5 = PyInt_AsLong(obj4) ? true : false;
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 if (obj5) {
6398 {
6399 arg6 = wxString_in_helper(obj5);
6400 if (arg6 == NULL) SWIG_fail;
6401 temp6 = True;
6402 }
6403 }
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6407
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6412 {
6413 if (temp6)
6414 delete arg6;
6415 }
6416 return resultobj;
6417 fail:
6418 {
6419 if (temp6)
6420 delete arg6;
6421 }
6422 return NULL;
6423 }
6424
6425
6426 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj;
6428 wxFont *arg1 = (wxFont *) 0 ;
6429 PyObject * obj0 = 0 ;
6430 char *kwnames[] = {
6431 (char *) "self", NULL
6432 };
6433
6434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6436 {
6437 PyThreadState* __tstate = wxPyBeginAllowThreads();
6438 delete arg1;
6439
6440 wxPyEndAllowThreads(__tstate);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 Py_INCREF(Py_None); resultobj = Py_None;
6444 return resultobj;
6445 fail:
6446 return NULL;
6447 }
6448
6449
6450 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6451 PyObject *resultobj;
6452 wxNativeFontInfo *arg1 = 0 ;
6453 wxFont *result;
6454 PyObject * obj0 = 0 ;
6455 char *kwnames[] = {
6456 (char *) "info", NULL
6457 };
6458
6459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6461 if (arg1 == NULL) {
6462 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6463 }
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6467
6468 wxPyEndAllowThreads(__tstate);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6479 PyObject *resultobj;
6480 wxString *arg1 = 0 ;
6481 wxFont *result;
6482 bool temp1 = False ;
6483 PyObject * obj0 = 0 ;
6484 char *kwnames[] = {
6485 (char *) "info", NULL
6486 };
6487
6488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6489 {
6490 arg1 = wxString_in_helper(obj0);
6491 if (arg1 == NULL) SWIG_fail;
6492 temp1 = True;
6493 }
6494 {
6495 PyThreadState* __tstate = wxPyBeginAllowThreads();
6496 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6497
6498 wxPyEndAllowThreads(__tstate);
6499 if (PyErr_Occurred()) SWIG_fail;
6500 }
6501 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6502 {
6503 if (temp1)
6504 delete arg1;
6505 }
6506 return resultobj;
6507 fail:
6508 {
6509 if (temp1)
6510 delete arg1;
6511 }
6512 return NULL;
6513 }
6514
6515
6516 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6517 PyObject *resultobj;
6518 int arg1 ;
6519 int arg2 ;
6520 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6521 wxString const &arg4_defvalue = wxPyEmptyString ;
6522 wxString *arg4 = (wxString *) &arg4_defvalue ;
6523 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6524 wxFont *result;
6525 bool temp4 = False ;
6526 PyObject * obj3 = 0 ;
6527 char *kwnames[] = {
6528 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6529 };
6530
6531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6532 if (obj3) {
6533 {
6534 arg4 = wxString_in_helper(obj3);
6535 if (arg4 == NULL) SWIG_fail;
6536 temp4 = True;
6537 }
6538 }
6539 {
6540 PyThreadState* __tstate = wxPyBeginAllowThreads();
6541 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6542
6543 wxPyEndAllowThreads(__tstate);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 }
6546 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6547 {
6548 if (temp4)
6549 delete arg4;
6550 }
6551 return resultobj;
6552 fail:
6553 {
6554 if (temp4)
6555 delete arg4;
6556 }
6557 return NULL;
6558 }
6559
6560
6561 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj;
6563 wxFont *arg1 = (wxFont *) 0 ;
6564 bool result;
6565 PyObject * obj0 = 0 ;
6566 char *kwnames[] = {
6567 (char *) "self", NULL
6568 };
6569
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 result = (bool)((wxFont const *)arg1)->Ok();
6575
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 resultobj = PyInt_FromLong((long)result);
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6587 PyObject *resultobj;
6588 wxFont *arg1 = (wxFont *) 0 ;
6589 wxFont *arg2 = 0 ;
6590 bool result;
6591 PyObject * obj0 = 0 ;
6592 PyObject * obj1 = 0 ;
6593 char *kwnames[] = {
6594 (char *) "self",(char *) "font", NULL
6595 };
6596
6597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6599 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6600 if (arg2 == NULL) {
6601 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6602 }
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6606
6607 wxPyEndAllowThreads(__tstate);
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 resultobj = PyInt_FromLong((long)result);
6611 return resultobj;
6612 fail:
6613 return NULL;
6614 }
6615
6616
6617 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6618 PyObject *resultobj;
6619 wxFont *arg1 = (wxFont *) 0 ;
6620 wxFont *arg2 = 0 ;
6621 bool result;
6622 PyObject * obj0 = 0 ;
6623 PyObject * obj1 = 0 ;
6624 char *kwnames[] = {
6625 (char *) "self",(char *) "font", NULL
6626 };
6627
6628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6630 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6631 if (arg2 == NULL) {
6632 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6633 }
6634 {
6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
6636 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6637
6638 wxPyEndAllowThreads(__tstate);
6639 if (PyErr_Occurred()) SWIG_fail;
6640 }
6641 resultobj = PyInt_FromLong((long)result);
6642 return resultobj;
6643 fail:
6644 return NULL;
6645 }
6646
6647
6648 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6649 PyObject *resultobj;
6650 wxFont *arg1 = (wxFont *) 0 ;
6651 int result;
6652 PyObject * obj0 = 0 ;
6653 char *kwnames[] = {
6654 (char *) "self", NULL
6655 };
6656
6657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6659 {
6660 PyThreadState* __tstate = wxPyBeginAllowThreads();
6661 result = (int)((wxFont const *)arg1)->GetPointSize();
6662
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 resultobj = PyInt_FromLong((long)result);
6667 return resultobj;
6668 fail:
6669 return NULL;
6670 }
6671
6672
6673 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6674 PyObject *resultobj;
6675 wxFont *arg1 = (wxFont *) 0 ;
6676 int result;
6677 PyObject * obj0 = 0 ;
6678 char *kwnames[] = {
6679 (char *) "self", NULL
6680 };
6681
6682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6684 {
6685 PyThreadState* __tstate = wxPyBeginAllowThreads();
6686 result = (int)((wxFont const *)arg1)->GetFamily();
6687
6688 wxPyEndAllowThreads(__tstate);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 resultobj = PyInt_FromLong((long)result);
6692 return resultobj;
6693 fail:
6694 return NULL;
6695 }
6696
6697
6698 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6699 PyObject *resultobj;
6700 wxFont *arg1 = (wxFont *) 0 ;
6701 int result;
6702 PyObject * obj0 = 0 ;
6703 char *kwnames[] = {
6704 (char *) "self", NULL
6705 };
6706
6707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
6708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6709 {
6710 PyThreadState* __tstate = wxPyBeginAllowThreads();
6711 result = (int)((wxFont const *)arg1)->GetStyle();
6712
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 resultobj = PyInt_FromLong((long)result);
6717 return resultobj;
6718 fail:
6719 return NULL;
6720 }
6721
6722
6723 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6724 PyObject *resultobj;
6725 wxFont *arg1 = (wxFont *) 0 ;
6726 int result;
6727 PyObject * obj0 = 0 ;
6728 char *kwnames[] = {
6729 (char *) "self", NULL
6730 };
6731
6732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
6733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6734 {
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 result = (int)((wxFont const *)arg1)->GetWeight();
6737
6738 wxPyEndAllowThreads(__tstate);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 resultobj = PyInt_FromLong((long)result);
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj;
6750 wxFont *arg1 = (wxFont *) 0 ;
6751 bool result;
6752 PyObject * obj0 = 0 ;
6753 char *kwnames[] = {
6754 (char *) "self", NULL
6755 };
6756
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
6758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6759 {
6760 PyThreadState* __tstate = wxPyBeginAllowThreads();
6761 result = (bool)((wxFont const *)arg1)->GetUnderlined();
6762
6763 wxPyEndAllowThreads(__tstate);
6764 if (PyErr_Occurred()) SWIG_fail;
6765 }
6766 resultobj = PyInt_FromLong((long)result);
6767 return resultobj;
6768 fail:
6769 return NULL;
6770 }
6771
6772
6773 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 wxFont *arg1 = (wxFont *) 0 ;
6776 wxString result;
6777 PyObject * obj0 = 0 ;
6778 char *kwnames[] = {
6779 (char *) "self", NULL
6780 };
6781
6782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
6783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6784 {
6785 PyThreadState* __tstate = wxPyBeginAllowThreads();
6786 result = ((wxFont const *)arg1)->GetFaceName();
6787
6788 wxPyEndAllowThreads(__tstate);
6789 if (PyErr_Occurred()) SWIG_fail;
6790 }
6791 {
6792 #if wxUSE_UNICODE
6793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6794 #else
6795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6796 #endif
6797 }
6798 return resultobj;
6799 fail:
6800 return NULL;
6801 }
6802
6803
6804 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6805 PyObject *resultobj;
6806 wxFont *arg1 = (wxFont *) 0 ;
6807 int result;
6808 PyObject * obj0 = 0 ;
6809 char *kwnames[] = {
6810 (char *) "self", NULL
6811 };
6812
6813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
6814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6815 {
6816 PyThreadState* __tstate = wxPyBeginAllowThreads();
6817 result = (int)((wxFont const *)arg1)->GetEncoding();
6818
6819 wxPyEndAllowThreads(__tstate);
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 resultobj = PyInt_FromLong((long)result);
6823 return resultobj;
6824 fail:
6825 return NULL;
6826 }
6827
6828
6829 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6830 PyObject *resultobj;
6831 wxFont *arg1 = (wxFont *) 0 ;
6832 wxNativeFontInfo *result;
6833 PyObject * obj0 = 0 ;
6834 char *kwnames[] = {
6835 (char *) "self", NULL
6836 };
6837
6838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
6839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6840 {
6841 PyThreadState* __tstate = wxPyBeginAllowThreads();
6842 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
6843
6844 wxPyEndAllowThreads(__tstate);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj;
6856 wxFont *arg1 = (wxFont *) 0 ;
6857 bool result;
6858 PyObject * obj0 = 0 ;
6859 char *kwnames[] = {
6860 (char *) "self", NULL
6861 };
6862
6863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
6864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6865 {
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
6868
6869 wxPyEndAllowThreads(__tstate);
6870 if (PyErr_Occurred()) SWIG_fail;
6871 }
6872 resultobj = PyInt_FromLong((long)result);
6873 return resultobj;
6874 fail:
6875 return NULL;
6876 }
6877
6878
6879 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6880 PyObject *resultobj;
6881 wxFont *arg1 = (wxFont *) 0 ;
6882 wxString result;
6883 PyObject * obj0 = 0 ;
6884 char *kwnames[] = {
6885 (char *) "self", NULL
6886 };
6887
6888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
6889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
6893
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 {
6898 #if wxUSE_UNICODE
6899 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6900 #else
6901 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6902 #endif
6903 }
6904 return resultobj;
6905 fail:
6906 return NULL;
6907 }
6908
6909
6910 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj;
6912 wxFont *arg1 = (wxFont *) 0 ;
6913 wxString result;
6914 PyObject * obj0 = 0 ;
6915 char *kwnames[] = {
6916 (char *) "self", NULL
6917 };
6918
6919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
6920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6921 {
6922 PyThreadState* __tstate = wxPyBeginAllowThreads();
6923 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
6924
6925 wxPyEndAllowThreads(__tstate);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 {
6929 #if wxUSE_UNICODE
6930 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6931 #else
6932 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6933 #endif
6934 }
6935 return resultobj;
6936 fail:
6937 return NULL;
6938 }
6939
6940
6941 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6942 PyObject *resultobj;
6943 wxFont *arg1 = (wxFont *) 0 ;
6944 int arg2 ;
6945 PyObject * obj0 = 0 ;
6946 char *kwnames[] = {
6947 (char *) "self",(char *) "pointSize", NULL
6948 };
6949
6950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
6951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6952 {
6953 PyThreadState* __tstate = wxPyBeginAllowThreads();
6954 (arg1)->SetPointSize(arg2);
6955
6956 wxPyEndAllowThreads(__tstate);
6957 if (PyErr_Occurred()) SWIG_fail;
6958 }
6959 Py_INCREF(Py_None); resultobj = Py_None;
6960 return resultobj;
6961 fail:
6962 return NULL;
6963 }
6964
6965
6966 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6967 PyObject *resultobj;
6968 wxFont *arg1 = (wxFont *) 0 ;
6969 int arg2 ;
6970 PyObject * obj0 = 0 ;
6971 char *kwnames[] = {
6972 (char *) "self",(char *) "family", NULL
6973 };
6974
6975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
6976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6977 {
6978 PyThreadState* __tstate = wxPyBeginAllowThreads();
6979 (arg1)->SetFamily(arg2);
6980
6981 wxPyEndAllowThreads(__tstate);
6982 if (PyErr_Occurred()) SWIG_fail;
6983 }
6984 Py_INCREF(Py_None); resultobj = Py_None;
6985 return resultobj;
6986 fail:
6987 return NULL;
6988 }
6989
6990
6991 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6992 PyObject *resultobj;
6993 wxFont *arg1 = (wxFont *) 0 ;
6994 int arg2 ;
6995 PyObject * obj0 = 0 ;
6996 char *kwnames[] = {
6997 (char *) "self",(char *) "style", NULL
6998 };
6999
7000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
7001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 (arg1)->SetStyle(arg2);
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 Py_INCREF(Py_None); resultobj = Py_None;
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj;
7018 wxFont *arg1 = (wxFont *) 0 ;
7019 int arg2 ;
7020 PyObject * obj0 = 0 ;
7021 char *kwnames[] = {
7022 (char *) "self",(char *) "weight", NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 (arg1)->SetWeight(arg2);
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 Py_INCREF(Py_None); resultobj = Py_None;
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 wxFont *arg1 = (wxFont *) 0 ;
7044 wxString *arg2 = 0 ;
7045 bool temp2 = False ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 char *kwnames[] = {
7049 (char *) "self",(char *) "faceName", NULL
7050 };
7051
7052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7054 {
7055 arg2 = wxString_in_helper(obj1);
7056 if (arg2 == NULL) SWIG_fail;
7057 temp2 = True;
7058 }
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 (arg1)->SetFaceName((wxString const &)*arg2);
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 Py_INCREF(Py_None); resultobj = Py_None;
7067 {
7068 if (temp2)
7069 delete arg2;
7070 }
7071 return resultobj;
7072 fail:
7073 {
7074 if (temp2)
7075 delete arg2;
7076 }
7077 return NULL;
7078 }
7079
7080
7081 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj;
7083 wxFont *arg1 = (wxFont *) 0 ;
7084 bool arg2 ;
7085 PyObject * obj0 = 0 ;
7086 PyObject * obj1 = 0 ;
7087 char *kwnames[] = {
7088 (char *) "self",(char *) "underlined", NULL
7089 };
7090
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7093 arg2 = PyInt_AsLong(obj1) ? true : false;
7094 if (PyErr_Occurred()) SWIG_fail;
7095 {
7096 PyThreadState* __tstate = wxPyBeginAllowThreads();
7097 (arg1)->SetUnderlined(arg2);
7098
7099 wxPyEndAllowThreads(__tstate);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 Py_INCREF(Py_None); resultobj = Py_None;
7103 return resultobj;
7104 fail:
7105 return NULL;
7106 }
7107
7108
7109 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7110 PyObject *resultobj;
7111 wxFont *arg1 = (wxFont *) 0 ;
7112 int arg2 ;
7113 PyObject * obj0 = 0 ;
7114 char *kwnames[] = {
7115 (char *) "self",(char *) "encoding", NULL
7116 };
7117
7118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 (arg1)->SetEncoding((wxFontEncoding )arg2);
7123
7124 wxPyEndAllowThreads(__tstate);
7125 if (PyErr_Occurred()) SWIG_fail;
7126 }
7127 Py_INCREF(Py_None); resultobj = Py_None;
7128 return resultobj;
7129 fail:
7130 return NULL;
7131 }
7132
7133
7134 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7135 PyObject *resultobj;
7136 wxFont *arg1 = (wxFont *) 0 ;
7137 wxNativeFontInfo *arg2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char *kwnames[] = {
7141 (char *) "self",(char *) "info", NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7146 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7147 if (arg2 == NULL) {
7148 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7149 }
7150 {
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7153
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 Py_INCREF(Py_None); resultobj = Py_None;
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7165 PyObject *resultobj;
7166 wxFont *arg1 = (wxFont *) 0 ;
7167 wxString *arg2 = 0 ;
7168 bool temp2 = False ;
7169 PyObject * obj0 = 0 ;
7170 PyObject * obj1 = 0 ;
7171 char *kwnames[] = {
7172 (char *) "self",(char *) "info", NULL
7173 };
7174
7175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7177 {
7178 arg2 = wxString_in_helper(obj1);
7179 if (arg2 == NULL) SWIG_fail;
7180 temp2 = True;
7181 }
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7185
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 Py_INCREF(Py_None); resultobj = Py_None;
7190 {
7191 if (temp2)
7192 delete arg2;
7193 }
7194 return resultobj;
7195 fail:
7196 {
7197 if (temp2)
7198 delete arg2;
7199 }
7200 return NULL;
7201 }
7202
7203
7204 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7205 PyObject *resultobj;
7206 wxFont *arg1 = (wxFont *) 0 ;
7207 wxString *arg2 = 0 ;
7208 bool temp2 = False ;
7209 PyObject * obj0 = 0 ;
7210 PyObject * obj1 = 0 ;
7211 char *kwnames[] = {
7212 (char *) "self",(char *) "info", NULL
7213 };
7214
7215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7217 {
7218 arg2 = wxString_in_helper(obj1);
7219 if (arg2 == NULL) SWIG_fail;
7220 temp2 = True;
7221 }
7222 {
7223 PyThreadState* __tstate = wxPyBeginAllowThreads();
7224 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7225
7226 wxPyEndAllowThreads(__tstate);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 Py_INCREF(Py_None); resultobj = Py_None;
7230 {
7231 if (temp2)
7232 delete arg2;
7233 }
7234 return resultobj;
7235 fail:
7236 {
7237 if (temp2)
7238 delete arg2;
7239 }
7240 return NULL;
7241 }
7242
7243
7244 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7245 PyObject *resultobj;
7246 wxFont *arg1 = (wxFont *) 0 ;
7247 wxString result;
7248 PyObject * obj0 = 0 ;
7249 char *kwnames[] = {
7250 (char *) "self", NULL
7251 };
7252
7253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 result = ((wxFont const *)arg1)->GetFamilyString();
7258
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 {
7263 #if wxUSE_UNICODE
7264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7265 #else
7266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7267 #endif
7268 }
7269 return resultobj;
7270 fail:
7271 return NULL;
7272 }
7273
7274
7275 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7276 PyObject *resultobj;
7277 wxFont *arg1 = (wxFont *) 0 ;
7278 wxString result;
7279 PyObject * obj0 = 0 ;
7280 char *kwnames[] = {
7281 (char *) "self", NULL
7282 };
7283
7284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7286 {
7287 PyThreadState* __tstate = wxPyBeginAllowThreads();
7288 result = ((wxFont const *)arg1)->GetStyleString();
7289
7290 wxPyEndAllowThreads(__tstate);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 {
7294 #if wxUSE_UNICODE
7295 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7296 #else
7297 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7298 #endif
7299 }
7300 return resultobj;
7301 fail:
7302 return NULL;
7303 }
7304
7305
7306 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7307 PyObject *resultobj;
7308 wxFont *arg1 = (wxFont *) 0 ;
7309 wxString result;
7310 PyObject * obj0 = 0 ;
7311 char *kwnames[] = {
7312 (char *) "self", NULL
7313 };
7314
7315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 result = ((wxFont const *)arg1)->GetWeightString();
7320
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 {
7325 #if wxUSE_UNICODE
7326 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7327 #else
7328 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7329 #endif
7330 }
7331 return resultobj;
7332 fail:
7333 return NULL;
7334 }
7335
7336
7337 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj;
7339 wxFont *arg1 = (wxFont *) 0 ;
7340 bool arg2 = (bool) True ;
7341 PyObject * obj0 = 0 ;
7342 PyObject * obj1 = 0 ;
7343 char *kwnames[] = {
7344 (char *) "self",(char *) "no", NULL
7345 };
7346
7347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7349 if (obj1) {
7350 arg2 = PyInt_AsLong(obj1) ? true : false;
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 {
7354 PyThreadState* __tstate = wxPyBeginAllowThreads();
7355 (arg1)->SetNoAntiAliasing(arg2);
7356
7357 wxPyEndAllowThreads(__tstate);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 Py_INCREF(Py_None); resultobj = Py_None;
7361 return resultobj;
7362 fail:
7363 return NULL;
7364 }
7365
7366
7367 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7368 PyObject *resultobj;
7369 wxFont *arg1 = (wxFont *) 0 ;
7370 bool result;
7371 PyObject * obj0 = 0 ;
7372 char *kwnames[] = {
7373 (char *) "self", NULL
7374 };
7375
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7378 {
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 result = (bool)(arg1)->GetNoAntiAliasing();
7381
7382 wxPyEndAllowThreads(__tstate);
7383 if (PyErr_Occurred()) SWIG_fail;
7384 }
7385 resultobj = PyInt_FromLong((long)result);
7386 return resultobj;
7387 fail:
7388 return NULL;
7389 }
7390
7391
7392 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7393 PyObject *resultobj;
7394 int result;
7395 char *kwnames[] = {
7396 NULL
7397 };
7398
7399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 result = (int)wxFont::GetDefaultEncoding();
7403
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 resultobj = PyInt_FromLong((long)result);
7408 return resultobj;
7409 fail:
7410 return NULL;
7411 }
7412
7413
7414 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7415 PyObject *resultobj;
7416 int arg1 ;
7417 char *kwnames[] = {
7418 (char *) "encoding", NULL
7419 };
7420
7421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7422 {
7423 PyThreadState* __tstate = wxPyBeginAllowThreads();
7424 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7425
7426 wxPyEndAllowThreads(__tstate);
7427 if (PyErr_Occurred()) SWIG_fail;
7428 }
7429 Py_INCREF(Py_None); resultobj = Py_None;
7430 return resultobj;
7431 fail:
7432 return NULL;
7433 }
7434
7435
7436 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7437 PyObject *obj;
7438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7439 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7440 Py_INCREF(obj);
7441 return Py_BuildValue((char *)"");
7442 }
7443 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7444 PyObject *resultobj;
7445 wxPyFontEnumerator *result;
7446 char *kwnames[] = {
7447 NULL
7448 };
7449
7450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7451 {
7452 PyThreadState* __tstate = wxPyBeginAllowThreads();
7453 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7454
7455 wxPyEndAllowThreads(__tstate);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7459 return resultobj;
7460 fail:
7461 return NULL;
7462 }
7463
7464
7465 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7466 PyObject *resultobj;
7467 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7468 PyObject * obj0 = 0 ;
7469 char *kwnames[] = {
7470 (char *) "self", NULL
7471 };
7472
7473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7475 {
7476 PyThreadState* __tstate = wxPyBeginAllowThreads();
7477 delete arg1;
7478
7479 wxPyEndAllowThreads(__tstate);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 }
7482 Py_INCREF(Py_None); resultobj = Py_None;
7483 return resultobj;
7484 fail:
7485 return NULL;
7486 }
7487
7488
7489 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7490 PyObject *resultobj;
7491 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7492 PyObject *arg2 = (PyObject *) 0 ;
7493 PyObject *arg3 = (PyObject *) 0 ;
7494 bool arg4 ;
7495 PyObject * obj0 = 0 ;
7496 PyObject * obj1 = 0 ;
7497 PyObject * obj2 = 0 ;
7498 PyObject * obj3 = 0 ;
7499 char *kwnames[] = {
7500 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7501 };
7502
7503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7505 arg2 = obj1;
7506 arg3 = obj2;
7507 arg4 = PyInt_AsLong(obj3) ? true : false;
7508 if (PyErr_Occurred()) SWIG_fail;
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 Py_INCREF(Py_None); resultobj = Py_None;
7517 return resultobj;
7518 fail:
7519 return NULL;
7520 }
7521
7522
7523 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7524 PyObject *resultobj;
7525 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7526 int arg2 = (int) wxFONTENCODING_SYSTEM ;
7527 bool arg3 = (bool) False ;
7528 bool result;
7529 PyObject * obj0 = 0 ;
7530 PyObject * obj2 = 0 ;
7531 char *kwnames[] = {
7532 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7533 };
7534
7535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7537 if (obj2) {
7538 arg3 = PyInt_AsLong(obj2) ? true : false;
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
7541 {
7542 PyThreadState* __tstate = wxPyBeginAllowThreads();
7543 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7544
7545 wxPyEndAllowThreads(__tstate);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 }
7548 resultobj = PyInt_FromLong((long)result);
7549 return resultobj;
7550 fail:
7551 return NULL;
7552 }
7553
7554
7555 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7556 PyObject *resultobj;
7557 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7558 wxString const &arg2_defvalue = wxPyEmptyString ;
7559 wxString *arg2 = (wxString *) &arg2_defvalue ;
7560 bool result;
7561 bool temp2 = False ;
7562 PyObject * obj0 = 0 ;
7563 PyObject * obj1 = 0 ;
7564 char *kwnames[] = {
7565 (char *) "self",(char *) "facename", NULL
7566 };
7567
7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7570 if (obj1) {
7571 {
7572 arg2 = wxString_in_helper(obj1);
7573 if (arg2 == NULL) SWIG_fail;
7574 temp2 = True;
7575 }
7576 }
7577 {
7578 PyThreadState* __tstate = wxPyBeginAllowThreads();
7579 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7580
7581 wxPyEndAllowThreads(__tstate);
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 resultobj = PyInt_FromLong((long)result);
7585 {
7586 if (temp2)
7587 delete arg2;
7588 }
7589 return resultobj;
7590 fail:
7591 {
7592 if (temp2)
7593 delete arg2;
7594 }
7595 return NULL;
7596 }
7597
7598
7599 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7600 PyObject *resultobj;
7601 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7602 PyObject *result;
7603 PyObject * obj0 = 0 ;
7604 char *kwnames[] = {
7605 (char *) "self", NULL
7606 };
7607
7608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7610 {
7611 PyThreadState* __tstate = wxPyBeginAllowThreads();
7612 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7613
7614 wxPyEndAllowThreads(__tstate);
7615 if (PyErr_Occurred()) SWIG_fail;
7616 }
7617 resultobj = result;
7618 return resultobj;
7619 fail:
7620 return NULL;
7621 }
7622
7623
7624 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7625 PyObject *resultobj;
7626 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7627 PyObject *result;
7628 PyObject * obj0 = 0 ;
7629 char *kwnames[] = {
7630 (char *) "self", NULL
7631 };
7632
7633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7635 {
7636 PyThreadState* __tstate = wxPyBeginAllowThreads();
7637 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7638
7639 wxPyEndAllowThreads(__tstate);
7640 if (PyErr_Occurred()) SWIG_fail;
7641 }
7642 resultobj = result;
7643 return resultobj;
7644 fail:
7645 return NULL;
7646 }
7647
7648
7649 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7650 PyObject *obj;
7651 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7652 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7653 Py_INCREF(obj);
7654 return Py_BuildValue((char *)"");
7655 }
7656 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject *resultobj;
7658 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7659 int arg2 ;
7660 PyObject * obj0 = 0 ;
7661 char *kwnames[] = {
7662 (char *) "self",(char *) "Language", NULL
7663 };
7664
7665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7667 if (arg1) (arg1)->Language = arg2;
7668
7669 Py_INCREF(Py_None); resultobj = Py_None;
7670 return resultobj;
7671 fail:
7672 return NULL;
7673 }
7674
7675
7676 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7677 PyObject *resultobj;
7678 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7679 int result;
7680 PyObject * obj0 = 0 ;
7681 char *kwnames[] = {
7682 (char *) "self", NULL
7683 };
7684
7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7687 result = (int) ((arg1)->Language);
7688
7689 resultobj = PyInt_FromLong((long)result);
7690 return resultobj;
7691 fail:
7692 return NULL;
7693 }
7694
7695
7696 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7697 PyObject *resultobj;
7698 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7699 wxString *arg2 = (wxString *) 0 ;
7700 PyObject * obj0 = 0 ;
7701 PyObject * obj1 = 0 ;
7702 char *kwnames[] = {
7703 (char *) "self",(char *) "CanonicalName", NULL
7704 };
7705
7706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7708 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7709 if (arg1) (arg1)->CanonicalName = *arg2;
7710
7711 Py_INCREF(Py_None); resultobj = Py_None;
7712 return resultobj;
7713 fail:
7714 return NULL;
7715 }
7716
7717
7718 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7719 PyObject *resultobj;
7720 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7721 wxString *result;
7722 PyObject * obj0 = 0 ;
7723 char *kwnames[] = {
7724 (char *) "self", NULL
7725 };
7726
7727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7729 result = (wxString *)& ((arg1)->CanonicalName);
7730
7731 {
7732 #if wxUSE_UNICODE
7733 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7734 #else
7735 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7736 #endif
7737 }
7738 return resultobj;
7739 fail:
7740 return NULL;
7741 }
7742
7743
7744 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7745 PyObject *resultobj;
7746 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7747 wxString *arg2 = (wxString *) 0 ;
7748 PyObject * obj0 = 0 ;
7749 PyObject * obj1 = 0 ;
7750 char *kwnames[] = {
7751 (char *) "self",(char *) "Description", NULL
7752 };
7753
7754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
7755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7756 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7757 if (arg1) (arg1)->Description = *arg2;
7758
7759 Py_INCREF(Py_None); resultobj = Py_None;
7760 return resultobj;
7761 fail:
7762 return NULL;
7763 }
7764
7765
7766 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7767 PyObject *resultobj;
7768 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7769 wxString *result;
7770 PyObject * obj0 = 0 ;
7771 char *kwnames[] = {
7772 (char *) "self", NULL
7773 };
7774
7775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
7776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7777 result = (wxString *)& ((arg1)->Description);
7778
7779 {
7780 #if wxUSE_UNICODE
7781 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7782 #else
7783 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7784 #endif
7785 }
7786 return resultobj;
7787 fail:
7788 return NULL;
7789 }
7790
7791
7792 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
7793 PyObject *obj;
7794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7795 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
7796 Py_INCREF(obj);
7797 return Py_BuildValue((char *)"");
7798 }
7799 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7800 PyObject *resultobj;
7801 int arg1 = (int) wxLANGUAGE_DEFAULT ;
7802 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7803 wxLocale *result;
7804 char *kwnames[] = {
7805 (char *) "language",(char *) "flags", NULL
7806 };
7807
7808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 result = (wxLocale *)new wxLocale(arg1,arg2);
7812
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
7816 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
7817 return resultobj;
7818 fail:
7819 return NULL;
7820 }
7821
7822
7823 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7824 PyObject *resultobj;
7825 wxLocale *arg1 = (wxLocale *) 0 ;
7826 PyObject * obj0 = 0 ;
7827 char *kwnames[] = {
7828 (char *) "self", NULL
7829 };
7830
7831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
7832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7833 {
7834 PyThreadState* __tstate = wxPyBeginAllowThreads();
7835 delete arg1;
7836
7837 wxPyEndAllowThreads(__tstate);
7838 if (PyErr_Occurred()) SWIG_fail;
7839 }
7840 Py_INCREF(Py_None); resultobj = Py_None;
7841 return resultobj;
7842 fail:
7843 return NULL;
7844 }
7845
7846
7847 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
7848 PyObject *resultobj;
7849 wxLocale *arg1 = (wxLocale *) 0 ;
7850 wxString *arg2 = 0 ;
7851 wxString const &arg3_defvalue = wxPyEmptyString ;
7852 wxString *arg3 = (wxString *) &arg3_defvalue ;
7853 wxString const &arg4_defvalue = wxPyEmptyString ;
7854 wxString *arg4 = (wxString *) &arg4_defvalue ;
7855 bool arg5 = (bool) True ;
7856 bool arg6 = (bool) False ;
7857 bool result;
7858 bool temp2 = False ;
7859 bool temp3 = False ;
7860 bool temp4 = False ;
7861 PyObject * obj0 = 0 ;
7862 PyObject * obj1 = 0 ;
7863 PyObject * obj2 = 0 ;
7864 PyObject * obj3 = 0 ;
7865 PyObject * obj4 = 0 ;
7866 PyObject * obj5 = 0 ;
7867 char *kwnames[] = {
7868 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
7869 };
7870
7871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7873 {
7874 arg2 = wxString_in_helper(obj1);
7875 if (arg2 == NULL) SWIG_fail;
7876 temp2 = True;
7877 }
7878 if (obj2) {
7879 {
7880 arg3 = wxString_in_helper(obj2);
7881 if (arg3 == NULL) SWIG_fail;
7882 temp3 = True;
7883 }
7884 }
7885 if (obj3) {
7886 {
7887 arg4 = wxString_in_helper(obj3);
7888 if (arg4 == NULL) SWIG_fail;
7889 temp4 = True;
7890 }
7891 }
7892 if (obj4) {
7893 arg5 = PyInt_AsLong(obj4) ? true : false;
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 if (obj5) {
7897 arg6 = PyInt_AsLong(obj5) ? true : false;
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 {
7901 PyThreadState* __tstate = wxPyBeginAllowThreads();
7902 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
7903
7904 wxPyEndAllowThreads(__tstate);
7905 if (PyErr_Occurred()) SWIG_fail;
7906 }
7907 resultobj = PyInt_FromLong((long)result);
7908 {
7909 if (temp2)
7910 delete arg2;
7911 }
7912 {
7913 if (temp3)
7914 delete arg3;
7915 }
7916 {
7917 if (temp4)
7918 delete arg4;
7919 }
7920 return resultobj;
7921 fail:
7922 {
7923 if (temp2)
7924 delete arg2;
7925 }
7926 {
7927 if (temp3)
7928 delete arg3;
7929 }
7930 {
7931 if (temp4)
7932 delete arg4;
7933 }
7934 return NULL;
7935 }
7936
7937
7938 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
7939 PyObject *resultobj;
7940 wxLocale *arg1 = (wxLocale *) 0 ;
7941 int arg2 = (int) wxLANGUAGE_DEFAULT ;
7942 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7943 bool result;
7944 PyObject * obj0 = 0 ;
7945 char *kwnames[] = {
7946 (char *) "self",(char *) "language",(char *) "flags", NULL
7947 };
7948
7949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
7950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7951 {
7952 PyThreadState* __tstate = wxPyBeginAllowThreads();
7953 result = (bool)(arg1)->Init(arg2,arg3);
7954
7955 wxPyEndAllowThreads(__tstate);
7956 if (PyErr_Occurred()) SWIG_fail;
7957 }
7958 resultobj = PyInt_FromLong((long)result);
7959 return resultobj;
7960 fail:
7961 return NULL;
7962 }
7963
7964
7965 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
7966 PyObject *resultobj;
7967 int result;
7968 char *kwnames[] = {
7969 NULL
7970 };
7971
7972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
7973 {
7974 PyThreadState* __tstate = wxPyBeginAllowThreads();
7975 result = (int)wxLocale::GetSystemLanguage();
7976
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 resultobj = PyInt_FromLong((long)result);
7981 return resultobj;
7982 fail:
7983 return NULL;
7984 }
7985
7986
7987 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7988 PyObject *resultobj;
7989 int result;
7990 char *kwnames[] = {
7991 NULL
7992 };
7993
7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
7995 {
7996 PyThreadState* __tstate = wxPyBeginAllowThreads();
7997 result = (int)wxLocale::GetSystemEncoding();
7998
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 resultobj = PyInt_FromLong((long)result);
8003 return resultobj;
8004 fail:
8005 return NULL;
8006 }
8007
8008
8009 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxString result;
8012 char *kwnames[] = {
8013 NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 result = wxLocale::GetSystemEncodingName();
8020
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 {
8025 #if wxUSE_UNICODE
8026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8027 #else
8028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8029 #endif
8030 }
8031 return resultobj;
8032 fail:
8033 return NULL;
8034 }
8035
8036
8037 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8038 PyObject *resultobj;
8039 wxLocale *arg1 = (wxLocale *) 0 ;
8040 bool result;
8041 PyObject * obj0 = 0 ;
8042 char *kwnames[] = {
8043 (char *) "self", NULL
8044 };
8045
8046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8048 {
8049 PyThreadState* __tstate = wxPyBeginAllowThreads();
8050 result = (bool)((wxLocale const *)arg1)->IsOk();
8051
8052 wxPyEndAllowThreads(__tstate);
8053 if (PyErr_Occurred()) SWIG_fail;
8054 }
8055 resultobj = PyInt_FromLong((long)result);
8056 return resultobj;
8057 fail:
8058 return NULL;
8059 }
8060
8061
8062 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj;
8064 wxLocale *arg1 = (wxLocale *) 0 ;
8065 wxString result;
8066 PyObject * obj0 = 0 ;
8067 char *kwnames[] = {
8068 (char *) "self", NULL
8069 };
8070
8071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = ((wxLocale const *)arg1)->GetLocale();
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 {
8081 #if wxUSE_UNICODE
8082 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8083 #else
8084 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8085 #endif
8086 }
8087 return resultobj;
8088 fail:
8089 return NULL;
8090 }
8091
8092
8093 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8094 PyObject *resultobj;
8095 wxLocale *arg1 = (wxLocale *) 0 ;
8096 int result;
8097 PyObject * obj0 = 0 ;
8098 char *kwnames[] = {
8099 (char *) "self", NULL
8100 };
8101
8102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8104 {
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 result = (int)((wxLocale const *)arg1)->GetLanguage();
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = PyInt_FromLong((long)result);
8112 return resultobj;
8113 fail:
8114 return NULL;
8115 }
8116
8117
8118 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8119 PyObject *resultobj;
8120 wxLocale *arg1 = (wxLocale *) 0 ;
8121 wxString result;
8122 PyObject * obj0 = 0 ;
8123 char *kwnames[] = {
8124 (char *) "self", NULL
8125 };
8126
8127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 result = ((wxLocale const *)arg1)->GetSysName();
8132
8133 wxPyEndAllowThreads(__tstate);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 {
8137 #if wxUSE_UNICODE
8138 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8139 #else
8140 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8141 #endif
8142 }
8143 return resultobj;
8144 fail:
8145 return NULL;
8146 }
8147
8148
8149 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8150 PyObject *resultobj;
8151 wxLocale *arg1 = (wxLocale *) 0 ;
8152 wxString result;
8153 PyObject * obj0 = 0 ;
8154 char *kwnames[] = {
8155 (char *) "self", NULL
8156 };
8157
8158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8160 {
8161 PyThreadState* __tstate = wxPyBeginAllowThreads();
8162 result = ((wxLocale const *)arg1)->GetCanonicalName();
8163
8164 wxPyEndAllowThreads(__tstate);
8165 if (PyErr_Occurred()) SWIG_fail;
8166 }
8167 {
8168 #if wxUSE_UNICODE
8169 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8170 #else
8171 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8172 #endif
8173 }
8174 return resultobj;
8175 fail:
8176 return NULL;
8177 }
8178
8179
8180 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8181 PyObject *resultobj;
8182 wxString *arg1 = 0 ;
8183 bool temp1 = False ;
8184 PyObject * obj0 = 0 ;
8185 char *kwnames[] = {
8186 (char *) "prefix", NULL
8187 };
8188
8189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8190 {
8191 arg1 = wxString_in_helper(obj0);
8192 if (arg1 == NULL) SWIG_fail;
8193 temp1 = True;
8194 }
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8198
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 Py_INCREF(Py_None); resultobj = Py_None;
8203 {
8204 if (temp1)
8205 delete arg1;
8206 }
8207 return resultobj;
8208 fail:
8209 {
8210 if (temp1)
8211 delete arg1;
8212 }
8213 return NULL;
8214 }
8215
8216
8217 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8218 PyObject *resultobj;
8219 wxLocale *arg1 = (wxLocale *) 0 ;
8220 wxString *arg2 = 0 ;
8221 bool result;
8222 bool temp2 = False ;
8223 PyObject * obj0 = 0 ;
8224 PyObject * obj1 = 0 ;
8225 char *kwnames[] = {
8226 (char *) "self",(char *) "szDomain", NULL
8227 };
8228
8229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8231 {
8232 arg2 = wxString_in_helper(obj1);
8233 if (arg2 == NULL) SWIG_fail;
8234 temp2 = True;
8235 }
8236 {
8237 PyThreadState* __tstate = wxPyBeginAllowThreads();
8238 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8239
8240 wxPyEndAllowThreads(__tstate);
8241 if (PyErr_Occurred()) SWIG_fail;
8242 }
8243 resultobj = PyInt_FromLong((long)result);
8244 {
8245 if (temp2)
8246 delete arg2;
8247 }
8248 return resultobj;
8249 fail:
8250 {
8251 if (temp2)
8252 delete arg2;
8253 }
8254 return NULL;
8255 }
8256
8257
8258 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj;
8260 wxLocale *arg1 = (wxLocale *) 0 ;
8261 wxString *arg2 = 0 ;
8262 bool result;
8263 bool temp2 = False ;
8264 PyObject * obj0 = 0 ;
8265 PyObject * obj1 = 0 ;
8266 char *kwnames[] = {
8267 (char *) "self",(char *) "szDomain", NULL
8268 };
8269
8270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8272 {
8273 arg2 = wxString_in_helper(obj1);
8274 if (arg2 == NULL) SWIG_fail;
8275 temp2 = True;
8276 }
8277 {
8278 PyThreadState* __tstate = wxPyBeginAllowThreads();
8279 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8280
8281 wxPyEndAllowThreads(__tstate);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = PyInt_FromLong((long)result);
8285 {
8286 if (temp2)
8287 delete arg2;
8288 }
8289 return resultobj;
8290 fail:
8291 {
8292 if (temp2)
8293 delete arg2;
8294 }
8295 return NULL;
8296 }
8297
8298
8299 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8300 PyObject *resultobj;
8301 int arg1 ;
8302 wxLanguageInfo *result;
8303 char *kwnames[] = {
8304 (char *) "lang", NULL
8305 };
8306
8307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8308 {
8309 PyThreadState* __tstate = wxPyBeginAllowThreads();
8310 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8311
8312 wxPyEndAllowThreads(__tstate);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8316 return resultobj;
8317 fail:
8318 return NULL;
8319 }
8320
8321
8322 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8323 PyObject *resultobj;
8324 int arg1 ;
8325 wxString result;
8326 char *kwnames[] = {
8327 (char *) "lang", NULL
8328 };
8329
8330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8331 {
8332 PyThreadState* __tstate = wxPyBeginAllowThreads();
8333 result = wxLocale::GetLanguageName(arg1);
8334
8335 wxPyEndAllowThreads(__tstate);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 {
8339 #if wxUSE_UNICODE
8340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8341 #else
8342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8343 #endif
8344 }
8345 return resultobj;
8346 fail:
8347 return NULL;
8348 }
8349
8350
8351 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj;
8353 wxString *arg1 = 0 ;
8354 wxLanguageInfo *result;
8355 bool temp1 = False ;
8356 PyObject * obj0 = 0 ;
8357 char *kwnames[] = {
8358 (char *) "locale", NULL
8359 };
8360
8361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8362 {
8363 arg1 = wxString_in_helper(obj0);
8364 if (arg1 == NULL) SWIG_fail;
8365 temp1 = True;
8366 }
8367 {
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8370
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8375 {
8376 if (temp1)
8377 delete arg1;
8378 }
8379 return resultobj;
8380 fail:
8381 {
8382 if (temp1)
8383 delete arg1;
8384 }
8385 return NULL;
8386 }
8387
8388
8389 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8390 PyObject *resultobj;
8391 wxLanguageInfo *arg1 = 0 ;
8392 PyObject * obj0 = 0 ;
8393 char *kwnames[] = {
8394 (char *) "info", NULL
8395 };
8396
8397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8399 if (arg1 == NULL) {
8400 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8401 }
8402 {
8403 PyThreadState* __tstate = wxPyBeginAllowThreads();
8404 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8405
8406 wxPyEndAllowThreads(__tstate);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 Py_INCREF(Py_None); resultobj = Py_None;
8410 return resultobj;
8411 fail:
8412 return NULL;
8413 }
8414
8415
8416 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8417 PyObject *resultobj;
8418 wxLocale *arg1 = (wxLocale *) 0 ;
8419 wxString *arg2 = 0 ;
8420 wxString const &arg3_defvalue = wxPyEmptyString ;
8421 wxString *arg3 = (wxString *) &arg3_defvalue ;
8422 wxString result;
8423 bool temp2 = False ;
8424 bool temp3 = False ;
8425 PyObject * obj0 = 0 ;
8426 PyObject * obj1 = 0 ;
8427 PyObject * obj2 = 0 ;
8428 char *kwnames[] = {
8429 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8430 };
8431
8432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8434 {
8435 arg2 = wxString_in_helper(obj1);
8436 if (arg2 == NULL) SWIG_fail;
8437 temp2 = True;
8438 }
8439 if (obj2) {
8440 {
8441 arg3 = wxString_in_helper(obj2);
8442 if (arg3 == NULL) SWIG_fail;
8443 temp3 = True;
8444 }
8445 }
8446 {
8447 PyThreadState* __tstate = wxPyBeginAllowThreads();
8448 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
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 {
8461 if (temp2)
8462 delete arg2;
8463 }
8464 {
8465 if (temp3)
8466 delete arg3;
8467 }
8468 return resultobj;
8469 fail:
8470 {
8471 if (temp2)
8472 delete arg2;
8473 }
8474 {
8475 if (temp3)
8476 delete arg3;
8477 }
8478 return NULL;
8479 }
8480
8481
8482 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj;
8484 wxLocale *arg1 = (wxLocale *) 0 ;
8485 wxString *result;
8486 PyObject * obj0 = 0 ;
8487 char *kwnames[] = {
8488 (char *) "self", NULL
8489 };
8490
8491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8493 {
8494 PyThreadState* __tstate = wxPyBeginAllowThreads();
8495 {
8496 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8497 result = (wxString *) &_result_ref;
8498 }
8499
8500 wxPyEndAllowThreads(__tstate);
8501 if (PyErr_Occurred()) SWIG_fail;
8502 }
8503 {
8504 #if wxUSE_UNICODE
8505 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8506 #else
8507 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8508 #endif
8509 }
8510 return resultobj;
8511 fail:
8512 return NULL;
8513 }
8514
8515
8516 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8517 PyObject *obj;
8518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8519 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8520 Py_INCREF(obj);
8521 return Py_BuildValue((char *)"");
8522 }
8523 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8524 PyObject *resultobj;
8525 wxLocale *result;
8526 char *kwnames[] = {
8527 NULL
8528 };
8529
8530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8531 {
8532 PyThreadState* __tstate = wxPyBeginAllowThreads();
8533 result = (wxLocale *)wxGetLocale();
8534
8535 wxPyEndAllowThreads(__tstate);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8539 return resultobj;
8540 fail:
8541 return NULL;
8542 }
8543
8544
8545 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8546 PyObject *resultobj;
8547 wxString *arg1 = 0 ;
8548 wxString result;
8549 bool temp1 = False ;
8550 PyObject * obj0 = 0 ;
8551
8552 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8553 {
8554 arg1 = wxString_in_helper(obj0);
8555 if (arg1 == NULL) SWIG_fail;
8556 temp1 = True;
8557 }
8558 {
8559 PyThreadState* __tstate = wxPyBeginAllowThreads();
8560 result = wxGetTranslation((wxString const &)*arg1);
8561
8562 wxPyEndAllowThreads(__tstate);
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 {
8566 #if wxUSE_UNICODE
8567 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8568 #else
8569 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8570 #endif
8571 }
8572 {
8573 if (temp1)
8574 delete arg1;
8575 }
8576 return resultobj;
8577 fail:
8578 {
8579 if (temp1)
8580 delete arg1;
8581 }
8582 return NULL;
8583 }
8584
8585
8586 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8587 PyObject *resultobj;
8588 wxString *arg1 = 0 ;
8589 wxString *arg2 = 0 ;
8590 size_t arg3 ;
8591 wxString result;
8592 bool temp1 = False ;
8593 bool temp2 = False ;
8594 PyObject * obj0 = 0 ;
8595 PyObject * obj1 = 0 ;
8596 PyObject * obj2 = 0 ;
8597
8598 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8599 {
8600 arg1 = wxString_in_helper(obj0);
8601 if (arg1 == NULL) SWIG_fail;
8602 temp1 = True;
8603 }
8604 {
8605 arg2 = wxString_in_helper(obj1);
8606 if (arg2 == NULL) SWIG_fail;
8607 temp2 = True;
8608 }
8609 arg3 = (size_t) PyInt_AsLong(obj2);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
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 {
8626 if (temp1)
8627 delete arg1;
8628 }
8629 {
8630 if (temp2)
8631 delete arg2;
8632 }
8633 return resultobj;
8634 fail:
8635 {
8636 if (temp1)
8637 delete arg1;
8638 }
8639 {
8640 if (temp2)
8641 delete arg2;
8642 }
8643 return NULL;
8644 }
8645
8646
8647 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8648 int argc;
8649 PyObject *argv[4];
8650 int ii;
8651
8652 argc = PyObject_Length(args);
8653 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8654 argv[ii] = PyTuple_GetItem(args,ii);
8655 }
8656 if (argc == 1) {
8657 int _v;
8658 {
8659 void *ptr;
8660 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8661 _v = 0;
8662 PyErr_Clear();
8663 } else {
8664 _v = 1;
8665 }
8666 }
8667 if (_v) {
8668 return _wrap_GetTranslation__SWIG_0(self,args);
8669 }
8670 }
8671 if (argc == 3) {
8672 int _v;
8673 {
8674 void *ptr;
8675 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8676 _v = 0;
8677 PyErr_Clear();
8678 } else {
8679 _v = 1;
8680 }
8681 }
8682 if (_v) {
8683 {
8684 void *ptr;
8685 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8686 _v = 0;
8687 PyErr_Clear();
8688 } else {
8689 _v = 1;
8690 }
8691 }
8692 if (_v) {
8693 {
8694 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8695 }
8696 if (_v) {
8697 return _wrap_GetTranslation__SWIG_1(self,args);
8698 }
8699 }
8700 }
8701 }
8702
8703 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8704 return NULL;
8705 }
8706
8707
8708 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8709 PyObject *resultobj;
8710 wxEncodingConverter *result;
8711 char *kwnames[] = {
8712 NULL
8713 };
8714
8715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
8716 {
8717 PyThreadState* __tstate = wxPyBeginAllowThreads();
8718 result = (wxEncodingConverter *)new wxEncodingConverter();
8719
8720 wxPyEndAllowThreads(__tstate);
8721 if (PyErr_Occurred()) SWIG_fail;
8722 }
8723 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
8724 return resultobj;
8725 fail:
8726 return NULL;
8727 }
8728
8729
8730 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8731 PyObject *resultobj;
8732 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8733 PyObject * obj0 = 0 ;
8734 char *kwnames[] = {
8735 (char *) "self", NULL
8736 };
8737
8738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
8739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8740 {
8741 PyThreadState* __tstate = wxPyBeginAllowThreads();
8742 delete arg1;
8743
8744 wxPyEndAllowThreads(__tstate);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 Py_INCREF(Py_None); resultobj = Py_None;
8748 return resultobj;
8749 fail:
8750 return NULL;
8751 }
8752
8753
8754 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
8755 PyObject *resultobj;
8756 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8757 int arg2 ;
8758 int arg3 ;
8759 int arg4 = (int) wxCONVERT_STRICT ;
8760 bool result;
8761 PyObject * obj0 = 0 ;
8762 char *kwnames[] = {
8763 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
8764 };
8765
8766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
8767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
8771
8772 wxPyEndAllowThreads(__tstate);
8773 if (PyErr_Occurred()) SWIG_fail;
8774 }
8775 resultobj = PyInt_FromLong((long)result);
8776 return resultobj;
8777 fail:
8778 return NULL;
8779 }
8780
8781
8782 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj;
8784 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8785 wxString *arg2 = 0 ;
8786 wxString result;
8787 bool temp2 = False ;
8788 PyObject * obj0 = 0 ;
8789 PyObject * obj1 = 0 ;
8790 char *kwnames[] = {
8791 (char *) "self",(char *) "input", NULL
8792 };
8793
8794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
8795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8796 {
8797 arg2 = wxString_in_helper(obj1);
8798 if (arg2 == NULL) SWIG_fail;
8799 temp2 = True;
8800 }
8801 {
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 result = (arg1)->Convert((wxString const &)*arg2);
8804
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 {
8809 #if wxUSE_UNICODE
8810 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8811 #else
8812 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8813 #endif
8814 }
8815 {
8816 if (temp2)
8817 delete arg2;
8818 }
8819 return resultobj;
8820 fail:
8821 {
8822 if (temp2)
8823 delete arg2;
8824 }
8825 return NULL;
8826 }
8827
8828
8829 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj;
8831 int arg1 ;
8832 int arg2 = (int) wxPLATFORM_CURRENT ;
8833 wxFontEncodingArray result;
8834 char *kwnames[] = {
8835 (char *) "enc",(char *) "platform", NULL
8836 };
8837
8838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
8839 {
8840 PyThreadState* __tstate = wxPyBeginAllowThreads();
8841 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
8842
8843 wxPyEndAllowThreads(__tstate);
8844 if (PyErr_Occurred()) SWIG_fail;
8845 }
8846 {
8847 resultobj = PyList_New(0);
8848 for (size_t i=0; i < (&result)->GetCount(); i++) {
8849 PyObject* number = PyInt_FromLong((&result)->Item(i));
8850 PyList_Append(resultobj, number);
8851 Py_DECREF(number);
8852 }
8853 }
8854 return resultobj;
8855 fail:
8856 return NULL;
8857 }
8858
8859
8860 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8861 PyObject *resultobj;
8862 int arg1 ;
8863 wxFontEncodingArray result;
8864 char *kwnames[] = {
8865 (char *) "enc", NULL
8866 };
8867
8868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
8869 {
8870 PyThreadState* __tstate = wxPyBeginAllowThreads();
8871 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
8872
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 {
8877 resultobj = PyList_New(0);
8878 for (size_t i=0; i < (&result)->GetCount(); i++) {
8879 PyObject* number = PyInt_FromLong((&result)->Item(i));
8880 PyList_Append(resultobj, number);
8881 Py_DECREF(number);
8882 }
8883 }
8884 return resultobj;
8885 fail:
8886 return NULL;
8887 }
8888
8889
8890 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
8891 PyObject *resultobj;
8892 int arg1 ;
8893 int arg2 ;
8894 bool result;
8895 char *kwnames[] = {
8896 (char *) "encIn",(char *) "encOut", NULL
8897 };
8898
8899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
8900 {
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
8903
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = PyInt_FromLong((long)result);
8908 return resultobj;
8909 fail:
8910 return NULL;
8911 }
8912
8913
8914 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
8915 PyObject *obj;
8916 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8917 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
8918 Py_INCREF(obj);
8919 return Py_BuildValue((char *)"");
8920 }
8921 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject *resultobj;
8923 wxDC *arg1 = (wxDC *) 0 ;
8924 PyObject * obj0 = 0 ;
8925 char *kwnames[] = {
8926 (char *) "self", NULL
8927 };
8928
8929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
8930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8931 {
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 delete arg1;
8934
8935 wxPyEndAllowThreads(__tstate);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 }
8938 Py_INCREF(Py_None); resultobj = Py_None;
8939 return resultobj;
8940 fail:
8941 return NULL;
8942 }
8943
8944
8945 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8946 PyObject *resultobj;
8947 wxDC *arg1 = (wxDC *) 0 ;
8948 PyObject * obj0 = 0 ;
8949 char *kwnames[] = {
8950 (char *) "self", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
8954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8955 {
8956 PyThreadState* __tstate = wxPyBeginAllowThreads();
8957 (arg1)->BeginDrawing();
8958
8959 wxPyEndAllowThreads(__tstate);
8960 if (PyErr_Occurred()) SWIG_fail;
8961 }
8962 Py_INCREF(Py_None); resultobj = Py_None;
8963 return resultobj;
8964 fail:
8965 return NULL;
8966 }
8967
8968
8969 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8970 PyObject *resultobj;
8971 wxDC *arg1 = (wxDC *) 0 ;
8972 PyObject * obj0 = 0 ;
8973 char *kwnames[] = {
8974 (char *) "self", NULL
8975 };
8976
8977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
8978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8979 {
8980 PyThreadState* __tstate = wxPyBeginAllowThreads();
8981 (arg1)->EndDrawing();
8982
8983 wxPyEndAllowThreads(__tstate);
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
8986 Py_INCREF(Py_None); resultobj = Py_None;
8987 return resultobj;
8988 fail:
8989 return NULL;
8990 }
8991
8992
8993 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8994 PyObject *resultobj;
8995 wxDC *arg1 = (wxDC *) 0 ;
8996 int arg2 ;
8997 int arg3 ;
8998 wxColour *arg4 = 0 ;
8999 int arg5 = (int) wxFLOOD_SURFACE ;
9000 bool result;
9001 wxColour temp4 ;
9002 PyObject * obj0 = 0 ;
9003 PyObject * obj3 = 0 ;
9004 char *kwnames[] = {
9005 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9006 };
9007
9008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9010 {
9011 arg4 = &temp4;
9012 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9013 }
9014 {
9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
9016 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9017
9018 wxPyEndAllowThreads(__tstate);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 resultobj = PyInt_FromLong((long)result);
9022 return resultobj;
9023 fail:
9024 return NULL;
9025 }
9026
9027
9028 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj;
9030 wxDC *arg1 = (wxDC *) 0 ;
9031 wxPoint *arg2 = 0 ;
9032 wxColour *arg3 = 0 ;
9033 int arg4 = (int) wxFLOOD_SURFACE ;
9034 bool result;
9035 wxPoint temp2 ;
9036 wxColour temp3 ;
9037 PyObject * obj0 = 0 ;
9038 PyObject * obj1 = 0 ;
9039 PyObject * obj2 = 0 ;
9040 char *kwnames[] = {
9041 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9042 };
9043
9044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9046 {
9047 arg2 = &temp2;
9048 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9049 }
9050 {
9051 arg3 = &temp3;
9052 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9053 }
9054 {
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9057
9058 wxPyEndAllowThreads(__tstate);
9059 if (PyErr_Occurred()) SWIG_fail;
9060 }
9061 resultobj = PyInt_FromLong((long)result);
9062 return resultobj;
9063 fail:
9064 return NULL;
9065 }
9066
9067
9068 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj;
9070 wxDC *arg1 = (wxDC *) 0 ;
9071 int arg2 ;
9072 int arg3 ;
9073 wxColour result;
9074 PyObject * obj0 = 0 ;
9075 char *kwnames[] = {
9076 (char *) "self",(char *) "x",(char *) "y", NULL
9077 };
9078
9079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9081 {
9082 PyThreadState* __tstate = wxPyBeginAllowThreads();
9083 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9084
9085 wxPyEndAllowThreads(__tstate);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 }
9088 {
9089 wxColour * resultptr;
9090 resultptr = new wxColour((wxColour &) result);
9091 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9092 }
9093 return resultobj;
9094 fail:
9095 return NULL;
9096 }
9097
9098
9099 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9100 PyObject *resultobj;
9101 wxDC *arg1 = (wxDC *) 0 ;
9102 wxPoint *arg2 = 0 ;
9103 wxColour result;
9104 wxPoint temp2 ;
9105 PyObject * obj0 = 0 ;
9106 PyObject * obj1 = 0 ;
9107 char *kwnames[] = {
9108 (char *) "self",(char *) "pt", NULL
9109 };
9110
9111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9113 {
9114 arg2 = &temp2;
9115 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9116 }
9117 {
9118 PyThreadState* __tstate = wxPyBeginAllowThreads();
9119 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9120
9121 wxPyEndAllowThreads(__tstate);
9122 if (PyErr_Occurred()) SWIG_fail;
9123 }
9124 {
9125 wxColour * resultptr;
9126 resultptr = new wxColour((wxColour &) result);
9127 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9128 }
9129 return resultobj;
9130 fail:
9131 return NULL;
9132 }
9133
9134
9135 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9136 PyObject *resultobj;
9137 wxDC *arg1 = (wxDC *) 0 ;
9138 int arg2 ;
9139 int arg3 ;
9140 int arg4 ;
9141 int arg5 ;
9142 PyObject * obj0 = 0 ;
9143 char *kwnames[] = {
9144 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9145 };
9146
9147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9152
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 Py_INCREF(Py_None); resultobj = Py_None;
9157 return resultobj;
9158 fail:
9159 return NULL;
9160 }
9161
9162
9163 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9164 PyObject *resultobj;
9165 wxDC *arg1 = (wxDC *) 0 ;
9166 wxPoint *arg2 = 0 ;
9167 wxPoint *arg3 = 0 ;
9168 wxPoint temp2 ;
9169 wxPoint temp3 ;
9170 PyObject * obj0 = 0 ;
9171 PyObject * obj1 = 0 ;
9172 PyObject * obj2 = 0 ;
9173 char *kwnames[] = {
9174 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9175 };
9176
9177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9179 {
9180 arg2 = &temp2;
9181 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9182 }
9183 {
9184 arg3 = &temp3;
9185 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9186 }
9187 {
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9190
9191 wxPyEndAllowThreads(__tstate);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 }
9194 Py_INCREF(Py_None); resultobj = Py_None;
9195 return resultobj;
9196 fail:
9197 return NULL;
9198 }
9199
9200
9201 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9202 PyObject *resultobj;
9203 wxDC *arg1 = (wxDC *) 0 ;
9204 int arg2 ;
9205 int arg3 ;
9206 PyObject * obj0 = 0 ;
9207 char *kwnames[] = {
9208 (char *) "self",(char *) "x",(char *) "y", NULL
9209 };
9210
9211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9213 {
9214 PyThreadState* __tstate = wxPyBeginAllowThreads();
9215 (arg1)->CrossHair(arg2,arg3);
9216
9217 wxPyEndAllowThreads(__tstate);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 Py_INCREF(Py_None); resultobj = Py_None;
9221 return resultobj;
9222 fail:
9223 return NULL;
9224 }
9225
9226
9227 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9228 PyObject *resultobj;
9229 wxDC *arg1 = (wxDC *) 0 ;
9230 wxPoint *arg2 = 0 ;
9231 wxPoint temp2 ;
9232 PyObject * obj0 = 0 ;
9233 PyObject * obj1 = 0 ;
9234 char *kwnames[] = {
9235 (char *) "self",(char *) "pt", NULL
9236 };
9237
9238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9240 {
9241 arg2 = &temp2;
9242 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9243 }
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->CrossHair((wxPoint const &)*arg2);
9247
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 Py_INCREF(Py_None); resultobj = Py_None;
9252 return resultobj;
9253 fail:
9254 return NULL;
9255 }
9256
9257
9258 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj;
9260 wxDC *arg1 = (wxDC *) 0 ;
9261 int arg2 ;
9262 int arg3 ;
9263 int arg4 ;
9264 int arg5 ;
9265 int arg6 ;
9266 int arg7 ;
9267 PyObject * obj0 = 0 ;
9268 char *kwnames[] = {
9269 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9270 };
9271
9272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9274 {
9275 PyThreadState* __tstate = wxPyBeginAllowThreads();
9276 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9277
9278 wxPyEndAllowThreads(__tstate);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 }
9281 Py_INCREF(Py_None); resultobj = Py_None;
9282 return resultobj;
9283 fail:
9284 return NULL;
9285 }
9286
9287
9288 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 wxDC *arg1 = (wxDC *) 0 ;
9291 wxPoint *arg2 = 0 ;
9292 wxPoint *arg3 = 0 ;
9293 wxPoint *arg4 = 0 ;
9294 wxPoint temp2 ;
9295 wxPoint temp3 ;
9296 wxPoint temp4 ;
9297 PyObject * obj0 = 0 ;
9298 PyObject * obj1 = 0 ;
9299 PyObject * obj2 = 0 ;
9300 PyObject * obj3 = 0 ;
9301 char *kwnames[] = {
9302 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9303 };
9304
9305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9307 {
9308 arg2 = &temp2;
9309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9310 }
9311 {
9312 arg3 = &temp3;
9313 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9314 }
9315 {
9316 arg4 = &temp4;
9317 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9318 }
9319 {
9320 PyThreadState* __tstate = wxPyBeginAllowThreads();
9321 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9322
9323 wxPyEndAllowThreads(__tstate);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 }
9326 Py_INCREF(Py_None); resultobj = Py_None;
9327 return resultobj;
9328 fail:
9329 return NULL;
9330 }
9331
9332
9333 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9334 PyObject *resultobj;
9335 wxDC *arg1 = (wxDC *) 0 ;
9336 int arg2 ;
9337 int arg3 ;
9338 int arg4 ;
9339 int arg5 ;
9340 PyObject * obj0 = 0 ;
9341 char *kwnames[] = {
9342 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9343 };
9344
9345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9347 {
9348 PyThreadState* __tstate = wxPyBeginAllowThreads();
9349 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9350
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 Py_INCREF(Py_None); resultobj = Py_None;
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj;
9363 wxDC *arg1 = (wxDC *) 0 ;
9364 wxRect *arg2 = 0 ;
9365 wxRect temp2 ;
9366 PyObject * obj0 = 0 ;
9367 PyObject * obj1 = 0 ;
9368 char *kwnames[] = {
9369 (char *) "self",(char *) "rect", NULL
9370 };
9371
9372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9374 {
9375 arg2 = &temp2;
9376 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9377 }
9378 {
9379 PyThreadState* __tstate = wxPyBeginAllowThreads();
9380 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9381
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 Py_INCREF(Py_None); resultobj = Py_None;
9386 return resultobj;
9387 fail:
9388 return NULL;
9389 }
9390
9391
9392 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9393 PyObject *resultobj;
9394 wxDC *arg1 = (wxDC *) 0 ;
9395 int arg2 ;
9396 int arg3 ;
9397 int arg4 ;
9398 int arg5 ;
9399 double arg6 ;
9400 double arg7 ;
9401 PyObject * obj0 = 0 ;
9402 char *kwnames[] = {
9403 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9404 };
9405
9406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9408 {
9409 PyThreadState* __tstate = wxPyBeginAllowThreads();
9410 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9411
9412 wxPyEndAllowThreads(__tstate);
9413 if (PyErr_Occurred()) SWIG_fail;
9414 }
9415 Py_INCREF(Py_None); resultobj = Py_None;
9416 return resultobj;
9417 fail:
9418 return NULL;
9419 }
9420
9421
9422 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9423 PyObject *resultobj;
9424 wxDC *arg1 = (wxDC *) 0 ;
9425 wxPoint *arg2 = 0 ;
9426 wxSize *arg3 = 0 ;
9427 double arg4 ;
9428 double arg5 ;
9429 wxPoint temp2 ;
9430 wxSize temp3 ;
9431 PyObject * obj0 = 0 ;
9432 PyObject * obj1 = 0 ;
9433 PyObject * obj2 = 0 ;
9434 char *kwnames[] = {
9435 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9436 };
9437
9438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9440 {
9441 arg2 = &temp2;
9442 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9443 }
9444 {
9445 arg3 = &temp3;
9446 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9447 }
9448 {
9449 PyThreadState* __tstate = wxPyBeginAllowThreads();
9450 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9451
9452 wxPyEndAllowThreads(__tstate);
9453 if (PyErr_Occurred()) SWIG_fail;
9454 }
9455 Py_INCREF(Py_None); resultobj = Py_None;
9456 return resultobj;
9457 fail:
9458 return NULL;
9459 }
9460
9461
9462 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9463 PyObject *resultobj;
9464 wxDC *arg1 = (wxDC *) 0 ;
9465 int arg2 ;
9466 int arg3 ;
9467 PyObject * obj0 = 0 ;
9468 char *kwnames[] = {
9469 (char *) "self",(char *) "x",(char *) "y", NULL
9470 };
9471
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 (arg1)->DrawPoint(arg2,arg3);
9477
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 Py_INCREF(Py_None); resultobj = Py_None;
9482 return resultobj;
9483 fail:
9484 return NULL;
9485 }
9486
9487
9488 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj;
9490 wxDC *arg1 = (wxDC *) 0 ;
9491 wxPoint *arg2 = 0 ;
9492 wxPoint temp2 ;
9493 PyObject * obj0 = 0 ;
9494 PyObject * obj1 = 0 ;
9495 char *kwnames[] = {
9496 (char *) "self",(char *) "pt", NULL
9497 };
9498
9499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9501 {
9502 arg2 = &temp2;
9503 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9504 }
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 (arg1)->DrawPoint((wxPoint const &)*arg2);
9508
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 Py_INCREF(Py_None); resultobj = Py_None;
9513 return resultobj;
9514 fail:
9515 return NULL;
9516 }
9517
9518
9519 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9520 PyObject *resultobj;
9521 wxDC *arg1 = (wxDC *) 0 ;
9522 int arg2 ;
9523 int arg3 ;
9524 int arg4 ;
9525 int arg5 ;
9526 PyObject * obj0 = 0 ;
9527 char *kwnames[] = {
9528 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9529 };
9530
9531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9536
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
9540 Py_INCREF(Py_None); resultobj = Py_None;
9541 return resultobj;
9542 fail:
9543 return NULL;
9544 }
9545
9546
9547 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj;
9549 wxDC *arg1 = (wxDC *) 0 ;
9550 wxPoint *arg2 = 0 ;
9551 wxSize *arg3 = 0 ;
9552 wxPoint temp2 ;
9553 wxSize temp3 ;
9554 PyObject * obj0 = 0 ;
9555 PyObject * obj1 = 0 ;
9556 PyObject * obj2 = 0 ;
9557 char *kwnames[] = {
9558 (char *) "self",(char *) "pt",(char *) "sz", NULL
9559 };
9560
9561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9563 {
9564 arg2 = &temp2;
9565 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9566 }
9567 {
9568 arg3 = &temp3;
9569 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9570 }
9571 {
9572 PyThreadState* __tstate = wxPyBeginAllowThreads();
9573 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9574
9575 wxPyEndAllowThreads(__tstate);
9576 if (PyErr_Occurred()) SWIG_fail;
9577 }
9578 Py_INCREF(Py_None); resultobj = Py_None;
9579 return resultobj;
9580 fail:
9581 return NULL;
9582 }
9583
9584
9585 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9586 PyObject *resultobj;
9587 wxDC *arg1 = (wxDC *) 0 ;
9588 wxRect *arg2 = 0 ;
9589 wxRect temp2 ;
9590 PyObject * obj0 = 0 ;
9591 PyObject * obj1 = 0 ;
9592 char *kwnames[] = {
9593 (char *) "self",(char *) "rect", NULL
9594 };
9595
9596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9598 {
9599 arg2 = &temp2;
9600 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9601 }
9602 {
9603 PyThreadState* __tstate = wxPyBeginAllowThreads();
9604 (arg1)->DrawRectangle((wxRect const &)*arg2);
9605
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 Py_INCREF(Py_None); resultobj = Py_None;
9610 return resultobj;
9611 fail:
9612 return NULL;
9613 }
9614
9615
9616 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj;
9618 wxDC *arg1 = (wxDC *) 0 ;
9619 int arg2 ;
9620 int arg3 ;
9621 int arg4 ;
9622 int arg5 ;
9623 double arg6 ;
9624 PyObject * obj0 = 0 ;
9625 char *kwnames[] = {
9626 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9627 };
9628
9629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9631 {
9632 PyThreadState* __tstate = wxPyBeginAllowThreads();
9633 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9634
9635 wxPyEndAllowThreads(__tstate);
9636 if (PyErr_Occurred()) SWIG_fail;
9637 }
9638 Py_INCREF(Py_None); resultobj = Py_None;
9639 return resultobj;
9640 fail:
9641 return NULL;
9642 }
9643
9644
9645 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9646 PyObject *resultobj;
9647 wxDC *arg1 = (wxDC *) 0 ;
9648 wxPoint *arg2 = 0 ;
9649 wxSize *arg3 = 0 ;
9650 double arg4 ;
9651 wxPoint temp2 ;
9652 wxSize temp3 ;
9653 PyObject * obj0 = 0 ;
9654 PyObject * obj1 = 0 ;
9655 PyObject * obj2 = 0 ;
9656 char *kwnames[] = {
9657 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9658 };
9659
9660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9662 {
9663 arg2 = &temp2;
9664 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9665 }
9666 {
9667 arg3 = &temp3;
9668 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9669 }
9670 {
9671 PyThreadState* __tstate = wxPyBeginAllowThreads();
9672 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9673
9674 wxPyEndAllowThreads(__tstate);
9675 if (PyErr_Occurred()) SWIG_fail;
9676 }
9677 Py_INCREF(Py_None); resultobj = Py_None;
9678 return resultobj;
9679 fail:
9680 return NULL;
9681 }
9682
9683
9684 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj;
9686 wxDC *arg1 = (wxDC *) 0 ;
9687 wxRect *arg2 = 0 ;
9688 double arg3 ;
9689 wxRect temp2 ;
9690 PyObject * obj0 = 0 ;
9691 PyObject * obj1 = 0 ;
9692 char *kwnames[] = {
9693 (char *) "self",(char *) "r",(char *) "radius", NULL
9694 };
9695
9696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9698 {
9699 arg2 = &temp2;
9700 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9701 }
9702 {
9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
9704 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9705
9706 wxPyEndAllowThreads(__tstate);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 Py_INCREF(Py_None); resultobj = Py_None;
9710 return resultobj;
9711 fail:
9712 return NULL;
9713 }
9714
9715
9716 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj;
9718 wxDC *arg1 = (wxDC *) 0 ;
9719 int arg2 ;
9720 int arg3 ;
9721 int arg4 ;
9722 PyObject * obj0 = 0 ;
9723 char *kwnames[] = {
9724 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
9725 };
9726
9727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9729 {
9730 PyThreadState* __tstate = wxPyBeginAllowThreads();
9731 (arg1)->DrawCircle(arg2,arg3,arg4);
9732
9733 wxPyEndAllowThreads(__tstate);
9734 if (PyErr_Occurred()) SWIG_fail;
9735 }
9736 Py_INCREF(Py_None); resultobj = Py_None;
9737 return resultobj;
9738 fail:
9739 return NULL;
9740 }
9741
9742
9743 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
9744 PyObject *resultobj;
9745 wxDC *arg1 = (wxDC *) 0 ;
9746 wxPoint *arg2 = 0 ;
9747 int arg3 ;
9748 wxPoint temp2 ;
9749 PyObject * obj0 = 0 ;
9750 PyObject * obj1 = 0 ;
9751 char *kwnames[] = {
9752 (char *) "self",(char *) "pt",(char *) "radius", NULL
9753 };
9754
9755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
9756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9757 {
9758 arg2 = &temp2;
9759 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9760 }
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
9764
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 Py_INCREF(Py_None); resultobj = Py_None;
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj;
9777 wxDC *arg1 = (wxDC *) 0 ;
9778 int arg2 ;
9779 int arg3 ;
9780 int arg4 ;
9781 int arg5 ;
9782 PyObject * obj0 = 0 ;
9783 char *kwnames[] = {
9784 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9785 };
9786
9787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 Py_INCREF(Py_None); resultobj = Py_None;
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj;
9805 wxDC *arg1 = (wxDC *) 0 ;
9806 wxPoint *arg2 = 0 ;
9807 wxSize *arg3 = 0 ;
9808 wxPoint temp2 ;
9809 wxSize temp3 ;
9810 PyObject * obj0 = 0 ;
9811 PyObject * obj1 = 0 ;
9812 PyObject * obj2 = 0 ;
9813 char *kwnames[] = {
9814 (char *) "self",(char *) "pt",(char *) "sz", NULL
9815 };
9816
9817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
9818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9819 {
9820 arg2 = &temp2;
9821 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9822 }
9823 {
9824 arg3 = &temp3;
9825 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9826 }
9827 {
9828 PyThreadState* __tstate = wxPyBeginAllowThreads();
9829 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
9830
9831 wxPyEndAllowThreads(__tstate);
9832 if (PyErr_Occurred()) SWIG_fail;
9833 }
9834 Py_INCREF(Py_None); resultobj = Py_None;
9835 return resultobj;
9836 fail:
9837 return NULL;
9838 }
9839
9840
9841 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9842 PyObject *resultobj;
9843 wxDC *arg1 = (wxDC *) 0 ;
9844 wxRect *arg2 = 0 ;
9845 wxRect temp2 ;
9846 PyObject * obj0 = 0 ;
9847 PyObject * obj1 = 0 ;
9848 char *kwnames[] = {
9849 (char *) "self",(char *) "rect", NULL
9850 };
9851
9852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
9853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9854 {
9855 arg2 = &temp2;
9856 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9857 }
9858 {
9859 PyThreadState* __tstate = wxPyBeginAllowThreads();
9860 (arg1)->DrawEllipse((wxRect const &)*arg2);
9861
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
9865 Py_INCREF(Py_None); resultobj = Py_None;
9866 return resultobj;
9867 fail:
9868 return NULL;
9869 }
9870
9871
9872 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9873 PyObject *resultobj;
9874 wxDC *arg1 = (wxDC *) 0 ;
9875 wxIcon *arg2 = 0 ;
9876 int arg3 ;
9877 int arg4 ;
9878 PyObject * obj0 = 0 ;
9879 PyObject * obj1 = 0 ;
9880 char *kwnames[] = {
9881 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
9882 };
9883
9884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
9885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9886 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9887 if (arg2 == NULL) {
9888 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9889 }
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
9893
9894 wxPyEndAllowThreads(__tstate);
9895 if (PyErr_Occurred()) SWIG_fail;
9896 }
9897 Py_INCREF(Py_None); resultobj = Py_None;
9898 return resultobj;
9899 fail:
9900 return NULL;
9901 }
9902
9903
9904 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj;
9906 wxDC *arg1 = (wxDC *) 0 ;
9907 wxIcon *arg2 = 0 ;
9908 wxPoint *arg3 = 0 ;
9909 wxPoint temp3 ;
9910 PyObject * obj0 = 0 ;
9911 PyObject * obj1 = 0 ;
9912 PyObject * obj2 = 0 ;
9913 char *kwnames[] = {
9914 (char *) "self",(char *) "icon",(char *) "pt", NULL
9915 };
9916
9917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
9918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9919 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9920 if (arg2 == NULL) {
9921 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9922 }
9923 {
9924 arg3 = &temp3;
9925 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9926 }
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
9930
9931 wxPyEndAllowThreads(__tstate);
9932 if (PyErr_Occurred()) SWIG_fail;
9933 }
9934 Py_INCREF(Py_None); resultobj = Py_None;
9935 return resultobj;
9936 fail:
9937 return NULL;
9938 }
9939
9940
9941 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9942 PyObject *resultobj;
9943 wxDC *arg1 = (wxDC *) 0 ;
9944 wxBitmap *arg2 = 0 ;
9945 int arg3 ;
9946 int arg4 ;
9947 bool arg5 = (bool) False ;
9948 PyObject * obj0 = 0 ;
9949 PyObject * obj1 = 0 ;
9950 PyObject * obj4 = 0 ;
9951 char *kwnames[] = {
9952 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
9953 };
9954
9955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
9956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9957 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9958 if (arg2 == NULL) {
9959 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9960 }
9961 if (obj4) {
9962 arg5 = PyInt_AsLong(obj4) ? true : false;
9963 if (PyErr_Occurred()) SWIG_fail;
9964 }
9965 {
9966 PyThreadState* __tstate = wxPyBeginAllowThreads();
9967 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
9968
9969 wxPyEndAllowThreads(__tstate);
9970 if (PyErr_Occurred()) SWIG_fail;
9971 }
9972 Py_INCREF(Py_None); resultobj = Py_None;
9973 return resultobj;
9974 fail:
9975 return NULL;
9976 }
9977
9978
9979 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9980 PyObject *resultobj;
9981 wxDC *arg1 = (wxDC *) 0 ;
9982 wxBitmap *arg2 = 0 ;
9983 wxPoint *arg3 = 0 ;
9984 bool arg4 = (bool) False ;
9985 wxPoint temp3 ;
9986 PyObject * obj0 = 0 ;
9987 PyObject * obj1 = 0 ;
9988 PyObject * obj2 = 0 ;
9989 PyObject * obj3 = 0 ;
9990 char *kwnames[] = {
9991 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
9992 };
9993
9994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9996 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9997 if (arg2 == NULL) {
9998 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9999 }
10000 {
10001 arg3 = &temp3;
10002 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10003 }
10004 if (obj3) {
10005 arg4 = PyInt_AsLong(obj3) ? true : false;
10006 if (PyErr_Occurred()) SWIG_fail;
10007 }
10008 {
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 Py_INCREF(Py_None); resultobj = Py_None;
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj;
10024 wxDC *arg1 = (wxDC *) 0 ;
10025 wxString *arg2 = 0 ;
10026 int arg3 ;
10027 int arg4 ;
10028 bool temp2 = False ;
10029 PyObject * obj0 = 0 ;
10030 PyObject * obj1 = 0 ;
10031 char *kwnames[] = {
10032 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10033 };
10034
10035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10037 {
10038 arg2 = wxString_in_helper(obj1);
10039 if (arg2 == NULL) SWIG_fail;
10040 temp2 = True;
10041 }
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 Py_INCREF(Py_None); resultobj = Py_None;
10050 {
10051 if (temp2)
10052 delete arg2;
10053 }
10054 return resultobj;
10055 fail:
10056 {
10057 if (temp2)
10058 delete arg2;
10059 }
10060 return NULL;
10061 }
10062
10063
10064 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10065 PyObject *resultobj;
10066 wxDC *arg1 = (wxDC *) 0 ;
10067 wxString *arg2 = 0 ;
10068 wxPoint *arg3 = 0 ;
10069 bool temp2 = False ;
10070 wxPoint temp3 ;
10071 PyObject * obj0 = 0 ;
10072 PyObject * obj1 = 0 ;
10073 PyObject * obj2 = 0 ;
10074 char *kwnames[] = {
10075 (char *) "self",(char *) "text",(char *) "pt", NULL
10076 };
10077
10078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10080 {
10081 arg2 = wxString_in_helper(obj1);
10082 if (arg2 == NULL) SWIG_fail;
10083 temp2 = True;
10084 }
10085 {
10086 arg3 = &temp3;
10087 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10088 }
10089 {
10090 PyThreadState* __tstate = wxPyBeginAllowThreads();
10091 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10092
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 Py_INCREF(Py_None); resultobj = Py_None;
10097 {
10098 if (temp2)
10099 delete arg2;
10100 }
10101 return resultobj;
10102 fail:
10103 {
10104 if (temp2)
10105 delete arg2;
10106 }
10107 return NULL;
10108 }
10109
10110
10111 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10112 PyObject *resultobj;
10113 wxDC *arg1 = (wxDC *) 0 ;
10114 wxString *arg2 = 0 ;
10115 int arg3 ;
10116 int arg4 ;
10117 double arg5 ;
10118 bool temp2 = False ;
10119 PyObject * obj0 = 0 ;
10120 PyObject * obj1 = 0 ;
10121 char *kwnames[] = {
10122 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10123 };
10124
10125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10127 {
10128 arg2 = wxString_in_helper(obj1);
10129 if (arg2 == NULL) SWIG_fail;
10130 temp2 = True;
10131 }
10132 {
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10135
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 Py_INCREF(Py_None); resultobj = Py_None;
10140 {
10141 if (temp2)
10142 delete arg2;
10143 }
10144 return resultobj;
10145 fail:
10146 {
10147 if (temp2)
10148 delete arg2;
10149 }
10150 return NULL;
10151 }
10152
10153
10154 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10155 PyObject *resultobj;
10156 wxDC *arg1 = (wxDC *) 0 ;
10157 wxString *arg2 = 0 ;
10158 wxPoint *arg3 = 0 ;
10159 double arg4 ;
10160 bool temp2 = False ;
10161 wxPoint temp3 ;
10162 PyObject * obj0 = 0 ;
10163 PyObject * obj1 = 0 ;
10164 PyObject * obj2 = 0 ;
10165 char *kwnames[] = {
10166 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10167 };
10168
10169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10171 {
10172 arg2 = wxString_in_helper(obj1);
10173 if (arg2 == NULL) SWIG_fail;
10174 temp2 = True;
10175 }
10176 {
10177 arg3 = &temp3;
10178 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10179 }
10180 {
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
10182 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10183
10184 wxPyEndAllowThreads(__tstate);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 }
10187 Py_INCREF(Py_None); resultobj = Py_None;
10188 {
10189 if (temp2)
10190 delete arg2;
10191 }
10192 return resultobj;
10193 fail:
10194 {
10195 if (temp2)
10196 delete arg2;
10197 }
10198 return NULL;
10199 }
10200
10201
10202 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10203 PyObject *resultobj;
10204 wxDC *arg1 = (wxDC *) 0 ;
10205 int arg2 ;
10206 int arg3 ;
10207 int arg4 ;
10208 int arg5 ;
10209 wxDC *arg6 = (wxDC *) 0 ;
10210 int arg7 ;
10211 int arg8 ;
10212 int arg9 = (int) wxCOPY ;
10213 bool arg10 = (bool) False ;
10214 int arg11 = (int) -1 ;
10215 int arg12 = (int) -1 ;
10216 bool result;
10217 PyObject * obj0 = 0 ;
10218 PyObject * obj5 = 0 ;
10219 PyObject * obj9 = 0 ;
10220 char *kwnames[] = {
10221 (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
10222 };
10223
10224 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;
10225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10226 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10227 if (obj9) {
10228 arg10 = PyInt_AsLong(obj9) ? true : false;
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10234
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 resultobj = PyInt_FromLong((long)result);
10239 return resultobj;
10240 fail:
10241 return NULL;
10242 }
10243
10244
10245 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj;
10247 wxDC *arg1 = (wxDC *) 0 ;
10248 wxPoint *arg2 = 0 ;
10249 wxSize *arg3 = 0 ;
10250 wxDC *arg4 = (wxDC *) 0 ;
10251 wxPoint *arg5 = 0 ;
10252 int arg6 = (int) wxCOPY ;
10253 bool arg7 = (bool) False ;
10254 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10255 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10256 bool result;
10257 wxPoint temp2 ;
10258 wxSize temp3 ;
10259 wxPoint temp5 ;
10260 wxPoint temp8 ;
10261 PyObject * obj0 = 0 ;
10262 PyObject * obj1 = 0 ;
10263 PyObject * obj2 = 0 ;
10264 PyObject * obj3 = 0 ;
10265 PyObject * obj4 = 0 ;
10266 PyObject * obj6 = 0 ;
10267 PyObject * obj7 = 0 ;
10268 char *kwnames[] = {
10269 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10270 };
10271
10272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10274 {
10275 arg2 = &temp2;
10276 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10277 }
10278 {
10279 arg3 = &temp3;
10280 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10281 }
10282 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10283 {
10284 arg5 = &temp5;
10285 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10286 }
10287 if (obj6) {
10288 arg7 = PyInt_AsLong(obj6) ? true : false;
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 if (obj7) {
10292 {
10293 arg8 = &temp8;
10294 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10295 }
10296 }
10297 {
10298 PyThreadState* __tstate = wxPyBeginAllowThreads();
10299 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10300
10301 wxPyEndAllowThreads(__tstate);
10302 if (PyErr_Occurred()) SWIG_fail;
10303 }
10304 resultobj = PyInt_FromLong((long)result);
10305 return resultobj;
10306 fail:
10307 return NULL;
10308 }
10309
10310
10311 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10312 PyObject *resultobj;
10313 wxDC *arg1 = (wxDC *) 0 ;
10314 int arg2 ;
10315 wxPoint *arg3 = (wxPoint *) 0 ;
10316 int arg4 = (int) 0 ;
10317 int arg5 = (int) 0 ;
10318 PyObject * obj0 = 0 ;
10319 PyObject * obj1 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10326 {
10327 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10328 if (arg3 == NULL) SWIG_fail;
10329 }
10330 {
10331 PyThreadState* __tstate = wxPyBeginAllowThreads();
10332 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10333
10334 wxPyEndAllowThreads(__tstate);
10335 if (PyErr_Occurred()) SWIG_fail;
10336 }
10337 Py_INCREF(Py_None); resultobj = Py_None;
10338 {
10339 if (arg3) delete [] arg3;
10340 }
10341 return resultobj;
10342 fail:
10343 {
10344 if (arg3) delete [] arg3;
10345 }
10346 return NULL;
10347 }
10348
10349
10350 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10351 PyObject *resultobj;
10352 wxDC *arg1 = (wxDC *) 0 ;
10353 int arg2 ;
10354 wxPoint *arg3 = (wxPoint *) 0 ;
10355 int arg4 = (int) 0 ;
10356 int arg5 = (int) 0 ;
10357 int arg6 = (int) wxODDEVEN_RULE ;
10358 PyObject * obj0 = 0 ;
10359 PyObject * obj1 = 0 ;
10360 char *kwnames[] = {
10361 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10362 };
10363
10364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10366 {
10367 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10368 if (arg3 == NULL) SWIG_fail;
10369 }
10370 {
10371 PyThreadState* __tstate = wxPyBeginAllowThreads();
10372 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10373
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 Py_INCREF(Py_None); resultobj = Py_None;
10378 {
10379 if (arg3) delete [] arg3;
10380 }
10381 return resultobj;
10382 fail:
10383 {
10384 if (arg3) delete [] arg3;
10385 }
10386 return NULL;
10387 }
10388
10389
10390 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10391 PyObject *resultobj;
10392 wxDC *arg1 = (wxDC *) 0 ;
10393 wxString *arg2 = 0 ;
10394 wxRect *arg3 = 0 ;
10395 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10396 int arg5 = (int) -1 ;
10397 bool temp2 = False ;
10398 wxRect temp3 ;
10399 PyObject * obj0 = 0 ;
10400 PyObject * obj1 = 0 ;
10401 PyObject * obj2 = 0 ;
10402 char *kwnames[] = {
10403 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10404 };
10405
10406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10408 {
10409 arg2 = wxString_in_helper(obj1);
10410 if (arg2 == NULL) SWIG_fail;
10411 temp2 = True;
10412 }
10413 {
10414 arg3 = &temp3;
10415 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10416 }
10417 {
10418 PyThreadState* __tstate = wxPyBeginAllowThreads();
10419 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10420
10421 wxPyEndAllowThreads(__tstate);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 }
10424 Py_INCREF(Py_None); resultobj = Py_None;
10425 {
10426 if (temp2)
10427 delete arg2;
10428 }
10429 return resultobj;
10430 fail:
10431 {
10432 if (temp2)
10433 delete arg2;
10434 }
10435 return NULL;
10436 }
10437
10438
10439 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10440 PyObject *resultobj;
10441 wxDC *arg1 = (wxDC *) 0 ;
10442 wxString *arg2 = 0 ;
10443 wxBitmap *arg3 = 0 ;
10444 wxRect *arg4 = 0 ;
10445 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10446 int arg6 = (int) -1 ;
10447 wxRect result;
10448 bool temp2 = False ;
10449 wxRect temp4 ;
10450 PyObject * obj0 = 0 ;
10451 PyObject * obj1 = 0 ;
10452 PyObject * obj2 = 0 ;
10453 PyObject * obj3 = 0 ;
10454 char *kwnames[] = {
10455 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10456 };
10457
10458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10460 {
10461 arg2 = wxString_in_helper(obj1);
10462 if (arg2 == NULL) SWIG_fail;
10463 temp2 = True;
10464 }
10465 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10466 if (arg3 == NULL) {
10467 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10468 }
10469 {
10470 arg4 = &temp4;
10471 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10472 }
10473 {
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10476
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 {
10481 wxRect * resultptr;
10482 resultptr = new wxRect((wxRect &) result);
10483 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10484 }
10485 {
10486 if (temp2)
10487 delete arg2;
10488 }
10489 return resultobj;
10490 fail:
10491 {
10492 if (temp2)
10493 delete arg2;
10494 }
10495 return NULL;
10496 }
10497
10498
10499 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj;
10501 wxDC *arg1 = (wxDC *) 0 ;
10502 int arg2 ;
10503 wxPoint *arg3 = (wxPoint *) 0 ;
10504 PyObject * obj0 = 0 ;
10505 PyObject * obj1 = 0 ;
10506 char *kwnames[] = {
10507 (char *) "self",(char *) "points", NULL
10508 };
10509
10510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10512 {
10513 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10514 if (arg3 == NULL) SWIG_fail;
10515 }
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 (arg1)->DrawSpline(arg2,arg3);
10519
10520 wxPyEndAllowThreads(__tstate);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 Py_INCREF(Py_None); resultobj = Py_None;
10524 {
10525 if (arg3) delete [] arg3;
10526 }
10527 return resultobj;
10528 fail:
10529 {
10530 if (arg3) delete [] arg3;
10531 }
10532 return NULL;
10533 }
10534
10535
10536 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10537 PyObject *resultobj;
10538 wxDC *arg1 = (wxDC *) 0 ;
10539 PyObject * obj0 = 0 ;
10540 char *kwnames[] = {
10541 (char *) "self", NULL
10542 };
10543
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10546 {
10547 PyThreadState* __tstate = wxPyBeginAllowThreads();
10548 (arg1)->Clear();
10549
10550 wxPyEndAllowThreads(__tstate);
10551 if (PyErr_Occurred()) SWIG_fail;
10552 }
10553 Py_INCREF(Py_None); resultobj = Py_None;
10554 return resultobj;
10555 fail:
10556 return NULL;
10557 }
10558
10559
10560 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10561 PyObject *resultobj;
10562 wxDC *arg1 = (wxDC *) 0 ;
10563 wxString *arg2 = 0 ;
10564 bool result;
10565 bool temp2 = False ;
10566 PyObject * obj0 = 0 ;
10567 PyObject * obj1 = 0 ;
10568 char *kwnames[] = {
10569 (char *) "self",(char *) "message", NULL
10570 };
10571
10572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10574 {
10575 arg2 = wxString_in_helper(obj1);
10576 if (arg2 == NULL) SWIG_fail;
10577 temp2 = True;
10578 }
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10582
10583 wxPyEndAllowThreads(__tstate);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 resultobj = PyInt_FromLong((long)result);
10587 {
10588 if (temp2)
10589 delete arg2;
10590 }
10591 return resultobj;
10592 fail:
10593 {
10594 if (temp2)
10595 delete arg2;
10596 }
10597 return NULL;
10598 }
10599
10600
10601 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10602 PyObject *resultobj;
10603 wxDC *arg1 = (wxDC *) 0 ;
10604 PyObject * obj0 = 0 ;
10605 char *kwnames[] = {
10606 (char *) "self", NULL
10607 };
10608
10609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 (arg1)->EndDoc();
10614
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 Py_INCREF(Py_None); resultobj = Py_None;
10619 return resultobj;
10620 fail:
10621 return NULL;
10622 }
10623
10624
10625 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject *resultobj;
10627 wxDC *arg1 = (wxDC *) 0 ;
10628 PyObject * obj0 = 0 ;
10629 char *kwnames[] = {
10630 (char *) "self", NULL
10631 };
10632
10633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10635 {
10636 PyThreadState* __tstate = wxPyBeginAllowThreads();
10637 (arg1)->StartPage();
10638
10639 wxPyEndAllowThreads(__tstate);
10640 if (PyErr_Occurred()) SWIG_fail;
10641 }
10642 Py_INCREF(Py_None); resultobj = Py_None;
10643 return resultobj;
10644 fail:
10645 return NULL;
10646 }
10647
10648
10649 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10650 PyObject *resultobj;
10651 wxDC *arg1 = (wxDC *) 0 ;
10652 PyObject * obj0 = 0 ;
10653 char *kwnames[] = {
10654 (char *) "self", NULL
10655 };
10656
10657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 (arg1)->EndPage();
10662
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 Py_INCREF(Py_None); resultobj = Py_None;
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj;
10675 wxDC *arg1 = (wxDC *) 0 ;
10676 wxFont *arg2 = 0 ;
10677 PyObject * obj0 = 0 ;
10678 PyObject * obj1 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self",(char *) "font", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10685 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10686 if (arg2 == NULL) {
10687 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10688 }
10689 {
10690 PyThreadState* __tstate = wxPyBeginAllowThreads();
10691 (arg1)->SetFont((wxFont const &)*arg2);
10692
10693 wxPyEndAllowThreads(__tstate);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 }
10696 Py_INCREF(Py_None); resultobj = Py_None;
10697 return resultobj;
10698 fail:
10699 return NULL;
10700 }
10701
10702
10703 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
10704 PyObject *resultobj;
10705 wxDC *arg1 = (wxDC *) 0 ;
10706 wxPen *arg2 = 0 ;
10707 PyObject * obj0 = 0 ;
10708 PyObject * obj1 = 0 ;
10709 char *kwnames[] = {
10710 (char *) "self",(char *) "pen", NULL
10711 };
10712
10713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
10714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10715 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10716 if (arg2 == NULL) {
10717 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10718 }
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 (arg1)->SetPen((wxPen const &)*arg2);
10722
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 Py_INCREF(Py_None); resultobj = Py_None;
10727 return resultobj;
10728 fail:
10729 return NULL;
10730 }
10731
10732
10733 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj;
10735 wxDC *arg1 = (wxDC *) 0 ;
10736 wxBrush *arg2 = 0 ;
10737 PyObject * obj0 = 0 ;
10738 PyObject * obj1 = 0 ;
10739 char *kwnames[] = {
10740 (char *) "self",(char *) "brush", NULL
10741 };
10742
10743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
10744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10745 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10746 if (arg2 == NULL) {
10747 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10748 }
10749 {
10750 PyThreadState* __tstate = wxPyBeginAllowThreads();
10751 (arg1)->SetBrush((wxBrush const &)*arg2);
10752
10753 wxPyEndAllowThreads(__tstate);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 Py_INCREF(Py_None); resultobj = Py_None;
10757 return resultobj;
10758 fail:
10759 return NULL;
10760 }
10761
10762
10763 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
10764 PyObject *resultobj;
10765 wxDC *arg1 = (wxDC *) 0 ;
10766 wxBrush *arg2 = 0 ;
10767 PyObject * obj0 = 0 ;
10768 PyObject * obj1 = 0 ;
10769 char *kwnames[] = {
10770 (char *) "self",(char *) "brush", NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
10774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10775 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10776 if (arg2 == NULL) {
10777 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10778 }
10779 {
10780 PyThreadState* __tstate = wxPyBeginAllowThreads();
10781 (arg1)->SetBackground((wxBrush const &)*arg2);
10782
10783 wxPyEndAllowThreads(__tstate);
10784 if (PyErr_Occurred()) SWIG_fail;
10785 }
10786 Py_INCREF(Py_None); resultobj = Py_None;
10787 return resultobj;
10788 fail:
10789 return NULL;
10790 }
10791
10792
10793 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
10794 PyObject *resultobj;
10795 wxDC *arg1 = (wxDC *) 0 ;
10796 int arg2 ;
10797 PyObject * obj0 = 0 ;
10798 char *kwnames[] = {
10799 (char *) "self",(char *) "mode", NULL
10800 };
10801
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
10803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 (arg1)->SetBackgroundMode(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_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10819 PyObject *resultobj;
10820 wxDC *arg1 = (wxDC *) 0 ;
10821 wxPalette *arg2 = 0 ;
10822 PyObject * obj0 = 0 ;
10823 PyObject * obj1 = 0 ;
10824 char *kwnames[] = {
10825 (char *) "self",(char *) "palette", NULL
10826 };
10827
10828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",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_wxPalette,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)->SetPalette((wxPalette 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_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10849 PyObject *resultobj;
10850 wxDC *arg1 = (wxDC *) 0 ;
10851 int arg2 ;
10852 int arg3 ;
10853 int arg4 ;
10854 int arg5 ;
10855 PyObject * obj0 = 0 ;
10856 char *kwnames[] = {
10857 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10858 };
10859
10860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10862 {
10863 PyThreadState* __tstate = wxPyBeginAllowThreads();
10864 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
10865
10866 wxPyEndAllowThreads(__tstate);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 }
10869 Py_INCREF(Py_None); resultobj = Py_None;
10870 return resultobj;
10871 fail:
10872 return NULL;
10873 }
10874
10875
10876 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10877 PyObject *resultobj;
10878 wxDC *arg1 = (wxDC *) 0 ;
10879 wxPoint *arg2 = 0 ;
10880 wxSize *arg3 = 0 ;
10881 wxPoint temp2 ;
10882 wxSize temp3 ;
10883 PyObject * obj0 = 0 ;
10884 PyObject * obj1 = 0 ;
10885 PyObject * obj2 = 0 ;
10886 char *kwnames[] = {
10887 (char *) "self",(char *) "pt",(char *) "sz", NULL
10888 };
10889
10890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
10891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10892 {
10893 arg2 = &temp2;
10894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10895 }
10896 {
10897 arg3 = &temp3;
10898 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10899 }
10900 {
10901 PyThreadState* __tstate = wxPyBeginAllowThreads();
10902 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
10903
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 Py_INCREF(Py_None); resultobj = Py_None;
10908 return resultobj;
10909 fail:
10910 return NULL;
10911 }
10912
10913
10914 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10915 PyObject *resultobj;
10916 wxDC *arg1 = (wxDC *) 0 ;
10917 wxRect *arg2 = 0 ;
10918 wxRect temp2 ;
10919 PyObject * obj0 = 0 ;
10920 PyObject * obj1 = 0 ;
10921 char *kwnames[] = {
10922 (char *) "self",(char *) "rect", NULL
10923 };
10924
10925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
10926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10927 {
10928 arg2 = &temp2;
10929 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10930 }
10931 {
10932 PyThreadState* __tstate = wxPyBeginAllowThreads();
10933 (arg1)->SetClippingRegion((wxRect const &)*arg2);
10934
10935 wxPyEndAllowThreads(__tstate);
10936 if (PyErr_Occurred()) SWIG_fail;
10937 }
10938 Py_INCREF(Py_None); resultobj = Py_None;
10939 return resultobj;
10940 fail:
10941 return NULL;
10942 }
10943
10944
10945 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10946 PyObject *resultobj;
10947 wxDC *arg1 = (wxDC *) 0 ;
10948 wxRegion *arg2 = 0 ;
10949 PyObject * obj0 = 0 ;
10950 PyObject * obj1 = 0 ;
10951 char *kwnames[] = {
10952 (char *) "self",(char *) "region", NULL
10953 };
10954
10955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
10956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10957 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10958 if (arg2 == NULL) {
10959 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10960 }
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
10964
10965 wxPyEndAllowThreads(__tstate);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 }
10968 Py_INCREF(Py_None); resultobj = Py_None;
10969 return resultobj;
10970 fail:
10971 return NULL;
10972 }
10973
10974
10975 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10976 PyObject *resultobj;
10977 wxDC *arg1 = (wxDC *) 0 ;
10978 PyObject * obj0 = 0 ;
10979 char *kwnames[] = {
10980 (char *) "self", NULL
10981 };
10982
10983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
10984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 (arg1)->DestroyClippingRegion();
10988
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 Py_INCREF(Py_None); resultobj = Py_None;
10993 return resultobj;
10994 fail:
10995 return NULL;
10996 }
10997
10998
10999 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11000 PyObject *resultobj;
11001 wxDC *arg1 = (wxDC *) 0 ;
11002 int *arg2 = (int *) 0 ;
11003 int *arg3 = (int *) 0 ;
11004 int *arg4 = (int *) 0 ;
11005 int *arg5 = (int *) 0 ;
11006 int temp2 ;
11007 int temp3 ;
11008 int temp4 ;
11009 int temp5 ;
11010 PyObject * obj0 = 0 ;
11011 char *kwnames[] = {
11012 (char *) "self", NULL
11013 };
11014
11015 arg2 = &temp2;
11016 arg3 = &temp3;
11017 arg4 = &temp4;
11018 arg5 = &temp5;
11019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11024
11025 wxPyEndAllowThreads(__tstate);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 Py_INCREF(Py_None); resultobj = Py_None;
11029 {
11030 PyObject *o = PyInt_FromLong((long) (*arg2));
11031 resultobj = t_output_helper(resultobj,o);
11032 }
11033 {
11034 PyObject *o = PyInt_FromLong((long) (*arg3));
11035 resultobj = t_output_helper(resultobj,o);
11036 }
11037 {
11038 PyObject *o = PyInt_FromLong((long) (*arg4));
11039 resultobj = t_output_helper(resultobj,o);
11040 }
11041 {
11042 PyObject *o = PyInt_FromLong((long) (*arg5));
11043 resultobj = t_output_helper(resultobj,o);
11044 }
11045 return resultobj;
11046 fail:
11047 return NULL;
11048 }
11049
11050
11051 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11052 PyObject *resultobj;
11053 wxDC *arg1 = (wxDC *) 0 ;
11054 wxRect result;
11055 PyObject * obj0 = 0 ;
11056 char *kwnames[] = {
11057 (char *) "self", NULL
11058 };
11059
11060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11062 {
11063 PyThreadState* __tstate = wxPyBeginAllowThreads();
11064 result = wxDC_GetClippingRect(arg1);
11065
11066 wxPyEndAllowThreads(__tstate);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 {
11070 wxRect * resultptr;
11071 resultptr = new wxRect((wxRect &) result);
11072 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11073 }
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11081 PyObject *resultobj;
11082 wxDC *arg1 = (wxDC *) 0 ;
11083 int result;
11084 PyObject * obj0 = 0 ;
11085 char *kwnames[] = {
11086 (char *) "self", NULL
11087 };
11088
11089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (int)((wxDC const *)arg1)->GetCharHeight();
11094
11095 wxPyEndAllowThreads(__tstate);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 }
11098 resultobj = PyInt_FromLong((long)result);
11099 return resultobj;
11100 fail:
11101 return NULL;
11102 }
11103
11104
11105 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11106 PyObject *resultobj;
11107 wxDC *arg1 = (wxDC *) 0 ;
11108 int result;
11109 PyObject * obj0 = 0 ;
11110 char *kwnames[] = {
11111 (char *) "self", NULL
11112 };
11113
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11116 {
11117 PyThreadState* __tstate = wxPyBeginAllowThreads();
11118 result = (int)((wxDC const *)arg1)->GetCharWidth();
11119
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 resultobj = PyInt_FromLong((long)result);
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj;
11132 wxDC *arg1 = (wxDC *) 0 ;
11133 wxString *arg2 = 0 ;
11134 int *arg3 = (int *) 0 ;
11135 int *arg4 = (int *) 0 ;
11136 bool temp2 = False ;
11137 int temp3 ;
11138 int temp4 ;
11139 PyObject * obj0 = 0 ;
11140 PyObject * obj1 = 0 ;
11141 char *kwnames[] = {
11142 (char *) "self",(char *) "string", NULL
11143 };
11144
11145 arg3 = &temp3;
11146 arg4 = &temp4;
11147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11149 {
11150 arg2 = wxString_in_helper(obj1);
11151 if (arg2 == NULL) SWIG_fail;
11152 temp2 = True;
11153 }
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11157
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 Py_INCREF(Py_None); resultobj = Py_None;
11162 {
11163 PyObject *o = PyInt_FromLong((long) (*arg3));
11164 resultobj = t_output_helper(resultobj,o);
11165 }
11166 {
11167 PyObject *o = PyInt_FromLong((long) (*arg4));
11168 resultobj = t_output_helper(resultobj,o);
11169 }
11170 {
11171 if (temp2)
11172 delete arg2;
11173 }
11174 return resultobj;
11175 fail:
11176 {
11177 if (temp2)
11178 delete arg2;
11179 }
11180 return NULL;
11181 }
11182
11183
11184 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11185 PyObject *resultobj;
11186 wxDC *arg1 = (wxDC *) 0 ;
11187 wxString *arg2 = 0 ;
11188 int *arg3 = (int *) 0 ;
11189 int *arg4 = (int *) 0 ;
11190 int *arg5 = (int *) 0 ;
11191 int *arg6 = (int *) 0 ;
11192 wxFont *arg7 = (wxFont *) NULL ;
11193 bool temp2 = False ;
11194 int temp3 ;
11195 int temp4 ;
11196 int temp5 ;
11197 int temp6 ;
11198 PyObject * obj0 = 0 ;
11199 PyObject * obj1 = 0 ;
11200 PyObject * obj2 = 0 ;
11201 char *kwnames[] = {
11202 (char *) "self",(char *) "string",(char *) "font", NULL
11203 };
11204
11205 arg3 = &temp3;
11206 arg4 = &temp4;
11207 arg5 = &temp5;
11208 arg6 = &temp6;
11209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11211 {
11212 arg2 = wxString_in_helper(obj1);
11213 if (arg2 == NULL) SWIG_fail;
11214 temp2 = True;
11215 }
11216 if (obj2) {
11217 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11218 }
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11222
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 Py_INCREF(Py_None); resultobj = Py_None;
11227 {
11228 PyObject *o = PyInt_FromLong((long) (*arg3));
11229 resultobj = t_output_helper(resultobj,o);
11230 }
11231 {
11232 PyObject *o = PyInt_FromLong((long) (*arg4));
11233 resultobj = t_output_helper(resultobj,o);
11234 }
11235 {
11236 PyObject *o = PyInt_FromLong((long) (*arg5));
11237 resultobj = t_output_helper(resultobj,o);
11238 }
11239 {
11240 PyObject *o = PyInt_FromLong((long) (*arg6));
11241 resultobj = t_output_helper(resultobj,o);
11242 }
11243 {
11244 if (temp2)
11245 delete arg2;
11246 }
11247 return resultobj;
11248 fail:
11249 {
11250 if (temp2)
11251 delete arg2;
11252 }
11253 return NULL;
11254 }
11255
11256
11257 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11258 PyObject *resultobj;
11259 wxDC *arg1 = (wxDC *) 0 ;
11260 wxString *arg2 = 0 ;
11261 int *arg3 = (int *) 0 ;
11262 int *arg4 = (int *) 0 ;
11263 int *arg5 = (int *) 0 ;
11264 wxFont *arg6 = (wxFont *) NULL ;
11265 bool temp2 = False ;
11266 int temp3 ;
11267 int temp4 ;
11268 int temp5 ;
11269 PyObject * obj0 = 0 ;
11270 PyObject * obj1 = 0 ;
11271 PyObject * obj2 = 0 ;
11272 char *kwnames[] = {
11273 (char *) "self",(char *) "text",(char *) "font", NULL
11274 };
11275
11276 arg3 = &temp3;
11277 arg4 = &temp4;
11278 arg5 = &temp5;
11279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11281 {
11282 arg2 = wxString_in_helper(obj1);
11283 if (arg2 == NULL) SWIG_fail;
11284 temp2 = True;
11285 }
11286 if (obj2) {
11287 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11288 }
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11292
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 Py_INCREF(Py_None); resultobj = Py_None;
11297 {
11298 PyObject *o = PyInt_FromLong((long) (*arg3));
11299 resultobj = t_output_helper(resultobj,o);
11300 }
11301 {
11302 PyObject *o = PyInt_FromLong((long) (*arg4));
11303 resultobj = t_output_helper(resultobj,o);
11304 }
11305 {
11306 PyObject *o = PyInt_FromLong((long) (*arg5));
11307 resultobj = t_output_helper(resultobj,o);
11308 }
11309 {
11310 if (temp2)
11311 delete arg2;
11312 }
11313 return resultobj;
11314 fail:
11315 {
11316 if (temp2)
11317 delete arg2;
11318 }
11319 return NULL;
11320 }
11321
11322
11323 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj;
11325 wxDC *arg1 = (wxDC *) 0 ;
11326 wxSize result;
11327 PyObject * obj0 = 0 ;
11328 char *kwnames[] = {
11329 (char *) "self", NULL
11330 };
11331
11332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 result = (arg1)->GetSize();
11337
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 {
11342 wxSize * resultptr;
11343 resultptr = new wxSize((wxSize &) result);
11344 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11345 }
11346 return resultobj;
11347 fail:
11348 return NULL;
11349 }
11350
11351
11352 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11353 PyObject *resultobj;
11354 wxDC *arg1 = (wxDC *) 0 ;
11355 int *arg2 = (int *) 0 ;
11356 int *arg3 = (int *) 0 ;
11357 int temp2 ;
11358 int temp3 ;
11359 PyObject * obj0 = 0 ;
11360 char *kwnames[] = {
11361 (char *) "self", NULL
11362 };
11363
11364 arg2 = &temp2;
11365 arg3 = &temp3;
11366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 (arg1)->GetSize(arg2,arg3);
11371
11372 wxPyEndAllowThreads(__tstate);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
11375 Py_INCREF(Py_None); resultobj = Py_None;
11376 {
11377 PyObject *o = PyInt_FromLong((long) (*arg2));
11378 resultobj = t_output_helper(resultobj,o);
11379 }
11380 {
11381 PyObject *o = PyInt_FromLong((long) (*arg3));
11382 resultobj = t_output_helper(resultobj,o);
11383 }
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj;
11392 wxDC *arg1 = (wxDC *) 0 ;
11393 wxSize result;
11394 PyObject * obj0 = 0 ;
11395 char *kwnames[] = {
11396 (char *) "self", NULL
11397 };
11398
11399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11401 {
11402 PyThreadState* __tstate = wxPyBeginAllowThreads();
11403 result = ((wxDC const *)arg1)->GetSizeMM();
11404
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 {
11409 wxSize * resultptr;
11410 resultptr = new wxSize((wxSize &) result);
11411 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11412 }
11413 return resultobj;
11414 fail:
11415 return NULL;
11416 }
11417
11418
11419 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11420 PyObject *resultobj;
11421 wxDC *arg1 = (wxDC *) 0 ;
11422 int *arg2 = (int *) 0 ;
11423 int *arg3 = (int *) 0 ;
11424 int temp2 ;
11425 int temp3 ;
11426 PyObject * obj0 = 0 ;
11427 char *kwnames[] = {
11428 (char *) "self", NULL
11429 };
11430
11431 arg2 = &temp2;
11432 arg3 = &temp3;
11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
11434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11435 {
11436 PyThreadState* __tstate = wxPyBeginAllowThreads();
11437 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11438
11439 wxPyEndAllowThreads(__tstate);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 }
11442 Py_INCREF(Py_None); resultobj = Py_None;
11443 {
11444 PyObject *o = PyInt_FromLong((long) (*arg2));
11445 resultobj = t_output_helper(resultobj,o);
11446 }
11447 {
11448 PyObject *o = PyInt_FromLong((long) (*arg3));
11449 resultobj = t_output_helper(resultobj,o);
11450 }
11451 return resultobj;
11452 fail:
11453 return NULL;
11454 }
11455
11456
11457 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11458 PyObject *resultobj;
11459 wxDC *arg1 = (wxDC *) 0 ;
11460 int arg2 ;
11461 int result;
11462 PyObject * obj0 = 0 ;
11463 char *kwnames[] = {
11464 (char *) "self",(char *) "x", NULL
11465 };
11466
11467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
11472
11473 wxPyEndAllowThreads(__tstate);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 }
11476 resultobj = PyInt_FromLong((long)result);
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj;
11485 wxDC *arg1 = (wxDC *) 0 ;
11486 int arg2 ;
11487 int result;
11488 PyObject * obj0 = 0 ;
11489 char *kwnames[] = {
11490 (char *) "self",(char *) "y", NULL
11491 };
11492
11493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11495 {
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
11498
11499 wxPyEndAllowThreads(__tstate);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 }
11502 resultobj = PyInt_FromLong((long)result);
11503 return resultobj;
11504 fail:
11505 return NULL;
11506 }
11507
11508
11509 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11510 PyObject *resultobj;
11511 wxDC *arg1 = (wxDC *) 0 ;
11512 int arg2 ;
11513 int result;
11514 PyObject * obj0 = 0 ;
11515 char *kwnames[] = {
11516 (char *) "self",(char *) "x", NULL
11517 };
11518
11519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11521 {
11522 PyThreadState* __tstate = wxPyBeginAllowThreads();
11523 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
11524
11525 wxPyEndAllowThreads(__tstate);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 resultobj = PyInt_FromLong((long)result);
11529 return resultobj;
11530 fail:
11531 return NULL;
11532 }
11533
11534
11535 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11536 PyObject *resultobj;
11537 wxDC *arg1 = (wxDC *) 0 ;
11538 int arg2 ;
11539 int result;
11540 PyObject * obj0 = 0 ;
11541 char *kwnames[] = {
11542 (char *) "self",(char *) "y", NULL
11543 };
11544
11545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11547 {
11548 PyThreadState* __tstate = wxPyBeginAllowThreads();
11549 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
11550
11551 wxPyEndAllowThreads(__tstate);
11552 if (PyErr_Occurred()) SWIG_fail;
11553 }
11554 resultobj = PyInt_FromLong((long)result);
11555 return resultobj;
11556 fail:
11557 return NULL;
11558 }
11559
11560
11561 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11562 PyObject *resultobj;
11563 wxDC *arg1 = (wxDC *) 0 ;
11564 int arg2 ;
11565 int result;
11566 PyObject * obj0 = 0 ;
11567 char *kwnames[] = {
11568 (char *) "self",(char *) "x", NULL
11569 };
11570
11571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11573 {
11574 PyThreadState* __tstate = wxPyBeginAllowThreads();
11575 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
11576
11577 wxPyEndAllowThreads(__tstate);
11578 if (PyErr_Occurred()) SWIG_fail;
11579 }
11580 resultobj = PyInt_FromLong((long)result);
11581 return resultobj;
11582 fail:
11583 return NULL;
11584 }
11585
11586
11587 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11588 PyObject *resultobj;
11589 wxDC *arg1 = (wxDC *) 0 ;
11590 int arg2 ;
11591 int result;
11592 PyObject * obj0 = 0 ;
11593 char *kwnames[] = {
11594 (char *) "self",(char *) "y", NULL
11595 };
11596
11597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11599 {
11600 PyThreadState* __tstate = wxPyBeginAllowThreads();
11601 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
11602
11603 wxPyEndAllowThreads(__tstate);
11604 if (PyErr_Occurred()) SWIG_fail;
11605 }
11606 resultobj = PyInt_FromLong((long)result);
11607 return resultobj;
11608 fail:
11609 return NULL;
11610 }
11611
11612
11613 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11614 PyObject *resultobj;
11615 wxDC *arg1 = (wxDC *) 0 ;
11616 int arg2 ;
11617 int result;
11618 PyObject * obj0 = 0 ;
11619 char *kwnames[] = {
11620 (char *) "self",(char *) "x", NULL
11621 };
11622
11623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11625 {
11626 PyThreadState* __tstate = wxPyBeginAllowThreads();
11627 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
11628
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 resultobj = PyInt_FromLong((long)result);
11633 return resultobj;
11634 fail:
11635 return NULL;
11636 }
11637
11638
11639 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11640 PyObject *resultobj;
11641 wxDC *arg1 = (wxDC *) 0 ;
11642 int arg2 ;
11643 int result;
11644 PyObject * obj0 = 0 ;
11645 char *kwnames[] = {
11646 (char *) "self",(char *) "y", NULL
11647 };
11648
11649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
11654
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 resultobj = PyInt_FromLong((long)result);
11659 return resultobj;
11660 fail:
11661 return NULL;
11662 }
11663
11664
11665 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11666 PyObject *resultobj;
11667 wxDC *arg1 = (wxDC *) 0 ;
11668 bool result;
11669 PyObject * obj0 = 0 ;
11670 char *kwnames[] = {
11671 (char *) "self", NULL
11672 };
11673
11674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11676 {
11677 PyThreadState* __tstate = wxPyBeginAllowThreads();
11678 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11679
11680 wxPyEndAllowThreads(__tstate);
11681 if (PyErr_Occurred()) SWIG_fail;
11682 }
11683 resultobj = PyInt_FromLong((long)result);
11684 return resultobj;
11685 fail:
11686 return NULL;
11687 }
11688
11689
11690 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11691 PyObject *resultobj;
11692 wxDC *arg1 = (wxDC *) 0 ;
11693 bool result;
11694 PyObject * obj0 = 0 ;
11695 char *kwnames[] = {
11696 (char *) "self", NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
11700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11701 {
11702 PyThreadState* __tstate = wxPyBeginAllowThreads();
11703 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
11704
11705 wxPyEndAllowThreads(__tstate);
11706 if (PyErr_Occurred()) SWIG_fail;
11707 }
11708 resultobj = PyInt_FromLong((long)result);
11709 return resultobj;
11710 fail:
11711 return NULL;
11712 }
11713
11714
11715 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
11716 PyObject *resultobj;
11717 wxDC *arg1 = (wxDC *) 0 ;
11718 int result;
11719 PyObject * obj0 = 0 ;
11720 char *kwnames[] = {
11721 (char *) "self", NULL
11722 };
11723
11724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
11725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (int)((wxDC const *)arg1)->GetDepth();
11729
11730 wxPyEndAllowThreads(__tstate);
11731 if (PyErr_Occurred()) SWIG_fail;
11732 }
11733 resultobj = PyInt_FromLong((long)result);
11734 return resultobj;
11735 fail:
11736 return NULL;
11737 }
11738
11739
11740 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
11741 PyObject *resultobj;
11742 wxDC *arg1 = (wxDC *) 0 ;
11743 wxSize result;
11744 PyObject * obj0 = 0 ;
11745 char *kwnames[] = {
11746 (char *) "self", NULL
11747 };
11748
11749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
11750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11751 {
11752 PyThreadState* __tstate = wxPyBeginAllowThreads();
11753 result = ((wxDC const *)arg1)->GetPPI();
11754
11755 wxPyEndAllowThreads(__tstate);
11756 if (PyErr_Occurred()) SWIG_fail;
11757 }
11758 {
11759 wxSize * resultptr;
11760 resultptr = new wxSize((wxSize &) result);
11761 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11762 }
11763 return resultobj;
11764 fail:
11765 return NULL;
11766 }
11767
11768
11769 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11770 PyObject *resultobj;
11771 wxDC *arg1 = (wxDC *) 0 ;
11772 bool result;
11773 PyObject * obj0 = 0 ;
11774 char *kwnames[] = {
11775 (char *) "self", NULL
11776 };
11777
11778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
11779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (bool)((wxDC const *)arg1)->Ok();
11783
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 resultobj = PyInt_FromLong((long)result);
11788 return resultobj;
11789 fail:
11790 return NULL;
11791 }
11792
11793
11794 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11795 PyObject *resultobj;
11796 wxDC *arg1 = (wxDC *) 0 ;
11797 int result;
11798 PyObject * obj0 = 0 ;
11799 char *kwnames[] = {
11800 (char *) "self", NULL
11801 };
11802
11803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
11804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11805 {
11806 PyThreadState* __tstate = wxPyBeginAllowThreads();
11807 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
11808
11809 wxPyEndAllowThreads(__tstate);
11810 if (PyErr_Occurred()) SWIG_fail;
11811 }
11812 resultobj = PyInt_FromLong((long)result);
11813 return resultobj;
11814 fail:
11815 return NULL;
11816 }
11817
11818
11819 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11820 PyObject *resultobj;
11821 wxDC *arg1 = (wxDC *) 0 ;
11822 wxBrush *result;
11823 PyObject * obj0 = 0 ;
11824 char *kwnames[] = {
11825 (char *) "self", NULL
11826 };
11827
11828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
11829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11830 {
11831 PyThreadState* __tstate = wxPyBeginAllowThreads();
11832 {
11833 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
11834 result = (wxBrush *) &_result_ref;
11835 }
11836
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11841 return resultobj;
11842 fail:
11843 return NULL;
11844 }
11845
11846
11847 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11848 PyObject *resultobj;
11849 wxDC *arg1 = (wxDC *) 0 ;
11850 wxBrush *result;
11851 PyObject * obj0 = 0 ;
11852 char *kwnames[] = {
11853 (char *) "self", NULL
11854 };
11855
11856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
11857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11858 {
11859 PyThreadState* __tstate = wxPyBeginAllowThreads();
11860 {
11861 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
11862 result = (wxBrush *) &_result_ref;
11863 }
11864
11865 wxPyEndAllowThreads(__tstate);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11869 return resultobj;
11870 fail:
11871 return NULL;
11872 }
11873
11874
11875 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11876 PyObject *resultobj;
11877 wxDC *arg1 = (wxDC *) 0 ;
11878 wxFont *result;
11879 PyObject * obj0 = 0 ;
11880 char *kwnames[] = {
11881 (char *) "self", NULL
11882 };
11883
11884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
11885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11886 {
11887 PyThreadState* __tstate = wxPyBeginAllowThreads();
11888 {
11889 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
11890 result = (wxFont *) &_result_ref;
11891 }
11892
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 wxDC *arg1 = (wxDC *) 0 ;
11906 wxPen *result;
11907 PyObject * obj0 = 0 ;
11908 char *kwnames[] = {
11909 (char *) "self", NULL
11910 };
11911
11912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
11913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 {
11917 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
11918 result = (wxPen *) &_result_ref;
11919 }
11920
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
11925 return resultobj;
11926 fail:
11927 return NULL;
11928 }
11929
11930
11931 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11932 PyObject *resultobj;
11933 wxDC *arg1 = (wxDC *) 0 ;
11934 wxColour *result;
11935 PyObject * obj0 = 0 ;
11936 char *kwnames[] = {
11937 (char *) "self", NULL
11938 };
11939
11940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
11941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11942 {
11943 PyThreadState* __tstate = wxPyBeginAllowThreads();
11944 {
11945 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
11946 result = (wxColour *) &_result_ref;
11947 }
11948
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11953 return resultobj;
11954 fail:
11955 return NULL;
11956 }
11957
11958
11959 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11960 PyObject *resultobj;
11961 wxDC *arg1 = (wxDC *) 0 ;
11962 wxColour *result;
11963 PyObject * obj0 = 0 ;
11964 char *kwnames[] = {
11965 (char *) "self", NULL
11966 };
11967
11968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
11969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11970 {
11971 PyThreadState* __tstate = wxPyBeginAllowThreads();
11972 {
11973 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
11974 result = (wxColour *) &_result_ref;
11975 }
11976
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11981 return resultobj;
11982 fail:
11983 return NULL;
11984 }
11985
11986
11987 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11988 PyObject *resultobj;
11989 wxDC *arg1 = (wxDC *) 0 ;
11990 wxColour *arg2 = 0 ;
11991 wxColour temp2 ;
11992 PyObject * obj0 = 0 ;
11993 PyObject * obj1 = 0 ;
11994 char *kwnames[] = {
11995 (char *) "self",(char *) "colour", NULL
11996 };
11997
11998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
11999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12000 {
12001 arg2 = &temp2;
12002 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12003 }
12004 {
12005 PyThreadState* __tstate = wxPyBeginAllowThreads();
12006 (arg1)->SetTextForeground((wxColour const &)*arg2);
12007
12008 wxPyEndAllowThreads(__tstate);
12009 if (PyErr_Occurred()) SWIG_fail;
12010 }
12011 Py_INCREF(Py_None); resultobj = Py_None;
12012 return resultobj;
12013 fail:
12014 return NULL;
12015 }
12016
12017
12018 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12019 PyObject *resultobj;
12020 wxDC *arg1 = (wxDC *) 0 ;
12021 wxColour *arg2 = 0 ;
12022 wxColour temp2 ;
12023 PyObject * obj0 = 0 ;
12024 PyObject * obj1 = 0 ;
12025 char *kwnames[] = {
12026 (char *) "self",(char *) "colour", NULL
12027 };
12028
12029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12031 {
12032 arg2 = &temp2;
12033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12034 }
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 (arg1)->SetTextBackground((wxColour const &)*arg2);
12038
12039 wxPyEndAllowThreads(__tstate);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
12042 Py_INCREF(Py_None); resultobj = Py_None;
12043 return resultobj;
12044 fail:
12045 return NULL;
12046 }
12047
12048
12049 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12050 PyObject *resultobj;
12051 wxDC *arg1 = (wxDC *) 0 ;
12052 int result;
12053 PyObject * obj0 = 0 ;
12054 char *kwnames[] = {
12055 (char *) "self", NULL
12056 };
12057
12058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12060 {
12061 PyThreadState* __tstate = wxPyBeginAllowThreads();
12062 result = (int)((wxDC const *)arg1)->GetMapMode();
12063
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 resultobj = PyInt_FromLong((long)result);
12068 return resultobj;
12069 fail:
12070 return NULL;
12071 }
12072
12073
12074 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12075 PyObject *resultobj;
12076 wxDC *arg1 = (wxDC *) 0 ;
12077 int arg2 ;
12078 PyObject * obj0 = 0 ;
12079 char *kwnames[] = {
12080 (char *) "self",(char *) "mode", NULL
12081 };
12082
12083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) 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 (arg1)->SetMapMode(arg2);
12088
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 Py_INCREF(Py_None); resultobj = Py_None;
12093 return resultobj;
12094 fail:
12095 return NULL;
12096 }
12097
12098
12099 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12100 PyObject *resultobj;
12101 wxDC *arg1 = (wxDC *) 0 ;
12102 double *arg2 = (double *) 0 ;
12103 double *arg3 = (double *) 0 ;
12104 double temp2 ;
12105 double temp3 ;
12106 PyObject * obj0 = 0 ;
12107 char *kwnames[] = {
12108 (char *) "self", NULL
12109 };
12110
12111 arg2 = &temp2;
12112 arg3 = &temp3;
12113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12115 {
12116 PyThreadState* __tstate = wxPyBeginAllowThreads();
12117 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12118
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 Py_INCREF(Py_None); resultobj = Py_None;
12123 {
12124 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12125 resultobj = t_output_helper(resultobj,o);
12126 }
12127 {
12128 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12129 resultobj = t_output_helper(resultobj,o);
12130 }
12131 return resultobj;
12132 fail:
12133 return NULL;
12134 }
12135
12136
12137 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12138 PyObject *resultobj;
12139 wxDC *arg1 = (wxDC *) 0 ;
12140 double arg2 ;
12141 double arg3 ;
12142 PyObject * obj0 = 0 ;
12143 char *kwnames[] = {
12144 (char *) "self",(char *) "x",(char *) "y", NULL
12145 };
12146
12147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12149 {
12150 PyThreadState* __tstate = wxPyBeginAllowThreads();
12151 (arg1)->SetUserScale(arg2,arg3);
12152
12153 wxPyEndAllowThreads(__tstate);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 Py_INCREF(Py_None); resultobj = Py_None;
12157 return resultobj;
12158 fail:
12159 return NULL;
12160 }
12161
12162
12163 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12164 PyObject *resultobj;
12165 wxDC *arg1 = (wxDC *) 0 ;
12166 double *arg2 = (double *) 0 ;
12167 double *arg3 = (double *) 0 ;
12168 double temp2 ;
12169 double temp3 ;
12170 PyObject * obj0 = 0 ;
12171 char *kwnames[] = {
12172 (char *) "self", NULL
12173 };
12174
12175 arg2 = &temp2;
12176 arg3 = &temp3;
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12179 {
12180 PyThreadState* __tstate = wxPyBeginAllowThreads();
12181 (arg1)->GetLogicalScale(arg2,arg3);
12182
12183 wxPyEndAllowThreads(__tstate);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 }
12186 Py_INCREF(Py_None); resultobj = Py_None;
12187 {
12188 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12189 resultobj = t_output_helper(resultobj,o);
12190 }
12191 {
12192 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12193 resultobj = t_output_helper(resultobj,o);
12194 }
12195 return resultobj;
12196 fail:
12197 return NULL;
12198 }
12199
12200
12201 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12202 PyObject *resultobj;
12203 wxDC *arg1 = (wxDC *) 0 ;
12204 double arg2 ;
12205 double arg3 ;
12206 PyObject * obj0 = 0 ;
12207 char *kwnames[] = {
12208 (char *) "self",(char *) "x",(char *) "y", NULL
12209 };
12210
12211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 (arg1)->SetLogicalScale(arg2,arg3);
12216
12217 wxPyEndAllowThreads(__tstate);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 Py_INCREF(Py_None); resultobj = Py_None;
12221 return resultobj;
12222 fail:
12223 return NULL;
12224 }
12225
12226
12227 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12228 PyObject *resultobj;
12229 wxDC *arg1 = (wxDC *) 0 ;
12230 wxPoint result;
12231 PyObject * obj0 = 0 ;
12232 char *kwnames[] = {
12233 (char *) "self", NULL
12234 };
12235
12236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12241
12242 wxPyEndAllowThreads(__tstate);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 }
12245 {
12246 wxPoint * resultptr;
12247 resultptr = new wxPoint((wxPoint &) result);
12248 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12249 }
12250 return resultobj;
12251 fail:
12252 return NULL;
12253 }
12254
12255
12256 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12257 PyObject *resultobj;
12258 wxDC *arg1 = (wxDC *) 0 ;
12259 int *arg2 = (int *) 0 ;
12260 int *arg3 = (int *) 0 ;
12261 int temp2 ;
12262 int temp3 ;
12263 PyObject * obj0 = 0 ;
12264 char *kwnames[] = {
12265 (char *) "self", NULL
12266 };
12267
12268 arg2 = &temp2;
12269 arg3 = &temp3;
12270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12275
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 Py_INCREF(Py_None); resultobj = Py_None;
12280 {
12281 PyObject *o = PyInt_FromLong((long) (*arg2));
12282 resultobj = t_output_helper(resultobj,o);
12283 }
12284 {
12285 PyObject *o = PyInt_FromLong((long) (*arg3));
12286 resultobj = t_output_helper(resultobj,o);
12287 }
12288 return resultobj;
12289 fail:
12290 return NULL;
12291 }
12292
12293
12294 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12295 PyObject *resultobj;
12296 wxDC *arg1 = (wxDC *) 0 ;
12297 int arg2 ;
12298 int arg3 ;
12299 PyObject * obj0 = 0 ;
12300 char *kwnames[] = {
12301 (char *) "self",(char *) "x",(char *) "y", NULL
12302 };
12303
12304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12306 {
12307 PyThreadState* __tstate = wxPyBeginAllowThreads();
12308 (arg1)->SetLogicalOrigin(arg2,arg3);
12309
12310 wxPyEndAllowThreads(__tstate);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 Py_INCREF(Py_None); resultobj = Py_None;
12314 return resultobj;
12315 fail:
12316 return NULL;
12317 }
12318
12319
12320 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12321 PyObject *resultobj;
12322 wxDC *arg1 = (wxDC *) 0 ;
12323 wxPoint result;
12324 PyObject * obj0 = 0 ;
12325 char *kwnames[] = {
12326 (char *) "self", NULL
12327 };
12328
12329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
12333 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12334
12335 wxPyEndAllowThreads(__tstate);
12336 if (PyErr_Occurred()) SWIG_fail;
12337 }
12338 {
12339 wxPoint * resultptr;
12340 resultptr = new wxPoint((wxPoint &) result);
12341 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12342 }
12343 return resultobj;
12344 fail:
12345 return NULL;
12346 }
12347
12348
12349 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj;
12351 wxDC *arg1 = (wxDC *) 0 ;
12352 int *arg2 = (int *) 0 ;
12353 int *arg3 = (int *) 0 ;
12354 int temp2 ;
12355 int temp3 ;
12356 PyObject * obj0 = 0 ;
12357 char *kwnames[] = {
12358 (char *) "self", NULL
12359 };
12360
12361 arg2 = &temp2;
12362 arg3 = &temp3;
12363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12368
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 Py_INCREF(Py_None); resultobj = Py_None;
12373 {
12374 PyObject *o = PyInt_FromLong((long) (*arg2));
12375 resultobj = t_output_helper(resultobj,o);
12376 }
12377 {
12378 PyObject *o = PyInt_FromLong((long) (*arg3));
12379 resultobj = t_output_helper(resultobj,o);
12380 }
12381 return resultobj;
12382 fail:
12383 return NULL;
12384 }
12385
12386
12387 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12388 PyObject *resultobj;
12389 wxDC *arg1 = (wxDC *) 0 ;
12390 int arg2 ;
12391 int arg3 ;
12392 PyObject * obj0 = 0 ;
12393 char *kwnames[] = {
12394 (char *) "self",(char *) "x",(char *) "y", NULL
12395 };
12396
12397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 (arg1)->SetDeviceOrigin(arg2,arg3);
12402
12403 wxPyEndAllowThreads(__tstate);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 Py_INCREF(Py_None); resultobj = Py_None;
12407 return resultobj;
12408 fail:
12409 return NULL;
12410 }
12411
12412
12413 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12414 PyObject *resultobj;
12415 wxDC *arg1 = (wxDC *) 0 ;
12416 bool arg2 ;
12417 bool arg3 ;
12418 PyObject * obj0 = 0 ;
12419 PyObject * obj1 = 0 ;
12420 PyObject * obj2 = 0 ;
12421 char *kwnames[] = {
12422 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12423 };
12424
12425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12427 arg2 = PyInt_AsLong(obj1) ? true : false;
12428 if (PyErr_Occurred()) SWIG_fail;
12429 arg3 = PyInt_AsLong(obj2) ? true : false;
12430 if (PyErr_Occurred()) SWIG_fail;
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 (arg1)->SetAxisOrientation(arg2,arg3);
12434
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 Py_INCREF(Py_None); resultobj = Py_None;
12439 return resultobj;
12440 fail:
12441 return NULL;
12442 }
12443
12444
12445 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12446 PyObject *resultobj;
12447 wxDC *arg1 = (wxDC *) 0 ;
12448 int result;
12449 PyObject * obj0 = 0 ;
12450 char *kwnames[] = {
12451 (char *) "self", NULL
12452 };
12453
12454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12456 {
12457 PyThreadState* __tstate = wxPyBeginAllowThreads();
12458 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12459
12460 wxPyEndAllowThreads(__tstate);
12461 if (PyErr_Occurred()) SWIG_fail;
12462 }
12463 resultobj = PyInt_FromLong((long)result);
12464 return resultobj;
12465 fail:
12466 return NULL;
12467 }
12468
12469
12470 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12471 PyObject *resultobj;
12472 wxDC *arg1 = (wxDC *) 0 ;
12473 int arg2 ;
12474 PyObject * obj0 = 0 ;
12475 char *kwnames[] = {
12476 (char *) "self",(char *) "function", NULL
12477 };
12478
12479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 (arg1)->SetLogicalFunction(arg2);
12484
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 Py_INCREF(Py_None); resultobj = Py_None;
12489 return resultobj;
12490 fail:
12491 return NULL;
12492 }
12493
12494
12495 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12496 PyObject *resultobj;
12497 wxDC *arg1 = (wxDC *) 0 ;
12498 bool arg2 ;
12499 PyObject * obj0 = 0 ;
12500 PyObject * obj1 = 0 ;
12501 char *kwnames[] = {
12502 (char *) "self",(char *) "opt", NULL
12503 };
12504
12505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12507 arg2 = PyInt_AsLong(obj1) ? true : false;
12508 if (PyErr_Occurred()) SWIG_fail;
12509 {
12510 PyThreadState* __tstate = wxPyBeginAllowThreads();
12511 (arg1)->SetOptimization(arg2);
12512
12513 wxPyEndAllowThreads(__tstate);
12514 if (PyErr_Occurred()) SWIG_fail;
12515 }
12516 Py_INCREF(Py_None); resultobj = Py_None;
12517 return resultobj;
12518 fail:
12519 return NULL;
12520 }
12521
12522
12523 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12524 PyObject *resultobj;
12525 wxDC *arg1 = (wxDC *) 0 ;
12526 bool result;
12527 PyObject * obj0 = 0 ;
12528 char *kwnames[] = {
12529 (char *) "self", NULL
12530 };
12531
12532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 result = (bool)(arg1)->GetOptimization();
12537
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 resultobj = PyInt_FromLong((long)result);
12542 return resultobj;
12543 fail:
12544 return NULL;
12545 }
12546
12547
12548 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12549 PyObject *resultobj;
12550 wxDC *arg1 = (wxDC *) 0 ;
12551 int arg2 ;
12552 int arg3 ;
12553 PyObject * obj0 = 0 ;
12554 char *kwnames[] = {
12555 (char *) "self",(char *) "x",(char *) "y", NULL
12556 };
12557
12558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12560 {
12561 PyThreadState* __tstate = wxPyBeginAllowThreads();
12562 (arg1)->CalcBoundingBox(arg2,arg3);
12563
12564 wxPyEndAllowThreads(__tstate);
12565 if (PyErr_Occurred()) SWIG_fail;
12566 }
12567 Py_INCREF(Py_None); resultobj = Py_None;
12568 return resultobj;
12569 fail:
12570 return NULL;
12571 }
12572
12573
12574 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12575 PyObject *resultobj;
12576 wxDC *arg1 = (wxDC *) 0 ;
12577 PyObject * obj0 = 0 ;
12578 char *kwnames[] = {
12579 (char *) "self", NULL
12580 };
12581
12582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 (arg1)->ResetBoundingBox();
12587
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 Py_INCREF(Py_None); resultobj = Py_None;
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj;
12600 wxDC *arg1 = (wxDC *) 0 ;
12601 int result;
12602 PyObject * obj0 = 0 ;
12603 char *kwnames[] = {
12604 (char *) "self", NULL
12605 };
12606
12607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12609 {
12610 PyThreadState* __tstate = wxPyBeginAllowThreads();
12611 result = (int)((wxDC const *)arg1)->MinX();
12612
12613 wxPyEndAllowThreads(__tstate);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 resultobj = PyInt_FromLong((long)result);
12617 return resultobj;
12618 fail:
12619 return NULL;
12620 }
12621
12622
12623 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12624 PyObject *resultobj;
12625 wxDC *arg1 = (wxDC *) 0 ;
12626 int result;
12627 PyObject * obj0 = 0 ;
12628 char *kwnames[] = {
12629 (char *) "self", NULL
12630 };
12631
12632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12634 {
12635 PyThreadState* __tstate = wxPyBeginAllowThreads();
12636 result = (int)((wxDC const *)arg1)->MaxX();
12637
12638 wxPyEndAllowThreads(__tstate);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 resultobj = PyInt_FromLong((long)result);
12642 return resultobj;
12643 fail:
12644 return NULL;
12645 }
12646
12647
12648 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 wxDC *arg1 = (wxDC *) 0 ;
12651 int result;
12652 PyObject * obj0 = 0 ;
12653 char *kwnames[] = {
12654 (char *) "self", NULL
12655 };
12656
12657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
12658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = (int)((wxDC const *)arg1)->MinY();
12662
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 resultobj = PyInt_FromLong((long)result);
12667 return resultobj;
12668 fail:
12669 return NULL;
12670 }
12671
12672
12673 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj;
12675 wxDC *arg1 = (wxDC *) 0 ;
12676 int result;
12677 PyObject * obj0 = 0 ;
12678 char *kwnames[] = {
12679 (char *) "self", NULL
12680 };
12681
12682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
12683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 result = (int)((wxDC const *)arg1)->MaxY();
12687
12688 wxPyEndAllowThreads(__tstate);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 resultobj = PyInt_FromLong((long)result);
12692 return resultobj;
12693 fail:
12694 return NULL;
12695 }
12696
12697
12698 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj;
12700 wxDC *arg1 = (wxDC *) 0 ;
12701 int *arg2 = (int *) 0 ;
12702 int *arg3 = (int *) 0 ;
12703 int *arg4 = (int *) 0 ;
12704 int *arg5 = (int *) 0 ;
12705 int temp2 ;
12706 int temp3 ;
12707 int temp4 ;
12708 int temp5 ;
12709 PyObject * obj0 = 0 ;
12710 char *kwnames[] = {
12711 (char *) "self", NULL
12712 };
12713
12714 arg2 = &temp2;
12715 arg3 = &temp3;
12716 arg4 = &temp4;
12717 arg5 = &temp5;
12718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
12719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 Py_INCREF(Py_None); resultobj = Py_None;
12728 {
12729 PyObject *o = PyInt_FromLong((long) (*arg2));
12730 resultobj = t_output_helper(resultobj,o);
12731 }
12732 {
12733 PyObject *o = PyInt_FromLong((long) (*arg3));
12734 resultobj = t_output_helper(resultobj,o);
12735 }
12736 {
12737 PyObject *o = PyInt_FromLong((long) (*arg4));
12738 resultobj = t_output_helper(resultobj,o);
12739 }
12740 {
12741 PyObject *o = PyInt_FromLong((long) (*arg5));
12742 resultobj = t_output_helper(resultobj,o);
12743 }
12744 return resultobj;
12745 fail:
12746 return NULL;
12747 }
12748
12749
12750 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
12751 PyObject *resultobj;
12752 wxDC *arg1 = (wxDC *) 0 ;
12753 PyObject *arg2 = (PyObject *) 0 ;
12754 PyObject *arg3 = (PyObject *) 0 ;
12755 PyObject *arg4 = (PyObject *) 0 ;
12756 PyObject *result;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 PyObject * obj2 = 0 ;
12760 PyObject * obj3 = 0 ;
12761 char *kwnames[] = {
12762 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12763 };
12764
12765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12767 arg2 = obj1;
12768 arg3 = obj2;
12769 arg4 = obj3;
12770 {
12771 PyThreadState* __tstate = wxPyBeginAllowThreads();
12772 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
12773
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 resultobj = result;
12778 return resultobj;
12779 fail:
12780 return NULL;
12781 }
12782
12783
12784 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj;
12786 wxDC *arg1 = (wxDC *) 0 ;
12787 PyObject *arg2 = (PyObject *) 0 ;
12788 PyObject *arg3 = (PyObject *) 0 ;
12789 PyObject *arg4 = (PyObject *) 0 ;
12790 PyObject *result;
12791 PyObject * obj0 = 0 ;
12792 PyObject * obj1 = 0 ;
12793 PyObject * obj2 = 0 ;
12794 PyObject * obj3 = 0 ;
12795 char *kwnames[] = {
12796 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12797 };
12798
12799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12801 arg2 = obj1;
12802 arg3 = obj2;
12803 arg4 = obj3;
12804 {
12805 PyThreadState* __tstate = wxPyBeginAllowThreads();
12806 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
12807
12808 wxPyEndAllowThreads(__tstate);
12809 if (PyErr_Occurred()) SWIG_fail;
12810 }
12811 resultobj = result;
12812 return resultobj;
12813 fail:
12814 return NULL;
12815 }
12816
12817
12818 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
12819 PyObject *resultobj;
12820 wxDC *arg1 = (wxDC *) 0 ;
12821 PyObject *arg2 = (PyObject *) 0 ;
12822 PyObject *arg3 = (PyObject *) 0 ;
12823 PyObject *arg4 = (PyObject *) 0 ;
12824 PyObject *result;
12825 PyObject * obj0 = 0 ;
12826 PyObject * obj1 = 0 ;
12827 PyObject * obj2 = 0 ;
12828 PyObject * obj3 = 0 ;
12829 char *kwnames[] = {
12830 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12831 };
12832
12833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12835 arg2 = obj1;
12836 arg3 = obj2;
12837 arg4 = obj3;
12838 {
12839 PyThreadState* __tstate = wxPyBeginAllowThreads();
12840 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
12841
12842 wxPyEndAllowThreads(__tstate);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 resultobj = result;
12846 return resultobj;
12847 fail:
12848 return NULL;
12849 }
12850
12851
12852 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
12853 PyObject *resultobj;
12854 wxDC *arg1 = (wxDC *) 0 ;
12855 PyObject *arg2 = (PyObject *) 0 ;
12856 PyObject *arg3 = (PyObject *) 0 ;
12857 PyObject *arg4 = (PyObject *) 0 ;
12858 PyObject *result;
12859 PyObject * obj0 = 0 ;
12860 PyObject * obj1 = 0 ;
12861 PyObject * obj2 = 0 ;
12862 PyObject * obj3 = 0 ;
12863 char *kwnames[] = {
12864 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12865 };
12866
12867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12869 arg2 = obj1;
12870 arg3 = obj2;
12871 arg4 = obj3;
12872 {
12873 PyThreadState* __tstate = wxPyBeginAllowThreads();
12874 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
12875
12876 wxPyEndAllowThreads(__tstate);
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 resultobj = result;
12880 return resultobj;
12881 fail:
12882 return NULL;
12883 }
12884
12885
12886 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
12887 PyObject *resultobj;
12888 wxDC *arg1 = (wxDC *) 0 ;
12889 PyObject *arg2 = (PyObject *) 0 ;
12890 PyObject *arg3 = (PyObject *) 0 ;
12891 PyObject *arg4 = (PyObject *) 0 ;
12892 PyObject *result;
12893 PyObject * obj0 = 0 ;
12894 PyObject * obj1 = 0 ;
12895 PyObject * obj2 = 0 ;
12896 PyObject * obj3 = 0 ;
12897 char *kwnames[] = {
12898 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12899 };
12900
12901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12903 arg2 = obj1;
12904 arg3 = obj2;
12905 arg4 = obj3;
12906 {
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
12908 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
12909
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 resultobj = result;
12914 return resultobj;
12915 fail:
12916 return NULL;
12917 }
12918
12919
12920 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
12921 PyObject *resultobj;
12922 wxDC *arg1 = (wxDC *) 0 ;
12923 PyObject *arg2 = (PyObject *) 0 ;
12924 PyObject *arg3 = (PyObject *) 0 ;
12925 PyObject *arg4 = (PyObject *) 0 ;
12926 PyObject *arg5 = (PyObject *) 0 ;
12927 PyObject *result;
12928 PyObject * obj0 = 0 ;
12929 PyObject * obj1 = 0 ;
12930 PyObject * obj2 = 0 ;
12931 PyObject * obj3 = 0 ;
12932 PyObject * obj4 = 0 ;
12933 char *kwnames[] = {
12934 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
12935 };
12936
12937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12939 arg2 = obj1;
12940 arg3 = obj2;
12941 arg4 = obj3;
12942 arg5 = obj4;
12943 {
12944 PyThreadState* __tstate = wxPyBeginAllowThreads();
12945 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
12946
12947 wxPyEndAllowThreads(__tstate);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 resultobj = result;
12951 return resultobj;
12952 fail:
12953 return NULL;
12954 }
12955
12956
12957 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
12958 PyObject *obj;
12959 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12960 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
12961 Py_INCREF(obj);
12962 return Py_BuildValue((char *)"");
12963 }
12964 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj;
12966 wxMemoryDC *result;
12967 char *kwnames[] = {
12968 NULL
12969 };
12970
12971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
12972 {
12973 PyThreadState* __tstate = wxPyBeginAllowThreads();
12974 result = (wxMemoryDC *)new wxMemoryDC();
12975
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
12980 return resultobj;
12981 fail:
12982 return NULL;
12983 }
12984
12985
12986 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12987 PyObject *resultobj;
12988 wxDC *arg1 = (wxDC *) 0 ;
12989 wxMemoryDC *result;
12990 PyObject * obj0 = 0 ;
12991 char *kwnames[] = {
12992 (char *) "oldDC", NULL
12993 };
12994
12995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
12996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12997 {
12998 PyThreadState* __tstate = wxPyBeginAllowThreads();
12999 result = (wxMemoryDC *)new wxMemoryDC(arg1);
13000
13001 wxPyEndAllowThreads(__tstate);
13002 if (PyErr_Occurred()) SWIG_fail;
13003 }
13004 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13005 return resultobj;
13006 fail:
13007 return NULL;
13008 }
13009
13010
13011 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13012 PyObject *resultobj;
13013 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13014 wxBitmap *arg2 = 0 ;
13015 PyObject * obj0 = 0 ;
13016 PyObject * obj1 = 0 ;
13017 char *kwnames[] = {
13018 (char *) "self",(char *) "bitmap", NULL
13019 };
13020
13021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13023 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13024 if (arg2 == NULL) {
13025 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13026 }
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 (arg1)->SelectObject((wxBitmap const &)*arg2);
13030
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 Py_INCREF(Py_None); resultobj = Py_None;
13035 return resultobj;
13036 fail:
13037 return NULL;
13038 }
13039
13040
13041 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13042 PyObject *obj;
13043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13044 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13045 Py_INCREF(obj);
13046 return Py_BuildValue((char *)"");
13047 }
13048 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13049 PyObject *resultobj;
13050 wxDC *arg1 = (wxDC *) 0 ;
13051 wxBitmap *arg2 = 0 ;
13052 wxBufferedDC *result;
13053 PyObject * obj0 = 0 ;
13054 PyObject * obj1 = 0 ;
13055 char *kwnames[] = {
13056 (char *) "dc",(char *) "buffer", NULL
13057 };
13058
13059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13061 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13062 if (arg2 == NULL) {
13063 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13064 }
13065 {
13066 PyThreadState* __tstate = wxPyBeginAllowThreads();
13067 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13068
13069 wxPyEndAllowThreads(__tstate);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 }
13072 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13073 return resultobj;
13074 fail:
13075 return NULL;
13076 }
13077
13078
13079 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13080 PyObject *resultobj;
13081 wxDC *arg1 = (wxDC *) 0 ;
13082 wxSize *arg2 = 0 ;
13083 wxBufferedDC *result;
13084 wxSize temp2 ;
13085 PyObject * obj0 = 0 ;
13086 PyObject * obj1 = 0 ;
13087 char *kwnames[] = {
13088 (char *) "dc",(char *) "area", NULL
13089 };
13090
13091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13093 {
13094 arg2 = &temp2;
13095 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13096 }
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13100
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj;
13113 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13114 PyObject * obj0 = 0 ;
13115 char *kwnames[] = {
13116 (char *) "self", NULL
13117 };
13118
13119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13121 {
13122 PyThreadState* __tstate = wxPyBeginAllowThreads();
13123 (arg1)->UnMask();
13124
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 Py_INCREF(Py_None); resultobj = Py_None;
13129 return resultobj;
13130 fail:
13131 return NULL;
13132 }
13133
13134
13135 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13136 PyObject *obj;
13137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13138 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13139 Py_INCREF(obj);
13140 return Py_BuildValue((char *)"");
13141 }
13142 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13143 PyObject *resultobj;
13144 wxWindow *arg1 = (wxWindow *) 0 ;
13145 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13146 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13147 wxBufferedPaintDC *result;
13148 PyObject * obj0 = 0 ;
13149 PyObject * obj1 = 0 ;
13150 char *kwnames[] = {
13151 (char *) "window",(char *) "buffer", NULL
13152 };
13153
13154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13156 if (obj1) {
13157 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13158 if (arg2 == NULL) {
13159 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13160 }
13161 }
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13165
13166 wxPyEndAllowThreads(__tstate);
13167 if (PyErr_Occurred()) SWIG_fail;
13168 }
13169 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13170 return resultobj;
13171 fail:
13172 return NULL;
13173 }
13174
13175
13176 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13177 PyObject *obj;
13178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13179 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13180 Py_INCREF(obj);
13181 return Py_BuildValue((char *)"");
13182 }
13183 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj;
13185 wxScreenDC *result;
13186 char *kwnames[] = {
13187 NULL
13188 };
13189
13190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13191 {
13192 PyThreadState* __tstate = wxPyBeginAllowThreads();
13193 result = (wxScreenDC *)new wxScreenDC();
13194
13195 wxPyEndAllowThreads(__tstate);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13206 PyObject *resultobj;
13207 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13208 wxWindow *arg2 = (wxWindow *) 0 ;
13209 bool result;
13210 PyObject * obj0 = 0 ;
13211 PyObject * obj1 = 0 ;
13212 char *kwnames[] = {
13213 (char *) "self",(char *) "window", NULL
13214 };
13215
13216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13218 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13219 {
13220 PyThreadState* __tstate = wxPyBeginAllowThreads();
13221 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13222
13223 wxPyEndAllowThreads(__tstate);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 }
13226 resultobj = PyInt_FromLong((long)result);
13227 return resultobj;
13228 fail:
13229 return NULL;
13230 }
13231
13232
13233 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13234 PyObject *resultobj;
13235 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13236 wxRect *arg2 = (wxRect *) NULL ;
13237 bool result;
13238 PyObject * obj0 = 0 ;
13239 PyObject * obj1 = 0 ;
13240 char *kwnames[] = {
13241 (char *) "self",(char *) "rect", NULL
13242 };
13243
13244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13246 if (obj1) {
13247 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13248 }
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13252
13253 wxPyEndAllowThreads(__tstate);
13254 if (PyErr_Occurred()) SWIG_fail;
13255 }
13256 resultobj = PyInt_FromLong((long)result);
13257 return resultobj;
13258 fail:
13259 return NULL;
13260 }
13261
13262
13263 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj;
13265 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13266 bool result;
13267 PyObject * obj0 = 0 ;
13268 char *kwnames[] = {
13269 (char *) "self", NULL
13270 };
13271
13272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13274 {
13275 PyThreadState* __tstate = wxPyBeginAllowThreads();
13276 result = (bool)(arg1)->EndDrawingOnTop();
13277
13278 wxPyEndAllowThreads(__tstate);
13279 if (PyErr_Occurred()) SWIG_fail;
13280 }
13281 resultobj = PyInt_FromLong((long)result);
13282 return resultobj;
13283 fail:
13284 return NULL;
13285 }
13286
13287
13288 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13289 PyObject *obj;
13290 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13291 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13292 Py_INCREF(obj);
13293 return Py_BuildValue((char *)"");
13294 }
13295 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13296 PyObject *resultobj;
13297 wxWindow *arg1 = (wxWindow *) 0 ;
13298 wxClientDC *result;
13299 PyObject * obj0 = 0 ;
13300 char *kwnames[] = {
13301 (char *) "win", NULL
13302 };
13303
13304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 result = (wxClientDC *)new wxClientDC(arg1);
13309
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13314 return resultobj;
13315 fail:
13316 return NULL;
13317 }
13318
13319
13320 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13321 PyObject *obj;
13322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13323 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13324 Py_INCREF(obj);
13325 return Py_BuildValue((char *)"");
13326 }
13327 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13328 PyObject *resultobj;
13329 wxWindow *arg1 = (wxWindow *) 0 ;
13330 wxPaintDC *result;
13331 PyObject * obj0 = 0 ;
13332 char *kwnames[] = {
13333 (char *) "win", NULL
13334 };
13335
13336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13338 {
13339 PyThreadState* __tstate = wxPyBeginAllowThreads();
13340 result = (wxPaintDC *)new wxPaintDC(arg1);
13341
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13353 PyObject *obj;
13354 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13355 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13356 Py_INCREF(obj);
13357 return Py_BuildValue((char *)"");
13358 }
13359 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13360 PyObject *resultobj;
13361 wxWindow *arg1 = (wxWindow *) 0 ;
13362 wxWindowDC *result;
13363 PyObject * obj0 = 0 ;
13364 char *kwnames[] = {
13365 (char *) "win", NULL
13366 };
13367
13368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
13372 result = (wxWindowDC *)new wxWindowDC(arg1);
13373
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13378 return resultobj;
13379 fail:
13380 return NULL;
13381 }
13382
13383
13384 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13385 PyObject *obj;
13386 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13387 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13388 Py_INCREF(obj);
13389 return Py_BuildValue((char *)"");
13390 }
13391 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj;
13393 wxDC *arg1 = 0 ;
13394 bool arg2 ;
13395 wxMirrorDC *result;
13396 PyObject * obj0 = 0 ;
13397 PyObject * obj1 = 0 ;
13398 char *kwnames[] = {
13399 (char *) "dc",(char *) "mirror", NULL
13400 };
13401
13402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13404 if (arg1 == NULL) {
13405 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13406 }
13407 arg2 = PyInt_AsLong(obj1) ? true : false;
13408 if (PyErr_Occurred()) SWIG_fail;
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13412
13413 wxPyEndAllowThreads(__tstate);
13414 if (PyErr_Occurred()) SWIG_fail;
13415 }
13416 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13417 return resultobj;
13418 fail:
13419 return NULL;
13420 }
13421
13422
13423 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13424 PyObject *obj;
13425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13426 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13427 Py_INCREF(obj);
13428 return Py_BuildValue((char *)"");
13429 }
13430 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj;
13432 wxPrintData *arg1 = 0 ;
13433 wxPostScriptDC *result;
13434 PyObject * obj0 = 0 ;
13435 char *kwnames[] = {
13436 (char *) "printData", NULL
13437 };
13438
13439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13441 if (arg1 == NULL) {
13442 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13443 }
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13447
13448 wxPyEndAllowThreads(__tstate);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 }
13451 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13452 return resultobj;
13453 fail:
13454 return NULL;
13455 }
13456
13457
13458 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13459 PyObject *resultobj;
13460 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13461 wxPrintData *result;
13462 PyObject * obj0 = 0 ;
13463 char *kwnames[] = {
13464 (char *) "self", NULL
13465 };
13466
13467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13469 {
13470 PyThreadState* __tstate = wxPyBeginAllowThreads();
13471 {
13472 wxPrintData &_result_ref = (arg1)->GetPrintData();
13473 result = (wxPrintData *) &_result_ref;
13474 }
13475
13476 wxPyEndAllowThreads(__tstate);
13477 if (PyErr_Occurred()) SWIG_fail;
13478 }
13479 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13480 return resultobj;
13481 fail:
13482 return NULL;
13483 }
13484
13485
13486 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13487 PyObject *resultobj;
13488 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13489 wxPrintData *arg2 = 0 ;
13490 PyObject * obj0 = 0 ;
13491 PyObject * obj1 = 0 ;
13492 char *kwnames[] = {
13493 (char *) "self",(char *) "data", NULL
13494 };
13495
13496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13498 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13499 if (arg2 == NULL) {
13500 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13501 }
13502 {
13503 PyThreadState* __tstate = wxPyBeginAllowThreads();
13504 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13505
13506 wxPyEndAllowThreads(__tstate);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 Py_INCREF(Py_None); resultobj = Py_None;
13510 return resultobj;
13511 fail:
13512 return NULL;
13513 }
13514
13515
13516 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13517 PyObject *resultobj;
13518 int arg1 ;
13519 char *kwnames[] = {
13520 (char *) "ppi", NULL
13521 };
13522
13523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13524 {
13525 PyThreadState* __tstate = wxPyBeginAllowThreads();
13526 wxPostScriptDC::SetResolution(arg1);
13527
13528 wxPyEndAllowThreads(__tstate);
13529 if (PyErr_Occurred()) SWIG_fail;
13530 }
13531 Py_INCREF(Py_None); resultobj = Py_None;
13532 return resultobj;
13533 fail:
13534 return NULL;
13535 }
13536
13537
13538 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13539 PyObject *resultobj;
13540 int result;
13541 char *kwnames[] = {
13542 NULL
13543 };
13544
13545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = (int)wxPostScriptDC::GetResolution();
13549
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 resultobj = PyInt_FromLong((long)result);
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13561 PyObject *obj;
13562 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13563 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13564 Py_INCREF(obj);
13565 return Py_BuildValue((char *)"");
13566 }
13567 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13568 PyObject *resultobj;
13569 wxString const &arg1_defvalue = wxPyEmptyString ;
13570 wxString *arg1 = (wxString *) &arg1_defvalue ;
13571 wxMetaFile *result;
13572 bool temp1 = False ;
13573 PyObject * obj0 = 0 ;
13574 char *kwnames[] = {
13575 (char *) "filename", NULL
13576 };
13577
13578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13579 if (obj0) {
13580 {
13581 arg1 = wxString_in_helper(obj0);
13582 if (arg1 == NULL) SWIG_fail;
13583 temp1 = True;
13584 }
13585 }
13586 {
13587 PyThreadState* __tstate = wxPyBeginAllowThreads();
13588 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13589
13590 wxPyEndAllowThreads(__tstate);
13591 if (PyErr_Occurred()) SWIG_fail;
13592 }
13593 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13594 {
13595 if (temp1)
13596 delete arg1;
13597 }
13598 return resultobj;
13599 fail:
13600 {
13601 if (temp1)
13602 delete arg1;
13603 }
13604 return NULL;
13605 }
13606
13607
13608 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13609 PyObject *obj;
13610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13611 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13612 Py_INCREF(obj);
13613 return Py_BuildValue((char *)"");
13614 }
13615 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13616 PyObject *resultobj;
13617 wxString const &arg1_defvalue = wxPyEmptyString ;
13618 wxString *arg1 = (wxString *) &arg1_defvalue ;
13619 int arg2 = (int) 0 ;
13620 int arg3 = (int) 0 ;
13621 wxString const &arg4_defvalue = wxPyEmptyString ;
13622 wxString *arg4 = (wxString *) &arg4_defvalue ;
13623 wxMetaFileDC *result;
13624 bool temp1 = False ;
13625 bool temp4 = False ;
13626 PyObject * obj0 = 0 ;
13627 PyObject * obj3 = 0 ;
13628 char *kwnames[] = {
13629 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13630 };
13631
13632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13633 if (obj0) {
13634 {
13635 arg1 = wxString_in_helper(obj0);
13636 if (arg1 == NULL) SWIG_fail;
13637 temp1 = True;
13638 }
13639 }
13640 if (obj3) {
13641 {
13642 arg4 = wxString_in_helper(obj3);
13643 if (arg4 == NULL) SWIG_fail;
13644 temp4 = True;
13645 }
13646 }
13647 {
13648 PyThreadState* __tstate = wxPyBeginAllowThreads();
13649 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13650
13651 wxPyEndAllowThreads(__tstate);
13652 if (PyErr_Occurred()) SWIG_fail;
13653 }
13654 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13655 {
13656 if (temp1)
13657 delete arg1;
13658 }
13659 {
13660 if (temp4)
13661 delete arg4;
13662 }
13663 return resultobj;
13664 fail:
13665 {
13666 if (temp1)
13667 delete arg1;
13668 }
13669 {
13670 if (temp4)
13671 delete arg4;
13672 }
13673 return NULL;
13674 }
13675
13676
13677 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13678 PyObject *obj;
13679 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13680 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13681 Py_INCREF(obj);
13682 return Py_BuildValue((char *)"");
13683 }
13684 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13685 PyObject *resultobj;
13686 wxPrintData *arg1 = 0 ;
13687 wxPrinterDC *result;
13688 PyObject * obj0 = 0 ;
13689 char *kwnames[] = {
13690 (char *) "printData", NULL
13691 };
13692
13693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
13694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13695 if (arg1 == NULL) {
13696 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13697 }
13698 {
13699 PyThreadState* __tstate = wxPyBeginAllowThreads();
13700 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
13701
13702 wxPyEndAllowThreads(__tstate);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
13706 return resultobj;
13707 fail:
13708 return NULL;
13709 }
13710
13711
13712 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
13713 PyObject *obj;
13714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13715 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
13716 Py_INCREF(obj);
13717 return Py_BuildValue((char *)"");
13718 }
13719 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13720 PyObject *resultobj;
13721 int arg1 ;
13722 int arg2 ;
13723 int arg3 = (int) True ;
13724 int arg4 = (int) 1 ;
13725 wxImageList *result;
13726 char *kwnames[] = {
13727 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
13728 };
13729
13730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
13731 {
13732 PyThreadState* __tstate = wxPyBeginAllowThreads();
13733 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
13734
13735 wxPyEndAllowThreads(__tstate);
13736 if (PyErr_Occurred()) SWIG_fail;
13737 }
13738 {
13739 resultobj = wxPyMake_wxObject(result);
13740 }
13741 return resultobj;
13742 fail:
13743 return NULL;
13744 }
13745
13746
13747 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13748 PyObject *resultobj;
13749 wxImageList *arg1 = (wxImageList *) 0 ;
13750 PyObject * obj0 = 0 ;
13751 char *kwnames[] = {
13752 (char *) "self", NULL
13753 };
13754
13755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
13756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13757 {
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 delete arg1;
13760
13761 wxPyEndAllowThreads(__tstate);
13762 if (PyErr_Occurred()) SWIG_fail;
13763 }
13764 Py_INCREF(Py_None); resultobj = Py_None;
13765 return resultobj;
13766 fail:
13767 return NULL;
13768 }
13769
13770
13771 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
13772 PyObject *resultobj;
13773 wxImageList *arg1 = (wxImageList *) 0 ;
13774 wxBitmap *arg2 = 0 ;
13775 wxBitmap const &arg3_defvalue = wxNullBitmap ;
13776 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
13777 int result;
13778 PyObject * obj0 = 0 ;
13779 PyObject * obj1 = 0 ;
13780 PyObject * obj2 = 0 ;
13781 char *kwnames[] = {
13782 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
13783 };
13784
13785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
13786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13787 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13788 if (arg2 == NULL) {
13789 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13790 }
13791 if (obj2) {
13792 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13793 if (arg3 == NULL) {
13794 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13795 }
13796 }
13797 {
13798 PyThreadState* __tstate = wxPyBeginAllowThreads();
13799 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
13800
13801 wxPyEndAllowThreads(__tstate);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 }
13804 resultobj = PyInt_FromLong((long)result);
13805 return resultobj;
13806 fail:
13807 return NULL;
13808 }
13809
13810
13811 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13812 PyObject *resultobj;
13813 wxImageList *arg1 = (wxImageList *) 0 ;
13814 wxBitmap *arg2 = 0 ;
13815 wxColour *arg3 = 0 ;
13816 int result;
13817 wxColour temp3 ;
13818 PyObject * obj0 = 0 ;
13819 PyObject * obj1 = 0 ;
13820 PyObject * obj2 = 0 ;
13821 char *kwnames[] = {
13822 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
13823 };
13824
13825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
13826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13827 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13828 if (arg2 == NULL) {
13829 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13830 }
13831 {
13832 arg3 = &temp3;
13833 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13834 }
13835 {
13836 PyThreadState* __tstate = wxPyBeginAllowThreads();
13837 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
13838
13839 wxPyEndAllowThreads(__tstate);
13840 if (PyErr_Occurred()) SWIG_fail;
13841 }
13842 resultobj = PyInt_FromLong((long)result);
13843 return resultobj;
13844 fail:
13845 return NULL;
13846 }
13847
13848
13849 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13850 PyObject *resultobj;
13851 wxImageList *arg1 = (wxImageList *) 0 ;
13852 wxIcon *arg2 = 0 ;
13853 int result;
13854 PyObject * obj0 = 0 ;
13855 PyObject * obj1 = 0 ;
13856 char *kwnames[] = {
13857 (char *) "self",(char *) "icon", NULL
13858 };
13859
13860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
13861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13862 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13863 if (arg2 == NULL) {
13864 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13865 }
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 result = (int)(arg1)->Add((wxIcon const &)*arg2);
13869
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = PyInt_FromLong((long)result);
13874 return resultobj;
13875 fail:
13876 return NULL;
13877 }
13878
13879
13880 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj;
13882 wxImageList *arg1 = (wxImageList *) 0 ;
13883 int arg2 ;
13884 wxBitmap *arg3 = 0 ;
13885 bool result;
13886 PyObject * obj0 = 0 ;
13887 PyObject * obj2 = 0 ;
13888 char *kwnames[] = {
13889 (char *) "self",(char *) "index",(char *) "bitmap", NULL
13890 };
13891
13892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
13893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13894 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13895 if (arg3 == NULL) {
13896 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13897 }
13898 {
13899 PyThreadState* __tstate = wxPyBeginAllowThreads();
13900 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
13901
13902 wxPyEndAllowThreads(__tstate);
13903 if (PyErr_Occurred()) SWIG_fail;
13904 }
13905 resultobj = PyInt_FromLong((long)result);
13906 return resultobj;
13907 fail:
13908 return NULL;
13909 }
13910
13911
13912 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
13913 PyObject *resultobj;
13914 wxImageList *arg1 = (wxImageList *) 0 ;
13915 int arg2 ;
13916 wxDC *arg3 = 0 ;
13917 int arg4 ;
13918 int arg5 ;
13919 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
13920 bool arg7 = (bool) (bool)False ;
13921 bool result;
13922 PyObject * obj0 = 0 ;
13923 PyObject * obj2 = 0 ;
13924 PyObject * obj6 = 0 ;
13925 char *kwnames[] = {
13926 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
13927 };
13928
13929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
13930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13931 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13932 if (arg3 == NULL) {
13933 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13934 }
13935 if (obj6) {
13936 arg7 = PyInt_AsLong(obj6) ? true : false;
13937 if (PyErr_Occurred()) SWIG_fail;
13938 }
13939 {
13940 PyThreadState* __tstate = wxPyBeginAllowThreads();
13941 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
13942
13943 wxPyEndAllowThreads(__tstate);
13944 if (PyErr_Occurred()) SWIG_fail;
13945 }
13946 resultobj = PyInt_FromLong((long)result);
13947 return resultobj;
13948 fail:
13949 return NULL;
13950 }
13951
13952
13953 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13954 PyObject *resultobj;
13955 wxImageList *arg1 = (wxImageList *) 0 ;
13956 int result;
13957 PyObject * obj0 = 0 ;
13958 char *kwnames[] = {
13959 (char *) "self", NULL
13960 };
13961
13962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
13963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13964 {
13965 PyThreadState* __tstate = wxPyBeginAllowThreads();
13966 result = (int)(arg1)->GetImageCount();
13967
13968 wxPyEndAllowThreads(__tstate);
13969 if (PyErr_Occurred()) SWIG_fail;
13970 }
13971 resultobj = PyInt_FromLong((long)result);
13972 return resultobj;
13973 fail:
13974 return NULL;
13975 }
13976
13977
13978 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
13979 PyObject *resultobj;
13980 wxImageList *arg1 = (wxImageList *) 0 ;
13981 int arg2 ;
13982 bool result;
13983 PyObject * obj0 = 0 ;
13984 char *kwnames[] = {
13985 (char *) "self",(char *) "index", NULL
13986 };
13987
13988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
13989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 result = (bool)(arg1)->Remove(arg2);
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 resultobj = PyInt_FromLong((long)result);
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj;
14006 wxImageList *arg1 = (wxImageList *) 0 ;
14007 bool result;
14008 PyObject * obj0 = 0 ;
14009 char *kwnames[] = {
14010 (char *) "self", NULL
14011 };
14012
14013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14015 {
14016 PyThreadState* __tstate = wxPyBeginAllowThreads();
14017 result = (bool)(arg1)->RemoveAll();
14018
14019 wxPyEndAllowThreads(__tstate);
14020 if (PyErr_Occurred()) SWIG_fail;
14021 }
14022 resultobj = PyInt_FromLong((long)result);
14023 return resultobj;
14024 fail:
14025 return NULL;
14026 }
14027
14028
14029 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14030 PyObject *resultobj;
14031 wxImageList *arg1 = (wxImageList *) 0 ;
14032 int arg2 ;
14033 int *arg3 = 0 ;
14034 int *arg4 = 0 ;
14035 int temp3 ;
14036 int temp4 ;
14037 PyObject * obj0 = 0 ;
14038 char *kwnames[] = {
14039 (char *) "self",(char *) "index", NULL
14040 };
14041
14042 arg3 = &temp3;
14043 arg4 = &temp4;
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 (arg1)->GetSize(arg2,*arg3,*arg4);
14049
14050 wxPyEndAllowThreads(__tstate);
14051 if (PyErr_Occurred()) SWIG_fail;
14052 }
14053 Py_INCREF(Py_None); resultobj = Py_None;
14054 {
14055 PyObject *o = PyInt_FromLong((long) (*arg3));
14056 resultobj = t_output_helper(resultobj,o);
14057 }
14058 {
14059 PyObject *o = PyInt_FromLong((long) (*arg4));
14060 resultobj = t_output_helper(resultobj,o);
14061 }
14062 return resultobj;
14063 fail:
14064 return NULL;
14065 }
14066
14067
14068 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14069 PyObject *obj;
14070 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14071 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14072 Py_INCREF(obj);
14073 return Py_BuildValue((char *)"");
14074 }
14075 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14076 PyObject *resultobj;
14077 wxPenList *arg1 = (wxPenList *) 0 ;
14078 wxPen *arg2 = (wxPen *) 0 ;
14079 PyObject * obj0 = 0 ;
14080 PyObject * obj1 = 0 ;
14081 char *kwnames[] = {
14082 (char *) "self",(char *) "pen", NULL
14083 };
14084
14085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14087 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14088 {
14089 PyThreadState* __tstate = wxPyBeginAllowThreads();
14090 (arg1)->AddPen(arg2);
14091
14092 wxPyEndAllowThreads(__tstate);
14093 if (PyErr_Occurred()) SWIG_fail;
14094 }
14095 Py_INCREF(Py_None); resultobj = Py_None;
14096 return resultobj;
14097 fail:
14098 return NULL;
14099 }
14100
14101
14102 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14103 PyObject *resultobj;
14104 wxPenList *arg1 = (wxPenList *) 0 ;
14105 wxColour *arg2 = 0 ;
14106 int arg3 ;
14107 int arg4 ;
14108 wxPen *result;
14109 wxColour temp2 ;
14110 PyObject * obj0 = 0 ;
14111 PyObject * obj1 = 0 ;
14112 char *kwnames[] = {
14113 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14114 };
14115
14116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14118 {
14119 arg2 = &temp2;
14120 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14121 }
14122 {
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14125
14126 wxPyEndAllowThreads(__tstate);
14127 if (PyErr_Occurred()) SWIG_fail;
14128 }
14129 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14130 return resultobj;
14131 fail:
14132 return NULL;
14133 }
14134
14135
14136 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14137 PyObject *resultobj;
14138 wxPenList *arg1 = (wxPenList *) 0 ;
14139 wxPen *arg2 = (wxPen *) 0 ;
14140 PyObject * obj0 = 0 ;
14141 PyObject * obj1 = 0 ;
14142 char *kwnames[] = {
14143 (char *) "self",(char *) "pen", NULL
14144 };
14145
14146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14148 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14149 {
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 (arg1)->RemovePen(arg2);
14152
14153 wxPyEndAllowThreads(__tstate);
14154 if (PyErr_Occurred()) SWIG_fail;
14155 }
14156 Py_INCREF(Py_None); resultobj = Py_None;
14157 return resultobj;
14158 fail:
14159 return NULL;
14160 }
14161
14162
14163 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14164 PyObject *resultobj;
14165 wxPenList *arg1 = (wxPenList *) 0 ;
14166 int result;
14167 PyObject * obj0 = 0 ;
14168 char *kwnames[] = {
14169 (char *) "self", NULL
14170 };
14171
14172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14174 {
14175 PyThreadState* __tstate = wxPyBeginAllowThreads();
14176 result = (int)(arg1)->GetCount();
14177
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 resultobj = PyInt_FromLong((long)result);
14182 return resultobj;
14183 fail:
14184 return NULL;
14185 }
14186
14187
14188 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14189 PyObject *obj;
14190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14191 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14192 Py_INCREF(obj);
14193 return Py_BuildValue((char *)"");
14194 }
14195 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14196 PyObject *resultobj;
14197 wxBrushList *arg1 = (wxBrushList *) 0 ;
14198 wxBrush *arg2 = (wxBrush *) 0 ;
14199 PyObject * obj0 = 0 ;
14200 PyObject * obj1 = 0 ;
14201 char *kwnames[] = {
14202 (char *) "self",(char *) "brush", NULL
14203 };
14204
14205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14207 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14208 {
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
14210 (arg1)->AddBrush(arg2);
14211
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 Py_INCREF(Py_None); resultobj = Py_None;
14216 return resultobj;
14217 fail:
14218 return NULL;
14219 }
14220
14221
14222 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14223 PyObject *resultobj;
14224 wxBrushList *arg1 = (wxBrushList *) 0 ;
14225 wxColour *arg2 = 0 ;
14226 int arg3 ;
14227 wxBrush *result;
14228 wxColour temp2 ;
14229 PyObject * obj0 = 0 ;
14230 PyObject * obj1 = 0 ;
14231 char *kwnames[] = {
14232 (char *) "self",(char *) "colour",(char *) "style", NULL
14233 };
14234
14235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14237 {
14238 arg2 = &temp2;
14239 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14240 }
14241 {
14242 PyThreadState* __tstate = wxPyBeginAllowThreads();
14243 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14244
14245 wxPyEndAllowThreads(__tstate);
14246 if (PyErr_Occurred()) SWIG_fail;
14247 }
14248 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14249 return resultobj;
14250 fail:
14251 return NULL;
14252 }
14253
14254
14255 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14256 PyObject *resultobj;
14257 wxBrushList *arg1 = (wxBrushList *) 0 ;
14258 wxBrush *arg2 = (wxBrush *) 0 ;
14259 PyObject * obj0 = 0 ;
14260 PyObject * obj1 = 0 ;
14261 char *kwnames[] = {
14262 (char *) "self",(char *) "brush", NULL
14263 };
14264
14265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14267 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14268 {
14269 PyThreadState* __tstate = wxPyBeginAllowThreads();
14270 (arg1)->RemoveBrush(arg2);
14271
14272 wxPyEndAllowThreads(__tstate);
14273 if (PyErr_Occurred()) SWIG_fail;
14274 }
14275 Py_INCREF(Py_None); resultobj = Py_None;
14276 return resultobj;
14277 fail:
14278 return NULL;
14279 }
14280
14281
14282 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14283 PyObject *resultobj;
14284 wxBrushList *arg1 = (wxBrushList *) 0 ;
14285 int result;
14286 PyObject * obj0 = 0 ;
14287 char *kwnames[] = {
14288 (char *) "self", NULL
14289 };
14290
14291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 result = (int)(arg1)->GetCount();
14296
14297 wxPyEndAllowThreads(__tstate);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 }
14300 resultobj = PyInt_FromLong((long)result);
14301 return resultobj;
14302 fail:
14303 return NULL;
14304 }
14305
14306
14307 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14308 PyObject *obj;
14309 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14310 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14311 Py_INCREF(obj);
14312 return Py_BuildValue((char *)"");
14313 }
14314 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14315 PyObject *resultobj;
14316 wxColourDatabase *result;
14317 char *kwnames[] = {
14318 NULL
14319 };
14320
14321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14322 {
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 result = (wxColourDatabase *)new wxColourDatabase();
14325
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14330 return resultobj;
14331 fail:
14332 return NULL;
14333 }
14334
14335
14336 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14337 PyObject *resultobj;
14338 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14339 PyObject * obj0 = 0 ;
14340 char *kwnames[] = {
14341 (char *) "self", NULL
14342 };
14343
14344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14346 {
14347 PyThreadState* __tstate = wxPyBeginAllowThreads();
14348 delete arg1;
14349
14350 wxPyEndAllowThreads(__tstate);
14351 if (PyErr_Occurred()) SWIG_fail;
14352 }
14353 Py_INCREF(Py_None); resultobj = Py_None;
14354 return resultobj;
14355 fail:
14356 return NULL;
14357 }
14358
14359
14360 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14361 PyObject *resultobj;
14362 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14363 wxString *arg2 = 0 ;
14364 wxColour result;
14365 bool temp2 = False ;
14366 PyObject * obj0 = 0 ;
14367 PyObject * obj1 = 0 ;
14368 char *kwnames[] = {
14369 (char *) "self",(char *) "name", NULL
14370 };
14371
14372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14374 {
14375 arg2 = wxString_in_helper(obj1);
14376 if (arg2 == NULL) SWIG_fail;
14377 temp2 = True;
14378 }
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14382
14383 wxPyEndAllowThreads(__tstate);
14384 if (PyErr_Occurred()) SWIG_fail;
14385 }
14386 {
14387 wxColour * resultptr;
14388 resultptr = new wxColour((wxColour &) result);
14389 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14390 }
14391 {
14392 if (temp2)
14393 delete arg2;
14394 }
14395 return resultobj;
14396 fail:
14397 {
14398 if (temp2)
14399 delete arg2;
14400 }
14401 return NULL;
14402 }
14403
14404
14405 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14406 PyObject *resultobj;
14407 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14408 wxColour *arg2 = 0 ;
14409 wxString result;
14410 wxColour temp2 ;
14411 PyObject * obj0 = 0 ;
14412 PyObject * obj1 = 0 ;
14413 char *kwnames[] = {
14414 (char *) "self",(char *) "colour", NULL
14415 };
14416
14417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14419 {
14420 arg2 = &temp2;
14421 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14422 }
14423 {
14424 PyThreadState* __tstate = wxPyBeginAllowThreads();
14425 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14426
14427 wxPyEndAllowThreads(__tstate);
14428 if (PyErr_Occurred()) SWIG_fail;
14429 }
14430 {
14431 #if wxUSE_UNICODE
14432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14433 #else
14434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14435 #endif
14436 }
14437 return resultobj;
14438 fail:
14439 return NULL;
14440 }
14441
14442
14443 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj;
14445 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14446 wxString *arg2 = 0 ;
14447 wxColour *arg3 = 0 ;
14448 bool temp2 = False ;
14449 wxColour temp3 ;
14450 PyObject * obj0 = 0 ;
14451 PyObject * obj1 = 0 ;
14452 PyObject * obj2 = 0 ;
14453 char *kwnames[] = {
14454 (char *) "self",(char *) "name",(char *) "colour", NULL
14455 };
14456
14457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14459 {
14460 arg2 = wxString_in_helper(obj1);
14461 if (arg2 == NULL) SWIG_fail;
14462 temp2 = True;
14463 }
14464 {
14465 arg3 = &temp3;
14466 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14467 }
14468 {
14469 PyThreadState* __tstate = wxPyBeginAllowThreads();
14470 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14471
14472 wxPyEndAllowThreads(__tstate);
14473 if (PyErr_Occurred()) SWIG_fail;
14474 }
14475 Py_INCREF(Py_None); resultobj = Py_None;
14476 {
14477 if (temp2)
14478 delete arg2;
14479 }
14480 return resultobj;
14481 fail:
14482 {
14483 if (temp2)
14484 delete arg2;
14485 }
14486 return NULL;
14487 }
14488
14489
14490 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14491 PyObject *resultobj;
14492 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14493 wxString *arg2 = 0 ;
14494 int arg3 ;
14495 int arg4 ;
14496 int arg5 ;
14497 bool temp2 = False ;
14498 PyObject * obj0 = 0 ;
14499 PyObject * obj1 = 0 ;
14500 char *kwnames[] = {
14501 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14502 };
14503
14504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14506 {
14507 arg2 = wxString_in_helper(obj1);
14508 if (arg2 == NULL) SWIG_fail;
14509 temp2 = True;
14510 }
14511 {
14512 PyThreadState* __tstate = wxPyBeginAllowThreads();
14513 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14514
14515 wxPyEndAllowThreads(__tstate);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
14518 Py_INCREF(Py_None); resultobj = Py_None;
14519 {
14520 if (temp2)
14521 delete arg2;
14522 }
14523 return resultobj;
14524 fail:
14525 {
14526 if (temp2)
14527 delete arg2;
14528 }
14529 return NULL;
14530 }
14531
14532
14533 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14534 PyObject *obj;
14535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14536 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14537 Py_INCREF(obj);
14538 return Py_BuildValue((char *)"");
14539 }
14540 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj;
14542 wxFontList *arg1 = (wxFontList *) 0 ;
14543 wxFont *arg2 = (wxFont *) 0 ;
14544 PyObject * obj0 = 0 ;
14545 PyObject * obj1 = 0 ;
14546 char *kwnames[] = {
14547 (char *) "self",(char *) "font", NULL
14548 };
14549
14550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14552 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14553 {
14554 PyThreadState* __tstate = wxPyBeginAllowThreads();
14555 (arg1)->AddFont(arg2);
14556
14557 wxPyEndAllowThreads(__tstate);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 }
14560 Py_INCREF(Py_None); resultobj = Py_None;
14561 return resultobj;
14562 fail:
14563 return NULL;
14564 }
14565
14566
14567 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14568 PyObject *resultobj;
14569 wxFontList *arg1 = (wxFontList *) 0 ;
14570 int arg2 ;
14571 int arg3 ;
14572 int arg4 ;
14573 int arg5 ;
14574 bool arg6 = (bool) False ;
14575 wxString const &arg7_defvalue = wxPyEmptyString ;
14576 wxString *arg7 = (wxString *) &arg7_defvalue ;
14577 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14578 wxFont *result;
14579 bool temp7 = False ;
14580 PyObject * obj0 = 0 ;
14581 PyObject * obj5 = 0 ;
14582 PyObject * obj6 = 0 ;
14583 char *kwnames[] = {
14584 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14585 };
14586
14587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14589 if (obj5) {
14590 arg6 = PyInt_AsLong(obj5) ? true : false;
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 if (obj6) {
14594 {
14595 arg7 = wxString_in_helper(obj6);
14596 if (arg7 == NULL) SWIG_fail;
14597 temp7 = True;
14598 }
14599 }
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14603
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14608 {
14609 if (temp7)
14610 delete arg7;
14611 }
14612 return resultobj;
14613 fail:
14614 {
14615 if (temp7)
14616 delete arg7;
14617 }
14618 return NULL;
14619 }
14620
14621
14622 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14623 PyObject *resultobj;
14624 wxFontList *arg1 = (wxFontList *) 0 ;
14625 wxFont *arg2 = (wxFont *) 0 ;
14626 PyObject * obj0 = 0 ;
14627 PyObject * obj1 = 0 ;
14628 char *kwnames[] = {
14629 (char *) "self",(char *) "font", NULL
14630 };
14631
14632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14634 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14635 {
14636 PyThreadState* __tstate = wxPyBeginAllowThreads();
14637 (arg1)->RemoveFont(arg2);
14638
14639 wxPyEndAllowThreads(__tstate);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 }
14642 Py_INCREF(Py_None); resultobj = Py_None;
14643 return resultobj;
14644 fail:
14645 return NULL;
14646 }
14647
14648
14649 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14650 PyObject *resultobj;
14651 wxFontList *arg1 = (wxFontList *) 0 ;
14652 int result;
14653 PyObject * obj0 = 0 ;
14654 char *kwnames[] = {
14655 (char *) "self", NULL
14656 };
14657
14658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14660 {
14661 PyThreadState* __tstate = wxPyBeginAllowThreads();
14662 result = (int)(arg1)->GetCount();
14663
14664 wxPyEndAllowThreads(__tstate);
14665 if (PyErr_Occurred()) SWIG_fail;
14666 }
14667 resultobj = PyInt_FromLong((long)result);
14668 return resultobj;
14669 fail:
14670 return NULL;
14671 }
14672
14673
14674 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14675 PyObject *obj;
14676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14677 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14678 Py_INCREF(obj);
14679 return Py_BuildValue((char *)"");
14680 }
14681 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14682 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14683 return 1;
14684 }
14685
14686
14687 static PyObject *_wrap_NORMAL_FONT_get() {
14688 PyObject *pyobj;
14689
14690 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
14691 return pyobj;
14692 }
14693
14694
14695 static int _wrap_SMALL_FONT_set(PyObject *_val) {
14696 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
14697 return 1;
14698 }
14699
14700
14701 static PyObject *_wrap_SMALL_FONT_get() {
14702 PyObject *pyobj;
14703
14704 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
14705 return pyobj;
14706 }
14707
14708
14709 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
14710 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
14711 return 1;
14712 }
14713
14714
14715 static PyObject *_wrap_ITALIC_FONT_get() {
14716 PyObject *pyobj;
14717
14718 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
14719 return pyobj;
14720 }
14721
14722
14723 static int _wrap_SWISS_FONT_set(PyObject *_val) {
14724 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
14725 return 1;
14726 }
14727
14728
14729 static PyObject *_wrap_SWISS_FONT_get() {
14730 PyObject *pyobj;
14731
14732 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
14733 return pyobj;
14734 }
14735
14736
14737 static int _wrap_RED_PEN_set(PyObject *_val) {
14738 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
14739 return 1;
14740 }
14741
14742
14743 static PyObject *_wrap_RED_PEN_get() {
14744 PyObject *pyobj;
14745
14746 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
14747 return pyobj;
14748 }
14749
14750
14751 static int _wrap_CYAN_PEN_set(PyObject *_val) {
14752 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
14753 return 1;
14754 }
14755
14756
14757 static PyObject *_wrap_CYAN_PEN_get() {
14758 PyObject *pyobj;
14759
14760 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
14761 return pyobj;
14762 }
14763
14764
14765 static int _wrap_GREEN_PEN_set(PyObject *_val) {
14766 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
14767 return 1;
14768 }
14769
14770
14771 static PyObject *_wrap_GREEN_PEN_get() {
14772 PyObject *pyobj;
14773
14774 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
14775 return pyobj;
14776 }
14777
14778
14779 static int _wrap_BLACK_PEN_set(PyObject *_val) {
14780 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
14781 return 1;
14782 }
14783
14784
14785 static PyObject *_wrap_BLACK_PEN_get() {
14786 PyObject *pyobj;
14787
14788 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
14789 return pyobj;
14790 }
14791
14792
14793 static int _wrap_WHITE_PEN_set(PyObject *_val) {
14794 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
14795 return 1;
14796 }
14797
14798
14799 static PyObject *_wrap_WHITE_PEN_get() {
14800 PyObject *pyobj;
14801
14802 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
14803 return pyobj;
14804 }
14805
14806
14807 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
14808 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
14809 return 1;
14810 }
14811
14812
14813 static PyObject *_wrap_TRANSPARENT_PEN_get() {
14814 PyObject *pyobj;
14815
14816 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
14817 return pyobj;
14818 }
14819
14820
14821 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
14822 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
14823 return 1;
14824 }
14825
14826
14827 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
14828 PyObject *pyobj;
14829
14830 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
14831 return pyobj;
14832 }
14833
14834
14835 static int _wrap_GREY_PEN_set(PyObject *_val) {
14836 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
14837 return 1;
14838 }
14839
14840
14841 static PyObject *_wrap_GREY_PEN_get() {
14842 PyObject *pyobj;
14843
14844 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
14845 return pyobj;
14846 }
14847
14848
14849 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
14850 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
14851 return 1;
14852 }
14853
14854
14855 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
14856 PyObject *pyobj;
14857
14858 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14859 return pyobj;
14860 }
14861
14862
14863 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
14864 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
14865 return 1;
14866 }
14867
14868
14869 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
14870 PyObject *pyobj;
14871
14872 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14873 return pyobj;
14874 }
14875
14876
14877 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
14878 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
14879 return 1;
14880 }
14881
14882
14883 static PyObject *_wrap_BLUE_BRUSH_get() {
14884 PyObject *pyobj;
14885
14886 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14887 return pyobj;
14888 }
14889
14890
14891 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
14892 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
14893 return 1;
14894 }
14895
14896
14897 static PyObject *_wrap_GREEN_BRUSH_get() {
14898 PyObject *pyobj;
14899
14900 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14901 return pyobj;
14902 }
14903
14904
14905 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
14906 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
14907 return 1;
14908 }
14909
14910
14911 static PyObject *_wrap_WHITE_BRUSH_get() {
14912 PyObject *pyobj;
14913
14914 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14915 return pyobj;
14916 }
14917
14918
14919 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
14920 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
14921 return 1;
14922 }
14923
14924
14925 static PyObject *_wrap_BLACK_BRUSH_get() {
14926 PyObject *pyobj;
14927
14928 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
14929 return pyobj;
14930 }
14931
14932
14933 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
14934 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
14935 return 1;
14936 }
14937
14938
14939 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
14940 PyObject *pyobj;
14941
14942 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
14943 return pyobj;
14944 }
14945
14946
14947 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
14948 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
14949 return 1;
14950 }
14951
14952
14953 static PyObject *_wrap_CYAN_BRUSH_get() {
14954 PyObject *pyobj;
14955
14956 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14957 return pyobj;
14958 }
14959
14960
14961 static int _wrap_RED_BRUSH_set(PyObject *_val) {
14962 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
14963 return 1;
14964 }
14965
14966
14967 static PyObject *_wrap_RED_BRUSH_get() {
14968 PyObject *pyobj;
14969
14970 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
14971 return pyobj;
14972 }
14973
14974
14975 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
14976 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
14977 return 1;
14978 }
14979
14980
14981 static PyObject *_wrap_GREY_BRUSH_get() {
14982 PyObject *pyobj;
14983
14984 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14985 return pyobj;
14986 }
14987
14988
14989 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
14990 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
14991 return 1;
14992 }
14993
14994
14995 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
14996 PyObject *pyobj;
14997
14998 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14999 return pyobj;
15000 }
15001
15002
15003 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15004 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15005 return 1;
15006 }
15007
15008
15009 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15010 PyObject *pyobj;
15011
15012 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15013 return pyobj;
15014 }
15015
15016
15017 static int _wrap_BLACK_set(PyObject *_val) {
15018 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15019 return 1;
15020 }
15021
15022
15023 static PyObject *_wrap_BLACK_get() {
15024 PyObject *pyobj;
15025
15026 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15027 return pyobj;
15028 }
15029
15030
15031 static int _wrap_WHITE_set(PyObject *_val) {
15032 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15033 return 1;
15034 }
15035
15036
15037 static PyObject *_wrap_WHITE_get() {
15038 PyObject *pyobj;
15039
15040 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15041 return pyobj;
15042 }
15043
15044
15045 static int _wrap_RED_set(PyObject *_val) {
15046 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15047 return 1;
15048 }
15049
15050
15051 static PyObject *_wrap_RED_get() {
15052 PyObject *pyobj;
15053
15054 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15055 return pyobj;
15056 }
15057
15058
15059 static int _wrap_BLUE_set(PyObject *_val) {
15060 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15061 return 1;
15062 }
15063
15064
15065 static PyObject *_wrap_BLUE_get() {
15066 PyObject *pyobj;
15067
15068 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15069 return pyobj;
15070 }
15071
15072
15073 static int _wrap_GREEN_set(PyObject *_val) {
15074 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15075 return 1;
15076 }
15077
15078
15079 static PyObject *_wrap_GREEN_get() {
15080 PyObject *pyobj;
15081
15082 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15083 return pyobj;
15084 }
15085
15086
15087 static int _wrap_CYAN_set(PyObject *_val) {
15088 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15089 return 1;
15090 }
15091
15092
15093 static PyObject *_wrap_CYAN_get() {
15094 PyObject *pyobj;
15095
15096 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15097 return pyobj;
15098 }
15099
15100
15101 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15102 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15103 return 1;
15104 }
15105
15106
15107 static PyObject *_wrap_LIGHT_GREY_get() {
15108 PyObject *pyobj;
15109
15110 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15111 return pyobj;
15112 }
15113
15114
15115 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15116 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15117 return 1;
15118 }
15119
15120
15121 static PyObject *_wrap_STANDARD_CURSOR_get() {
15122 PyObject *pyobj;
15123
15124 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15125 return pyobj;
15126 }
15127
15128
15129 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15130 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15131 return 1;
15132 }
15133
15134
15135 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15136 PyObject *pyobj;
15137
15138 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15139 return pyobj;
15140 }
15141
15142
15143 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15144 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15145 return 1;
15146 }
15147
15148
15149 static PyObject *_wrap_CROSS_CURSOR_get() {
15150 PyObject *pyobj;
15151
15152 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15153 return pyobj;
15154 }
15155
15156
15157 static int _wrap_NullBitmap_set(PyObject *_val) {
15158 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15159 return 1;
15160 }
15161
15162
15163 static PyObject *_wrap_NullBitmap_get() {
15164 PyObject *pyobj;
15165
15166 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15167 return pyobj;
15168 }
15169
15170
15171 static int _wrap_NullIcon_set(PyObject *_val) {
15172 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15173 return 1;
15174 }
15175
15176
15177 static PyObject *_wrap_NullIcon_get() {
15178 PyObject *pyobj;
15179
15180 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15181 return pyobj;
15182 }
15183
15184
15185 static int _wrap_NullCursor_set(PyObject *_val) {
15186 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15187 return 1;
15188 }
15189
15190
15191 static PyObject *_wrap_NullCursor_get() {
15192 PyObject *pyobj;
15193
15194 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15195 return pyobj;
15196 }
15197
15198
15199 static int _wrap_NullPen_set(PyObject *_val) {
15200 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15201 return 1;
15202 }
15203
15204
15205 static PyObject *_wrap_NullPen_get() {
15206 PyObject *pyobj;
15207
15208 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15209 return pyobj;
15210 }
15211
15212
15213 static int _wrap_NullBrush_set(PyObject *_val) {
15214 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15215 return 1;
15216 }
15217
15218
15219 static PyObject *_wrap_NullBrush_get() {
15220 PyObject *pyobj;
15221
15222 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15223 return pyobj;
15224 }
15225
15226
15227 static int _wrap_NullPalette_set(PyObject *_val) {
15228 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15229 return 1;
15230 }
15231
15232
15233 static PyObject *_wrap_NullPalette_get() {
15234 PyObject *pyobj;
15235
15236 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15237 return pyobj;
15238 }
15239
15240
15241 static int _wrap_NullFont_set(PyObject *_val) {
15242 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15243 return 1;
15244 }
15245
15246
15247 static PyObject *_wrap_NullFont_get() {
15248 PyObject *pyobj;
15249
15250 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15251 return pyobj;
15252 }
15253
15254
15255 static int _wrap_NullColour_set(PyObject *_val) {
15256 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15257 return 1;
15258 }
15259
15260
15261 static PyObject *_wrap_NullColour_get() {
15262 PyObject *pyobj;
15263
15264 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15265 return pyobj;
15266 }
15267
15268
15269 static int _wrap_TheFontList_set(PyObject *_val) {
15270 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15271 return 1;
15272 }
15273
15274
15275 static PyObject *_wrap_TheFontList_get() {
15276 PyObject *pyobj;
15277
15278 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15279 return pyobj;
15280 }
15281
15282
15283 static int _wrap_ThePenList_set(PyObject *_val) {
15284 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15285 return 1;
15286 }
15287
15288
15289 static PyObject *_wrap_ThePenList_get() {
15290 PyObject *pyobj;
15291
15292 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15293 return pyobj;
15294 }
15295
15296
15297 static int _wrap_TheBrushList_set(PyObject *_val) {
15298 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15299 return 1;
15300 }
15301
15302
15303 static PyObject *_wrap_TheBrushList_get() {
15304 PyObject *pyobj;
15305
15306 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15307 return pyobj;
15308 }
15309
15310
15311 static int _wrap_TheColourDatabase_set(PyObject *_val) {
15312 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15313 return 1;
15314 }
15315
15316
15317 static PyObject *_wrap_TheColourDatabase_get() {
15318 PyObject *pyobj;
15319
15320 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15321 return pyobj;
15322 }
15323
15324
15325 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
15326 PyObject *resultobj;
15327 wxEffects *result;
15328 char *kwnames[] = {
15329 NULL
15330 };
15331
15332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
15333 {
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
15335 result = (wxEffects *)new wxEffects();
15336
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
15341 return resultobj;
15342 fail:
15343 return NULL;
15344 }
15345
15346
15347 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15348 PyObject *resultobj;
15349 wxEffects *arg1 = (wxEffects *) 0 ;
15350 wxColour result;
15351 PyObject * obj0 = 0 ;
15352 char *kwnames[] = {
15353 (char *) "self", NULL
15354 };
15355
15356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15358 {
15359 PyThreadState* __tstate = wxPyBeginAllowThreads();
15360 result = ((wxEffects const *)arg1)->GetHighlightColour();
15361
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 {
15366 wxColour * resultptr;
15367 resultptr = new wxColour((wxColour &) result);
15368 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15369 }
15370 return resultobj;
15371 fail:
15372 return NULL;
15373 }
15374
15375
15376 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15377 PyObject *resultobj;
15378 wxEffects *arg1 = (wxEffects *) 0 ;
15379 wxColour result;
15380 PyObject * obj0 = 0 ;
15381 char *kwnames[] = {
15382 (char *) "self", NULL
15383 };
15384
15385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15387 {
15388 PyThreadState* __tstate = wxPyBeginAllowThreads();
15389 result = ((wxEffects const *)arg1)->GetLightShadow();
15390
15391 wxPyEndAllowThreads(__tstate);
15392 if (PyErr_Occurred()) SWIG_fail;
15393 }
15394 {
15395 wxColour * resultptr;
15396 resultptr = new wxColour((wxColour &) result);
15397 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15398 }
15399 return resultobj;
15400 fail:
15401 return NULL;
15402 }
15403
15404
15405 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15406 PyObject *resultobj;
15407 wxEffects *arg1 = (wxEffects *) 0 ;
15408 wxColour result;
15409 PyObject * obj0 = 0 ;
15410 char *kwnames[] = {
15411 (char *) "self", NULL
15412 };
15413
15414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 result = ((wxEffects const *)arg1)->GetFaceColour();
15419
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 {
15424 wxColour * resultptr;
15425 resultptr = new wxColour((wxColour &) result);
15426 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15427 }
15428 return resultobj;
15429 fail:
15430 return NULL;
15431 }
15432
15433
15434 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15435 PyObject *resultobj;
15436 wxEffects *arg1 = (wxEffects *) 0 ;
15437 wxColour result;
15438 PyObject * obj0 = 0 ;
15439 char *kwnames[] = {
15440 (char *) "self", NULL
15441 };
15442
15443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15445 {
15446 PyThreadState* __tstate = wxPyBeginAllowThreads();
15447 result = ((wxEffects const *)arg1)->GetMediumShadow();
15448
15449 wxPyEndAllowThreads(__tstate);
15450 if (PyErr_Occurred()) SWIG_fail;
15451 }
15452 {
15453 wxColour * resultptr;
15454 resultptr = new wxColour((wxColour &) result);
15455 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15456 }
15457 return resultobj;
15458 fail:
15459 return NULL;
15460 }
15461
15462
15463 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15464 PyObject *resultobj;
15465 wxEffects *arg1 = (wxEffects *) 0 ;
15466 wxColour result;
15467 PyObject * obj0 = 0 ;
15468 char *kwnames[] = {
15469 (char *) "self", NULL
15470 };
15471
15472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15474 {
15475 PyThreadState* __tstate = wxPyBeginAllowThreads();
15476 result = ((wxEffects const *)arg1)->GetDarkShadow();
15477
15478 wxPyEndAllowThreads(__tstate);
15479 if (PyErr_Occurred()) SWIG_fail;
15480 }
15481 {
15482 wxColour * resultptr;
15483 resultptr = new wxColour((wxColour &) result);
15484 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15485 }
15486 return resultobj;
15487 fail:
15488 return NULL;
15489 }
15490
15491
15492 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15493 PyObject *resultobj;
15494 wxEffects *arg1 = (wxEffects *) 0 ;
15495 wxColour *arg2 = 0 ;
15496 wxColour temp2 ;
15497 PyObject * obj0 = 0 ;
15498 PyObject * obj1 = 0 ;
15499 char *kwnames[] = {
15500 (char *) "self",(char *) "c", NULL
15501 };
15502
15503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15505 {
15506 arg2 = &temp2;
15507 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15508 }
15509 {
15510 PyThreadState* __tstate = wxPyBeginAllowThreads();
15511 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15512
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 Py_INCREF(Py_None); resultobj = Py_None;
15517 return resultobj;
15518 fail:
15519 return NULL;
15520 }
15521
15522
15523 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15524 PyObject *resultobj;
15525 wxEffects *arg1 = (wxEffects *) 0 ;
15526 wxColour *arg2 = 0 ;
15527 wxColour temp2 ;
15528 PyObject * obj0 = 0 ;
15529 PyObject * obj1 = 0 ;
15530 char *kwnames[] = {
15531 (char *) "self",(char *) "c", NULL
15532 };
15533
15534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15536 {
15537 arg2 = &temp2;
15538 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15539 }
15540 {
15541 PyThreadState* __tstate = wxPyBeginAllowThreads();
15542 (arg1)->SetLightShadow((wxColour const &)*arg2);
15543
15544 wxPyEndAllowThreads(__tstate);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 Py_INCREF(Py_None); resultobj = Py_None;
15548 return resultobj;
15549 fail:
15550 return NULL;
15551 }
15552
15553
15554 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15555 PyObject *resultobj;
15556 wxEffects *arg1 = (wxEffects *) 0 ;
15557 wxColour *arg2 = 0 ;
15558 wxColour temp2 ;
15559 PyObject * obj0 = 0 ;
15560 PyObject * obj1 = 0 ;
15561 char *kwnames[] = {
15562 (char *) "self",(char *) "c", NULL
15563 };
15564
15565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15567 {
15568 arg2 = &temp2;
15569 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15570 }
15571 {
15572 PyThreadState* __tstate = wxPyBeginAllowThreads();
15573 (arg1)->SetFaceColour((wxColour const &)*arg2);
15574
15575 wxPyEndAllowThreads(__tstate);
15576 if (PyErr_Occurred()) SWIG_fail;
15577 }
15578 Py_INCREF(Py_None); resultobj = Py_None;
15579 return resultobj;
15580 fail:
15581 return NULL;
15582 }
15583
15584
15585 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15586 PyObject *resultobj;
15587 wxEffects *arg1 = (wxEffects *) 0 ;
15588 wxColour *arg2 = 0 ;
15589 wxColour temp2 ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 char *kwnames[] = {
15593 (char *) "self",(char *) "c", NULL
15594 };
15595
15596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15598 {
15599 arg2 = &temp2;
15600 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15601 }
15602 {
15603 PyThreadState* __tstate = wxPyBeginAllowThreads();
15604 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15605
15606 wxPyEndAllowThreads(__tstate);
15607 if (PyErr_Occurred()) SWIG_fail;
15608 }
15609 Py_INCREF(Py_None); resultobj = Py_None;
15610 return resultobj;
15611 fail:
15612 return NULL;
15613 }
15614
15615
15616 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15617 PyObject *resultobj;
15618 wxEffects *arg1 = (wxEffects *) 0 ;
15619 wxColour *arg2 = 0 ;
15620 wxColour temp2 ;
15621 PyObject * obj0 = 0 ;
15622 PyObject * obj1 = 0 ;
15623 char *kwnames[] = {
15624 (char *) "self",(char *) "c", NULL
15625 };
15626
15627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15629 {
15630 arg2 = &temp2;
15631 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15632 }
15633 {
15634 PyThreadState* __tstate = wxPyBeginAllowThreads();
15635 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15636
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 Py_INCREF(Py_None); resultobj = Py_None;
15641 return resultobj;
15642 fail:
15643 return NULL;
15644 }
15645
15646
15647 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15648 PyObject *resultobj;
15649 wxEffects *arg1 = (wxEffects *) 0 ;
15650 wxColour *arg2 = 0 ;
15651 wxColour *arg3 = 0 ;
15652 wxColour *arg4 = 0 ;
15653 wxColour *arg5 = 0 ;
15654 wxColour *arg6 = 0 ;
15655 wxColour temp2 ;
15656 wxColour temp3 ;
15657 wxColour temp4 ;
15658 wxColour temp5 ;
15659 wxColour temp6 ;
15660 PyObject * obj0 = 0 ;
15661 PyObject * obj1 = 0 ;
15662 PyObject * obj2 = 0 ;
15663 PyObject * obj3 = 0 ;
15664 PyObject * obj4 = 0 ;
15665 PyObject * obj5 = 0 ;
15666 char *kwnames[] = {
15667 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
15668 };
15669
15670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15672 {
15673 arg2 = &temp2;
15674 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15675 }
15676 {
15677 arg3 = &temp3;
15678 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15679 }
15680 {
15681 arg4 = &temp4;
15682 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15683 }
15684 {
15685 arg5 = &temp5;
15686 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
15687 }
15688 {
15689 arg6 = &temp6;
15690 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
15691 }
15692 {
15693 PyThreadState* __tstate = wxPyBeginAllowThreads();
15694 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
15695
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 Py_INCREF(Py_None); resultobj = Py_None;
15700 return resultobj;
15701 fail:
15702 return NULL;
15703 }
15704
15705
15706 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj;
15708 wxEffects *arg1 = (wxEffects *) 0 ;
15709 wxDC *arg2 = 0 ;
15710 wxRect *arg3 = 0 ;
15711 int arg4 = (int) 1 ;
15712 wxRect temp3 ;
15713 PyObject * obj0 = 0 ;
15714 PyObject * obj1 = 0 ;
15715 PyObject * obj2 = 0 ;
15716 char *kwnames[] = {
15717 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
15718 };
15719
15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
15721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15722 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15723 if (arg2 == NULL) {
15724 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15725 }
15726 {
15727 arg3 = &temp3;
15728 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15729 }
15730 {
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
15732 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
15733
15734 wxPyEndAllowThreads(__tstate);
15735 if (PyErr_Occurred()) SWIG_fail;
15736 }
15737 Py_INCREF(Py_None); resultobj = Py_None;
15738 return resultobj;
15739 fail:
15740 return NULL;
15741 }
15742
15743
15744 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15745 PyObject *resultobj;
15746 wxEffects *arg1 = (wxEffects *) 0 ;
15747 wxRect *arg2 = 0 ;
15748 wxDC *arg3 = 0 ;
15749 wxBitmap *arg4 = 0 ;
15750 bool result;
15751 wxRect temp2 ;
15752 PyObject * obj0 = 0 ;
15753 PyObject * obj1 = 0 ;
15754 PyObject * obj2 = 0 ;
15755 PyObject * obj3 = 0 ;
15756 char *kwnames[] = {
15757 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
15758 };
15759
15760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15762 {
15763 arg2 = &temp2;
15764 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15765 }
15766 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15767 if (arg3 == NULL) {
15768 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15769 }
15770 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15771 if (arg4 == NULL) {
15772 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15773 }
15774 {
15775 PyThreadState* __tstate = wxPyBeginAllowThreads();
15776 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
15777
15778 wxPyEndAllowThreads(__tstate);
15779 if (PyErr_Occurred()) SWIG_fail;
15780 }
15781 resultobj = PyInt_FromLong((long)result);
15782 return resultobj;
15783 fail:
15784 return NULL;
15785 }
15786
15787
15788 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
15789 PyObject *obj;
15790 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15791 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
15792 Py_INCREF(obj);
15793 return Py_BuildValue((char *)"");
15794 }
15795 static PyMethodDef SwigMethods[] = {
15796 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
15797 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
15798 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
15799 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
15800 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
15801 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
15802 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
15803 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
15804 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
15805 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
15806 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
15807 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
15808 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
15809 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
15810 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
15811 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
15812 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
15813 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
15814 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
15815 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
15816 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
15817 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
15818 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
15819 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
15820 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
15821 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
15822 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
15823 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
15824 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
15825 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
15826 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
15827 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
15828 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
15829 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
15830 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
15831 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
15832 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
15833 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
15834 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
15835 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
15836 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15837 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
15838 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
15839 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
15840 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
15841 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15842 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
15843 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
15844 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
15845 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
15846 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
15847 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
15848 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
15849 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
15850 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
15851 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
15852 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS },
15853 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS },
15854 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
15855 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
15856 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
15857 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
15858 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
15859 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
15860 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
15861 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
15862 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
15863 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
15864 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
15865 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
15866 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
15867 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
15868 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
15869 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
15870 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
15871 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
15872 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
15873 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
15874 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
15875 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
15876 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
15877 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
15878 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
15879 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
15880 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
15881 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
15882 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
15883 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
15884 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
15885 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
15886 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
15887 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
15888 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
15889 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
15890 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
15891 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
15892 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
15893 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
15894 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
15895 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
15896 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
15897 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
15898 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
15899 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
15900 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
15901 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
15902 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
15903 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
15904 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
15905 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
15906 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
15907 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
15908 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
15909 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
15910 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
15911 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
15912 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
15913 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
15914 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
15915 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
15916 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
15917 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
15918 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
15919 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
15920 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
15921 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
15922 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
15923 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
15924 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
15925 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
15926 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
15927 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
15928 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
15929 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
15930 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
15931 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
15932 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
15933 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
15934 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
15935 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
15936 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
15937 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
15938 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
15939 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
15940 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
15941 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
15942 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
15943 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
15944 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
15945 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15946 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15947 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
15948 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
15949 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
15950 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
15951 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
15952 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
15953 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
15954 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
15955 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
15956 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
15957 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
15958 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
15959 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
15960 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
15961 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
15962 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
15963 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
15964 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
15965 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
15966 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
15967 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
15968 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
15969 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
15970 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
15971 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
15972 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
15973 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
15974 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
15975 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
15976 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
15977 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
15978 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
15979 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
15980 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
15981 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
15982 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
15983 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
15984 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
15985 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
15986 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
15987 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
15988 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
15989 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
15990 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
15991 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
15992 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
15993 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
15994 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
15995 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
15996 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
15997 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
15998 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
15999 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16000 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16001 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16002 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16003 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16004 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16005 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16006 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16007 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16008 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16009 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16010 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16011 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16012 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16013 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16014 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16015 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16016 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16017 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16018 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16019 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16020 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16021 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16022 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16023 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16024 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16025 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16026 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16027 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16028 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16029 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16030 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16031 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16032 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16033 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16034 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16035 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16036 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16037 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16038 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16039 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16040 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16041 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16042 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16043 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16044 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16045 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16046 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16047 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16048 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16049 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16050 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16051 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16052 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16053 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16054 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16055 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16056 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16057 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16058 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16059 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16060 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16061 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16062 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16063 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16064 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16065 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16066 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16067 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16068 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16069 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16070 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16071 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16072 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16073 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16074 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16075 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16076 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16077 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16078 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16079 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16080 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16081 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16082 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16083 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16084 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16085 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16086 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16087 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16088 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16089 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16090 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16091 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16092 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16093 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16094 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16095 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16096 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16097 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16098 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16099 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16100 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16101 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16102 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16103 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16104 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16105 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16106 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16107 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16108 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16109 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16110 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16111 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16112 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16113 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16114 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16115 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16116 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16117 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16118 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16119 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16120 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16121 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16122 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16123 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16124 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16125 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16126 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16127 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16128 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16129 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16130 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16131 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16132 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16133 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16134 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16135 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16136 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16137 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16138 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16139 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16140 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16141 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16142 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16143 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16144 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16145 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16146 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16147 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16148 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16149 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16150 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16151 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
16152 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16153 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16154 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16155 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16156 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16157 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16160 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16161 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16162 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16163 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16164 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16165 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16166 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16172 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16178 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16179 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16184 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16189 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16192 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16193 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16194 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16195 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16196 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
16197 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16198 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16201 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16203 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16205 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16207 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16211 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16213 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16215 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16216 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16217 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16218 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16220 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16221 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16222 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16223 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16224 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16226 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16228 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16229 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16230 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16231 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16232 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16233 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16234 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16235 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16236 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16237 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16238 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16239 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16241 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16242 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16243 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16244 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16245 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16246 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16247 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16248 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16249 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16250 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16251 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16252 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16253 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16254 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16255 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16256 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16257 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16258 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16260 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16261 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16262 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16263 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16264 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16265 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16266 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16267 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16268 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16270 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16271 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16272 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16273 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16275 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16277 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16279 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16280 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16281 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16282 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16284 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16285 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16286 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16287 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16288 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
16289 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16290 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16292 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16293 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16294 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16295 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16297 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16298 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16299 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16300 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16301 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16302 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16303 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16304 { NULL, NULL }
16305 };
16306
16307
16308 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16309
16310 static void *_p_wxControlTo_p_wxWindow(void *x) {
16311 return (void *)((wxWindow *) ((wxControl *) x));
16312 }
16313 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16314 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16315 }
16316 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16317 return (void *)((wxWindow *) ((wxMenuBar *) x));
16318 }
16319 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16320 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16321 }
16322 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16323 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16324 }
16325 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16326 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16327 }
16328 static void *_p_wxPenTo_p_wxObject(void *x) {
16329 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16330 }
16331 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16332 return (void *)((wxObject *) ((wxRegionIterator *) x));
16333 }
16334 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16335 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16336 }
16337 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16338 return (void *)((wxObject *) ((wxSizerItem *) x));
16339 }
16340 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16341 return (void *)((wxObject *) ((wxColourDatabase *) x));
16342 }
16343 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16344 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16345 }
16346 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16347 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16348 }
16349 static void *_p_wxIconTo_p_wxObject(void *x) {
16350 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16351 }
16352 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16353 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16354 }
16355 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16356 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16357 }
16358 static void *_p_wxSizerTo_p_wxObject(void *x) {
16359 return (void *)((wxObject *) ((wxSizer *) x));
16360 }
16361 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16362 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16363 }
16364 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16365 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16366 }
16367 static void *_p_wxPenListTo_p_wxObject(void *x) {
16368 return (void *)((wxObject *) ((wxPenList *) x));
16369 }
16370 static void *_p_wxEventTo_p_wxObject(void *x) {
16371 return (void *)((wxObject *) ((wxEvent *) x));
16372 }
16373 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16374 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16375 }
16376 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16377 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16378 }
16379 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16380 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16381 }
16382 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16383 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16384 }
16385 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16386 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16387 }
16388 static void *_p_wxDCTo_p_wxObject(void *x) {
16389 return (void *)((wxObject *) ((wxDC *) x));
16390 }
16391 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16392 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16393 }
16394 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16395 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16396 }
16397 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16398 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16399 }
16400 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16401 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16402 }
16403 static void *_p_wxControlTo_p_wxObject(void *x) {
16404 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16405 }
16406 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16407 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16408 }
16409 static void *_p_wxClientDCTo_p_wxObject(void *x) {
16410 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16411 }
16412 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16413 return (void *)((wxObject *) ((wxFSFile *) x));
16414 }
16415 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16416 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16417 }
16418 static void *_p_wxRegionTo_p_wxObject(void *x) {
16419 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16420 }
16421 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16422 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16423 }
16424 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16425 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16426 }
16427 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16428 return (void *)((wxObject *) ((wxGDIObject *) x));
16429 }
16430 static void *_p_wxEffectsTo_p_wxObject(void *x) {
16431 return (void *)((wxObject *) ((wxEffects *) x));
16432 }
16433 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16434 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16435 }
16436 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16437 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16438 }
16439 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16440 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16441 }
16442 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16443 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16444 }
16445 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16446 return (void *)((wxObject *) ((wxMenuItem *) x));
16447 }
16448 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16449 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16450 }
16451 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16452 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16453 }
16454 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16455 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16456 }
16457 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16458 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16459 }
16460 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16461 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16462 }
16463 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16464 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16465 }
16466 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16467 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16468 }
16469 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16470 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16471 }
16472 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16473 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16474 }
16475 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16476 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16477 }
16478 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16479 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16480 }
16481 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16482 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16483 }
16484 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16485 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16486 }
16487 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16488 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16489 }
16490 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16491 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16492 }
16493 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16494 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16495 }
16496 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16497 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16498 }
16499 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16500 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16501 }
16502 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16503 return (void *)((wxObject *) ((wxImageHandler *) x));
16504 }
16505 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16506 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16507 }
16508 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16509 return (void *)((wxObject *) ((wxEvtHandler *) x));
16510 }
16511 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16512 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16513 }
16514 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16515 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16516 }
16517 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16518 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16519 }
16520 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16521 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16522 }
16523 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16524 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16525 }
16526 static void *_p_wxImageTo_p_wxObject(void *x) {
16527 return (void *)((wxObject *) ((wxImage *) x));
16528 }
16529 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16530 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16531 }
16532 static void *_p_wxPaletteTo_p_wxObject(void *x) {
16533 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16534 }
16535 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16536 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16537 }
16538 static void *_p_wxImageListTo_p_wxObject(void *x) {
16539 return (void *)((wxObject *) ((wxImageList *) x));
16540 }
16541 static void *_p_wxCursorTo_p_wxObject(void *x) {
16542 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16543 }
16544 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16545 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16546 }
16547 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16548 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16549 }
16550 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16551 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16552 }
16553 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16554 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16555 }
16556 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16557 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16558 }
16559 static void *_p_wxWindowTo_p_wxObject(void *x) {
16560 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16561 }
16562 static void *_p_wxMenuTo_p_wxObject(void *x) {
16563 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16564 }
16565 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16566 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16567 }
16568 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16569 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16570 }
16571 static void *_p_wxBrushListTo_p_wxObject(void *x) {
16572 return (void *)((wxObject *) ((wxBrushList *) x));
16573 }
16574 static void *_p_wxPyPenTo_p_wxObject(void *x) {
16575 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16576 }
16577 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16578 return (void *)((wxObject *) ((wxFileSystem *) x));
16579 }
16580 static void *_p_wxBitmapTo_p_wxObject(void *x) {
16581 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16582 }
16583 static void *_p_wxMaskTo_p_wxObject(void *x) {
16584 return (void *)((wxObject *) ((wxMask *) x));
16585 }
16586 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16587 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16588 }
16589 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16590 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16591 }
16592 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16593 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16594 }
16595 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16596 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16597 }
16598 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16599 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16600 }
16601 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16602 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16603 }
16604 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16606 }
16607 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16608 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16609 }
16610 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16611 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16612 }
16613 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16614 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16615 }
16616 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16617 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16618 }
16619 static void *_p_wxFontTo_p_wxObject(void *x) {
16620 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16621 }
16622 static void *_p_wxBrushTo_p_wxObject(void *x) {
16623 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16624 }
16625 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16626 return (void *)((wxObject *) ((wxMetaFile *) x));
16627 }
16628 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16629 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16630 }
16631 static void *_p_wxColourTo_p_wxObject(void *x) {
16632 return (void *)((wxObject *) ((wxColour *) x));
16633 }
16634 static void *_p_wxFontListTo_p_wxObject(void *x) {
16635 return (void *)((wxObject *) ((wxFontList *) x));
16636 }
16637 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16638 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16639 }
16640 static void *_p_wxValidatorTo_p_wxObject(void *x) {
16641 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16642 }
16643 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16644 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
16645 }
16646 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16647 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
16648 }
16649 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16650 return (void *)((wxDC *) ((wxScreenDC *) x));
16651 }
16652 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16653 return (void *)((wxDC *) ((wxMirrorDC *) x));
16654 }
16655 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16656 return (void *)((wxDC *) ((wxMemoryDC *) x));
16657 }
16658 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16659 return (void *)((wxDC *) ((wxWindowDC *) x));
16660 }
16661 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16662 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16663 }
16664 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16665 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16666 }
16667 static void *_p_wxClientDCTo_p_wxDC(void *x) {
16668 return (void *)((wxDC *) ((wxClientDC *) x));
16669 }
16670 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16671 return (void *)((wxDC *) ((wxPaintDC *) x));
16672 }
16673 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16674 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16675 }
16676 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16677 return (void *)((wxDC *) ((wxPrinterDC *) x));
16678 }
16679 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16680 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16681 }
16682 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16683 return (void *)((wxGDIObject *) ((wxIcon *) x));
16684 }
16685 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16686 return (void *)((wxGDIObject *) ((wxPalette *) x));
16687 }
16688 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
16689 return (void *)((wxGDIObject *) ((wxPen *) x));
16690 }
16691 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
16692 return (void *)((wxGDIObject *) ((wxFont *) x));
16693 }
16694 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
16695 return (void *)((wxGDIObject *) ((wxCursor *) x));
16696 }
16697 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
16698 return (void *)((wxGDIObject *) ((wxBitmap *) x));
16699 }
16700 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
16701 return (void *)((wxGDIObject *) ((wxRegion *) x));
16702 }
16703 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
16704 return (void *)((wxGDIObject *) ((wxBrush *) x));
16705 }
16706 static void *_p_wxPyPenTo_p_wxPen(void *x) {
16707 return (void *)((wxPen *) ((wxPyPen *) x));
16708 }
16709 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
16710 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
16711 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
16712 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}};
16713 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
16714 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16715 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
16716 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
16717 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
16718 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
16719 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
16720 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
16721 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}};
16722 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
16723 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
16724 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}};
16725 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
16726 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
16727 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
16728 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
16729 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
16730 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}};
16731 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
16732 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
16733 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
16734 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
16735 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
16736 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
16737 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
16738 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
16739 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
16740 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
16741 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
16742 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
16743 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16744 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}};
16745 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
16746 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
16747 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
16748 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
16749 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
16750 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
16751 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
16752 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
16753 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
16754 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
16755 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
16756 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
16757 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
16758 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
16759 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
16760 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
16761 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
16762 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
16763 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
16764
16765 static swig_type_info *swig_types_initial[] = {
16766 _swigt__p_wxPostScriptDC,
16767 _swigt__p_wxBrush,
16768 _swigt__p_wxColour,
16769 _swigt__p_wxDC,
16770 _swigt__p_wxMirrorDC,
16771 _swigt__p_byte,
16772 _swigt__p_wxPyFontEnumerator,
16773 _swigt__p_wxIconLocation,
16774 _swigt__p_wxImage,
16775 _swigt__p_wxMetaFileDC,
16776 _swigt__p_wxMask,
16777 _swigt__p_wxFont,
16778 _swigt__p_wxWindow,
16779 _swigt__p_wxSize,
16780 _swigt__p_double,
16781 _swigt__p_wxMemoryDC,
16782 _swigt__p_wxFontMapper,
16783 _swigt__p_wxEffects,
16784 _swigt__p_wxNativeEncodingInfo,
16785 _swigt__p_wxPalette,
16786 _swigt__p_wxBitmap,
16787 _swigt__p_wxObject,
16788 _swigt__p_wxRegionIterator,
16789 _swigt__p_wxRect,
16790 _swigt__p_wxString,
16791 _swigt__p_wxPrinterDC,
16792 _swigt__p_wxIconBundle,
16793 _swigt__p_wxPoint,
16794 _swigt__p_wxDash,
16795 _swigt__p_wxScreenDC,
16796 _swigt__p_wxCursor,
16797 _swigt__p_wxClientDC,
16798 _swigt__p_wxBufferedDC,
16799 _swigt__p_wxImageList,
16800 _swigt__p_unsigned_char,
16801 _swigt__p_wxGDIObject,
16802 _swigt__p_wxLocale,
16803 _swigt__p_wxIcon,
16804 _swigt__p_wxRegion,
16805 _swigt__p_wxLanguageInfo,
16806 _swigt__p_wxConfigBase,
16807 _swigt__p_wxWindowDC,
16808 _swigt__p_wxPrintData,
16809 _swigt__p_wxBrushList,
16810 _swigt__p_wxFontList,
16811 _swigt__p_wxPen,
16812 _swigt__p_wxBufferedPaintDC,
16813 _swigt__p_wxPaintDC,
16814 _swigt__p_wxPenList,
16815 _swigt__p_wxPyPen,
16816 _swigt__p_int,
16817 _swigt__p_wxMetaFile,
16818 _swigt__p_wxNativeFontInfo,
16819 _swigt__p_wxEncodingConverter,
16820 _swigt__p_wxColourDatabase,
16821 0
16822 };
16823
16824
16825 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16826
16827 static swig_const_info swig_const_table[] = {
16828 { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
16829 { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
16830 { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
16831 { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
16832 { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
16833 { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
16834 { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
16835 { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
16836 { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
16837 { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
16838 { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
16839 { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
16840 { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
16841 { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
16842 { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
16843 { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
16844 { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
16845 { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
16846 { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
16847 { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
16848 { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
16849 { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
16850 { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
16851 { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
16852 { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
16853 { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
16854 { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
16855 { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
16856 { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
16857 { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
16858 { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
16859 { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
16860 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
16861 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
16862 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
16863 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
16864 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
16865 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
16866 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
16867 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
16868 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
16869 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
16870 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
16871 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
16872 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
16873 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
16874 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
16875 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
16876 { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
16877 { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
16878 { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
16879 { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
16880 { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
16881 { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
16882 { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
16883 { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
16884 { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
16885 { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
16886 { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
16887 { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
16888 { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
16889 { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
16890 { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
16891 { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
16892 { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
16893 { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
16894 { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
16895 { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
16896 { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
16897 { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
16898 { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
16899 { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
16900 { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
16901 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
16902 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
16903 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
16904 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
16905 { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
16906 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
16907 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
16908 { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
16909 { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
16910 { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
16911 { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
16912 { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
16913 { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
16914 { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
16915 { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
16916 { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
16917 { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
16918 { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
16919 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
16920 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
16921 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
16922 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
16923 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
16924 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
16925 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
16926 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
16927 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
16928 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
16929 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
16930 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
16931 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
16932 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
16933 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
16934 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
16935 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
16936 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
16937 { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
16938 { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
16939 { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
16940 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
16941 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
16942 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
16943 { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
16944 { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
16945 { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
16946 { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
16947 { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
16948 { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
16949 { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
16950 { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
16951 { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
16952 { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
16953 { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
16954 { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
16955 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
16956 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
16957 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
16958 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
16959 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
16960 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
16961 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
16962 { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
16963 { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
16964 { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
16965 { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
16966 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
16967 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
16968 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
16969 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
16970 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
16971 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
16972 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
16973 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
16974 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
16975 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
16976 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
16977 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
16978 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
16979 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
16980 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
16981 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
16982 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
16983 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
16984 { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
16985 { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
16986 { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
16987 { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
16988 { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
16989 { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
16990 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
16991 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
16992 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
16993 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
16994 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
16995 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
16996 { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
16997 { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
16998 { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
16999 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17000 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17001 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17002 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17003 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17004 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17005 { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17006 { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17007 { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17008 { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17009 { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17010 { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17011 { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17012 { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17013 { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17014 { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17015 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17016 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17017 { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17018 { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17019 { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17020 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17021 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17022 { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17023 { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17024 { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17025 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17026 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17027 { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17028 { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17029 { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17030 { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17031 { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17032 { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17033 { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17034 { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17035 { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17036 { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17037 { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17038 { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17039 { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17040 { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17041 { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17042 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17043 { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17044 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17045 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17046 { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17047 { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17048 { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17049 { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17050 { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17051 { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17052 { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17053 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17054 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17055 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17056 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17057 { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17058 { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17059 { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17060 { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17061 { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17062 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17063 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17064 { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17065 { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17066 { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17067 { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17068 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17069 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17070 { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17071 { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17072 { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17073 { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17074 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17075 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17076 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17077 { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17078 { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17079 { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17080 { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17081 { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17082 { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17083 { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17084 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17085 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17086 { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17087 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17088 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17089 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17090 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17091 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17092 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17093 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17094 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17095 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17096 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17097 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17098 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17099 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17100 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17101 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17102 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17103 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17104 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17105 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17106 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17107 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17108 { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17109 { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17110 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17111 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17112 { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17113 { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17114 { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17115 { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17116 { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17117 { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17118 { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17119 { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17120 { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17121 { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17122 { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17123 { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17124 { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17125 { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17126 { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17127 { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17128 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17129 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17130 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17131 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17132 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17133 { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17134 { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17135 { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17136 { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17137 { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17138 { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17139 { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17140 { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17141 { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17142 { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17143 { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17144 { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17145 { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17146 { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17147 { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17148 { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17149 { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17150 { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17151 { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17152 { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17153 { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17154 { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17155 { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17156 { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17157 { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17158 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17159 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17160 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17161 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17162 { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17163 { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17164 { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17165 {0}};
17166
17167 #ifdef __cplusplus
17168 }
17169 #endif
17170
17171 #ifdef __cplusplus
17172 extern "C"
17173 #endif
17174 SWIGEXPORT(void) SWIG_init(void) {
17175 static PyObject *SWIG_globals = 0;
17176 static int typeinit = 0;
17177 PyObject *m, *d;
17178 int i;
17179 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17180 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17181 d = PyModule_GetDict(m);
17182
17183 if (!typeinit) {
17184 for (i = 0; swig_types_initial[i]; i++) {
17185 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17186 }
17187 typeinit = 1;
17188 }
17189 SWIG_InstallConstants(d,swig_const_table);
17190
17191
17192 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17193
17194 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17195 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17196 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17197 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17198 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17199 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17200 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17201 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17202 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17203 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17204 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17205 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17206 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17207 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17208 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17209 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17210 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17211 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17212 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17213 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17214 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17215 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17216 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17217 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17218 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17219 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17220 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17221 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17222 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17223 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17224 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17225 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17226 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17227 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17228 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17229 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17230 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17231 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17232 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17233 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17234 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17235 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17236 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17237 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17238 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17239 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17240 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
17241
17242 // Work around a chicken/egg problem in drawlist.cpp
17243 wxPyDrawList_SetAPIPtr();
17244
17245 }
17246