]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
Fixed a couple namespace issues
[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 DECLARE_DEF_STRING(EmptyString);
283
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 PyErr_SetNone(PyExc_NotImplementedError);
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 { PyErr_SetNone(PyExc_NotImplementedError); }
583 };
584
585 class wxMetaFileDC : public wxClientDC {
586 public:
587 wxMetaFileDC(const wxString&, int, int, const wxString&)
588 { PyErr_SetNone(PyExc_NotImplementedError); }
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 ;
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 {
5612 wxString* sptr = wxString_in_helper(obj1);
5613 if (sptr == NULL) SWIG_fail;
5614 arg2 = *sptr;
5615 delete sptr;
5616 }
5617 if (arg1) (arg1)->facename = arg2;
5618
5619 Py_INCREF(Py_None); resultobj = Py_None;
5620 return resultobj;
5621 fail:
5622 return NULL;
5623 }
5624
5625
5626 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5627 PyObject *resultobj;
5628 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5629 wxString result;
5630 PyObject * obj0 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "self", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5637 result = ((arg1)->facename);
5638
5639 {
5640 #if wxUSE_UNICODE
5641 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5642 #else
5643 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5644 #endif
5645 }
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj;
5654 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5655 int arg2 ;
5656 PyObject * obj0 = 0 ;
5657 char *kwnames[] = {
5658 (char *) "self",(char *) "encoding", NULL
5659 };
5660
5661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5663 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5664
5665 Py_INCREF(Py_None); resultobj = Py_None;
5666 return resultobj;
5667 fail:
5668 return NULL;
5669 }
5670
5671
5672 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5673 PyObject *resultobj;
5674 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5675 int result;
5676 PyObject * obj0 = 0 ;
5677 char *kwnames[] = {
5678 (char *) "self", NULL
5679 };
5680
5681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5683 result = (int) ((arg1)->encoding);
5684
5685 resultobj = PyInt_FromLong((long)result);
5686 return resultobj;
5687 fail:
5688 return NULL;
5689 }
5690
5691
5692 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5693 PyObject *resultobj;
5694 wxNativeEncodingInfo *result;
5695 char *kwnames[] = {
5696 NULL
5697 };
5698
5699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5700 {
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5703
5704 wxPyEndAllowThreads(__tstate);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 }
5707 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5708 return resultobj;
5709 fail:
5710 return NULL;
5711 }
5712
5713
5714 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5715 PyObject *resultobj;
5716 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5717 PyObject * obj0 = 0 ;
5718 char *kwnames[] = {
5719 (char *) "self", NULL
5720 };
5721
5722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5724 {
5725 PyThreadState* __tstate = wxPyBeginAllowThreads();
5726 delete arg1;
5727
5728 wxPyEndAllowThreads(__tstate);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 Py_INCREF(Py_None); resultobj = Py_None;
5732 return resultobj;
5733 fail:
5734 return NULL;
5735 }
5736
5737
5738 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5739 PyObject *resultobj;
5740 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5741 wxString *arg2 = 0 ;
5742 bool result;
5743 bool temp2 = False ;
5744 PyObject * obj0 = 0 ;
5745 PyObject * obj1 = 0 ;
5746 char *kwnames[] = {
5747 (char *) "self",(char *) "s", NULL
5748 };
5749
5750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5752 {
5753 arg2 = wxString_in_helper(obj1);
5754 if (arg2 == NULL) SWIG_fail;
5755 temp2 = True;
5756 }
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5760
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 resultobj = PyInt_FromLong((long)result);
5765 {
5766 if (temp2)
5767 delete arg2;
5768 }
5769 return resultobj;
5770 fail:
5771 {
5772 if (temp2)
5773 delete arg2;
5774 }
5775 return NULL;
5776 }
5777
5778
5779 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5780 PyObject *resultobj;
5781 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5782 wxString result;
5783 PyObject * obj0 = 0 ;
5784 char *kwnames[] = {
5785 (char *) "self", NULL
5786 };
5787
5788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
5789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
5793
5794 wxPyEndAllowThreads(__tstate);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 }
5797 {
5798 #if wxUSE_UNICODE
5799 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5800 #else
5801 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5802 #endif
5803 }
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
5811 PyObject *obj;
5812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5813 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
5814 Py_INCREF(obj);
5815 return Py_BuildValue((char *)"");
5816 }
5817 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5818 PyObject *resultobj;
5819 int arg1 ;
5820 wxNativeEncodingInfo *result;
5821 char *kwnames[] = {
5822 (char *) "encoding", NULL
5823 };
5824
5825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
5829
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
5833 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
5834 return resultobj;
5835 fail:
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxNativeEncodingInfo *arg1 = 0 ;
5843 bool result;
5844 PyObject * obj0 = 0 ;
5845 char *kwnames[] = {
5846 (char *) "info", NULL
5847 };
5848
5849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
5850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5851 if (arg1 == NULL) {
5852 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5853 }
5854 {
5855 PyThreadState* __tstate = wxPyBeginAllowThreads();
5856 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
5857
5858 wxPyEndAllowThreads(__tstate);
5859 if (PyErr_Occurred()) SWIG_fail;
5860 }
5861 resultobj = PyInt_FromLong((long)result);
5862 return resultobj;
5863 fail:
5864 return NULL;
5865 }
5866
5867
5868 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5869 PyObject *resultobj;
5870 wxFontMapper *result;
5871 char *kwnames[] = {
5872 NULL
5873 };
5874
5875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
5876 {
5877 PyThreadState* __tstate = wxPyBeginAllowThreads();
5878 result = (wxFontMapper *)new wxFontMapper();
5879
5880 wxPyEndAllowThreads(__tstate);
5881 if (PyErr_Occurred()) SWIG_fail;
5882 }
5883 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
5884 return resultobj;
5885 fail:
5886 return NULL;
5887 }
5888
5889
5890 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5891 PyObject *resultobj;
5892 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5893 PyObject * obj0 = 0 ;
5894 char *kwnames[] = {
5895 (char *) "self", NULL
5896 };
5897
5898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
5899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 delete arg1;
5903
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 Py_INCREF(Py_None); resultobj = Py_None;
5908 return resultobj;
5909 fail:
5910 return NULL;
5911 }
5912
5913
5914 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5915 PyObject *resultobj;
5916 wxFontMapper *result;
5917 char *kwnames[] = {
5918 NULL
5919 };
5920
5921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 result = (wxFontMapper *)wxFontMapper::Get();
5925
5926 wxPyEndAllowThreads(__tstate);
5927 if (PyErr_Occurred()) SWIG_fail;
5928 }
5929 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5930 return resultobj;
5931 fail:
5932 return NULL;
5933 }
5934
5935
5936 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5937 PyObject *resultobj;
5938 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5939 wxFontMapper *result;
5940 PyObject * obj0 = 0 ;
5941 char *kwnames[] = {
5942 (char *) "mapper", NULL
5943 };
5944
5945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
5946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 result = (wxFontMapper *)wxFontMapper::Set(arg1);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5955 return resultobj;
5956 fail:
5957 return NULL;
5958 }
5959
5960
5961 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5964 wxString *arg2 = 0 ;
5965 bool arg3 = (bool) True ;
5966 int result;
5967 bool temp2 = False ;
5968 PyObject * obj0 = 0 ;
5969 PyObject * obj1 = 0 ;
5970 PyObject * obj2 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "self",(char *) "charset",(char *) "interactive", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
5976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5977 {
5978 arg2 = wxString_in_helper(obj1);
5979 if (arg2 == NULL) SWIG_fail;
5980 temp2 = True;
5981 }
5982 if (obj2) {
5983 arg3 = PyInt_AsLong(obj2) ? true : false;
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
5989
5990 wxPyEndAllowThreads(__tstate);
5991 if (PyErr_Occurred()) SWIG_fail;
5992 }
5993 resultobj = PyInt_FromLong((long)result);
5994 {
5995 if (temp2)
5996 delete arg2;
5997 }
5998 return resultobj;
5999 fail:
6000 {
6001 if (temp2)
6002 delete arg2;
6003 }
6004 return NULL;
6005 }
6006
6007
6008 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6009 PyObject *resultobj;
6010 size_t result;
6011 char *kwnames[] = {
6012 NULL
6013 };
6014
6015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6016 {
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6019
6020 wxPyEndAllowThreads(__tstate);
6021 if (PyErr_Occurred()) SWIG_fail;
6022 }
6023 resultobj = PyInt_FromLong((long)result);
6024 return resultobj;
6025 fail:
6026 return NULL;
6027 }
6028
6029
6030 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6031 PyObject *resultobj;
6032 size_t arg1 ;
6033 int result;
6034 PyObject * obj0 = 0 ;
6035 char *kwnames[] = {
6036 (char *) "n", NULL
6037 };
6038
6039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6040 arg1 = (size_t) PyInt_AsLong(obj0);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 {
6043 PyThreadState* __tstate = wxPyBeginAllowThreads();
6044 result = (int)wxFontMapper::GetEncoding(arg1);
6045
6046 wxPyEndAllowThreads(__tstate);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 resultobj = PyInt_FromLong((long)result);
6050 return resultobj;
6051 fail:
6052 return NULL;
6053 }
6054
6055
6056 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6057 PyObject *resultobj;
6058 int arg1 ;
6059 wxString result;
6060 char *kwnames[] = {
6061 (char *) "encoding", NULL
6062 };
6063
6064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6068
6069 wxPyEndAllowThreads(__tstate);
6070 if (PyErr_Occurred()) SWIG_fail;
6071 }
6072 {
6073 #if wxUSE_UNICODE
6074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6075 #else
6076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6077 #endif
6078 }
6079 return resultobj;
6080 fail:
6081 return NULL;
6082 }
6083
6084
6085 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj;
6087 int arg1 ;
6088 wxString result;
6089 char *kwnames[] = {
6090 (char *) "encoding", NULL
6091 };
6092
6093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6097
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 {
6102 #if wxUSE_UNICODE
6103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6104 #else
6105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6106 #endif
6107 }
6108 return resultobj;
6109 fail:
6110 return NULL;
6111 }
6112
6113
6114 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject *resultobj;
6116 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6117 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6118 PyObject * obj0 = 0 ;
6119 PyObject * obj1 = 0 ;
6120 char *kwnames[] = {
6121 (char *) "self",(char *) "config", NULL
6122 };
6123
6124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6126 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6127 {
6128 PyThreadState* __tstate = wxPyBeginAllowThreads();
6129 (arg1)->SetConfig(arg2);
6130
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 Py_INCREF(Py_None); resultobj = Py_None;
6135 return resultobj;
6136 fail:
6137 return NULL;
6138 }
6139
6140
6141 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj;
6143 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6144 wxString *arg2 = 0 ;
6145 bool temp2 = False ;
6146 PyObject * obj0 = 0 ;
6147 PyObject * obj1 = 0 ;
6148 char *kwnames[] = {
6149 (char *) "self",(char *) "prefix", NULL
6150 };
6151
6152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6154 {
6155 arg2 = wxString_in_helper(obj1);
6156 if (arg2 == NULL) SWIG_fail;
6157 temp2 = True;
6158 }
6159 {
6160 PyThreadState* __tstate = wxPyBeginAllowThreads();
6161 (arg1)->SetConfigPath((wxString const &)*arg2);
6162
6163 wxPyEndAllowThreads(__tstate);
6164 if (PyErr_Occurred()) SWIG_fail;
6165 }
6166 Py_INCREF(Py_None); resultobj = Py_None;
6167 {
6168 if (temp2)
6169 delete arg2;
6170 }
6171 return resultobj;
6172 fail:
6173 {
6174 if (temp2)
6175 delete arg2;
6176 }
6177 return NULL;
6178 }
6179
6180
6181 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6182 PyObject *resultobj;
6183 wxString result;
6184 char *kwnames[] = {
6185 NULL
6186 };
6187
6188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6189 {
6190 PyThreadState* __tstate = wxPyBeginAllowThreads();
6191 result = wxFontMapper::GetDefaultConfigPath();
6192
6193 wxPyEndAllowThreads(__tstate);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 {
6197 #if wxUSE_UNICODE
6198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6199 #else
6200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6201 #endif
6202 }
6203 return resultobj;
6204 fail:
6205 return NULL;
6206 }
6207
6208
6209 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6210 PyObject *resultobj;
6211 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6212 int arg2 ;
6213 wxString const &arg3_defvalue = wxPyEmptyString ;
6214 wxString *arg3 = (wxString *) &arg3_defvalue ;
6215 bool arg4 = (bool) True ;
6216 PyObject *result;
6217 bool temp3 = False ;
6218 PyObject * obj0 = 0 ;
6219 PyObject * obj2 = 0 ;
6220 PyObject * obj3 = 0 ;
6221 char *kwnames[] = {
6222 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6223 };
6224
6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6227 if (obj2) {
6228 {
6229 arg3 = wxString_in_helper(obj2);
6230 if (arg3 == NULL) SWIG_fail;
6231 temp3 = True;
6232 }
6233 }
6234 if (obj3) {
6235 arg4 = PyInt_AsLong(obj3) ? true : false;
6236 if (PyErr_Occurred()) SWIG_fail;
6237 }
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6241
6242 wxPyEndAllowThreads(__tstate);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 resultobj = result;
6246 {
6247 if (temp3)
6248 delete arg3;
6249 }
6250 return resultobj;
6251 fail:
6252 {
6253 if (temp3)
6254 delete arg3;
6255 }
6256 return NULL;
6257 }
6258
6259
6260 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj;
6262 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6263 int arg2 ;
6264 wxString const &arg3_defvalue = wxPyEmptyString ;
6265 wxString *arg3 = (wxString *) &arg3_defvalue ;
6266 bool result;
6267 bool temp3 = False ;
6268 PyObject * obj0 = 0 ;
6269 PyObject * obj2 = 0 ;
6270 char *kwnames[] = {
6271 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6272 };
6273
6274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6276 if (obj2) {
6277 {
6278 arg3 = wxString_in_helper(obj2);
6279 if (arg3 == NULL) SWIG_fail;
6280 temp3 = True;
6281 }
6282 }
6283 {
6284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6285 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6286
6287 wxPyEndAllowThreads(__tstate);
6288 if (PyErr_Occurred()) SWIG_fail;
6289 }
6290 resultobj = PyInt_FromLong((long)result);
6291 {
6292 if (temp3)
6293 delete arg3;
6294 }
6295 return resultobj;
6296 fail:
6297 {
6298 if (temp3)
6299 delete arg3;
6300 }
6301 return NULL;
6302 }
6303
6304
6305 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj;
6307 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6308 wxWindow *arg2 = (wxWindow *) 0 ;
6309 PyObject * obj0 = 0 ;
6310 PyObject * obj1 = 0 ;
6311 char *kwnames[] = {
6312 (char *) "self",(char *) "parent", NULL
6313 };
6314
6315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6317 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6318 {
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 (arg1)->SetDialogParent(arg2);
6321
6322 wxPyEndAllowThreads(__tstate);
6323 if (PyErr_Occurred()) SWIG_fail;
6324 }
6325 Py_INCREF(Py_None); resultobj = Py_None;
6326 return resultobj;
6327 fail:
6328 return NULL;
6329 }
6330
6331
6332 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6333 PyObject *resultobj;
6334 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6335 wxString *arg2 = 0 ;
6336 bool temp2 = False ;
6337 PyObject * obj0 = 0 ;
6338 PyObject * obj1 = 0 ;
6339 char *kwnames[] = {
6340 (char *) "self",(char *) "title", NULL
6341 };
6342
6343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6345 {
6346 arg2 = wxString_in_helper(obj1);
6347 if (arg2 == NULL) SWIG_fail;
6348 temp2 = True;
6349 }
6350 {
6351 PyThreadState* __tstate = wxPyBeginAllowThreads();
6352 (arg1)->SetDialogTitle((wxString const &)*arg2);
6353
6354 wxPyEndAllowThreads(__tstate);
6355 if (PyErr_Occurred()) SWIG_fail;
6356 }
6357 Py_INCREF(Py_None); resultobj = Py_None;
6358 {
6359 if (temp2)
6360 delete arg2;
6361 }
6362 return resultobj;
6363 fail:
6364 {
6365 if (temp2)
6366 delete arg2;
6367 }
6368 return NULL;
6369 }
6370
6371
6372 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6373 PyObject *obj;
6374 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6375 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6376 Py_INCREF(obj);
6377 return Py_BuildValue((char *)"");
6378 }
6379 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6380 PyObject *resultobj;
6381 int arg1 ;
6382 int arg2 ;
6383 int arg3 ;
6384 int arg4 ;
6385 bool arg5 = (bool) False ;
6386 wxString const &arg6_defvalue = wxPyEmptyString ;
6387 wxString *arg6 = (wxString *) &arg6_defvalue ;
6388 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6389 wxFont *result;
6390 bool temp6 = False ;
6391 PyObject * obj4 = 0 ;
6392 PyObject * obj5 = 0 ;
6393 char *kwnames[] = {
6394 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6395 };
6396
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6398 if (obj4) {
6399 arg5 = PyInt_AsLong(obj4) ? true : false;
6400 if (PyErr_Occurred()) SWIG_fail;
6401 }
6402 if (obj5) {
6403 {
6404 arg6 = wxString_in_helper(obj5);
6405 if (arg6 == NULL) SWIG_fail;
6406 temp6 = True;
6407 }
6408 }
6409 {
6410 PyThreadState* __tstate = wxPyBeginAllowThreads();
6411 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6412
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6417 {
6418 if (temp6)
6419 delete arg6;
6420 }
6421 return resultobj;
6422 fail:
6423 {
6424 if (temp6)
6425 delete arg6;
6426 }
6427 return NULL;
6428 }
6429
6430
6431 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6432 PyObject *resultobj;
6433 wxFont *arg1 = (wxFont *) 0 ;
6434 PyObject * obj0 = 0 ;
6435 char *kwnames[] = {
6436 (char *) "self", NULL
6437 };
6438
6439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 delete arg1;
6444
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 Py_INCREF(Py_None); resultobj = Py_None;
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj;
6457 wxNativeFontInfo *arg1 = 0 ;
6458 wxFont *result;
6459 PyObject * obj0 = 0 ;
6460 char *kwnames[] = {
6461 (char *) "info", NULL
6462 };
6463
6464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6466 if (arg1 == NULL) {
6467 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6468 }
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6472
6473 wxPyEndAllowThreads(__tstate);
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6477 return resultobj;
6478 fail:
6479 return NULL;
6480 }
6481
6482
6483 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6484 PyObject *resultobj;
6485 wxString *arg1 = 0 ;
6486 wxFont *result;
6487 bool temp1 = False ;
6488 PyObject * obj0 = 0 ;
6489 char *kwnames[] = {
6490 (char *) "info", NULL
6491 };
6492
6493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6494 {
6495 arg1 = wxString_in_helper(obj0);
6496 if (arg1 == NULL) SWIG_fail;
6497 temp1 = True;
6498 }
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6507 {
6508 if (temp1)
6509 delete arg1;
6510 }
6511 return resultobj;
6512 fail:
6513 {
6514 if (temp1)
6515 delete arg1;
6516 }
6517 return NULL;
6518 }
6519
6520
6521 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6522 PyObject *resultobj;
6523 int arg1 ;
6524 int arg2 ;
6525 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6526 wxString const &arg4_defvalue = wxPyEmptyString ;
6527 wxString *arg4 = (wxString *) &arg4_defvalue ;
6528 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6529 wxFont *result;
6530 bool temp4 = False ;
6531 PyObject * obj3 = 0 ;
6532 char *kwnames[] = {
6533 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6534 };
6535
6536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6537 if (obj3) {
6538 {
6539 arg4 = wxString_in_helper(obj3);
6540 if (arg4 == NULL) SWIG_fail;
6541 temp4 = True;
6542 }
6543 }
6544 {
6545 PyThreadState* __tstate = wxPyBeginAllowThreads();
6546 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6547
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6552 {
6553 if (temp4)
6554 delete arg4;
6555 }
6556 return resultobj;
6557 fail:
6558 {
6559 if (temp4)
6560 delete arg4;
6561 }
6562 return NULL;
6563 }
6564
6565
6566 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6567 PyObject *resultobj;
6568 wxFont *arg1 = (wxFont *) 0 ;
6569 bool result;
6570 PyObject * obj0 = 0 ;
6571 char *kwnames[] = {
6572 (char *) "self", NULL
6573 };
6574
6575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 result = (bool)((wxFont const *)arg1)->Ok();
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 resultobj = PyInt_FromLong((long)result);
6585 return resultobj;
6586 fail:
6587 return NULL;
6588 }
6589
6590
6591 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6592 PyObject *resultobj;
6593 wxFont *arg1 = (wxFont *) 0 ;
6594 wxFont *arg2 = 0 ;
6595 bool result;
6596 PyObject * obj0 = 0 ;
6597 PyObject * obj1 = 0 ;
6598 char *kwnames[] = {
6599 (char *) "self",(char *) "font", NULL
6600 };
6601
6602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6604 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6605 if (arg2 == NULL) {
6606 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6607 }
6608 {
6609 PyThreadState* __tstate = wxPyBeginAllowThreads();
6610 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6611
6612 wxPyEndAllowThreads(__tstate);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 }
6615 resultobj = PyInt_FromLong((long)result);
6616 return resultobj;
6617 fail:
6618 return NULL;
6619 }
6620
6621
6622 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6623 PyObject *resultobj;
6624 wxFont *arg1 = (wxFont *) 0 ;
6625 wxFont *arg2 = 0 ;
6626 bool result;
6627 PyObject * obj0 = 0 ;
6628 PyObject * obj1 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "self",(char *) "font", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6635 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6636 if (arg2 == NULL) {
6637 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6638 }
6639 {
6640 PyThreadState* __tstate = wxPyBeginAllowThreads();
6641 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6642
6643 wxPyEndAllowThreads(__tstate);
6644 if (PyErr_Occurred()) SWIG_fail;
6645 }
6646 resultobj = PyInt_FromLong((long)result);
6647 return resultobj;
6648 fail:
6649 return NULL;
6650 }
6651
6652
6653 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6654 PyObject *resultobj;
6655 wxFont *arg1 = (wxFont *) 0 ;
6656 int result;
6657 PyObject * obj0 = 0 ;
6658 char *kwnames[] = {
6659 (char *) "self", NULL
6660 };
6661
6662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6664 {
6665 PyThreadState* __tstate = wxPyBeginAllowThreads();
6666 result = (int)((wxFont const *)arg1)->GetPointSize();
6667
6668 wxPyEndAllowThreads(__tstate);
6669 if (PyErr_Occurred()) SWIG_fail;
6670 }
6671 resultobj = PyInt_FromLong((long)result);
6672 return resultobj;
6673 fail:
6674 return NULL;
6675 }
6676
6677
6678 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6679 PyObject *resultobj;
6680 wxFont *arg1 = (wxFont *) 0 ;
6681 int result;
6682 PyObject * obj0 = 0 ;
6683 char *kwnames[] = {
6684 (char *) "self", NULL
6685 };
6686
6687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 result = (int)((wxFont const *)arg1)->GetFamily();
6692
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 resultobj = PyInt_FromLong((long)result);
6697 return resultobj;
6698 fail:
6699 return NULL;
6700 }
6701
6702
6703 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6704 PyObject *resultobj;
6705 wxFont *arg1 = (wxFont *) 0 ;
6706 int result;
6707 PyObject * obj0 = 0 ;
6708 char *kwnames[] = {
6709 (char *) "self", NULL
6710 };
6711
6712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
6713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6714 {
6715 PyThreadState* __tstate = wxPyBeginAllowThreads();
6716 result = (int)((wxFont const *)arg1)->GetStyle();
6717
6718 wxPyEndAllowThreads(__tstate);
6719 if (PyErr_Occurred()) SWIG_fail;
6720 }
6721 resultobj = PyInt_FromLong((long)result);
6722 return resultobj;
6723 fail:
6724 return NULL;
6725 }
6726
6727
6728 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6729 PyObject *resultobj;
6730 wxFont *arg1 = (wxFont *) 0 ;
6731 int result;
6732 PyObject * obj0 = 0 ;
6733 char *kwnames[] = {
6734 (char *) "self", NULL
6735 };
6736
6737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
6738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6739 {
6740 PyThreadState* __tstate = wxPyBeginAllowThreads();
6741 result = (int)((wxFont const *)arg1)->GetWeight();
6742
6743 wxPyEndAllowThreads(__tstate);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 resultobj = PyInt_FromLong((long)result);
6747 return resultobj;
6748 fail:
6749 return NULL;
6750 }
6751
6752
6753 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj;
6755 wxFont *arg1 = (wxFont *) 0 ;
6756 bool result;
6757 PyObject * obj0 = 0 ;
6758 char *kwnames[] = {
6759 (char *) "self", NULL
6760 };
6761
6762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
6763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6764 {
6765 PyThreadState* __tstate = wxPyBeginAllowThreads();
6766 result = (bool)((wxFont const *)arg1)->GetUnderlined();
6767
6768 wxPyEndAllowThreads(__tstate);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 resultobj = PyInt_FromLong((long)result);
6772 return resultobj;
6773 fail:
6774 return NULL;
6775 }
6776
6777
6778 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6779 PyObject *resultobj;
6780 wxFont *arg1 = (wxFont *) 0 ;
6781 wxString result;
6782 PyObject * obj0 = 0 ;
6783 char *kwnames[] = {
6784 (char *) "self", NULL
6785 };
6786
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
6788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6789 {
6790 PyThreadState* __tstate = wxPyBeginAllowThreads();
6791 result = ((wxFont const *)arg1)->GetFaceName();
6792
6793 wxPyEndAllowThreads(__tstate);
6794 if (PyErr_Occurred()) SWIG_fail;
6795 }
6796 {
6797 #if wxUSE_UNICODE
6798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6799 #else
6800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6801 #endif
6802 }
6803 return resultobj;
6804 fail:
6805 return NULL;
6806 }
6807
6808
6809 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj;
6811 wxFont *arg1 = (wxFont *) 0 ;
6812 int result;
6813 PyObject * obj0 = 0 ;
6814 char *kwnames[] = {
6815 (char *) "self", NULL
6816 };
6817
6818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
6819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6820 {
6821 PyThreadState* __tstate = wxPyBeginAllowThreads();
6822 result = (int)((wxFont const *)arg1)->GetEncoding();
6823
6824 wxPyEndAllowThreads(__tstate);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 resultobj = PyInt_FromLong((long)result);
6828 return resultobj;
6829 fail:
6830 return NULL;
6831 }
6832
6833
6834 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj;
6836 wxFont *arg1 = (wxFont *) 0 ;
6837 wxNativeFontInfo *result;
6838 PyObject * obj0 = 0 ;
6839 char *kwnames[] = {
6840 (char *) "self", NULL
6841 };
6842
6843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
6844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
6848
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
6853 return resultobj;
6854 fail:
6855 return NULL;
6856 }
6857
6858
6859 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6860 PyObject *resultobj;
6861 wxFont *arg1 = (wxFont *) 0 ;
6862 bool result;
6863 PyObject * obj0 = 0 ;
6864 char *kwnames[] = {
6865 (char *) "self", NULL
6866 };
6867
6868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
6869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6870 {
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 resultobj = PyInt_FromLong((long)result);
6878 return resultobj;
6879 fail:
6880 return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj;
6886 wxFont *arg1 = (wxFont *) 0 ;
6887 wxString result;
6888 PyObject * obj0 = 0 ;
6889 char *kwnames[] = {
6890 (char *) "self", NULL
6891 };
6892
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
6894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6895 {
6896 PyThreadState* __tstate = wxPyBeginAllowThreads();
6897 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
6898
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 {
6903 #if wxUSE_UNICODE
6904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6905 #else
6906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6907 #endif
6908 }
6909 return resultobj;
6910 fail:
6911 return NULL;
6912 }
6913
6914
6915 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6916 PyObject *resultobj;
6917 wxFont *arg1 = (wxFont *) 0 ;
6918 wxString result;
6919 PyObject * obj0 = 0 ;
6920 char *kwnames[] = {
6921 (char *) "self", NULL
6922 };
6923
6924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
6925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6926 {
6927 PyThreadState* __tstate = wxPyBeginAllowThreads();
6928 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
6929
6930 wxPyEndAllowThreads(__tstate);
6931 if (PyErr_Occurred()) SWIG_fail;
6932 }
6933 {
6934 #if wxUSE_UNICODE
6935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6936 #else
6937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6938 #endif
6939 }
6940 return resultobj;
6941 fail:
6942 return NULL;
6943 }
6944
6945
6946 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6947 PyObject *resultobj;
6948 wxFont *arg1 = (wxFont *) 0 ;
6949 int arg2 ;
6950 PyObject * obj0 = 0 ;
6951 char *kwnames[] = {
6952 (char *) "self",(char *) "pointSize", NULL
6953 };
6954
6955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
6956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6957 {
6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
6959 (arg1)->SetPointSize(arg2);
6960
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 Py_INCREF(Py_None); resultobj = Py_None;
6965 return resultobj;
6966 fail:
6967 return NULL;
6968 }
6969
6970
6971 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6972 PyObject *resultobj;
6973 wxFont *arg1 = (wxFont *) 0 ;
6974 int arg2 ;
6975 PyObject * obj0 = 0 ;
6976 char *kwnames[] = {
6977 (char *) "self",(char *) "family", NULL
6978 };
6979
6980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
6981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6982 {
6983 PyThreadState* __tstate = wxPyBeginAllowThreads();
6984 (arg1)->SetFamily(arg2);
6985
6986 wxPyEndAllowThreads(__tstate);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 Py_INCREF(Py_None); resultobj = Py_None;
6990 return resultobj;
6991 fail:
6992 return NULL;
6993 }
6994
6995
6996 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6997 PyObject *resultobj;
6998 wxFont *arg1 = (wxFont *) 0 ;
6999 int arg2 ;
7000 PyObject * obj0 = 0 ;
7001 char *kwnames[] = {
7002 (char *) "self",(char *) "style", NULL
7003 };
7004
7005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
7006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7007 {
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 (arg1)->SetStyle(arg2);
7010
7011 wxPyEndAllowThreads(__tstate);
7012 if (PyErr_Occurred()) SWIG_fail;
7013 }
7014 Py_INCREF(Py_None); resultobj = Py_None;
7015 return resultobj;
7016 fail:
7017 return NULL;
7018 }
7019
7020
7021 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7022 PyObject *resultobj;
7023 wxFont *arg1 = (wxFont *) 0 ;
7024 int arg2 ;
7025 PyObject * obj0 = 0 ;
7026 char *kwnames[] = {
7027 (char *) "self",(char *) "weight", NULL
7028 };
7029
7030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 (arg1)->SetWeight(arg2);
7035
7036 wxPyEndAllowThreads(__tstate);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 Py_INCREF(Py_None); resultobj = Py_None;
7040 return resultobj;
7041 fail:
7042 return NULL;
7043 }
7044
7045
7046 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj;
7048 wxFont *arg1 = (wxFont *) 0 ;
7049 wxString *arg2 = 0 ;
7050 bool temp2 = False ;
7051 PyObject * obj0 = 0 ;
7052 PyObject * obj1 = 0 ;
7053 char *kwnames[] = {
7054 (char *) "self",(char *) "faceName", NULL
7055 };
7056
7057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7059 {
7060 arg2 = wxString_in_helper(obj1);
7061 if (arg2 == NULL) SWIG_fail;
7062 temp2 = True;
7063 }
7064 {
7065 PyThreadState* __tstate = wxPyBeginAllowThreads();
7066 (arg1)->SetFaceName((wxString const &)*arg2);
7067
7068 wxPyEndAllowThreads(__tstate);
7069 if (PyErr_Occurred()) SWIG_fail;
7070 }
7071 Py_INCREF(Py_None); resultobj = Py_None;
7072 {
7073 if (temp2)
7074 delete arg2;
7075 }
7076 return resultobj;
7077 fail:
7078 {
7079 if (temp2)
7080 delete arg2;
7081 }
7082 return NULL;
7083 }
7084
7085
7086 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7087 PyObject *resultobj;
7088 wxFont *arg1 = (wxFont *) 0 ;
7089 bool arg2 ;
7090 PyObject * obj0 = 0 ;
7091 PyObject * obj1 = 0 ;
7092 char *kwnames[] = {
7093 (char *) "self",(char *) "underlined", NULL
7094 };
7095
7096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7098 arg2 = PyInt_AsLong(obj1) ? true : false;
7099 if (PyErr_Occurred()) SWIG_fail;
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 (arg1)->SetUnderlined(arg2);
7103
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 Py_INCREF(Py_None); resultobj = Py_None;
7108 return resultobj;
7109 fail:
7110 return NULL;
7111 }
7112
7113
7114 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 wxFont *arg1 = (wxFont *) 0 ;
7117 int arg2 ;
7118 PyObject * obj0 = 0 ;
7119 char *kwnames[] = {
7120 (char *) "self",(char *) "encoding", NULL
7121 };
7122
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7125 {
7126 PyThreadState* __tstate = wxPyBeginAllowThreads();
7127 (arg1)->SetEncoding((wxFontEncoding )arg2);
7128
7129 wxPyEndAllowThreads(__tstate);
7130 if (PyErr_Occurred()) SWIG_fail;
7131 }
7132 Py_INCREF(Py_None); resultobj = Py_None;
7133 return resultobj;
7134 fail:
7135 return NULL;
7136 }
7137
7138
7139 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7140 PyObject *resultobj;
7141 wxFont *arg1 = (wxFont *) 0 ;
7142 wxNativeFontInfo *arg2 = 0 ;
7143 PyObject * obj0 = 0 ;
7144 PyObject * obj1 = 0 ;
7145 char *kwnames[] = {
7146 (char *) "self",(char *) "info", NULL
7147 };
7148
7149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7151 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7152 if (arg2 == NULL) {
7153 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7154 }
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7158
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 Py_INCREF(Py_None); resultobj = Py_None;
7163 return resultobj;
7164 fail:
7165 return NULL;
7166 }
7167
7168
7169 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7170 PyObject *resultobj;
7171 wxFont *arg1 = (wxFont *) 0 ;
7172 wxString *arg2 = 0 ;
7173 bool temp2 = False ;
7174 PyObject * obj0 = 0 ;
7175 PyObject * obj1 = 0 ;
7176 char *kwnames[] = {
7177 (char *) "self",(char *) "info", NULL
7178 };
7179
7180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7182 {
7183 arg2 = wxString_in_helper(obj1);
7184 if (arg2 == NULL) SWIG_fail;
7185 temp2 = True;
7186 }
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7190
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 Py_INCREF(Py_None); resultobj = Py_None;
7195 {
7196 if (temp2)
7197 delete arg2;
7198 }
7199 return resultobj;
7200 fail:
7201 {
7202 if (temp2)
7203 delete arg2;
7204 }
7205 return NULL;
7206 }
7207
7208
7209 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7210 PyObject *resultobj;
7211 wxFont *arg1 = (wxFont *) 0 ;
7212 wxString *arg2 = 0 ;
7213 bool temp2 = False ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 char *kwnames[] = {
7217 (char *) "self",(char *) "info", NULL
7218 };
7219
7220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7222 {
7223 arg2 = wxString_in_helper(obj1);
7224 if (arg2 == NULL) SWIG_fail;
7225 temp2 = True;
7226 }
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7230
7231 wxPyEndAllowThreads(__tstate);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 Py_INCREF(Py_None); resultobj = Py_None;
7235 {
7236 if (temp2)
7237 delete arg2;
7238 }
7239 return resultobj;
7240 fail:
7241 {
7242 if (temp2)
7243 delete arg2;
7244 }
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 wxFont *arg1 = (wxFont *) 0 ;
7252 wxString result;
7253 PyObject * obj0 = 0 ;
7254 char *kwnames[] = {
7255 (char *) "self", NULL
7256 };
7257
7258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7260 {
7261 PyThreadState* __tstate = wxPyBeginAllowThreads();
7262 result = ((wxFont const *)arg1)->GetFamilyString();
7263
7264 wxPyEndAllowThreads(__tstate);
7265 if (PyErr_Occurred()) SWIG_fail;
7266 }
7267 {
7268 #if wxUSE_UNICODE
7269 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7270 #else
7271 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7272 #endif
7273 }
7274 return resultobj;
7275 fail:
7276 return NULL;
7277 }
7278
7279
7280 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7281 PyObject *resultobj;
7282 wxFont *arg1 = (wxFont *) 0 ;
7283 wxString result;
7284 PyObject * obj0 = 0 ;
7285 char *kwnames[] = {
7286 (char *) "self", NULL
7287 };
7288
7289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 result = ((wxFont const *)arg1)->GetStyleString();
7294
7295 wxPyEndAllowThreads(__tstate);
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 {
7299 #if wxUSE_UNICODE
7300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7301 #else
7302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7303 #endif
7304 }
7305 return resultobj;
7306 fail:
7307 return NULL;
7308 }
7309
7310
7311 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7312 PyObject *resultobj;
7313 wxFont *arg1 = (wxFont *) 0 ;
7314 wxString result;
7315 PyObject * obj0 = 0 ;
7316 char *kwnames[] = {
7317 (char *) "self", NULL
7318 };
7319
7320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 result = ((wxFont const *)arg1)->GetWeightString();
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 {
7330 #if wxUSE_UNICODE
7331 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7332 #else
7333 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7334 #endif
7335 }
7336 return resultobj;
7337 fail:
7338 return NULL;
7339 }
7340
7341
7342 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7343 PyObject *resultobj;
7344 wxFont *arg1 = (wxFont *) 0 ;
7345 bool arg2 = (bool) True ;
7346 PyObject * obj0 = 0 ;
7347 PyObject * obj1 = 0 ;
7348 char *kwnames[] = {
7349 (char *) "self",(char *) "no", NULL
7350 };
7351
7352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7354 if (obj1) {
7355 arg2 = PyInt_AsLong(obj1) ? true : false;
7356 if (PyErr_Occurred()) SWIG_fail;
7357 }
7358 {
7359 PyThreadState* __tstate = wxPyBeginAllowThreads();
7360 (arg1)->SetNoAntiAliasing(arg2);
7361
7362 wxPyEndAllowThreads(__tstate);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 }
7365 Py_INCREF(Py_None); resultobj = Py_None;
7366 return resultobj;
7367 fail:
7368 return NULL;
7369 }
7370
7371
7372 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7373 PyObject *resultobj;
7374 wxFont *arg1 = (wxFont *) 0 ;
7375 bool result;
7376 PyObject * obj0 = 0 ;
7377 char *kwnames[] = {
7378 (char *) "self", NULL
7379 };
7380
7381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7383 {
7384 PyThreadState* __tstate = wxPyBeginAllowThreads();
7385 result = (bool)(arg1)->GetNoAntiAliasing();
7386
7387 wxPyEndAllowThreads(__tstate);
7388 if (PyErr_Occurred()) SWIG_fail;
7389 }
7390 resultobj = PyInt_FromLong((long)result);
7391 return resultobj;
7392 fail:
7393 return NULL;
7394 }
7395
7396
7397 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7398 PyObject *resultobj;
7399 int result;
7400 char *kwnames[] = {
7401 NULL
7402 };
7403
7404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7405 {
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 result = (int)wxFont::GetDefaultEncoding();
7408
7409 wxPyEndAllowThreads(__tstate);
7410 if (PyErr_Occurred()) SWIG_fail;
7411 }
7412 resultobj = PyInt_FromLong((long)result);
7413 return resultobj;
7414 fail:
7415 return NULL;
7416 }
7417
7418
7419 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7420 PyObject *resultobj;
7421 int arg1 ;
7422 char *kwnames[] = {
7423 (char *) "encoding", NULL
7424 };
7425
7426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7427 {
7428 PyThreadState* __tstate = wxPyBeginAllowThreads();
7429 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7430
7431 wxPyEndAllowThreads(__tstate);
7432 if (PyErr_Occurred()) SWIG_fail;
7433 }
7434 Py_INCREF(Py_None); resultobj = Py_None;
7435 return resultobj;
7436 fail:
7437 return NULL;
7438 }
7439
7440
7441 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7442 PyObject *obj;
7443 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7444 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7445 Py_INCREF(obj);
7446 return Py_BuildValue((char *)"");
7447 }
7448 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj;
7450 wxPyFontEnumerator *result;
7451 char *kwnames[] = {
7452 NULL
7453 };
7454
7455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7456 {
7457 PyThreadState* __tstate = wxPyBeginAllowThreads();
7458 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7459
7460 wxPyEndAllowThreads(__tstate);
7461 if (PyErr_Occurred()) SWIG_fail;
7462 }
7463 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7464 return resultobj;
7465 fail:
7466 return NULL;
7467 }
7468
7469
7470 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7471 PyObject *resultobj;
7472 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7473 PyObject * obj0 = 0 ;
7474 char *kwnames[] = {
7475 (char *) "self", NULL
7476 };
7477
7478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7480 {
7481 PyThreadState* __tstate = wxPyBeginAllowThreads();
7482 delete arg1;
7483
7484 wxPyEndAllowThreads(__tstate);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
7487 Py_INCREF(Py_None); resultobj = Py_None;
7488 return resultobj;
7489 fail:
7490 return NULL;
7491 }
7492
7493
7494 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7495 PyObject *resultobj;
7496 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7497 PyObject *arg2 = (PyObject *) 0 ;
7498 PyObject *arg3 = (PyObject *) 0 ;
7499 bool arg4 ;
7500 PyObject * obj0 = 0 ;
7501 PyObject * obj1 = 0 ;
7502 PyObject * obj2 = 0 ;
7503 PyObject * obj3 = 0 ;
7504 char *kwnames[] = {
7505 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7510 arg2 = obj1;
7511 arg3 = obj2;
7512 arg4 = PyInt_AsLong(obj3) ? true : false;
7513 if (PyErr_Occurred()) SWIG_fail;
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 Py_INCREF(Py_None); resultobj = Py_None;
7522 return resultobj;
7523 fail:
7524 return NULL;
7525 }
7526
7527
7528 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7529 PyObject *resultobj;
7530 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7531 int arg2 = (int) wxFONTENCODING_SYSTEM ;
7532 bool arg3 = (bool) False ;
7533 bool result;
7534 PyObject * obj0 = 0 ;
7535 PyObject * obj2 = 0 ;
7536 char *kwnames[] = {
7537 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7538 };
7539
7540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7542 if (obj2) {
7543 arg3 = PyInt_AsLong(obj2) ? true : false;
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 {
7547 PyThreadState* __tstate = wxPyBeginAllowThreads();
7548 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7549
7550 wxPyEndAllowThreads(__tstate);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 }
7553 resultobj = PyInt_FromLong((long)result);
7554 return resultobj;
7555 fail:
7556 return NULL;
7557 }
7558
7559
7560 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7561 PyObject *resultobj;
7562 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7563 wxString const &arg2_defvalue = wxPyEmptyString ;
7564 wxString *arg2 = (wxString *) &arg2_defvalue ;
7565 bool result;
7566 bool temp2 = False ;
7567 PyObject * obj0 = 0 ;
7568 PyObject * obj1 = 0 ;
7569 char *kwnames[] = {
7570 (char *) "self",(char *) "facename", NULL
7571 };
7572
7573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7575 if (obj1) {
7576 {
7577 arg2 = wxString_in_helper(obj1);
7578 if (arg2 == NULL) SWIG_fail;
7579 temp2 = True;
7580 }
7581 }
7582 {
7583 PyThreadState* __tstate = wxPyBeginAllowThreads();
7584 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7585
7586 wxPyEndAllowThreads(__tstate);
7587 if (PyErr_Occurred()) SWIG_fail;
7588 }
7589 resultobj = PyInt_FromLong((long)result);
7590 {
7591 if (temp2)
7592 delete arg2;
7593 }
7594 return resultobj;
7595 fail:
7596 {
7597 if (temp2)
7598 delete arg2;
7599 }
7600 return NULL;
7601 }
7602
7603
7604 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7605 PyObject *resultobj;
7606 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7607 PyObject *result;
7608 PyObject * obj0 = 0 ;
7609 char *kwnames[] = {
7610 (char *) "self", NULL
7611 };
7612
7613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7615 {
7616 PyThreadState* __tstate = wxPyBeginAllowThreads();
7617 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7618
7619 wxPyEndAllowThreads(__tstate);
7620 if (PyErr_Occurred()) SWIG_fail;
7621 }
7622 resultobj = result;
7623 return resultobj;
7624 fail:
7625 return NULL;
7626 }
7627
7628
7629 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7630 PyObject *resultobj;
7631 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7632 PyObject *result;
7633 PyObject * obj0 = 0 ;
7634 char *kwnames[] = {
7635 (char *) "self", NULL
7636 };
7637
7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7640 {
7641 PyThreadState* __tstate = wxPyBeginAllowThreads();
7642 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7643
7644 wxPyEndAllowThreads(__tstate);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 resultobj = result;
7648 return resultobj;
7649 fail:
7650 return NULL;
7651 }
7652
7653
7654 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7655 PyObject *obj;
7656 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7657 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7658 Py_INCREF(obj);
7659 return Py_BuildValue((char *)"");
7660 }
7661 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj;
7663 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7664 int arg2 ;
7665 PyObject * obj0 = 0 ;
7666 char *kwnames[] = {
7667 (char *) "self",(char *) "Language", NULL
7668 };
7669
7670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7672 if (arg1) (arg1)->Language = arg2;
7673
7674 Py_INCREF(Py_None); resultobj = Py_None;
7675 return resultobj;
7676 fail:
7677 return NULL;
7678 }
7679
7680
7681 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7682 PyObject *resultobj;
7683 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7684 int result;
7685 PyObject * obj0 = 0 ;
7686 char *kwnames[] = {
7687 (char *) "self", NULL
7688 };
7689
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7692 result = (int) ((arg1)->Language);
7693
7694 resultobj = PyInt_FromLong((long)result);
7695 return resultobj;
7696 fail:
7697 return NULL;
7698 }
7699
7700
7701 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7702 PyObject *resultobj;
7703 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7704 wxString arg2 ;
7705 PyObject * obj0 = 0 ;
7706 PyObject * obj1 = 0 ;
7707 char *kwnames[] = {
7708 (char *) "self",(char *) "CanonicalName", NULL
7709 };
7710
7711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7713 {
7714 wxString* sptr = wxString_in_helper(obj1);
7715 if (sptr == NULL) SWIG_fail;
7716 arg2 = *sptr;
7717 delete sptr;
7718 }
7719 if (arg1) (arg1)->CanonicalName = arg2;
7720
7721 Py_INCREF(Py_None); resultobj = Py_None;
7722 return resultobj;
7723 fail:
7724 return NULL;
7725 }
7726
7727
7728 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7729 PyObject *resultobj;
7730 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7731 wxString result;
7732 PyObject * obj0 = 0 ;
7733 char *kwnames[] = {
7734 (char *) "self", NULL
7735 };
7736
7737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7739 result = ((arg1)->CanonicalName);
7740
7741 {
7742 #if wxUSE_UNICODE
7743 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7744 #else
7745 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7746 #endif
7747 }
7748 return resultobj;
7749 fail:
7750 return NULL;
7751 }
7752
7753
7754 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7755 PyObject *resultobj;
7756 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7757 wxString arg2 ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 char *kwnames[] = {
7761 (char *) "self",(char *) "Description", NULL
7762 };
7763
7764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
7765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7766 {
7767 wxString* sptr = wxString_in_helper(obj1);
7768 if (sptr == NULL) SWIG_fail;
7769 arg2 = *sptr;
7770 delete sptr;
7771 }
7772 if (arg1) (arg1)->Description = arg2;
7773
7774 Py_INCREF(Py_None); resultobj = Py_None;
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7784 wxString result;
7785 PyObject * obj0 = 0 ;
7786 char *kwnames[] = {
7787 (char *) "self", NULL
7788 };
7789
7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
7791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7792 result = ((arg1)->Description);
7793
7794 {
7795 #if wxUSE_UNICODE
7796 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7797 #else
7798 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7799 #endif
7800 }
7801 return resultobj;
7802 fail:
7803 return NULL;
7804 }
7805
7806
7807 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
7808 PyObject *obj;
7809 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7810 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
7811 Py_INCREF(obj);
7812 return Py_BuildValue((char *)"");
7813 }
7814 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7815 PyObject *resultobj;
7816 int arg1 = (int) wxLANGUAGE_DEFAULT ;
7817 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7818 wxLocale *result;
7819 char *kwnames[] = {
7820 (char *) "language",(char *) "flags", NULL
7821 };
7822
7823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
7824 {
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (wxLocale *)new wxLocale(arg1,arg2);
7827
7828 wxPyEndAllowThreads(__tstate);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
7832 return resultobj;
7833 fail:
7834 return NULL;
7835 }
7836
7837
7838 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7839 PyObject *resultobj;
7840 wxLocale *arg1 = (wxLocale *) 0 ;
7841 PyObject * obj0 = 0 ;
7842 char *kwnames[] = {
7843 (char *) "self", NULL
7844 };
7845
7846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
7847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7848 {
7849 PyThreadState* __tstate = wxPyBeginAllowThreads();
7850 delete arg1;
7851
7852 wxPyEndAllowThreads(__tstate);
7853 if (PyErr_Occurred()) SWIG_fail;
7854 }
7855 Py_INCREF(Py_None); resultobj = Py_None;
7856 return resultobj;
7857 fail:
7858 return NULL;
7859 }
7860
7861
7862 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
7863 PyObject *resultobj;
7864 wxLocale *arg1 = (wxLocale *) 0 ;
7865 wxString *arg2 = 0 ;
7866 wxString const &arg3_defvalue = wxPyEmptyString ;
7867 wxString *arg3 = (wxString *) &arg3_defvalue ;
7868 wxString const &arg4_defvalue = wxPyEmptyString ;
7869 wxString *arg4 = (wxString *) &arg4_defvalue ;
7870 bool arg5 = (bool) True ;
7871 bool arg6 = (bool) False ;
7872 bool result;
7873 bool temp2 = False ;
7874 bool temp3 = False ;
7875 bool temp4 = False ;
7876 PyObject * obj0 = 0 ;
7877 PyObject * obj1 = 0 ;
7878 PyObject * obj2 = 0 ;
7879 PyObject * obj3 = 0 ;
7880 PyObject * obj4 = 0 ;
7881 PyObject * obj5 = 0 ;
7882 char *kwnames[] = {
7883 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
7884 };
7885
7886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7888 {
7889 arg2 = wxString_in_helper(obj1);
7890 if (arg2 == NULL) SWIG_fail;
7891 temp2 = True;
7892 }
7893 if (obj2) {
7894 {
7895 arg3 = wxString_in_helper(obj2);
7896 if (arg3 == NULL) SWIG_fail;
7897 temp3 = True;
7898 }
7899 }
7900 if (obj3) {
7901 {
7902 arg4 = wxString_in_helper(obj3);
7903 if (arg4 == NULL) SWIG_fail;
7904 temp4 = True;
7905 }
7906 }
7907 if (obj4) {
7908 arg5 = PyInt_AsLong(obj4) ? true : false;
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 if (obj5) {
7912 arg6 = PyInt_AsLong(obj5) ? true : false;
7913 if (PyErr_Occurred()) SWIG_fail;
7914 }
7915 {
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
7918
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 resultobj = PyInt_FromLong((long)result);
7923 {
7924 if (temp2)
7925 delete arg2;
7926 }
7927 {
7928 if (temp3)
7929 delete arg3;
7930 }
7931 {
7932 if (temp4)
7933 delete arg4;
7934 }
7935 return resultobj;
7936 fail:
7937 {
7938 if (temp2)
7939 delete arg2;
7940 }
7941 {
7942 if (temp3)
7943 delete arg3;
7944 }
7945 {
7946 if (temp4)
7947 delete arg4;
7948 }
7949 return NULL;
7950 }
7951
7952
7953 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj;
7955 wxLocale *arg1 = (wxLocale *) 0 ;
7956 int arg2 = (int) wxLANGUAGE_DEFAULT ;
7957 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7958 bool result;
7959 PyObject * obj0 = 0 ;
7960 char *kwnames[] = {
7961 (char *) "self",(char *) "language",(char *) "flags", NULL
7962 };
7963
7964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
7965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7966 {
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 result = (bool)(arg1)->Init(arg2,arg3);
7969
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = PyInt_FromLong((long)result);
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
7981 PyObject *resultobj;
7982 int result;
7983 char *kwnames[] = {
7984 NULL
7985 };
7986
7987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 result = (int)wxLocale::GetSystemLanguage();
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
7995 resultobj = PyInt_FromLong((long)result);
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8003 PyObject *resultobj;
8004 int result;
8005 char *kwnames[] = {
8006 NULL
8007 };
8008
8009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8010 {
8011 PyThreadState* __tstate = wxPyBeginAllowThreads();
8012 result = (int)wxLocale::GetSystemEncoding();
8013
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 resultobj = PyInt_FromLong((long)result);
8018 return resultobj;
8019 fail:
8020 return NULL;
8021 }
8022
8023
8024 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8025 PyObject *resultobj;
8026 wxString result;
8027 char *kwnames[] = {
8028 NULL
8029 };
8030
8031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = wxLocale::GetSystemEncodingName();
8035
8036 wxPyEndAllowThreads(__tstate);
8037 if (PyErr_Occurred()) SWIG_fail;
8038 }
8039 {
8040 #if wxUSE_UNICODE
8041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8042 #else
8043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8044 #endif
8045 }
8046 return resultobj;
8047 fail:
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxLocale *arg1 = (wxLocale *) 0 ;
8055 bool result;
8056 PyObject * obj0 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8063 {
8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
8065 result = (bool)((wxLocale const *)arg1)->IsOk();
8066
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = PyInt_FromLong((long)result);
8071 return resultobj;
8072 fail:
8073 return NULL;
8074 }
8075
8076
8077 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8078 PyObject *resultobj;
8079 wxLocale *arg1 = (wxLocale *) 0 ;
8080 wxString result;
8081 PyObject * obj0 = 0 ;
8082 char *kwnames[] = {
8083 (char *) "self", NULL
8084 };
8085
8086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8088 {
8089 PyThreadState* __tstate = wxPyBeginAllowThreads();
8090 result = ((wxLocale const *)arg1)->GetLocale();
8091
8092 wxPyEndAllowThreads(__tstate);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 }
8095 {
8096 #if wxUSE_UNICODE
8097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8098 #else
8099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8100 #endif
8101 }
8102 return resultobj;
8103 fail:
8104 return NULL;
8105 }
8106
8107
8108 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj;
8110 wxLocale *arg1 = (wxLocale *) 0 ;
8111 int result;
8112 PyObject * obj0 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "self", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8119 {
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 result = (int)((wxLocale const *)arg1)->GetLanguage();
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 resultobj = PyInt_FromLong((long)result);
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxLocale *arg1 = (wxLocale *) 0 ;
8136 wxString result;
8137 PyObject * obj0 = 0 ;
8138 char *kwnames[] = {
8139 (char *) "self", NULL
8140 };
8141
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = ((wxLocale const *)arg1)->GetSysName();
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 {
8152 #if wxUSE_UNICODE
8153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8154 #else
8155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8156 #endif
8157 }
8158 return resultobj;
8159 fail:
8160 return NULL;
8161 }
8162
8163
8164 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8165 PyObject *resultobj;
8166 wxLocale *arg1 = (wxLocale *) 0 ;
8167 wxString result;
8168 PyObject * obj0 = 0 ;
8169 char *kwnames[] = {
8170 (char *) "self", NULL
8171 };
8172
8173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8175 {
8176 PyThreadState* __tstate = wxPyBeginAllowThreads();
8177 result = ((wxLocale const *)arg1)->GetCanonicalName();
8178
8179 wxPyEndAllowThreads(__tstate);
8180 if (PyErr_Occurred()) SWIG_fail;
8181 }
8182 {
8183 #if wxUSE_UNICODE
8184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8185 #else
8186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8187 #endif
8188 }
8189 return resultobj;
8190 fail:
8191 return NULL;
8192 }
8193
8194
8195 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8196 PyObject *resultobj;
8197 wxString *arg1 = 0 ;
8198 bool temp1 = False ;
8199 PyObject * obj0 = 0 ;
8200 char *kwnames[] = {
8201 (char *) "prefix", NULL
8202 };
8203
8204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8205 {
8206 arg1 = wxString_in_helper(obj0);
8207 if (arg1 == NULL) SWIG_fail;
8208 temp1 = True;
8209 }
8210 {
8211 PyThreadState* __tstate = wxPyBeginAllowThreads();
8212 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8213
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 Py_INCREF(Py_None); resultobj = Py_None;
8218 {
8219 if (temp1)
8220 delete arg1;
8221 }
8222 return resultobj;
8223 fail:
8224 {
8225 if (temp1)
8226 delete arg1;
8227 }
8228 return NULL;
8229 }
8230
8231
8232 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8233 PyObject *resultobj;
8234 wxLocale *arg1 = (wxLocale *) 0 ;
8235 wxString *arg2 = 0 ;
8236 bool result;
8237 bool temp2 = False ;
8238 PyObject * obj0 = 0 ;
8239 PyObject * obj1 = 0 ;
8240 char *kwnames[] = {
8241 (char *) "self",(char *) "szDomain", NULL
8242 };
8243
8244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8246 {
8247 arg2 = wxString_in_helper(obj1);
8248 if (arg2 == NULL) SWIG_fail;
8249 temp2 = True;
8250 }
8251 {
8252 PyThreadState* __tstate = wxPyBeginAllowThreads();
8253 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8254
8255 wxPyEndAllowThreads(__tstate);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 resultobj = PyInt_FromLong((long)result);
8259 {
8260 if (temp2)
8261 delete arg2;
8262 }
8263 return resultobj;
8264 fail:
8265 {
8266 if (temp2)
8267 delete arg2;
8268 }
8269 return NULL;
8270 }
8271
8272
8273 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8274 PyObject *resultobj;
8275 wxLocale *arg1 = (wxLocale *) 0 ;
8276 wxString *arg2 = 0 ;
8277 bool result;
8278 bool temp2 = False ;
8279 PyObject * obj0 = 0 ;
8280 PyObject * obj1 = 0 ;
8281 char *kwnames[] = {
8282 (char *) "self",(char *) "szDomain", NULL
8283 };
8284
8285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8287 {
8288 arg2 = wxString_in_helper(obj1);
8289 if (arg2 == NULL) SWIG_fail;
8290 temp2 = True;
8291 }
8292 {
8293 PyThreadState* __tstate = wxPyBeginAllowThreads();
8294 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8295
8296 wxPyEndAllowThreads(__tstate);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 }
8299 resultobj = PyInt_FromLong((long)result);
8300 {
8301 if (temp2)
8302 delete arg2;
8303 }
8304 return resultobj;
8305 fail:
8306 {
8307 if (temp2)
8308 delete arg2;
8309 }
8310 return NULL;
8311 }
8312
8313
8314 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8315 PyObject *resultobj;
8316 int arg1 ;
8317 wxLanguageInfo *result;
8318 char *kwnames[] = {
8319 (char *) "lang", NULL
8320 };
8321
8322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8323 {
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8326
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject *resultobj;
8339 int arg1 ;
8340 wxString result;
8341 char *kwnames[] = {
8342 (char *) "lang", NULL
8343 };
8344
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8346 {
8347 PyThreadState* __tstate = wxPyBeginAllowThreads();
8348 result = wxLocale::GetLanguageName(arg1);
8349
8350 wxPyEndAllowThreads(__tstate);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 {
8354 #if wxUSE_UNICODE
8355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8356 #else
8357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8358 #endif
8359 }
8360 return resultobj;
8361 fail:
8362 return NULL;
8363 }
8364
8365
8366 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8367 PyObject *resultobj;
8368 wxString *arg1 = 0 ;
8369 wxLanguageInfo *result;
8370 bool temp1 = False ;
8371 PyObject * obj0 = 0 ;
8372 char *kwnames[] = {
8373 (char *) "locale", NULL
8374 };
8375
8376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8377 {
8378 arg1 = wxString_in_helper(obj0);
8379 if (arg1 == NULL) SWIG_fail;
8380 temp1 = True;
8381 }
8382 {
8383 PyThreadState* __tstate = wxPyBeginAllowThreads();
8384 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8385
8386 wxPyEndAllowThreads(__tstate);
8387 if (PyErr_Occurred()) SWIG_fail;
8388 }
8389 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8390 {
8391 if (temp1)
8392 delete arg1;
8393 }
8394 return resultobj;
8395 fail:
8396 {
8397 if (temp1)
8398 delete arg1;
8399 }
8400 return NULL;
8401 }
8402
8403
8404 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8405 PyObject *resultobj;
8406 wxLanguageInfo *arg1 = 0 ;
8407 PyObject * obj0 = 0 ;
8408 char *kwnames[] = {
8409 (char *) "info", NULL
8410 };
8411
8412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8414 if (arg1 == NULL) {
8415 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8416 }
8417 {
8418 PyThreadState* __tstate = wxPyBeginAllowThreads();
8419 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8420
8421 wxPyEndAllowThreads(__tstate);
8422 if (PyErr_Occurred()) SWIG_fail;
8423 }
8424 Py_INCREF(Py_None); resultobj = Py_None;
8425 return resultobj;
8426 fail:
8427 return NULL;
8428 }
8429
8430
8431 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8432 PyObject *resultobj;
8433 wxLocale *arg1 = (wxLocale *) 0 ;
8434 wxString *arg2 = 0 ;
8435 wxString const &arg3_defvalue = wxPyEmptyString ;
8436 wxString *arg3 = (wxString *) &arg3_defvalue ;
8437 wxString result;
8438 bool temp2 = False ;
8439 bool temp3 = False ;
8440 PyObject * obj0 = 0 ;
8441 PyObject * obj1 = 0 ;
8442 PyObject * obj2 = 0 ;
8443 char *kwnames[] = {
8444 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8445 };
8446
8447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8449 {
8450 arg2 = wxString_in_helper(obj1);
8451 if (arg2 == NULL) SWIG_fail;
8452 temp2 = True;
8453 }
8454 if (obj2) {
8455 {
8456 arg3 = wxString_in_helper(obj2);
8457 if (arg3 == NULL) SWIG_fail;
8458 temp3 = True;
8459 }
8460 }
8461 {
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8464
8465 wxPyEndAllowThreads(__tstate);
8466 if (PyErr_Occurred()) SWIG_fail;
8467 }
8468 {
8469 #if wxUSE_UNICODE
8470 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8471 #else
8472 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8473 #endif
8474 }
8475 {
8476 if (temp2)
8477 delete arg2;
8478 }
8479 {
8480 if (temp3)
8481 delete arg3;
8482 }
8483 return resultobj;
8484 fail:
8485 {
8486 if (temp2)
8487 delete arg2;
8488 }
8489 {
8490 if (temp3)
8491 delete arg3;
8492 }
8493 return NULL;
8494 }
8495
8496
8497 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8498 PyObject *resultobj;
8499 wxLocale *arg1 = (wxLocale *) 0 ;
8500 wxString *result;
8501 PyObject * obj0 = 0 ;
8502 char *kwnames[] = {
8503 (char *) "self", NULL
8504 };
8505
8506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8508 {
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 {
8511 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8512 result = (wxString *) &_result_ref;
8513 }
8514
8515 wxPyEndAllowThreads(__tstate);
8516 if (PyErr_Occurred()) SWIG_fail;
8517 }
8518 {
8519 #if wxUSE_UNICODE
8520 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8521 #else
8522 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8523 #endif
8524 }
8525 return resultobj;
8526 fail:
8527 return NULL;
8528 }
8529
8530
8531 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8532 PyObject *obj;
8533 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8534 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8535 Py_INCREF(obj);
8536 return Py_BuildValue((char *)"");
8537 }
8538 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8539 PyObject *resultobj;
8540 wxLocale *result;
8541 char *kwnames[] = {
8542 NULL
8543 };
8544
8545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8546 {
8547 PyThreadState* __tstate = wxPyBeginAllowThreads();
8548 result = (wxLocale *)wxGetLocale();
8549
8550 wxPyEndAllowThreads(__tstate);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8554 return resultobj;
8555 fail:
8556 return NULL;
8557 }
8558
8559
8560 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8561 PyObject *resultobj;
8562 wxString *arg1 = 0 ;
8563 wxString result;
8564 bool temp1 = False ;
8565 PyObject * obj0 = 0 ;
8566
8567 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8568 {
8569 arg1 = wxString_in_helper(obj0);
8570 if (arg1 == NULL) SWIG_fail;
8571 temp1 = True;
8572 }
8573 {
8574 PyThreadState* __tstate = wxPyBeginAllowThreads();
8575 result = wxGetTranslation((wxString const &)*arg1);
8576
8577 wxPyEndAllowThreads(__tstate);
8578 if (PyErr_Occurred()) SWIG_fail;
8579 }
8580 {
8581 #if wxUSE_UNICODE
8582 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8583 #else
8584 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8585 #endif
8586 }
8587 {
8588 if (temp1)
8589 delete arg1;
8590 }
8591 return resultobj;
8592 fail:
8593 {
8594 if (temp1)
8595 delete arg1;
8596 }
8597 return NULL;
8598 }
8599
8600
8601 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8602 PyObject *resultobj;
8603 wxString *arg1 = 0 ;
8604 wxString *arg2 = 0 ;
8605 size_t arg3 ;
8606 wxString result;
8607 bool temp1 = False ;
8608 bool temp2 = False ;
8609 PyObject * obj0 = 0 ;
8610 PyObject * obj1 = 0 ;
8611 PyObject * obj2 = 0 ;
8612
8613 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8614 {
8615 arg1 = wxString_in_helper(obj0);
8616 if (arg1 == NULL) SWIG_fail;
8617 temp1 = True;
8618 }
8619 {
8620 arg2 = wxString_in_helper(obj1);
8621 if (arg2 == NULL) SWIG_fail;
8622 temp2 = True;
8623 }
8624 arg3 = (size_t) PyInt_AsLong(obj2);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8629
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 {
8634 #if wxUSE_UNICODE
8635 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8636 #else
8637 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8638 #endif
8639 }
8640 {
8641 if (temp1)
8642 delete arg1;
8643 }
8644 {
8645 if (temp2)
8646 delete arg2;
8647 }
8648 return resultobj;
8649 fail:
8650 {
8651 if (temp1)
8652 delete arg1;
8653 }
8654 {
8655 if (temp2)
8656 delete arg2;
8657 }
8658 return NULL;
8659 }
8660
8661
8662 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8663 int argc;
8664 PyObject *argv[4];
8665 int ii;
8666
8667 argc = PyObject_Length(args);
8668 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8669 argv[ii] = PyTuple_GetItem(args,ii);
8670 }
8671 if (argc == 1) {
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 return _wrap_GetTranslation__SWIG_0(self,args);
8684 }
8685 }
8686 if (argc == 3) {
8687 int _v;
8688 {
8689 void *ptr;
8690 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8691 _v = 0;
8692 PyErr_Clear();
8693 } else {
8694 _v = 1;
8695 }
8696 }
8697 if (_v) {
8698 {
8699 void *ptr;
8700 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8701 _v = 0;
8702 PyErr_Clear();
8703 } else {
8704 _v = 1;
8705 }
8706 }
8707 if (_v) {
8708 {
8709 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8710 }
8711 if (_v) {
8712 return _wrap_GetTranslation__SWIG_1(self,args);
8713 }
8714 }
8715 }
8716 }
8717
8718 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8719 return NULL;
8720 }
8721
8722
8723 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8724 PyObject *resultobj;
8725 wxEncodingConverter *result;
8726 char *kwnames[] = {
8727 NULL
8728 };
8729
8730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
8731 {
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 result = (wxEncodingConverter *)new wxEncodingConverter();
8734
8735 wxPyEndAllowThreads(__tstate);
8736 if (PyErr_Occurred()) SWIG_fail;
8737 }
8738 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
8739 return resultobj;
8740 fail:
8741 return NULL;
8742 }
8743
8744
8745 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8746 PyObject *resultobj;
8747 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8748 PyObject * obj0 = 0 ;
8749 char *kwnames[] = {
8750 (char *) "self", NULL
8751 };
8752
8753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
8754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8755 {
8756 PyThreadState* __tstate = wxPyBeginAllowThreads();
8757 delete arg1;
8758
8759 wxPyEndAllowThreads(__tstate);
8760 if (PyErr_Occurred()) SWIG_fail;
8761 }
8762 Py_INCREF(Py_None); resultobj = Py_None;
8763 return resultobj;
8764 fail:
8765 return NULL;
8766 }
8767
8768
8769 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj;
8771 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8772 int arg2 ;
8773 int arg3 ;
8774 int arg4 = (int) wxCONVERT_STRICT ;
8775 bool result;
8776 PyObject * obj0 = 0 ;
8777 char *kwnames[] = {
8778 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
8779 };
8780
8781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
8782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8783 {
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
8785 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
8786
8787 wxPyEndAllowThreads(__tstate);
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
8790 resultobj = PyInt_FromLong((long)result);
8791 return resultobj;
8792 fail:
8793 return NULL;
8794 }
8795
8796
8797 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
8798 PyObject *resultobj;
8799 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8800 wxString *arg2 = 0 ;
8801 wxString result;
8802 bool temp2 = False ;
8803 PyObject * obj0 = 0 ;
8804 PyObject * obj1 = 0 ;
8805 char *kwnames[] = {
8806 (char *) "self",(char *) "input", NULL
8807 };
8808
8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
8810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8811 {
8812 arg2 = wxString_in_helper(obj1);
8813 if (arg2 == NULL) SWIG_fail;
8814 temp2 = True;
8815 }
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 result = (arg1)->Convert((wxString const &)*arg2);
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 {
8824 #if wxUSE_UNICODE
8825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8826 #else
8827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8828 #endif
8829 }
8830 {
8831 if (temp2)
8832 delete arg2;
8833 }
8834 return resultobj;
8835 fail:
8836 {
8837 if (temp2)
8838 delete arg2;
8839 }
8840 return NULL;
8841 }
8842
8843
8844 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8845 PyObject *resultobj;
8846 int arg1 ;
8847 int arg2 = (int) wxPLATFORM_CURRENT ;
8848 wxFontEncodingArray result;
8849 char *kwnames[] = {
8850 (char *) "enc",(char *) "platform", NULL
8851 };
8852
8853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
8854 {
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
8857
8858 wxPyEndAllowThreads(__tstate);
8859 if (PyErr_Occurred()) SWIG_fail;
8860 }
8861 {
8862 resultobj = PyList_New(0);
8863 for (size_t i=0; i < (&result)->GetCount(); i++) {
8864 PyObject* number = PyInt_FromLong((&result)->Item(i));
8865 PyList_Append(resultobj, number);
8866 Py_DECREF(number);
8867 }
8868 }
8869 return resultobj;
8870 fail:
8871 return NULL;
8872 }
8873
8874
8875 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8876 PyObject *resultobj;
8877 int arg1 ;
8878 wxFontEncodingArray result;
8879 char *kwnames[] = {
8880 (char *) "enc", NULL
8881 };
8882
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
8887
8888 wxPyEndAllowThreads(__tstate);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 }
8891 {
8892 resultobj = PyList_New(0);
8893 for (size_t i=0; i < (&result)->GetCount(); i++) {
8894 PyObject* number = PyInt_FromLong((&result)->Item(i));
8895 PyList_Append(resultobj, number);
8896 Py_DECREF(number);
8897 }
8898 }
8899 return resultobj;
8900 fail:
8901 return NULL;
8902 }
8903
8904
8905 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
8906 PyObject *resultobj;
8907 int arg1 ;
8908 int arg2 ;
8909 bool result;
8910 char *kwnames[] = {
8911 (char *) "encIn",(char *) "encOut", NULL
8912 };
8913
8914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
8915 {
8916 PyThreadState* __tstate = wxPyBeginAllowThreads();
8917 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
8918
8919 wxPyEndAllowThreads(__tstate);
8920 if (PyErr_Occurred()) SWIG_fail;
8921 }
8922 resultobj = PyInt_FromLong((long)result);
8923 return resultobj;
8924 fail:
8925 return NULL;
8926 }
8927
8928
8929 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
8930 PyObject *obj;
8931 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8932 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
8933 Py_INCREF(obj);
8934 return Py_BuildValue((char *)"");
8935 }
8936 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
8937 PyObject *resultobj;
8938 wxDC *arg1 = (wxDC *) 0 ;
8939 PyObject * obj0 = 0 ;
8940 char *kwnames[] = {
8941 (char *) "self", NULL
8942 };
8943
8944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
8945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8946 {
8947 PyThreadState* __tstate = wxPyBeginAllowThreads();
8948 delete arg1;
8949
8950 wxPyEndAllowThreads(__tstate);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 Py_INCREF(Py_None); resultobj = Py_None;
8954 return resultobj;
8955 fail:
8956 return NULL;
8957 }
8958
8959
8960 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8961 PyObject *resultobj;
8962 wxDC *arg1 = (wxDC *) 0 ;
8963 PyObject * obj0 = 0 ;
8964 char *kwnames[] = {
8965 (char *) "self", NULL
8966 };
8967
8968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
8969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8970 {
8971 PyThreadState* __tstate = wxPyBeginAllowThreads();
8972 (arg1)->BeginDrawing();
8973
8974 wxPyEndAllowThreads(__tstate);
8975 if (PyErr_Occurred()) SWIG_fail;
8976 }
8977 Py_INCREF(Py_None); resultobj = Py_None;
8978 return resultobj;
8979 fail:
8980 return NULL;
8981 }
8982
8983
8984 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8985 PyObject *resultobj;
8986 wxDC *arg1 = (wxDC *) 0 ;
8987 PyObject * obj0 = 0 ;
8988 char *kwnames[] = {
8989 (char *) "self", NULL
8990 };
8991
8992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
8993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8994 {
8995 PyThreadState* __tstate = wxPyBeginAllowThreads();
8996 (arg1)->EndDrawing();
8997
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 Py_INCREF(Py_None); resultobj = Py_None;
9002 return resultobj;
9003 fail:
9004 return NULL;
9005 }
9006
9007
9008 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9009 PyObject *resultobj;
9010 wxDC *arg1 = (wxDC *) 0 ;
9011 int arg2 ;
9012 int arg3 ;
9013 wxColour *arg4 = 0 ;
9014 int arg5 = (int) wxFLOOD_SURFACE ;
9015 bool result;
9016 wxColour temp4 ;
9017 PyObject * obj0 = 0 ;
9018 PyObject * obj3 = 0 ;
9019 char *kwnames[] = {
9020 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9021 };
9022
9023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9025 {
9026 arg4 = &temp4;
9027 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9028 }
9029 {
9030 PyThreadState* __tstate = wxPyBeginAllowThreads();
9031 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9032
9033 wxPyEndAllowThreads(__tstate);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 }
9036 resultobj = PyInt_FromLong((long)result);
9037 return resultobj;
9038 fail:
9039 return NULL;
9040 }
9041
9042
9043 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj;
9045 wxDC *arg1 = (wxDC *) 0 ;
9046 wxPoint *arg2 = 0 ;
9047 wxColour *arg3 = 0 ;
9048 int arg4 = (int) wxFLOOD_SURFACE ;
9049 bool result;
9050 wxPoint temp2 ;
9051 wxColour temp3 ;
9052 PyObject * obj0 = 0 ;
9053 PyObject * obj1 = 0 ;
9054 PyObject * obj2 = 0 ;
9055 char *kwnames[] = {
9056 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9057 };
9058
9059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9061 {
9062 arg2 = &temp2;
9063 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9064 }
9065 {
9066 arg3 = &temp3;
9067 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9068 }
9069 {
9070 PyThreadState* __tstate = wxPyBeginAllowThreads();
9071 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9072
9073 wxPyEndAllowThreads(__tstate);
9074 if (PyErr_Occurred()) SWIG_fail;
9075 }
9076 resultobj = PyInt_FromLong((long)result);
9077 return resultobj;
9078 fail:
9079 return NULL;
9080 }
9081
9082
9083 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9084 PyObject *resultobj;
9085 wxDC *arg1 = (wxDC *) 0 ;
9086 int arg2 ;
9087 int arg3 ;
9088 wxColour result;
9089 PyObject * obj0 = 0 ;
9090 char *kwnames[] = {
9091 (char *) "self",(char *) "x",(char *) "y", NULL
9092 };
9093
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9096 {
9097 PyThreadState* __tstate = wxPyBeginAllowThreads();
9098 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9099
9100 wxPyEndAllowThreads(__tstate);
9101 if (PyErr_Occurred()) SWIG_fail;
9102 }
9103 {
9104 wxColour * resultptr;
9105 resultptr = new wxColour((wxColour &) result);
9106 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9107 }
9108 return resultobj;
9109 fail:
9110 return NULL;
9111 }
9112
9113
9114 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9115 PyObject *resultobj;
9116 wxDC *arg1 = (wxDC *) 0 ;
9117 wxPoint *arg2 = 0 ;
9118 wxColour result;
9119 wxPoint temp2 ;
9120 PyObject * obj0 = 0 ;
9121 PyObject * obj1 = 0 ;
9122 char *kwnames[] = {
9123 (char *) "self",(char *) "pt", NULL
9124 };
9125
9126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9128 {
9129 arg2 = &temp2;
9130 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9131 }
9132 {
9133 PyThreadState* __tstate = wxPyBeginAllowThreads();
9134 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9135
9136 wxPyEndAllowThreads(__tstate);
9137 if (PyErr_Occurred()) SWIG_fail;
9138 }
9139 {
9140 wxColour * resultptr;
9141 resultptr = new wxColour((wxColour &) result);
9142 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9143 }
9144 return resultobj;
9145 fail:
9146 return NULL;
9147 }
9148
9149
9150 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9151 PyObject *resultobj;
9152 wxDC *arg1 = (wxDC *) 0 ;
9153 int arg2 ;
9154 int arg3 ;
9155 int arg4 ;
9156 int arg5 ;
9157 PyObject * obj0 = 0 ;
9158 char *kwnames[] = {
9159 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9160 };
9161
9162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9164 {
9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
9166 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9167
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 Py_INCREF(Py_None); resultobj = Py_None;
9172 return resultobj;
9173 fail:
9174 return NULL;
9175 }
9176
9177
9178 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9179 PyObject *resultobj;
9180 wxDC *arg1 = (wxDC *) 0 ;
9181 wxPoint *arg2 = 0 ;
9182 wxPoint *arg3 = 0 ;
9183 wxPoint temp2 ;
9184 wxPoint temp3 ;
9185 PyObject * obj0 = 0 ;
9186 PyObject * obj1 = 0 ;
9187 PyObject * obj2 = 0 ;
9188 char *kwnames[] = {
9189 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9190 };
9191
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9194 {
9195 arg2 = &temp2;
9196 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9197 }
9198 {
9199 arg3 = &temp3;
9200 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9201 }
9202 {
9203 PyThreadState* __tstate = wxPyBeginAllowThreads();
9204 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9205
9206 wxPyEndAllowThreads(__tstate);
9207 if (PyErr_Occurred()) SWIG_fail;
9208 }
9209 Py_INCREF(Py_None); resultobj = Py_None;
9210 return resultobj;
9211 fail:
9212 return NULL;
9213 }
9214
9215
9216 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj;
9218 wxDC *arg1 = (wxDC *) 0 ;
9219 int arg2 ;
9220 int arg3 ;
9221 PyObject * obj0 = 0 ;
9222 char *kwnames[] = {
9223 (char *) "self",(char *) "x",(char *) "y", NULL
9224 };
9225
9226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 (arg1)->CrossHair(arg2,arg3);
9231
9232 wxPyEndAllowThreads(__tstate);
9233 if (PyErr_Occurred()) SWIG_fail;
9234 }
9235 Py_INCREF(Py_None); resultobj = Py_None;
9236 return resultobj;
9237 fail:
9238 return NULL;
9239 }
9240
9241
9242 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9243 PyObject *resultobj;
9244 wxDC *arg1 = (wxDC *) 0 ;
9245 wxPoint *arg2 = 0 ;
9246 wxPoint temp2 ;
9247 PyObject * obj0 = 0 ;
9248 PyObject * obj1 = 0 ;
9249 char *kwnames[] = {
9250 (char *) "self",(char *) "pt", NULL
9251 };
9252
9253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9255 {
9256 arg2 = &temp2;
9257 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9258 }
9259 {
9260 PyThreadState* __tstate = wxPyBeginAllowThreads();
9261 (arg1)->CrossHair((wxPoint const &)*arg2);
9262
9263 wxPyEndAllowThreads(__tstate);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
9266 Py_INCREF(Py_None); resultobj = Py_None;
9267 return resultobj;
9268 fail:
9269 return NULL;
9270 }
9271
9272
9273 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9274 PyObject *resultobj;
9275 wxDC *arg1 = (wxDC *) 0 ;
9276 int arg2 ;
9277 int arg3 ;
9278 int arg4 ;
9279 int arg5 ;
9280 int arg6 ;
9281 int arg7 ;
9282 PyObject * obj0 = 0 ;
9283 char *kwnames[] = {
9284 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9285 };
9286
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9289 {
9290 PyThreadState* __tstate = wxPyBeginAllowThreads();
9291 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9292
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 Py_INCREF(Py_None); resultobj = Py_None;
9297 return resultobj;
9298 fail:
9299 return NULL;
9300 }
9301
9302
9303 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9304 PyObject *resultobj;
9305 wxDC *arg1 = (wxDC *) 0 ;
9306 wxPoint *arg2 = 0 ;
9307 wxPoint *arg3 = 0 ;
9308 wxPoint *arg4 = 0 ;
9309 wxPoint temp2 ;
9310 wxPoint temp3 ;
9311 wxPoint temp4 ;
9312 PyObject * obj0 = 0 ;
9313 PyObject * obj1 = 0 ;
9314 PyObject * obj2 = 0 ;
9315 PyObject * obj3 = 0 ;
9316 char *kwnames[] = {
9317 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9318 };
9319
9320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9322 {
9323 arg2 = &temp2;
9324 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9325 }
9326 {
9327 arg3 = &temp3;
9328 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9329 }
9330 {
9331 arg4 = &temp4;
9332 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9333 }
9334 {
9335 PyThreadState* __tstate = wxPyBeginAllowThreads();
9336 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9337
9338 wxPyEndAllowThreads(__tstate);
9339 if (PyErr_Occurred()) SWIG_fail;
9340 }
9341 Py_INCREF(Py_None); resultobj = Py_None;
9342 return resultobj;
9343 fail:
9344 return NULL;
9345 }
9346
9347
9348 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9349 PyObject *resultobj;
9350 wxDC *arg1 = (wxDC *) 0 ;
9351 int arg2 ;
9352 int arg3 ;
9353 int arg4 ;
9354 int arg5 ;
9355 PyObject * obj0 = 0 ;
9356 char *kwnames[] = {
9357 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9358 };
9359
9360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9365
9366 wxPyEndAllowThreads(__tstate);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 }
9369 Py_INCREF(Py_None); resultobj = Py_None;
9370 return resultobj;
9371 fail:
9372 return NULL;
9373 }
9374
9375
9376 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9377 PyObject *resultobj;
9378 wxDC *arg1 = (wxDC *) 0 ;
9379 wxRect *arg2 = 0 ;
9380 wxRect temp2 ;
9381 PyObject * obj0 = 0 ;
9382 PyObject * obj1 = 0 ;
9383 char *kwnames[] = {
9384 (char *) "self",(char *) "rect", NULL
9385 };
9386
9387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9389 {
9390 arg2 = &temp2;
9391 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9392 }
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9396
9397 wxPyEndAllowThreads(__tstate);
9398 if (PyErr_Occurred()) SWIG_fail;
9399 }
9400 Py_INCREF(Py_None); resultobj = Py_None;
9401 return resultobj;
9402 fail:
9403 return NULL;
9404 }
9405
9406
9407 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj;
9409 wxDC *arg1 = (wxDC *) 0 ;
9410 int arg2 ;
9411 int arg3 ;
9412 int arg4 ;
9413 int arg5 ;
9414 double arg6 ;
9415 double arg7 ;
9416 PyObject * obj0 = 0 ;
9417 char *kwnames[] = {
9418 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9419 };
9420
9421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9426
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 Py_INCREF(Py_None); resultobj = Py_None;
9431 return resultobj;
9432 fail:
9433 return NULL;
9434 }
9435
9436
9437 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj;
9439 wxDC *arg1 = (wxDC *) 0 ;
9440 wxPoint *arg2 = 0 ;
9441 wxSize *arg3 = 0 ;
9442 double arg4 ;
9443 double arg5 ;
9444 wxPoint temp2 ;
9445 wxSize temp3 ;
9446 PyObject * obj0 = 0 ;
9447 PyObject * obj1 = 0 ;
9448 PyObject * obj2 = 0 ;
9449 char *kwnames[] = {
9450 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9451 };
9452
9453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9455 {
9456 arg2 = &temp2;
9457 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9458 }
9459 {
9460 arg3 = &temp3;
9461 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9462 }
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9466
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 Py_INCREF(Py_None); resultobj = Py_None;
9471 return resultobj;
9472 fail:
9473 return NULL;
9474 }
9475
9476
9477 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj;
9479 wxDC *arg1 = (wxDC *) 0 ;
9480 int arg2 ;
9481 int arg3 ;
9482 PyObject * obj0 = 0 ;
9483 char *kwnames[] = {
9484 (char *) "self",(char *) "x",(char *) "y", NULL
9485 };
9486
9487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9489 {
9490 PyThreadState* __tstate = wxPyBeginAllowThreads();
9491 (arg1)->DrawPoint(arg2,arg3);
9492
9493 wxPyEndAllowThreads(__tstate);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
9496 Py_INCREF(Py_None); resultobj = Py_None;
9497 return resultobj;
9498 fail:
9499 return NULL;
9500 }
9501
9502
9503 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9504 PyObject *resultobj;
9505 wxDC *arg1 = (wxDC *) 0 ;
9506 wxPoint *arg2 = 0 ;
9507 wxPoint temp2 ;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 char *kwnames[] = {
9511 (char *) "self",(char *) "pt", NULL
9512 };
9513
9514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9516 {
9517 arg2 = &temp2;
9518 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9519 }
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 (arg1)->DrawPoint((wxPoint const &)*arg2);
9523
9524 wxPyEndAllowThreads(__tstate);
9525 if (PyErr_Occurred()) SWIG_fail;
9526 }
9527 Py_INCREF(Py_None); resultobj = Py_None;
9528 return resultobj;
9529 fail:
9530 return NULL;
9531 }
9532
9533
9534 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9535 PyObject *resultobj;
9536 wxDC *arg1 = (wxDC *) 0 ;
9537 int arg2 ;
9538 int arg3 ;
9539 int arg4 ;
9540 int arg5 ;
9541 PyObject * obj0 = 0 ;
9542 char *kwnames[] = {
9543 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9544 };
9545
9546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9548 {
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9551
9552 wxPyEndAllowThreads(__tstate);
9553 if (PyErr_Occurred()) SWIG_fail;
9554 }
9555 Py_INCREF(Py_None); resultobj = Py_None;
9556 return resultobj;
9557 fail:
9558 return NULL;
9559 }
9560
9561
9562 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9563 PyObject *resultobj;
9564 wxDC *arg1 = (wxDC *) 0 ;
9565 wxPoint *arg2 = 0 ;
9566 wxSize *arg3 = 0 ;
9567 wxPoint temp2 ;
9568 wxSize temp3 ;
9569 PyObject * obj0 = 0 ;
9570 PyObject * obj1 = 0 ;
9571 PyObject * obj2 = 0 ;
9572 char *kwnames[] = {
9573 (char *) "self",(char *) "pt",(char *) "sz", NULL
9574 };
9575
9576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9578 {
9579 arg2 = &temp2;
9580 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9581 }
9582 {
9583 arg3 = &temp3;
9584 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9585 }
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9589
9590 wxPyEndAllowThreads(__tstate);
9591 if (PyErr_Occurred()) SWIG_fail;
9592 }
9593 Py_INCREF(Py_None); resultobj = Py_None;
9594 return resultobj;
9595 fail:
9596 return NULL;
9597 }
9598
9599
9600 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9601 PyObject *resultobj;
9602 wxDC *arg1 = (wxDC *) 0 ;
9603 wxRect *arg2 = 0 ;
9604 wxRect temp2 ;
9605 PyObject * obj0 = 0 ;
9606 PyObject * obj1 = 0 ;
9607 char *kwnames[] = {
9608 (char *) "self",(char *) "rect", NULL
9609 };
9610
9611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9613 {
9614 arg2 = &temp2;
9615 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9616 }
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 (arg1)->DrawRectangle((wxRect const &)*arg2);
9620
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 Py_INCREF(Py_None); resultobj = Py_None;
9625 return resultobj;
9626 fail:
9627 return NULL;
9628 }
9629
9630
9631 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9632 PyObject *resultobj;
9633 wxDC *arg1 = (wxDC *) 0 ;
9634 int arg2 ;
9635 int arg3 ;
9636 int arg4 ;
9637 int arg5 ;
9638 double arg6 ;
9639 PyObject * obj0 = 0 ;
9640 char *kwnames[] = {
9641 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9642 };
9643
9644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9649
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 Py_INCREF(Py_None); resultobj = Py_None;
9654 return resultobj;
9655 fail:
9656 return NULL;
9657 }
9658
9659
9660 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9661 PyObject *resultobj;
9662 wxDC *arg1 = (wxDC *) 0 ;
9663 wxPoint *arg2 = 0 ;
9664 wxSize *arg3 = 0 ;
9665 double arg4 ;
9666 wxPoint temp2 ;
9667 wxSize temp3 ;
9668 PyObject * obj0 = 0 ;
9669 PyObject * obj1 = 0 ;
9670 PyObject * obj2 = 0 ;
9671 char *kwnames[] = {
9672 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9673 };
9674
9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9677 {
9678 arg2 = &temp2;
9679 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9680 }
9681 {
9682 arg3 = &temp3;
9683 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9684 }
9685 {
9686 PyThreadState* __tstate = wxPyBeginAllowThreads();
9687 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9688
9689 wxPyEndAllowThreads(__tstate);
9690 if (PyErr_Occurred()) SWIG_fail;
9691 }
9692 Py_INCREF(Py_None); resultobj = Py_None;
9693 return resultobj;
9694 fail:
9695 return NULL;
9696 }
9697
9698
9699 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9700 PyObject *resultobj;
9701 wxDC *arg1 = (wxDC *) 0 ;
9702 wxRect *arg2 = 0 ;
9703 double arg3 ;
9704 wxRect temp2 ;
9705 PyObject * obj0 = 0 ;
9706 PyObject * obj1 = 0 ;
9707 char *kwnames[] = {
9708 (char *) "self",(char *) "r",(char *) "radius", NULL
9709 };
9710
9711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9713 {
9714 arg2 = &temp2;
9715 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9716 }
9717 {
9718 PyThreadState* __tstate = wxPyBeginAllowThreads();
9719 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9720
9721 wxPyEndAllowThreads(__tstate);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
9724 Py_INCREF(Py_None); resultobj = Py_None;
9725 return resultobj;
9726 fail:
9727 return NULL;
9728 }
9729
9730
9731 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9732 PyObject *resultobj;
9733 wxDC *arg1 = (wxDC *) 0 ;
9734 int arg2 ;
9735 int arg3 ;
9736 int arg4 ;
9737 PyObject * obj0 = 0 ;
9738 char *kwnames[] = {
9739 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
9740 };
9741
9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
9746 (arg1)->DrawCircle(arg2,arg3,arg4);
9747
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 Py_INCREF(Py_None); resultobj = Py_None;
9752 return resultobj;
9753 fail:
9754 return NULL;
9755 }
9756
9757
9758 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
9759 PyObject *resultobj;
9760 wxDC *arg1 = (wxDC *) 0 ;
9761 wxPoint *arg2 = 0 ;
9762 int arg3 ;
9763 wxPoint temp2 ;
9764 PyObject * obj0 = 0 ;
9765 PyObject * obj1 = 0 ;
9766 char *kwnames[] = {
9767 (char *) "self",(char *) "pt",(char *) "radius", NULL
9768 };
9769
9770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
9771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9772 {
9773 arg2 = &temp2;
9774 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9775 }
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
9779
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 Py_INCREF(Py_None); resultobj = Py_None;
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj;
9792 wxDC *arg1 = (wxDC *) 0 ;
9793 int arg2 ;
9794 int arg3 ;
9795 int arg4 ;
9796 int arg5 ;
9797 PyObject * obj0 = 0 ;
9798 char *kwnames[] = {
9799 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9800 };
9801
9802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
9807
9808 wxPyEndAllowThreads(__tstate);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 Py_INCREF(Py_None); resultobj = Py_None;
9812 return resultobj;
9813 fail:
9814 return NULL;
9815 }
9816
9817
9818 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
9819 PyObject *resultobj;
9820 wxDC *arg1 = (wxDC *) 0 ;
9821 wxPoint *arg2 = 0 ;
9822 wxSize *arg3 = 0 ;
9823 wxPoint temp2 ;
9824 wxSize temp3 ;
9825 PyObject * obj0 = 0 ;
9826 PyObject * obj1 = 0 ;
9827 PyObject * obj2 = 0 ;
9828 char *kwnames[] = {
9829 (char *) "self",(char *) "pt",(char *) "sz", NULL
9830 };
9831
9832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
9833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9834 {
9835 arg2 = &temp2;
9836 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9837 }
9838 {
9839 arg3 = &temp3;
9840 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9841 }
9842 {
9843 PyThreadState* __tstate = wxPyBeginAllowThreads();
9844 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
9845
9846 wxPyEndAllowThreads(__tstate);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 }
9849 Py_INCREF(Py_None); resultobj = Py_None;
9850 return resultobj;
9851 fail:
9852 return NULL;
9853 }
9854
9855
9856 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9857 PyObject *resultobj;
9858 wxDC *arg1 = (wxDC *) 0 ;
9859 wxRect *arg2 = 0 ;
9860 wxRect temp2 ;
9861 PyObject * obj0 = 0 ;
9862 PyObject * obj1 = 0 ;
9863 char *kwnames[] = {
9864 (char *) "self",(char *) "rect", NULL
9865 };
9866
9867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
9868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9869 {
9870 arg2 = &temp2;
9871 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9872 }
9873 {
9874 PyThreadState* __tstate = wxPyBeginAllowThreads();
9875 (arg1)->DrawEllipse((wxRect const &)*arg2);
9876
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 Py_INCREF(Py_None); resultobj = Py_None;
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj;
9889 wxDC *arg1 = (wxDC *) 0 ;
9890 wxIcon *arg2 = 0 ;
9891 int arg3 ;
9892 int arg4 ;
9893 PyObject * obj0 = 0 ;
9894 PyObject * obj1 = 0 ;
9895 char *kwnames[] = {
9896 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
9897 };
9898
9899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
9900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9901 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9902 if (arg2 == NULL) {
9903 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9904 }
9905 {
9906 PyThreadState* __tstate = wxPyBeginAllowThreads();
9907 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
9908
9909 wxPyEndAllowThreads(__tstate);
9910 if (PyErr_Occurred()) SWIG_fail;
9911 }
9912 Py_INCREF(Py_None); resultobj = Py_None;
9913 return resultobj;
9914 fail:
9915 return NULL;
9916 }
9917
9918
9919 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9920 PyObject *resultobj;
9921 wxDC *arg1 = (wxDC *) 0 ;
9922 wxIcon *arg2 = 0 ;
9923 wxPoint *arg3 = 0 ;
9924 wxPoint temp3 ;
9925 PyObject * obj0 = 0 ;
9926 PyObject * obj1 = 0 ;
9927 PyObject * obj2 = 0 ;
9928 char *kwnames[] = {
9929 (char *) "self",(char *) "icon",(char *) "pt", NULL
9930 };
9931
9932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
9933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9934 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9935 if (arg2 == NULL) {
9936 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9937 }
9938 {
9939 arg3 = &temp3;
9940 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9941 }
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
9945
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 Py_INCREF(Py_None); resultobj = Py_None;
9950 return resultobj;
9951 fail:
9952 return NULL;
9953 }
9954
9955
9956 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj;
9958 wxDC *arg1 = (wxDC *) 0 ;
9959 wxBitmap *arg2 = 0 ;
9960 int arg3 ;
9961 int arg4 ;
9962 bool arg5 = (bool) False ;
9963 PyObject * obj0 = 0 ;
9964 PyObject * obj1 = 0 ;
9965 PyObject * obj4 = 0 ;
9966 char *kwnames[] = {
9967 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
9968 };
9969
9970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
9971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9972 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9973 if (arg2 == NULL) {
9974 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9975 }
9976 if (obj4) {
9977 arg5 = PyInt_AsLong(obj4) ? true : false;
9978 if (PyErr_Occurred()) SWIG_fail;
9979 }
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 Py_INCREF(Py_None); resultobj = Py_None;
9988 return resultobj;
9989 fail:
9990 return NULL;
9991 }
9992
9993
9994 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9995 PyObject *resultobj;
9996 wxDC *arg1 = (wxDC *) 0 ;
9997 wxBitmap *arg2 = 0 ;
9998 wxPoint *arg3 = 0 ;
9999 bool arg4 = (bool) False ;
10000 wxPoint temp3 ;
10001 PyObject * obj0 = 0 ;
10002 PyObject * obj1 = 0 ;
10003 PyObject * obj2 = 0 ;
10004 PyObject * obj3 = 0 ;
10005 char *kwnames[] = {
10006 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
10007 };
10008
10009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10011 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10012 if (arg2 == NULL) {
10013 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10014 }
10015 {
10016 arg3 = &temp3;
10017 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10018 }
10019 if (obj3) {
10020 arg4 = PyInt_AsLong(obj3) ? true : false;
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 {
10024 PyThreadState* __tstate = wxPyBeginAllowThreads();
10025 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10026
10027 wxPyEndAllowThreads(__tstate);
10028 if (PyErr_Occurred()) SWIG_fail;
10029 }
10030 Py_INCREF(Py_None); resultobj = Py_None;
10031 return resultobj;
10032 fail:
10033 return NULL;
10034 }
10035
10036
10037 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10038 PyObject *resultobj;
10039 wxDC *arg1 = (wxDC *) 0 ;
10040 wxString *arg2 = 0 ;
10041 int arg3 ;
10042 int arg4 ;
10043 bool temp2 = False ;
10044 PyObject * obj0 = 0 ;
10045 PyObject * obj1 = 0 ;
10046 char *kwnames[] = {
10047 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10048 };
10049
10050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10052 {
10053 arg2 = wxString_in_helper(obj1);
10054 if (arg2 == NULL) SWIG_fail;
10055 temp2 = True;
10056 }
10057 {
10058 PyThreadState* __tstate = wxPyBeginAllowThreads();
10059 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10060
10061 wxPyEndAllowThreads(__tstate);
10062 if (PyErr_Occurred()) SWIG_fail;
10063 }
10064 Py_INCREF(Py_None); resultobj = Py_None;
10065 {
10066 if (temp2)
10067 delete arg2;
10068 }
10069 return resultobj;
10070 fail:
10071 {
10072 if (temp2)
10073 delete arg2;
10074 }
10075 return NULL;
10076 }
10077
10078
10079 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10080 PyObject *resultobj;
10081 wxDC *arg1 = (wxDC *) 0 ;
10082 wxString *arg2 = 0 ;
10083 wxPoint *arg3 = 0 ;
10084 bool temp2 = False ;
10085 wxPoint temp3 ;
10086 PyObject * obj0 = 0 ;
10087 PyObject * obj1 = 0 ;
10088 PyObject * obj2 = 0 ;
10089 char *kwnames[] = {
10090 (char *) "self",(char *) "text",(char *) "pt", NULL
10091 };
10092
10093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10095 {
10096 arg2 = wxString_in_helper(obj1);
10097 if (arg2 == NULL) SWIG_fail;
10098 temp2 = True;
10099 }
10100 {
10101 arg3 = &temp3;
10102 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10103 }
10104 {
10105 PyThreadState* __tstate = wxPyBeginAllowThreads();
10106 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10107
10108 wxPyEndAllowThreads(__tstate);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 }
10111 Py_INCREF(Py_None); resultobj = Py_None;
10112 {
10113 if (temp2)
10114 delete arg2;
10115 }
10116 return resultobj;
10117 fail:
10118 {
10119 if (temp2)
10120 delete arg2;
10121 }
10122 return NULL;
10123 }
10124
10125
10126 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10127 PyObject *resultobj;
10128 wxDC *arg1 = (wxDC *) 0 ;
10129 wxString *arg2 = 0 ;
10130 int arg3 ;
10131 int arg4 ;
10132 double arg5 ;
10133 bool temp2 = False ;
10134 PyObject * obj0 = 0 ;
10135 PyObject * obj1 = 0 ;
10136 char *kwnames[] = {
10137 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10138 };
10139
10140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10142 {
10143 arg2 = wxString_in_helper(obj1);
10144 if (arg2 == NULL) SWIG_fail;
10145 temp2 = True;
10146 }
10147 {
10148 PyThreadState* __tstate = wxPyBeginAllowThreads();
10149 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10150
10151 wxPyEndAllowThreads(__tstate);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 }
10154 Py_INCREF(Py_None); resultobj = Py_None;
10155 {
10156 if (temp2)
10157 delete arg2;
10158 }
10159 return resultobj;
10160 fail:
10161 {
10162 if (temp2)
10163 delete arg2;
10164 }
10165 return NULL;
10166 }
10167
10168
10169 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj;
10171 wxDC *arg1 = (wxDC *) 0 ;
10172 wxString *arg2 = 0 ;
10173 wxPoint *arg3 = 0 ;
10174 double arg4 ;
10175 bool temp2 = False ;
10176 wxPoint temp3 ;
10177 PyObject * obj0 = 0 ;
10178 PyObject * obj1 = 0 ;
10179 PyObject * obj2 = 0 ;
10180 char *kwnames[] = {
10181 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10182 };
10183
10184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10186 {
10187 arg2 = wxString_in_helper(obj1);
10188 if (arg2 == NULL) SWIG_fail;
10189 temp2 = True;
10190 }
10191 {
10192 arg3 = &temp3;
10193 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10194 }
10195 {
10196 PyThreadState* __tstate = wxPyBeginAllowThreads();
10197 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10198
10199 wxPyEndAllowThreads(__tstate);
10200 if (PyErr_Occurred()) SWIG_fail;
10201 }
10202 Py_INCREF(Py_None); resultobj = Py_None;
10203 {
10204 if (temp2)
10205 delete arg2;
10206 }
10207 return resultobj;
10208 fail:
10209 {
10210 if (temp2)
10211 delete arg2;
10212 }
10213 return NULL;
10214 }
10215
10216
10217 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10218 PyObject *resultobj;
10219 wxDC *arg1 = (wxDC *) 0 ;
10220 int arg2 ;
10221 int arg3 ;
10222 int arg4 ;
10223 int arg5 ;
10224 wxDC *arg6 = (wxDC *) 0 ;
10225 int arg7 ;
10226 int arg8 ;
10227 int arg9 = (int) wxCOPY ;
10228 bool arg10 = (bool) False ;
10229 int arg11 = (int) -1 ;
10230 int arg12 = (int) -1 ;
10231 bool result;
10232 PyObject * obj0 = 0 ;
10233 PyObject * obj5 = 0 ;
10234 PyObject * obj9 = 0 ;
10235 char *kwnames[] = {
10236 (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
10237 };
10238
10239 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;
10240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10241 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10242 if (obj9) {
10243 arg10 = PyInt_AsLong(obj9) ? true : false;
10244 if (PyErr_Occurred()) SWIG_fail;
10245 }
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10249
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 resultobj = PyInt_FromLong((long)result);
10254 return resultobj;
10255 fail:
10256 return NULL;
10257 }
10258
10259
10260 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj;
10262 wxDC *arg1 = (wxDC *) 0 ;
10263 wxPoint *arg2 = 0 ;
10264 wxSize *arg3 = 0 ;
10265 wxDC *arg4 = (wxDC *) 0 ;
10266 wxPoint *arg5 = 0 ;
10267 int arg6 = (int) wxCOPY ;
10268 bool arg7 = (bool) False ;
10269 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10270 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10271 bool result;
10272 wxPoint temp2 ;
10273 wxSize temp3 ;
10274 wxPoint temp5 ;
10275 wxPoint temp8 ;
10276 PyObject * obj0 = 0 ;
10277 PyObject * obj1 = 0 ;
10278 PyObject * obj2 = 0 ;
10279 PyObject * obj3 = 0 ;
10280 PyObject * obj4 = 0 ;
10281 PyObject * obj6 = 0 ;
10282 PyObject * obj7 = 0 ;
10283 char *kwnames[] = {
10284 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10285 };
10286
10287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10289 {
10290 arg2 = &temp2;
10291 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10292 }
10293 {
10294 arg3 = &temp3;
10295 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10296 }
10297 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10298 {
10299 arg5 = &temp5;
10300 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10301 }
10302 if (obj6) {
10303 arg7 = PyInt_AsLong(obj6) ? true : false;
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 if (obj7) {
10307 {
10308 arg8 = &temp8;
10309 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10310 }
10311 }
10312 {
10313 PyThreadState* __tstate = wxPyBeginAllowThreads();
10314 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10315
10316 wxPyEndAllowThreads(__tstate);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 }
10319 resultobj = PyInt_FromLong((long)result);
10320 return resultobj;
10321 fail:
10322 return NULL;
10323 }
10324
10325
10326 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10327 PyObject *resultobj;
10328 wxDC *arg1 = (wxDC *) 0 ;
10329 int arg2 ;
10330 wxPoint *arg3 = (wxPoint *) 0 ;
10331 int arg4 = (int) 0 ;
10332 int arg5 = (int) 0 ;
10333 PyObject * obj0 = 0 ;
10334 PyObject * obj1 = 0 ;
10335 char *kwnames[] = {
10336 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10337 };
10338
10339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10341 {
10342 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10343 if (arg3 == NULL) SWIG_fail;
10344 }
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10348
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 Py_INCREF(Py_None); resultobj = Py_None;
10353 {
10354 if (arg3) delete [] arg3;
10355 }
10356 return resultobj;
10357 fail:
10358 {
10359 if (arg3) delete [] arg3;
10360 }
10361 return NULL;
10362 }
10363
10364
10365 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10366 PyObject *resultobj;
10367 wxDC *arg1 = (wxDC *) 0 ;
10368 int arg2 ;
10369 wxPoint *arg3 = (wxPoint *) 0 ;
10370 int arg4 = (int) 0 ;
10371 int arg5 = (int) 0 ;
10372 int arg6 = (int) wxODDEVEN_RULE ;
10373 PyObject * obj0 = 0 ;
10374 PyObject * obj1 = 0 ;
10375 char *kwnames[] = {
10376 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10377 };
10378
10379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10381 {
10382 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10383 if (arg3 == NULL) SWIG_fail;
10384 }
10385 {
10386 PyThreadState* __tstate = wxPyBeginAllowThreads();
10387 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10388
10389 wxPyEndAllowThreads(__tstate);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 Py_INCREF(Py_None); resultobj = Py_None;
10393 {
10394 if (arg3) delete [] arg3;
10395 }
10396 return resultobj;
10397 fail:
10398 {
10399 if (arg3) delete [] arg3;
10400 }
10401 return NULL;
10402 }
10403
10404
10405 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10406 PyObject *resultobj;
10407 wxDC *arg1 = (wxDC *) 0 ;
10408 wxString *arg2 = 0 ;
10409 wxRect *arg3 = 0 ;
10410 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10411 int arg5 = (int) -1 ;
10412 bool temp2 = False ;
10413 wxRect temp3 ;
10414 PyObject * obj0 = 0 ;
10415 PyObject * obj1 = 0 ;
10416 PyObject * obj2 = 0 ;
10417 char *kwnames[] = {
10418 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10419 };
10420
10421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10423 {
10424 arg2 = wxString_in_helper(obj1);
10425 if (arg2 == NULL) SWIG_fail;
10426 temp2 = True;
10427 }
10428 {
10429 arg3 = &temp3;
10430 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10431 }
10432 {
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10435
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 Py_INCREF(Py_None); resultobj = Py_None;
10440 {
10441 if (temp2)
10442 delete arg2;
10443 }
10444 return resultobj;
10445 fail:
10446 {
10447 if (temp2)
10448 delete arg2;
10449 }
10450 return NULL;
10451 }
10452
10453
10454 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10455 PyObject *resultobj;
10456 wxDC *arg1 = (wxDC *) 0 ;
10457 wxString *arg2 = 0 ;
10458 wxBitmap *arg3 = 0 ;
10459 wxRect *arg4 = 0 ;
10460 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10461 int arg6 = (int) -1 ;
10462 wxRect result;
10463 bool temp2 = False ;
10464 wxRect temp4 ;
10465 PyObject * obj0 = 0 ;
10466 PyObject * obj1 = 0 ;
10467 PyObject * obj2 = 0 ;
10468 PyObject * obj3 = 0 ;
10469 char *kwnames[] = {
10470 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10471 };
10472
10473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10475 {
10476 arg2 = wxString_in_helper(obj1);
10477 if (arg2 == NULL) SWIG_fail;
10478 temp2 = True;
10479 }
10480 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10481 if (arg3 == NULL) {
10482 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10483 }
10484 {
10485 arg4 = &temp4;
10486 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10487 }
10488 {
10489 PyThreadState* __tstate = wxPyBeginAllowThreads();
10490 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10491
10492 wxPyEndAllowThreads(__tstate);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 }
10495 {
10496 wxRect * resultptr;
10497 resultptr = new wxRect((wxRect &) result);
10498 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10499 }
10500 {
10501 if (temp2)
10502 delete arg2;
10503 }
10504 return resultobj;
10505 fail:
10506 {
10507 if (temp2)
10508 delete arg2;
10509 }
10510 return NULL;
10511 }
10512
10513
10514 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10515 PyObject *resultobj;
10516 wxDC *arg1 = (wxDC *) 0 ;
10517 int arg2 ;
10518 wxPoint *arg3 = (wxPoint *) 0 ;
10519 PyObject * obj0 = 0 ;
10520 PyObject * obj1 = 0 ;
10521 char *kwnames[] = {
10522 (char *) "self",(char *) "points", NULL
10523 };
10524
10525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10527 {
10528 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10529 if (arg3 == NULL) SWIG_fail;
10530 }
10531 {
10532 PyThreadState* __tstate = wxPyBeginAllowThreads();
10533 (arg1)->DrawSpline(arg2,arg3);
10534
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 Py_INCREF(Py_None); resultobj = Py_None;
10539 {
10540 if (arg3) delete [] arg3;
10541 }
10542 return resultobj;
10543 fail:
10544 {
10545 if (arg3) delete [] arg3;
10546 }
10547 return NULL;
10548 }
10549
10550
10551 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10552 PyObject *resultobj;
10553 wxDC *arg1 = (wxDC *) 0 ;
10554 PyObject * obj0 = 0 ;
10555 char *kwnames[] = {
10556 (char *) "self", NULL
10557 };
10558
10559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10561 {
10562 PyThreadState* __tstate = wxPyBeginAllowThreads();
10563 (arg1)->Clear();
10564
10565 wxPyEndAllowThreads(__tstate);
10566 if (PyErr_Occurred()) SWIG_fail;
10567 }
10568 Py_INCREF(Py_None); resultobj = Py_None;
10569 return resultobj;
10570 fail:
10571 return NULL;
10572 }
10573
10574
10575 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10576 PyObject *resultobj;
10577 wxDC *arg1 = (wxDC *) 0 ;
10578 wxString *arg2 = 0 ;
10579 bool result;
10580 bool temp2 = False ;
10581 PyObject * obj0 = 0 ;
10582 PyObject * obj1 = 0 ;
10583 char *kwnames[] = {
10584 (char *) "self",(char *) "message", NULL
10585 };
10586
10587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10589 {
10590 arg2 = wxString_in_helper(obj1);
10591 if (arg2 == NULL) SWIG_fail;
10592 temp2 = True;
10593 }
10594 {
10595 PyThreadState* __tstate = wxPyBeginAllowThreads();
10596 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10597
10598 wxPyEndAllowThreads(__tstate);
10599 if (PyErr_Occurred()) SWIG_fail;
10600 }
10601 resultobj = PyInt_FromLong((long)result);
10602 {
10603 if (temp2)
10604 delete arg2;
10605 }
10606 return resultobj;
10607 fail:
10608 {
10609 if (temp2)
10610 delete arg2;
10611 }
10612 return NULL;
10613 }
10614
10615
10616 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj;
10618 wxDC *arg1 = (wxDC *) 0 ;
10619 PyObject * obj0 = 0 ;
10620 char *kwnames[] = {
10621 (char *) "self", NULL
10622 };
10623
10624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 (arg1)->EndDoc();
10629
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 Py_INCREF(Py_None); resultobj = Py_None;
10634 return resultobj;
10635 fail:
10636 return NULL;
10637 }
10638
10639
10640 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10641 PyObject *resultobj;
10642 wxDC *arg1 = (wxDC *) 0 ;
10643 PyObject * obj0 = 0 ;
10644 char *kwnames[] = {
10645 (char *) "self", NULL
10646 };
10647
10648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 (arg1)->StartPage();
10653
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 Py_INCREF(Py_None); resultobj = Py_None;
10658 return resultobj;
10659 fail:
10660 return NULL;
10661 }
10662
10663
10664 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj;
10666 wxDC *arg1 = (wxDC *) 0 ;
10667 PyObject * obj0 = 0 ;
10668 char *kwnames[] = {
10669 (char *) "self", NULL
10670 };
10671
10672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10674 {
10675 PyThreadState* __tstate = wxPyBeginAllowThreads();
10676 (arg1)->EndPage();
10677
10678 wxPyEndAllowThreads(__tstate);
10679 if (PyErr_Occurred()) SWIG_fail;
10680 }
10681 Py_INCREF(Py_None); resultobj = Py_None;
10682 return resultobj;
10683 fail:
10684 return NULL;
10685 }
10686
10687
10688 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10689 PyObject *resultobj;
10690 wxDC *arg1 = (wxDC *) 0 ;
10691 wxFont *arg2 = 0 ;
10692 PyObject * obj0 = 0 ;
10693 PyObject * obj1 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self",(char *) "font", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10700 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10701 if (arg2 == NULL) {
10702 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10703 }
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 (arg1)->SetFont((wxFont const &)*arg2);
10707
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 Py_INCREF(Py_None); resultobj = Py_None;
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj;
10720 wxDC *arg1 = (wxDC *) 0 ;
10721 wxPen *arg2 = 0 ;
10722 PyObject * obj0 = 0 ;
10723 PyObject * obj1 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "self",(char *) "pen", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
10729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10730 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10731 if (arg2 == NULL) {
10732 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10733 }
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 (arg1)->SetPen((wxPen const &)*arg2);
10737
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 Py_INCREF(Py_None); resultobj = Py_None;
10742 return resultobj;
10743 fail:
10744 return NULL;
10745 }
10746
10747
10748 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
10749 PyObject *resultobj;
10750 wxDC *arg1 = (wxDC *) 0 ;
10751 wxBrush *arg2 = 0 ;
10752 PyObject * obj0 = 0 ;
10753 PyObject * obj1 = 0 ;
10754 char *kwnames[] = {
10755 (char *) "self",(char *) "brush", NULL
10756 };
10757
10758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
10759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10760 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10761 if (arg2 == NULL) {
10762 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10763 }
10764 {
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 (arg1)->SetBrush((wxBrush const &)*arg2);
10767
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 Py_INCREF(Py_None); resultobj = Py_None;
10772 return resultobj;
10773 fail:
10774 return NULL;
10775 }
10776
10777
10778 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj;
10780 wxDC *arg1 = (wxDC *) 0 ;
10781 wxBrush *arg2 = 0 ;
10782 PyObject * obj0 = 0 ;
10783 PyObject * obj1 = 0 ;
10784 char *kwnames[] = {
10785 (char *) "self",(char *) "brush", NULL
10786 };
10787
10788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
10789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10790 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10791 if (arg2 == NULL) {
10792 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10793 }
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetBackground((wxBrush const &)*arg2);
10797
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 Py_INCREF(Py_None); resultobj = Py_None;
10802 return resultobj;
10803 fail:
10804 return NULL;
10805 }
10806
10807
10808 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj;
10810 wxDC *arg1 = (wxDC *) 0 ;
10811 int arg2 ;
10812 PyObject * obj0 = 0 ;
10813 char *kwnames[] = {
10814 (char *) "self",(char *) "mode", NULL
10815 };
10816
10817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
10818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10819 {
10820 PyThreadState* __tstate = wxPyBeginAllowThreads();
10821 (arg1)->SetBackgroundMode(arg2);
10822
10823 wxPyEndAllowThreads(__tstate);
10824 if (PyErr_Occurred()) SWIG_fail;
10825 }
10826 Py_INCREF(Py_None); resultobj = Py_None;
10827 return resultobj;
10828 fail:
10829 return NULL;
10830 }
10831
10832
10833 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10834 PyObject *resultobj;
10835 wxDC *arg1 = (wxDC *) 0 ;
10836 wxPalette *arg2 = 0 ;
10837 PyObject * obj0 = 0 ;
10838 PyObject * obj1 = 0 ;
10839 char *kwnames[] = {
10840 (char *) "self",(char *) "palette", NULL
10841 };
10842
10843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
10844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10845 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10846 if (arg2 == NULL) {
10847 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10848 }
10849 {
10850 PyThreadState* __tstate = wxPyBeginAllowThreads();
10851 (arg1)->SetPalette((wxPalette const &)*arg2);
10852
10853 wxPyEndAllowThreads(__tstate);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 Py_INCREF(Py_None); resultobj = Py_None;
10857 return resultobj;
10858 fail:
10859 return NULL;
10860 }
10861
10862
10863 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10864 PyObject *resultobj;
10865 wxDC *arg1 = (wxDC *) 0 ;
10866 int arg2 ;
10867 int arg3 ;
10868 int arg4 ;
10869 int arg5 ;
10870 PyObject * obj0 = 0 ;
10871 char *kwnames[] = {
10872 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10873 };
10874
10875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10877 {
10878 PyThreadState* __tstate = wxPyBeginAllowThreads();
10879 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
10880
10881 wxPyEndAllowThreads(__tstate);
10882 if (PyErr_Occurred()) SWIG_fail;
10883 }
10884 Py_INCREF(Py_None); resultobj = Py_None;
10885 return resultobj;
10886 fail:
10887 return NULL;
10888 }
10889
10890
10891 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10892 PyObject *resultobj;
10893 wxDC *arg1 = (wxDC *) 0 ;
10894 wxPoint *arg2 = 0 ;
10895 wxSize *arg3 = 0 ;
10896 wxPoint temp2 ;
10897 wxSize temp3 ;
10898 PyObject * obj0 = 0 ;
10899 PyObject * obj1 = 0 ;
10900 PyObject * obj2 = 0 ;
10901 char *kwnames[] = {
10902 (char *) "self",(char *) "pt",(char *) "sz", NULL
10903 };
10904
10905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
10906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10907 {
10908 arg2 = &temp2;
10909 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10910 }
10911 {
10912 arg3 = &temp3;
10913 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10914 }
10915 {
10916 PyThreadState* __tstate = wxPyBeginAllowThreads();
10917 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
10918
10919 wxPyEndAllowThreads(__tstate);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 }
10922 Py_INCREF(Py_None); resultobj = Py_None;
10923 return resultobj;
10924 fail:
10925 return NULL;
10926 }
10927
10928
10929 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj;
10931 wxDC *arg1 = (wxDC *) 0 ;
10932 wxRect *arg2 = 0 ;
10933 wxRect temp2 ;
10934 PyObject * obj0 = 0 ;
10935 PyObject * obj1 = 0 ;
10936 char *kwnames[] = {
10937 (char *) "self",(char *) "rect", NULL
10938 };
10939
10940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
10941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10942 {
10943 arg2 = &temp2;
10944 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10945 }
10946 {
10947 PyThreadState* __tstate = wxPyBeginAllowThreads();
10948 (arg1)->SetClippingRegion((wxRect const &)*arg2);
10949
10950 wxPyEndAllowThreads(__tstate);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 }
10953 Py_INCREF(Py_None); resultobj = Py_None;
10954 return resultobj;
10955 fail:
10956 return NULL;
10957 }
10958
10959
10960 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10961 PyObject *resultobj;
10962 wxDC *arg1 = (wxDC *) 0 ;
10963 wxRegion *arg2 = 0 ;
10964 PyObject * obj0 = 0 ;
10965 PyObject * obj1 = 0 ;
10966 char *kwnames[] = {
10967 (char *) "self",(char *) "region", NULL
10968 };
10969
10970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
10971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10972 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10973 if (arg2 == NULL) {
10974 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10975 }
10976 {
10977 PyThreadState* __tstate = wxPyBeginAllowThreads();
10978 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
10979
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 Py_INCREF(Py_None); resultobj = Py_None;
10984 return resultobj;
10985 fail:
10986 return NULL;
10987 }
10988
10989
10990 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10991 PyObject *resultobj;
10992 wxDC *arg1 = (wxDC *) 0 ;
10993 PyObject * obj0 = 0 ;
10994 char *kwnames[] = {
10995 (char *) "self", NULL
10996 };
10997
10998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
10999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 (arg1)->DestroyClippingRegion();
11003
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 Py_INCREF(Py_None); resultobj = Py_None;
11008 return resultobj;
11009 fail:
11010 return NULL;
11011 }
11012
11013
11014 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj;
11016 wxDC *arg1 = (wxDC *) 0 ;
11017 int *arg2 = (int *) 0 ;
11018 int *arg3 = (int *) 0 ;
11019 int *arg4 = (int *) 0 ;
11020 int *arg5 = (int *) 0 ;
11021 int temp2 ;
11022 int temp3 ;
11023 int temp4 ;
11024 int temp5 ;
11025 PyObject * obj0 = 0 ;
11026 char *kwnames[] = {
11027 (char *) "self", NULL
11028 };
11029
11030 arg2 = &temp2;
11031 arg3 = &temp3;
11032 arg4 = &temp4;
11033 arg5 = &temp5;
11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11036 {
11037 PyThreadState* __tstate = wxPyBeginAllowThreads();
11038 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11039
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 Py_INCREF(Py_None); resultobj = Py_None;
11044 {
11045 PyObject *o = PyInt_FromLong((long) (*arg2));
11046 resultobj = t_output_helper(resultobj,o);
11047 }
11048 {
11049 PyObject *o = PyInt_FromLong((long) (*arg3));
11050 resultobj = t_output_helper(resultobj,o);
11051 }
11052 {
11053 PyObject *o = PyInt_FromLong((long) (*arg4));
11054 resultobj = t_output_helper(resultobj,o);
11055 }
11056 {
11057 PyObject *o = PyInt_FromLong((long) (*arg5));
11058 resultobj = t_output_helper(resultobj,o);
11059 }
11060 return resultobj;
11061 fail:
11062 return NULL;
11063 }
11064
11065
11066 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11067 PyObject *resultobj;
11068 wxDC *arg1 = (wxDC *) 0 ;
11069 wxRect result;
11070 PyObject * obj0 = 0 ;
11071 char *kwnames[] = {
11072 (char *) "self", NULL
11073 };
11074
11075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11077 {
11078 PyThreadState* __tstate = wxPyBeginAllowThreads();
11079 result = wxDC_GetClippingRect(arg1);
11080
11081 wxPyEndAllowThreads(__tstate);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 }
11084 {
11085 wxRect * resultptr;
11086 resultptr = new wxRect((wxRect &) result);
11087 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11088 }
11089 return resultobj;
11090 fail:
11091 return NULL;
11092 }
11093
11094
11095 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj;
11097 wxDC *arg1 = (wxDC *) 0 ;
11098 int result;
11099 PyObject * obj0 = 0 ;
11100 char *kwnames[] = {
11101 (char *) "self", NULL
11102 };
11103
11104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11106 {
11107 PyThreadState* __tstate = wxPyBeginAllowThreads();
11108 result = (int)((wxDC const *)arg1)->GetCharHeight();
11109
11110 wxPyEndAllowThreads(__tstate);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 }
11113 resultobj = PyInt_FromLong((long)result);
11114 return resultobj;
11115 fail:
11116 return NULL;
11117 }
11118
11119
11120 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11121 PyObject *resultobj;
11122 wxDC *arg1 = (wxDC *) 0 ;
11123 int result;
11124 PyObject * obj0 = 0 ;
11125 char *kwnames[] = {
11126 (char *) "self", NULL
11127 };
11128
11129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11131 {
11132 PyThreadState* __tstate = wxPyBeginAllowThreads();
11133 result = (int)((wxDC const *)arg1)->GetCharWidth();
11134
11135 wxPyEndAllowThreads(__tstate);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 resultobj = PyInt_FromLong((long)result);
11139 return resultobj;
11140 fail:
11141 return NULL;
11142 }
11143
11144
11145 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11146 PyObject *resultobj;
11147 wxDC *arg1 = (wxDC *) 0 ;
11148 wxString *arg2 = 0 ;
11149 int *arg3 = (int *) 0 ;
11150 int *arg4 = (int *) 0 ;
11151 bool temp2 = False ;
11152 int temp3 ;
11153 int temp4 ;
11154 PyObject * obj0 = 0 ;
11155 PyObject * obj1 = 0 ;
11156 char *kwnames[] = {
11157 (char *) "self",(char *) "string", NULL
11158 };
11159
11160 arg3 = &temp3;
11161 arg4 = &temp4;
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11164 {
11165 arg2 = wxString_in_helper(obj1);
11166 if (arg2 == NULL) SWIG_fail;
11167 temp2 = True;
11168 }
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11172
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 Py_INCREF(Py_None); resultobj = Py_None;
11177 {
11178 PyObject *o = PyInt_FromLong((long) (*arg3));
11179 resultobj = t_output_helper(resultobj,o);
11180 }
11181 {
11182 PyObject *o = PyInt_FromLong((long) (*arg4));
11183 resultobj = t_output_helper(resultobj,o);
11184 }
11185 {
11186 if (temp2)
11187 delete arg2;
11188 }
11189 return resultobj;
11190 fail:
11191 {
11192 if (temp2)
11193 delete arg2;
11194 }
11195 return NULL;
11196 }
11197
11198
11199 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11200 PyObject *resultobj;
11201 wxDC *arg1 = (wxDC *) 0 ;
11202 wxString *arg2 = 0 ;
11203 int *arg3 = (int *) 0 ;
11204 int *arg4 = (int *) 0 ;
11205 int *arg5 = (int *) 0 ;
11206 int *arg6 = (int *) 0 ;
11207 wxFont *arg7 = (wxFont *) NULL ;
11208 bool temp2 = False ;
11209 int temp3 ;
11210 int temp4 ;
11211 int temp5 ;
11212 int temp6 ;
11213 PyObject * obj0 = 0 ;
11214 PyObject * obj1 = 0 ;
11215 PyObject * obj2 = 0 ;
11216 char *kwnames[] = {
11217 (char *) "self",(char *) "string",(char *) "font", NULL
11218 };
11219
11220 arg3 = &temp3;
11221 arg4 = &temp4;
11222 arg5 = &temp5;
11223 arg6 = &temp6;
11224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11226 {
11227 arg2 = wxString_in_helper(obj1);
11228 if (arg2 == NULL) SWIG_fail;
11229 temp2 = True;
11230 }
11231 if (obj2) {
11232 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11233 }
11234 {
11235 PyThreadState* __tstate = wxPyBeginAllowThreads();
11236 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11237
11238 wxPyEndAllowThreads(__tstate);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 }
11241 Py_INCREF(Py_None); resultobj = Py_None;
11242 {
11243 PyObject *o = PyInt_FromLong((long) (*arg3));
11244 resultobj = t_output_helper(resultobj,o);
11245 }
11246 {
11247 PyObject *o = PyInt_FromLong((long) (*arg4));
11248 resultobj = t_output_helper(resultobj,o);
11249 }
11250 {
11251 PyObject *o = PyInt_FromLong((long) (*arg5));
11252 resultobj = t_output_helper(resultobj,o);
11253 }
11254 {
11255 PyObject *o = PyInt_FromLong((long) (*arg6));
11256 resultobj = t_output_helper(resultobj,o);
11257 }
11258 {
11259 if (temp2)
11260 delete arg2;
11261 }
11262 return resultobj;
11263 fail:
11264 {
11265 if (temp2)
11266 delete arg2;
11267 }
11268 return NULL;
11269 }
11270
11271
11272 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11273 PyObject *resultobj;
11274 wxDC *arg1 = (wxDC *) 0 ;
11275 wxString *arg2 = 0 ;
11276 int *arg3 = (int *) 0 ;
11277 int *arg4 = (int *) 0 ;
11278 int *arg5 = (int *) 0 ;
11279 wxFont *arg6 = (wxFont *) NULL ;
11280 bool temp2 = False ;
11281 int temp3 ;
11282 int temp4 ;
11283 int temp5 ;
11284 PyObject * obj0 = 0 ;
11285 PyObject * obj1 = 0 ;
11286 PyObject * obj2 = 0 ;
11287 char *kwnames[] = {
11288 (char *) "self",(char *) "text",(char *) "font", NULL
11289 };
11290
11291 arg3 = &temp3;
11292 arg4 = &temp4;
11293 arg5 = &temp5;
11294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11296 {
11297 arg2 = wxString_in_helper(obj1);
11298 if (arg2 == NULL) SWIG_fail;
11299 temp2 = True;
11300 }
11301 if (obj2) {
11302 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11303 }
11304 {
11305 PyThreadState* __tstate = wxPyBeginAllowThreads();
11306 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11307
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 Py_INCREF(Py_None); resultobj = Py_None;
11312 {
11313 PyObject *o = PyInt_FromLong((long) (*arg3));
11314 resultobj = t_output_helper(resultobj,o);
11315 }
11316 {
11317 PyObject *o = PyInt_FromLong((long) (*arg4));
11318 resultobj = t_output_helper(resultobj,o);
11319 }
11320 {
11321 PyObject *o = PyInt_FromLong((long) (*arg5));
11322 resultobj = t_output_helper(resultobj,o);
11323 }
11324 {
11325 if (temp2)
11326 delete arg2;
11327 }
11328 return resultobj;
11329 fail:
11330 {
11331 if (temp2)
11332 delete arg2;
11333 }
11334 return NULL;
11335 }
11336
11337
11338 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11339 PyObject *resultobj;
11340 wxDC *arg1 = (wxDC *) 0 ;
11341 wxSize result;
11342 PyObject * obj0 = 0 ;
11343 char *kwnames[] = {
11344 (char *) "self", NULL
11345 };
11346
11347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
11351 result = (arg1)->GetSize();
11352
11353 wxPyEndAllowThreads(__tstate);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 }
11356 {
11357 wxSize * resultptr;
11358 resultptr = new wxSize((wxSize &) result);
11359 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11360 }
11361 return resultobj;
11362 fail:
11363 return NULL;
11364 }
11365
11366
11367 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11368 PyObject *resultobj;
11369 wxDC *arg1 = (wxDC *) 0 ;
11370 int *arg2 = (int *) 0 ;
11371 int *arg3 = (int *) 0 ;
11372 int temp2 ;
11373 int temp3 ;
11374 PyObject * obj0 = 0 ;
11375 char *kwnames[] = {
11376 (char *) "self", NULL
11377 };
11378
11379 arg2 = &temp2;
11380 arg3 = &temp3;
11381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11383 {
11384 PyThreadState* __tstate = wxPyBeginAllowThreads();
11385 (arg1)->GetSize(arg2,arg3);
11386
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 Py_INCREF(Py_None); resultobj = Py_None;
11391 {
11392 PyObject *o = PyInt_FromLong((long) (*arg2));
11393 resultobj = t_output_helper(resultobj,o);
11394 }
11395 {
11396 PyObject *o = PyInt_FromLong((long) (*arg3));
11397 resultobj = t_output_helper(resultobj,o);
11398 }
11399 return resultobj;
11400 fail:
11401 return NULL;
11402 }
11403
11404
11405 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11406 PyObject *resultobj;
11407 wxDC *arg1 = (wxDC *) 0 ;
11408 wxSize result;
11409 PyObject * obj0 = 0 ;
11410 char *kwnames[] = {
11411 (char *) "self", NULL
11412 };
11413
11414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 result = ((wxDC const *)arg1)->GetSizeMM();
11419
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 {
11424 wxSize * resultptr;
11425 resultptr = new wxSize((wxSize &) result);
11426 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11427 }
11428 return resultobj;
11429 fail:
11430 return NULL;
11431 }
11432
11433
11434 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11435 PyObject *resultobj;
11436 wxDC *arg1 = (wxDC *) 0 ;
11437 int *arg2 = (int *) 0 ;
11438 int *arg3 = (int *) 0 ;
11439 int temp2 ;
11440 int temp3 ;
11441 PyObject * obj0 = 0 ;
11442 char *kwnames[] = {
11443 (char *) "self", NULL
11444 };
11445
11446 arg2 = &temp2;
11447 arg3 = &temp3;
11448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
11449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11450 {
11451 PyThreadState* __tstate = wxPyBeginAllowThreads();
11452 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11453
11454 wxPyEndAllowThreads(__tstate);
11455 if (PyErr_Occurred()) SWIG_fail;
11456 }
11457 Py_INCREF(Py_None); resultobj = Py_None;
11458 {
11459 PyObject *o = PyInt_FromLong((long) (*arg2));
11460 resultobj = t_output_helper(resultobj,o);
11461 }
11462 {
11463 PyObject *o = PyInt_FromLong((long) (*arg3));
11464 resultobj = t_output_helper(resultobj,o);
11465 }
11466 return resultobj;
11467 fail:
11468 return NULL;
11469 }
11470
11471
11472 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11473 PyObject *resultobj;
11474 wxDC *arg1 = (wxDC *) 0 ;
11475 int arg2 ;
11476 int result;
11477 PyObject * obj0 = 0 ;
11478 char *kwnames[] = {
11479 (char *) "self",(char *) "x", NULL
11480 };
11481
11482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11484 {
11485 PyThreadState* __tstate = wxPyBeginAllowThreads();
11486 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
11487
11488 wxPyEndAllowThreads(__tstate);
11489 if (PyErr_Occurred()) SWIG_fail;
11490 }
11491 resultobj = PyInt_FromLong((long)result);
11492 return resultobj;
11493 fail:
11494 return NULL;
11495 }
11496
11497
11498 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11499 PyObject *resultobj;
11500 wxDC *arg1 = (wxDC *) 0 ;
11501 int arg2 ;
11502 int result;
11503 PyObject * obj0 = 0 ;
11504 char *kwnames[] = {
11505 (char *) "self",(char *) "y", NULL
11506 };
11507
11508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11510 {
11511 PyThreadState* __tstate = wxPyBeginAllowThreads();
11512 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
11513
11514 wxPyEndAllowThreads(__tstate);
11515 if (PyErr_Occurred()) SWIG_fail;
11516 }
11517 resultobj = PyInt_FromLong((long)result);
11518 return resultobj;
11519 fail:
11520 return NULL;
11521 }
11522
11523
11524 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11525 PyObject *resultobj;
11526 wxDC *arg1 = (wxDC *) 0 ;
11527 int arg2 ;
11528 int result;
11529 PyObject * obj0 = 0 ;
11530 char *kwnames[] = {
11531 (char *) "self",(char *) "x", NULL
11532 };
11533
11534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
11539
11540 wxPyEndAllowThreads(__tstate);
11541 if (PyErr_Occurred()) SWIG_fail;
11542 }
11543 resultobj = PyInt_FromLong((long)result);
11544 return resultobj;
11545 fail:
11546 return NULL;
11547 }
11548
11549
11550 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxDC *arg1 = (wxDC *) 0 ;
11553 int arg2 ;
11554 int result;
11555 PyObject * obj0 = 0 ;
11556 char *kwnames[] = {
11557 (char *) "self",(char *) "y", NULL
11558 };
11559
11560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11562 {
11563 PyThreadState* __tstate = wxPyBeginAllowThreads();
11564 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
11565
11566 wxPyEndAllowThreads(__tstate);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 }
11569 resultobj = PyInt_FromLong((long)result);
11570 return resultobj;
11571 fail:
11572 return NULL;
11573 }
11574
11575
11576 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11577 PyObject *resultobj;
11578 wxDC *arg1 = (wxDC *) 0 ;
11579 int arg2 ;
11580 int result;
11581 PyObject * obj0 = 0 ;
11582 char *kwnames[] = {
11583 (char *) "self",(char *) "x", NULL
11584 };
11585
11586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 resultobj = PyInt_FromLong((long)result);
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11603 PyObject *resultobj;
11604 wxDC *arg1 = (wxDC *) 0 ;
11605 int arg2 ;
11606 int result;
11607 PyObject * obj0 = 0 ;
11608 char *kwnames[] = {
11609 (char *) "self",(char *) "y", NULL
11610 };
11611
11612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11614 {
11615 PyThreadState* __tstate = wxPyBeginAllowThreads();
11616 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
11617
11618 wxPyEndAllowThreads(__tstate);
11619 if (PyErr_Occurred()) SWIG_fail;
11620 }
11621 resultobj = PyInt_FromLong((long)result);
11622 return resultobj;
11623 fail:
11624 return NULL;
11625 }
11626
11627
11628 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11629 PyObject *resultobj;
11630 wxDC *arg1 = (wxDC *) 0 ;
11631 int arg2 ;
11632 int result;
11633 PyObject * obj0 = 0 ;
11634 char *kwnames[] = {
11635 (char *) "self",(char *) "x", NULL
11636 };
11637
11638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11640 {
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
11643
11644 wxPyEndAllowThreads(__tstate);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 }
11647 resultobj = PyInt_FromLong((long)result);
11648 return resultobj;
11649 fail:
11650 return NULL;
11651 }
11652
11653
11654 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11655 PyObject *resultobj;
11656 wxDC *arg1 = (wxDC *) 0 ;
11657 int arg2 ;
11658 int result;
11659 PyObject * obj0 = 0 ;
11660 char *kwnames[] = {
11661 (char *) "self",(char *) "y", NULL
11662 };
11663
11664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11666 {
11667 PyThreadState* __tstate = wxPyBeginAllowThreads();
11668 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
11669
11670 wxPyEndAllowThreads(__tstate);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 }
11673 resultobj = PyInt_FromLong((long)result);
11674 return resultobj;
11675 fail:
11676 return NULL;
11677 }
11678
11679
11680 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11681 PyObject *resultobj;
11682 wxDC *arg1 = (wxDC *) 0 ;
11683 bool result;
11684 PyObject * obj0 = 0 ;
11685 char *kwnames[] = {
11686 (char *) "self", NULL
11687 };
11688
11689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11691 {
11692 PyThreadState* __tstate = wxPyBeginAllowThreads();
11693 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11694
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 resultobj = PyInt_FromLong((long)result);
11699 return resultobj;
11700 fail:
11701 return NULL;
11702 }
11703
11704
11705 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11706 PyObject *resultobj;
11707 wxDC *arg1 = (wxDC *) 0 ;
11708 bool result;
11709 PyObject * obj0 = 0 ;
11710 char *kwnames[] = {
11711 (char *) "self", NULL
11712 };
11713
11714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
11715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11716 {
11717 PyThreadState* __tstate = wxPyBeginAllowThreads();
11718 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
11719
11720 wxPyEndAllowThreads(__tstate);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 resultobj = PyInt_FromLong((long)result);
11724 return resultobj;
11725 fail:
11726 return NULL;
11727 }
11728
11729
11730 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
11731 PyObject *resultobj;
11732 wxDC *arg1 = (wxDC *) 0 ;
11733 int result;
11734 PyObject * obj0 = 0 ;
11735 char *kwnames[] = {
11736 (char *) "self", NULL
11737 };
11738
11739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
11740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (int)((wxDC const *)arg1)->GetDepth();
11744
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 resultobj = PyInt_FromLong((long)result);
11749 return resultobj;
11750 fail:
11751 return NULL;
11752 }
11753
11754
11755 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
11756 PyObject *resultobj;
11757 wxDC *arg1 = (wxDC *) 0 ;
11758 wxSize result;
11759 PyObject * obj0 = 0 ;
11760 char *kwnames[] = {
11761 (char *) "self", NULL
11762 };
11763
11764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
11765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11766 {
11767 PyThreadState* __tstate = wxPyBeginAllowThreads();
11768 result = ((wxDC const *)arg1)->GetPPI();
11769
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 {
11774 wxSize * resultptr;
11775 resultptr = new wxSize((wxSize &) result);
11776 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11777 }
11778 return resultobj;
11779 fail:
11780 return NULL;
11781 }
11782
11783
11784 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11785 PyObject *resultobj;
11786 wxDC *arg1 = (wxDC *) 0 ;
11787 bool result;
11788 PyObject * obj0 = 0 ;
11789 char *kwnames[] = {
11790 (char *) "self", NULL
11791 };
11792
11793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
11794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
11797 result = (bool)((wxDC const *)arg1)->Ok();
11798
11799 wxPyEndAllowThreads(__tstate);
11800 if (PyErr_Occurred()) SWIG_fail;
11801 }
11802 resultobj = PyInt_FromLong((long)result);
11803 return resultobj;
11804 fail:
11805 return NULL;
11806 }
11807
11808
11809 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11810 PyObject *resultobj;
11811 wxDC *arg1 = (wxDC *) 0 ;
11812 int result;
11813 PyObject * obj0 = 0 ;
11814 char *kwnames[] = {
11815 (char *) "self", NULL
11816 };
11817
11818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
11819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11820 {
11821 PyThreadState* __tstate = wxPyBeginAllowThreads();
11822 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
11823
11824 wxPyEndAllowThreads(__tstate);
11825 if (PyErr_Occurred()) SWIG_fail;
11826 }
11827 resultobj = PyInt_FromLong((long)result);
11828 return resultobj;
11829 fail:
11830 return NULL;
11831 }
11832
11833
11834 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11835 PyObject *resultobj;
11836 wxDC *arg1 = (wxDC *) 0 ;
11837 wxBrush *result;
11838 PyObject * obj0 = 0 ;
11839 char *kwnames[] = {
11840 (char *) "self", NULL
11841 };
11842
11843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
11844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11845 {
11846 PyThreadState* __tstate = wxPyBeginAllowThreads();
11847 {
11848 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
11849 result = (wxBrush *) &_result_ref;
11850 }
11851
11852 wxPyEndAllowThreads(__tstate);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11856 return resultobj;
11857 fail:
11858 return NULL;
11859 }
11860
11861
11862 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11863 PyObject *resultobj;
11864 wxDC *arg1 = (wxDC *) 0 ;
11865 wxBrush *result;
11866 PyObject * obj0 = 0 ;
11867 char *kwnames[] = {
11868 (char *) "self", NULL
11869 };
11870
11871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
11872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11873 {
11874 PyThreadState* __tstate = wxPyBeginAllowThreads();
11875 {
11876 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
11877 result = (wxBrush *) &_result_ref;
11878 }
11879
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11884 return resultobj;
11885 fail:
11886 return NULL;
11887 }
11888
11889
11890 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11891 PyObject *resultobj;
11892 wxDC *arg1 = (wxDC *) 0 ;
11893 wxFont *result;
11894 PyObject * obj0 = 0 ;
11895 char *kwnames[] = {
11896 (char *) "self", NULL
11897 };
11898
11899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
11900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11901 {
11902 PyThreadState* __tstate = wxPyBeginAllowThreads();
11903 {
11904 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
11905 result = (wxFont *) &_result_ref;
11906 }
11907
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
11912 return resultobj;
11913 fail:
11914 return NULL;
11915 }
11916
11917
11918 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11919 PyObject *resultobj;
11920 wxDC *arg1 = (wxDC *) 0 ;
11921 wxPen *result;
11922 PyObject * obj0 = 0 ;
11923 char *kwnames[] = {
11924 (char *) "self", NULL
11925 };
11926
11927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
11928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11929 {
11930 PyThreadState* __tstate = wxPyBeginAllowThreads();
11931 {
11932 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
11933 result = (wxPen *) &_result_ref;
11934 }
11935
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
11940 return resultobj;
11941 fail:
11942 return NULL;
11943 }
11944
11945
11946 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11947 PyObject *resultobj;
11948 wxDC *arg1 = (wxDC *) 0 ;
11949 wxColour *result;
11950 PyObject * obj0 = 0 ;
11951 char *kwnames[] = {
11952 (char *) "self", NULL
11953 };
11954
11955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
11956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11957 {
11958 PyThreadState* __tstate = wxPyBeginAllowThreads();
11959 {
11960 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
11961 result = (wxColour *) &_result_ref;
11962 }
11963
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11968 return resultobj;
11969 fail:
11970 return NULL;
11971 }
11972
11973
11974 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11975 PyObject *resultobj;
11976 wxDC *arg1 = (wxDC *) 0 ;
11977 wxColour *result;
11978 PyObject * obj0 = 0 ;
11979 char *kwnames[] = {
11980 (char *) "self", NULL
11981 };
11982
11983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
11984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11985 {
11986 PyThreadState* __tstate = wxPyBeginAllowThreads();
11987 {
11988 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
11989 result = (wxColour *) &_result_ref;
11990 }
11991
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11996 return resultobj;
11997 fail:
11998 return NULL;
11999 }
12000
12001
12002 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12003 PyObject *resultobj;
12004 wxDC *arg1 = (wxDC *) 0 ;
12005 wxColour *arg2 = 0 ;
12006 wxColour temp2 ;
12007 PyObject * obj0 = 0 ;
12008 PyObject * obj1 = 0 ;
12009 char *kwnames[] = {
12010 (char *) "self",(char *) "colour", NULL
12011 };
12012
12013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
12014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12015 {
12016 arg2 = &temp2;
12017 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12018 }
12019 {
12020 PyThreadState* __tstate = wxPyBeginAllowThreads();
12021 (arg1)->SetTextForeground((wxColour const &)*arg2);
12022
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 Py_INCREF(Py_None); resultobj = Py_None;
12027 return resultobj;
12028 fail:
12029 return NULL;
12030 }
12031
12032
12033 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12034 PyObject *resultobj;
12035 wxDC *arg1 = (wxDC *) 0 ;
12036 wxColour *arg2 = 0 ;
12037 wxColour temp2 ;
12038 PyObject * obj0 = 0 ;
12039 PyObject * obj1 = 0 ;
12040 char *kwnames[] = {
12041 (char *) "self",(char *) "colour", NULL
12042 };
12043
12044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12046 {
12047 arg2 = &temp2;
12048 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12049 }
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 (arg1)->SetTextBackground((wxColour const &)*arg2);
12053
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 Py_INCREF(Py_None); resultobj = Py_None;
12058 return resultobj;
12059 fail:
12060 return NULL;
12061 }
12062
12063
12064 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12065 PyObject *resultobj;
12066 wxDC *arg1 = (wxDC *) 0 ;
12067 int result;
12068 PyObject * obj0 = 0 ;
12069 char *kwnames[] = {
12070 (char *) "self", NULL
12071 };
12072
12073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12075 {
12076 PyThreadState* __tstate = wxPyBeginAllowThreads();
12077 result = (int)((wxDC const *)arg1)->GetMapMode();
12078
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 resultobj = PyInt_FromLong((long)result);
12083 return resultobj;
12084 fail:
12085 return NULL;
12086 }
12087
12088
12089 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12090 PyObject *resultobj;
12091 wxDC *arg1 = (wxDC *) 0 ;
12092 int arg2 ;
12093 PyObject * obj0 = 0 ;
12094 char *kwnames[] = {
12095 (char *) "self",(char *) "mode", NULL
12096 };
12097
12098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12100 {
12101 PyThreadState* __tstate = wxPyBeginAllowThreads();
12102 (arg1)->SetMapMode(arg2);
12103
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 Py_INCREF(Py_None); resultobj = Py_None;
12108 return resultobj;
12109 fail:
12110 return NULL;
12111 }
12112
12113
12114 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj;
12116 wxDC *arg1 = (wxDC *) 0 ;
12117 double *arg2 = (double *) 0 ;
12118 double *arg3 = (double *) 0 ;
12119 double temp2 ;
12120 double temp3 ;
12121 PyObject * obj0 = 0 ;
12122 char *kwnames[] = {
12123 (char *) "self", NULL
12124 };
12125
12126 arg2 = &temp2;
12127 arg3 = &temp3;
12128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12130 {
12131 PyThreadState* __tstate = wxPyBeginAllowThreads();
12132 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12133
12134 wxPyEndAllowThreads(__tstate);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 Py_INCREF(Py_None); resultobj = Py_None;
12138 {
12139 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12140 resultobj = t_output_helper(resultobj,o);
12141 }
12142 {
12143 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12144 resultobj = t_output_helper(resultobj,o);
12145 }
12146 return resultobj;
12147 fail:
12148 return NULL;
12149 }
12150
12151
12152 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12153 PyObject *resultobj;
12154 wxDC *arg1 = (wxDC *) 0 ;
12155 double arg2 ;
12156 double arg3 ;
12157 PyObject * obj0 = 0 ;
12158 char *kwnames[] = {
12159 (char *) "self",(char *) "x",(char *) "y", NULL
12160 };
12161
12162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12164 {
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 (arg1)->SetUserScale(arg2,arg3);
12167
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 Py_INCREF(Py_None); resultobj = Py_None;
12172 return resultobj;
12173 fail:
12174 return NULL;
12175 }
12176
12177
12178 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12179 PyObject *resultobj;
12180 wxDC *arg1 = (wxDC *) 0 ;
12181 double *arg2 = (double *) 0 ;
12182 double *arg3 = (double *) 0 ;
12183 double temp2 ;
12184 double temp3 ;
12185 PyObject * obj0 = 0 ;
12186 char *kwnames[] = {
12187 (char *) "self", NULL
12188 };
12189
12190 arg2 = &temp2;
12191 arg3 = &temp3;
12192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12194 {
12195 PyThreadState* __tstate = wxPyBeginAllowThreads();
12196 (arg1)->GetLogicalScale(arg2,arg3);
12197
12198 wxPyEndAllowThreads(__tstate);
12199 if (PyErr_Occurred()) SWIG_fail;
12200 }
12201 Py_INCREF(Py_None); resultobj = Py_None;
12202 {
12203 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12204 resultobj = t_output_helper(resultobj,o);
12205 }
12206 {
12207 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12208 resultobj = t_output_helper(resultobj,o);
12209 }
12210 return resultobj;
12211 fail:
12212 return NULL;
12213 }
12214
12215
12216 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12217 PyObject *resultobj;
12218 wxDC *arg1 = (wxDC *) 0 ;
12219 double arg2 ;
12220 double arg3 ;
12221 PyObject * obj0 = 0 ;
12222 char *kwnames[] = {
12223 (char *) "self",(char *) "x",(char *) "y", NULL
12224 };
12225
12226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12228 {
12229 PyThreadState* __tstate = wxPyBeginAllowThreads();
12230 (arg1)->SetLogicalScale(arg2,arg3);
12231
12232 wxPyEndAllowThreads(__tstate);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 Py_INCREF(Py_None); resultobj = Py_None;
12236 return resultobj;
12237 fail:
12238 return NULL;
12239 }
12240
12241
12242 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12243 PyObject *resultobj;
12244 wxDC *arg1 = (wxDC *) 0 ;
12245 wxPoint result;
12246 PyObject * obj0 = 0 ;
12247 char *kwnames[] = {
12248 (char *) "self", NULL
12249 };
12250
12251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12256
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 {
12261 wxPoint * resultptr;
12262 resultptr = new wxPoint((wxPoint &) result);
12263 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12264 }
12265 return resultobj;
12266 fail:
12267 return NULL;
12268 }
12269
12270
12271 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12272 PyObject *resultobj;
12273 wxDC *arg1 = (wxDC *) 0 ;
12274 int *arg2 = (int *) 0 ;
12275 int *arg3 = (int *) 0 ;
12276 int temp2 ;
12277 int temp3 ;
12278 PyObject * obj0 = 0 ;
12279 char *kwnames[] = {
12280 (char *) "self", NULL
12281 };
12282
12283 arg2 = &temp2;
12284 arg3 = &temp3;
12285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12290
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 Py_INCREF(Py_None); resultobj = Py_None;
12295 {
12296 PyObject *o = PyInt_FromLong((long) (*arg2));
12297 resultobj = t_output_helper(resultobj,o);
12298 }
12299 {
12300 PyObject *o = PyInt_FromLong((long) (*arg3));
12301 resultobj = t_output_helper(resultobj,o);
12302 }
12303 return resultobj;
12304 fail:
12305 return NULL;
12306 }
12307
12308
12309 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12310 PyObject *resultobj;
12311 wxDC *arg1 = (wxDC *) 0 ;
12312 int arg2 ;
12313 int arg3 ;
12314 PyObject * obj0 = 0 ;
12315 char *kwnames[] = {
12316 (char *) "self",(char *) "x",(char *) "y", NULL
12317 };
12318
12319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 (arg1)->SetLogicalOrigin(arg2,arg3);
12324
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 Py_INCREF(Py_None); resultobj = Py_None;
12329 return resultobj;
12330 fail:
12331 return NULL;
12332 }
12333
12334
12335 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12336 PyObject *resultobj;
12337 wxDC *arg1 = (wxDC *) 0 ;
12338 wxPoint result;
12339 PyObject * obj0 = 0 ;
12340 char *kwnames[] = {
12341 (char *) "self", NULL
12342 };
12343
12344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12349
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 {
12354 wxPoint * resultptr;
12355 resultptr = new wxPoint((wxPoint &) result);
12356 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12357 }
12358 return resultobj;
12359 fail:
12360 return NULL;
12361 }
12362
12363
12364 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12365 PyObject *resultobj;
12366 wxDC *arg1 = (wxDC *) 0 ;
12367 int *arg2 = (int *) 0 ;
12368 int *arg3 = (int *) 0 ;
12369 int temp2 ;
12370 int temp3 ;
12371 PyObject * obj0 = 0 ;
12372 char *kwnames[] = {
12373 (char *) "self", NULL
12374 };
12375
12376 arg2 = &temp2;
12377 arg3 = &temp3;
12378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12383
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 Py_INCREF(Py_None); resultobj = Py_None;
12388 {
12389 PyObject *o = PyInt_FromLong((long) (*arg2));
12390 resultobj = t_output_helper(resultobj,o);
12391 }
12392 {
12393 PyObject *o = PyInt_FromLong((long) (*arg3));
12394 resultobj = t_output_helper(resultobj,o);
12395 }
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12403 PyObject *resultobj;
12404 wxDC *arg1 = (wxDC *) 0 ;
12405 int arg2 ;
12406 int arg3 ;
12407 PyObject * obj0 = 0 ;
12408 char *kwnames[] = {
12409 (char *) "self",(char *) "x",(char *) "y", NULL
12410 };
12411
12412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 (arg1)->SetDeviceOrigin(arg2,arg3);
12417
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 Py_INCREF(Py_None); resultobj = Py_None;
12422 return resultobj;
12423 fail:
12424 return NULL;
12425 }
12426
12427
12428 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12429 PyObject *resultobj;
12430 wxDC *arg1 = (wxDC *) 0 ;
12431 bool arg2 ;
12432 bool arg3 ;
12433 PyObject * obj0 = 0 ;
12434 PyObject * obj1 = 0 ;
12435 PyObject * obj2 = 0 ;
12436 char *kwnames[] = {
12437 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12438 };
12439
12440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12442 arg2 = PyInt_AsLong(obj1) ? true : false;
12443 if (PyErr_Occurred()) SWIG_fail;
12444 arg3 = PyInt_AsLong(obj2) ? true : false;
12445 if (PyErr_Occurred()) SWIG_fail;
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 (arg1)->SetAxisOrientation(arg2,arg3);
12449
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 Py_INCREF(Py_None); resultobj = Py_None;
12454 return resultobj;
12455 fail:
12456 return NULL;
12457 }
12458
12459
12460 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj;
12462 wxDC *arg1 = (wxDC *) 0 ;
12463 int result;
12464 PyObject * obj0 = 0 ;
12465 char *kwnames[] = {
12466 (char *) "self", NULL
12467 };
12468
12469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12471 {
12472 PyThreadState* __tstate = wxPyBeginAllowThreads();
12473 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12474
12475 wxPyEndAllowThreads(__tstate);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 }
12478 resultobj = PyInt_FromLong((long)result);
12479 return resultobj;
12480 fail:
12481 return NULL;
12482 }
12483
12484
12485 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12486 PyObject *resultobj;
12487 wxDC *arg1 = (wxDC *) 0 ;
12488 int arg2 ;
12489 PyObject * obj0 = 0 ;
12490 char *kwnames[] = {
12491 (char *) "self",(char *) "function", NULL
12492 };
12493
12494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 (arg1)->SetLogicalFunction(arg2);
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 Py_INCREF(Py_None); resultobj = Py_None;
12504 return resultobj;
12505 fail:
12506 return NULL;
12507 }
12508
12509
12510 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxDC *arg1 = (wxDC *) 0 ;
12513 bool arg2 ;
12514 PyObject * obj0 = 0 ;
12515 PyObject * obj1 = 0 ;
12516 char *kwnames[] = {
12517 (char *) "self",(char *) "opt", NULL
12518 };
12519
12520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12522 arg2 = PyInt_AsLong(obj1) ? true : false;
12523 if (PyErr_Occurred()) SWIG_fail;
12524 {
12525 PyThreadState* __tstate = wxPyBeginAllowThreads();
12526 (arg1)->SetOptimization(arg2);
12527
12528 wxPyEndAllowThreads(__tstate);
12529 if (PyErr_Occurred()) SWIG_fail;
12530 }
12531 Py_INCREF(Py_None); resultobj = Py_None;
12532 return resultobj;
12533 fail:
12534 return NULL;
12535 }
12536
12537
12538 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12539 PyObject *resultobj;
12540 wxDC *arg1 = (wxDC *) 0 ;
12541 bool result;
12542 PyObject * obj0 = 0 ;
12543 char *kwnames[] = {
12544 (char *) "self", NULL
12545 };
12546
12547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12549 {
12550 PyThreadState* __tstate = wxPyBeginAllowThreads();
12551 result = (bool)(arg1)->GetOptimization();
12552
12553 wxPyEndAllowThreads(__tstate);
12554 if (PyErr_Occurred()) SWIG_fail;
12555 }
12556 resultobj = PyInt_FromLong((long)result);
12557 return resultobj;
12558 fail:
12559 return NULL;
12560 }
12561
12562
12563 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12564 PyObject *resultobj;
12565 wxDC *arg1 = (wxDC *) 0 ;
12566 int arg2 ;
12567 int arg3 ;
12568 PyObject * obj0 = 0 ;
12569 char *kwnames[] = {
12570 (char *) "self",(char *) "x",(char *) "y", NULL
12571 };
12572
12573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12575 {
12576 PyThreadState* __tstate = wxPyBeginAllowThreads();
12577 (arg1)->CalcBoundingBox(arg2,arg3);
12578
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 }
12582 Py_INCREF(Py_None); resultobj = Py_None;
12583 return resultobj;
12584 fail:
12585 return NULL;
12586 }
12587
12588
12589 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12590 PyObject *resultobj;
12591 wxDC *arg1 = (wxDC *) 0 ;
12592 PyObject * obj0 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 (arg1)->ResetBoundingBox();
12602
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 Py_INCREF(Py_None); resultobj = Py_None;
12607 return resultobj;
12608 fail:
12609 return NULL;
12610 }
12611
12612
12613 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12614 PyObject *resultobj;
12615 wxDC *arg1 = (wxDC *) 0 ;
12616 int result;
12617 PyObject * obj0 = 0 ;
12618 char *kwnames[] = {
12619 (char *) "self", NULL
12620 };
12621
12622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12624 {
12625 PyThreadState* __tstate = wxPyBeginAllowThreads();
12626 result = (int)((wxDC const *)arg1)->MinX();
12627
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 resultobj = PyInt_FromLong((long)result);
12632 return resultobj;
12633 fail:
12634 return NULL;
12635 }
12636
12637
12638 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12639 PyObject *resultobj;
12640 wxDC *arg1 = (wxDC *) 0 ;
12641 int result;
12642 PyObject * obj0 = 0 ;
12643 char *kwnames[] = {
12644 (char *) "self", NULL
12645 };
12646
12647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 result = (int)((wxDC const *)arg1)->MaxX();
12652
12653 wxPyEndAllowThreads(__tstate);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 }
12656 resultobj = PyInt_FromLong((long)result);
12657 return resultobj;
12658 fail:
12659 return NULL;
12660 }
12661
12662
12663 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
12664 PyObject *resultobj;
12665 wxDC *arg1 = (wxDC *) 0 ;
12666 int result;
12667 PyObject * obj0 = 0 ;
12668 char *kwnames[] = {
12669 (char *) "self", NULL
12670 };
12671
12672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
12673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12674 {
12675 PyThreadState* __tstate = wxPyBeginAllowThreads();
12676 result = (int)((wxDC const *)arg1)->MinY();
12677
12678 wxPyEndAllowThreads(__tstate);
12679 if (PyErr_Occurred()) SWIG_fail;
12680 }
12681 resultobj = PyInt_FromLong((long)result);
12682 return resultobj;
12683 fail:
12684 return NULL;
12685 }
12686
12687
12688 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
12689 PyObject *resultobj;
12690 wxDC *arg1 = (wxDC *) 0 ;
12691 int result;
12692 PyObject * obj0 = 0 ;
12693 char *kwnames[] = {
12694 (char *) "self", NULL
12695 };
12696
12697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
12698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12699 {
12700 PyThreadState* __tstate = wxPyBeginAllowThreads();
12701 result = (int)((wxDC const *)arg1)->MaxY();
12702
12703 wxPyEndAllowThreads(__tstate);
12704 if (PyErr_Occurred()) SWIG_fail;
12705 }
12706 resultobj = PyInt_FromLong((long)result);
12707 return resultobj;
12708 fail:
12709 return NULL;
12710 }
12711
12712
12713 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12714 PyObject *resultobj;
12715 wxDC *arg1 = (wxDC *) 0 ;
12716 int *arg2 = (int *) 0 ;
12717 int *arg3 = (int *) 0 ;
12718 int *arg4 = (int *) 0 ;
12719 int *arg5 = (int *) 0 ;
12720 int temp2 ;
12721 int temp3 ;
12722 int temp4 ;
12723 int temp5 ;
12724 PyObject * obj0 = 0 ;
12725 char *kwnames[] = {
12726 (char *) "self", NULL
12727 };
12728
12729 arg2 = &temp2;
12730 arg3 = &temp3;
12731 arg4 = &temp4;
12732 arg5 = &temp5;
12733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
12734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12735 {
12736 PyThreadState* __tstate = wxPyBeginAllowThreads();
12737 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
12738
12739 wxPyEndAllowThreads(__tstate);
12740 if (PyErr_Occurred()) SWIG_fail;
12741 }
12742 Py_INCREF(Py_None); resultobj = Py_None;
12743 {
12744 PyObject *o = PyInt_FromLong((long) (*arg2));
12745 resultobj = t_output_helper(resultobj,o);
12746 }
12747 {
12748 PyObject *o = PyInt_FromLong((long) (*arg3));
12749 resultobj = t_output_helper(resultobj,o);
12750 }
12751 {
12752 PyObject *o = PyInt_FromLong((long) (*arg4));
12753 resultobj = t_output_helper(resultobj,o);
12754 }
12755 {
12756 PyObject *o = PyInt_FromLong((long) (*arg5));
12757 resultobj = t_output_helper(resultobj,o);
12758 }
12759 return resultobj;
12760 fail:
12761 return NULL;
12762 }
12763
12764
12765 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
12766 PyObject *resultobj;
12767 wxDC *arg1 = (wxDC *) 0 ;
12768 PyObject *arg2 = (PyObject *) 0 ;
12769 PyObject *arg3 = (PyObject *) 0 ;
12770 PyObject *arg4 = (PyObject *) 0 ;
12771 PyObject *result;
12772 PyObject * obj0 = 0 ;
12773 PyObject * obj1 = 0 ;
12774 PyObject * obj2 = 0 ;
12775 PyObject * obj3 = 0 ;
12776 char *kwnames[] = {
12777 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12778 };
12779
12780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12782 arg2 = obj1;
12783 arg3 = obj2;
12784 arg4 = obj3;
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
12788
12789 wxPyEndAllowThreads(__tstate);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 }
12792 resultobj = result;
12793 return resultobj;
12794 fail:
12795 return NULL;
12796 }
12797
12798
12799 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
12800 PyObject *resultobj;
12801 wxDC *arg1 = (wxDC *) 0 ;
12802 PyObject *arg2 = (PyObject *) 0 ;
12803 PyObject *arg3 = (PyObject *) 0 ;
12804 PyObject *arg4 = (PyObject *) 0 ;
12805 PyObject *result;
12806 PyObject * obj0 = 0 ;
12807 PyObject * obj1 = 0 ;
12808 PyObject * obj2 = 0 ;
12809 PyObject * obj3 = 0 ;
12810 char *kwnames[] = {
12811 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12812 };
12813
12814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12816 arg2 = obj1;
12817 arg3 = obj2;
12818 arg4 = obj3;
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
12822
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 resultobj = result;
12827 return resultobj;
12828 fail:
12829 return NULL;
12830 }
12831
12832
12833 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
12834 PyObject *resultobj;
12835 wxDC *arg1 = (wxDC *) 0 ;
12836 PyObject *arg2 = (PyObject *) 0 ;
12837 PyObject *arg3 = (PyObject *) 0 ;
12838 PyObject *arg4 = (PyObject *) 0 ;
12839 PyObject *result;
12840 PyObject * obj0 = 0 ;
12841 PyObject * obj1 = 0 ;
12842 PyObject * obj2 = 0 ;
12843 PyObject * obj3 = 0 ;
12844 char *kwnames[] = {
12845 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12846 };
12847
12848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12850 arg2 = obj1;
12851 arg3 = obj2;
12852 arg4 = obj3;
12853 {
12854 PyThreadState* __tstate = wxPyBeginAllowThreads();
12855 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
12856
12857 wxPyEndAllowThreads(__tstate);
12858 if (PyErr_Occurred()) SWIG_fail;
12859 }
12860 resultobj = result;
12861 return resultobj;
12862 fail:
12863 return NULL;
12864 }
12865
12866
12867 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
12868 PyObject *resultobj;
12869 wxDC *arg1 = (wxDC *) 0 ;
12870 PyObject *arg2 = (PyObject *) 0 ;
12871 PyObject *arg3 = (PyObject *) 0 ;
12872 PyObject *arg4 = (PyObject *) 0 ;
12873 PyObject *result;
12874 PyObject * obj0 = 0 ;
12875 PyObject * obj1 = 0 ;
12876 PyObject * obj2 = 0 ;
12877 PyObject * obj3 = 0 ;
12878 char *kwnames[] = {
12879 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12880 };
12881
12882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12884 arg2 = obj1;
12885 arg3 = obj2;
12886 arg4 = obj3;
12887 {
12888 PyThreadState* __tstate = wxPyBeginAllowThreads();
12889 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
12890
12891 wxPyEndAllowThreads(__tstate);
12892 if (PyErr_Occurred()) SWIG_fail;
12893 }
12894 resultobj = result;
12895 return resultobj;
12896 fail:
12897 return NULL;
12898 }
12899
12900
12901 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
12902 PyObject *resultobj;
12903 wxDC *arg1 = (wxDC *) 0 ;
12904 PyObject *arg2 = (PyObject *) 0 ;
12905 PyObject *arg3 = (PyObject *) 0 ;
12906 PyObject *arg4 = (PyObject *) 0 ;
12907 PyObject *result;
12908 PyObject * obj0 = 0 ;
12909 PyObject * obj1 = 0 ;
12910 PyObject * obj2 = 0 ;
12911 PyObject * obj3 = 0 ;
12912 char *kwnames[] = {
12913 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12914 };
12915
12916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12918 arg2 = obj1;
12919 arg3 = obj2;
12920 arg4 = obj3;
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
12924
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 resultobj = result;
12929 return resultobj;
12930 fail:
12931 return NULL;
12932 }
12933
12934
12935 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj;
12937 wxDC *arg1 = (wxDC *) 0 ;
12938 PyObject *arg2 = (PyObject *) 0 ;
12939 PyObject *arg3 = (PyObject *) 0 ;
12940 PyObject *arg4 = (PyObject *) 0 ;
12941 PyObject *arg5 = (PyObject *) 0 ;
12942 PyObject *result;
12943 PyObject * obj0 = 0 ;
12944 PyObject * obj1 = 0 ;
12945 PyObject * obj2 = 0 ;
12946 PyObject * obj3 = 0 ;
12947 PyObject * obj4 = 0 ;
12948 char *kwnames[] = {
12949 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
12950 };
12951
12952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12954 arg2 = obj1;
12955 arg3 = obj2;
12956 arg4 = obj3;
12957 arg5 = obj4;
12958 {
12959 PyThreadState* __tstate = wxPyBeginAllowThreads();
12960 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
12961
12962 wxPyEndAllowThreads(__tstate);
12963 if (PyErr_Occurred()) SWIG_fail;
12964 }
12965 resultobj = result;
12966 return resultobj;
12967 fail:
12968 return NULL;
12969 }
12970
12971
12972 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
12973 PyObject *obj;
12974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12975 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
12976 Py_INCREF(obj);
12977 return Py_BuildValue((char *)"");
12978 }
12979 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12980 PyObject *resultobj;
12981 wxMemoryDC *result;
12982 char *kwnames[] = {
12983 NULL
12984 };
12985
12986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 result = (wxMemoryDC *)new wxMemoryDC();
12990
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
12995 return resultobj;
12996 fail:
12997 return NULL;
12998 }
12999
13000
13001 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13002 PyObject *resultobj;
13003 wxDC *arg1 = (wxDC *) 0 ;
13004 wxMemoryDC *result;
13005 PyObject * obj0 = 0 ;
13006 char *kwnames[] = {
13007 (char *) "oldDC", NULL
13008 };
13009
13010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
13011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 result = (wxMemoryDC *)new wxMemoryDC(arg1);
13015
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13020 return resultobj;
13021 fail:
13022 return NULL;
13023 }
13024
13025
13026 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13027 PyObject *resultobj;
13028 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13029 wxBitmap *arg2 = 0 ;
13030 PyObject * obj0 = 0 ;
13031 PyObject * obj1 = 0 ;
13032 char *kwnames[] = {
13033 (char *) "self",(char *) "bitmap", NULL
13034 };
13035
13036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13038 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13039 if (arg2 == NULL) {
13040 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13041 }
13042 {
13043 PyThreadState* __tstate = wxPyBeginAllowThreads();
13044 (arg1)->SelectObject((wxBitmap const &)*arg2);
13045
13046 wxPyEndAllowThreads(__tstate);
13047 if (PyErr_Occurred()) SWIG_fail;
13048 }
13049 Py_INCREF(Py_None); resultobj = Py_None;
13050 return resultobj;
13051 fail:
13052 return NULL;
13053 }
13054
13055
13056 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13057 PyObject *obj;
13058 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13059 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13060 Py_INCREF(obj);
13061 return Py_BuildValue((char *)"");
13062 }
13063 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13064 PyObject *resultobj;
13065 wxDC *arg1 = (wxDC *) 0 ;
13066 wxBitmap *arg2 = 0 ;
13067 wxBufferedDC *result;
13068 PyObject * obj0 = 0 ;
13069 PyObject * obj1 = 0 ;
13070 char *kwnames[] = {
13071 (char *) "dc",(char *) "buffer", NULL
13072 };
13073
13074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13076 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13077 if (arg2 == NULL) {
13078 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13079 }
13080 {
13081 PyThreadState* __tstate = wxPyBeginAllowThreads();
13082 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13083
13084 wxPyEndAllowThreads(__tstate);
13085 if (PyErr_Occurred()) SWIG_fail;
13086 }
13087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13088 return resultobj;
13089 fail:
13090 return NULL;
13091 }
13092
13093
13094 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13095 PyObject *resultobj;
13096 wxDC *arg1 = (wxDC *) 0 ;
13097 wxSize *arg2 = 0 ;
13098 wxBufferedDC *result;
13099 wxSize temp2 ;
13100 PyObject * obj0 = 0 ;
13101 PyObject * obj1 = 0 ;
13102 char *kwnames[] = {
13103 (char *) "dc",(char *) "area", NULL
13104 };
13105
13106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13108 {
13109 arg2 = &temp2;
13110 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13111 }
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13115
13116 wxPyEndAllowThreads(__tstate);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 }
13119 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13120 return resultobj;
13121 fail:
13122 return NULL;
13123 }
13124
13125
13126 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13127 PyObject *resultobj;
13128 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13129 PyObject * obj0 = 0 ;
13130 char *kwnames[] = {
13131 (char *) "self", NULL
13132 };
13133
13134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 (arg1)->UnMask();
13139
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 Py_INCREF(Py_None); resultobj = Py_None;
13144 return resultobj;
13145 fail:
13146 return NULL;
13147 }
13148
13149
13150 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13151 PyObject *obj;
13152 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13153 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13154 Py_INCREF(obj);
13155 return Py_BuildValue((char *)"");
13156 }
13157 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13158 PyObject *resultobj;
13159 wxWindow *arg1 = (wxWindow *) 0 ;
13160 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13161 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13162 wxBufferedPaintDC *result;
13163 PyObject * obj0 = 0 ;
13164 PyObject * obj1 = 0 ;
13165 char *kwnames[] = {
13166 (char *) "window",(char *) "buffer", NULL
13167 };
13168
13169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13171 if (obj1) {
13172 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13173 if (arg2 == NULL) {
13174 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13175 }
13176 }
13177 {
13178 PyThreadState* __tstate = wxPyBeginAllowThreads();
13179 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13180
13181 wxPyEndAllowThreads(__tstate);
13182 if (PyErr_Occurred()) SWIG_fail;
13183 }
13184 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13185 return resultobj;
13186 fail:
13187 return NULL;
13188 }
13189
13190
13191 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13192 PyObject *obj;
13193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13194 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13195 Py_INCREF(obj);
13196 return Py_BuildValue((char *)"");
13197 }
13198 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13199 PyObject *resultobj;
13200 wxScreenDC *result;
13201 char *kwnames[] = {
13202 NULL
13203 };
13204
13205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 result = (wxScreenDC *)new wxScreenDC();
13209
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13214 return resultobj;
13215 fail:
13216 return NULL;
13217 }
13218
13219
13220 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13221 PyObject *resultobj;
13222 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13223 wxWindow *arg2 = (wxWindow *) 0 ;
13224 bool result;
13225 PyObject * obj0 = 0 ;
13226 PyObject * obj1 = 0 ;
13227 char *kwnames[] = {
13228 (char *) "self",(char *) "window", NULL
13229 };
13230
13231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13233 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13234 {
13235 PyThreadState* __tstate = wxPyBeginAllowThreads();
13236 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13237
13238 wxPyEndAllowThreads(__tstate);
13239 if (PyErr_Occurred()) SWIG_fail;
13240 }
13241 resultobj = PyInt_FromLong((long)result);
13242 return resultobj;
13243 fail:
13244 return NULL;
13245 }
13246
13247
13248 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13249 PyObject *resultobj;
13250 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13251 wxRect *arg2 = (wxRect *) NULL ;
13252 bool result;
13253 PyObject * obj0 = 0 ;
13254 PyObject * obj1 = 0 ;
13255 char *kwnames[] = {
13256 (char *) "self",(char *) "rect", NULL
13257 };
13258
13259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13261 if (obj1) {
13262 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13263 }
13264 {
13265 PyThreadState* __tstate = wxPyBeginAllowThreads();
13266 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13267
13268 wxPyEndAllowThreads(__tstate);
13269 if (PyErr_Occurred()) SWIG_fail;
13270 }
13271 resultobj = PyInt_FromLong((long)result);
13272 return resultobj;
13273 fail:
13274 return NULL;
13275 }
13276
13277
13278 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13279 PyObject *resultobj;
13280 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13281 bool result;
13282 PyObject * obj0 = 0 ;
13283 char *kwnames[] = {
13284 (char *) "self", NULL
13285 };
13286
13287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 result = (bool)(arg1)->EndDrawingOnTop();
13292
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = PyInt_FromLong((long)result);
13297 return resultobj;
13298 fail:
13299 return NULL;
13300 }
13301
13302
13303 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13304 PyObject *obj;
13305 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13306 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13307 Py_INCREF(obj);
13308 return Py_BuildValue((char *)"");
13309 }
13310 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13311 PyObject *resultobj;
13312 wxWindow *arg1 = (wxWindow *) 0 ;
13313 wxClientDC *result;
13314 PyObject * obj0 = 0 ;
13315 char *kwnames[] = {
13316 (char *) "win", NULL
13317 };
13318
13319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13321 {
13322 PyThreadState* __tstate = wxPyBeginAllowThreads();
13323 result = (wxClientDC *)new wxClientDC(arg1);
13324
13325 wxPyEndAllowThreads(__tstate);
13326 if (PyErr_Occurred()) SWIG_fail;
13327 }
13328 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13336 PyObject *obj;
13337 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13338 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13339 Py_INCREF(obj);
13340 return Py_BuildValue((char *)"");
13341 }
13342 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13343 PyObject *resultobj;
13344 wxWindow *arg1 = (wxWindow *) 0 ;
13345 wxPaintDC *result;
13346 PyObject * obj0 = 0 ;
13347 char *kwnames[] = {
13348 (char *) "win", NULL
13349 };
13350
13351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 result = (wxPaintDC *)new wxPaintDC(arg1);
13356
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13361 return resultobj;
13362 fail:
13363 return NULL;
13364 }
13365
13366
13367 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13368 PyObject *obj;
13369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13370 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13371 Py_INCREF(obj);
13372 return Py_BuildValue((char *)"");
13373 }
13374 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13375 PyObject *resultobj;
13376 wxWindow *arg1 = (wxWindow *) 0 ;
13377 wxWindowDC *result;
13378 PyObject * obj0 = 0 ;
13379 char *kwnames[] = {
13380 (char *) "win", NULL
13381 };
13382
13383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13385 {
13386 PyThreadState* __tstate = wxPyBeginAllowThreads();
13387 result = (wxWindowDC *)new wxWindowDC(arg1);
13388
13389 wxPyEndAllowThreads(__tstate);
13390 if (PyErr_Occurred()) SWIG_fail;
13391 }
13392 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13393 return resultobj;
13394 fail:
13395 return NULL;
13396 }
13397
13398
13399 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13400 PyObject *obj;
13401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13402 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13403 Py_INCREF(obj);
13404 return Py_BuildValue((char *)"");
13405 }
13406 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13407 PyObject *resultobj;
13408 wxDC *arg1 = 0 ;
13409 bool arg2 ;
13410 wxMirrorDC *result;
13411 PyObject * obj0 = 0 ;
13412 PyObject * obj1 = 0 ;
13413 char *kwnames[] = {
13414 (char *) "dc",(char *) "mirror", NULL
13415 };
13416
13417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13419 if (arg1 == NULL) {
13420 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13421 }
13422 arg2 = PyInt_AsLong(obj1) ? true : false;
13423 if (PyErr_Occurred()) SWIG_fail;
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13427
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13432 return resultobj;
13433 fail:
13434 return NULL;
13435 }
13436
13437
13438 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13439 PyObject *obj;
13440 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13441 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13442 Py_INCREF(obj);
13443 return Py_BuildValue((char *)"");
13444 }
13445 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj;
13447 wxPrintData *arg1 = 0 ;
13448 wxPostScriptDC *result;
13449 PyObject * obj0 = 0 ;
13450 char *kwnames[] = {
13451 (char *) "printData", NULL
13452 };
13453
13454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13456 if (arg1 == NULL) {
13457 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13458 }
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13467 return resultobj;
13468 fail:
13469 return NULL;
13470 }
13471
13472
13473 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13474 PyObject *resultobj;
13475 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13476 wxPrintData *result;
13477 PyObject * obj0 = 0 ;
13478 char *kwnames[] = {
13479 (char *) "self", NULL
13480 };
13481
13482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 {
13487 wxPrintData &_result_ref = (arg1)->GetPrintData();
13488 result = (wxPrintData *) &_result_ref;
13489 }
13490
13491 wxPyEndAllowThreads(__tstate);
13492 if (PyErr_Occurred()) SWIG_fail;
13493 }
13494 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13495 return resultobj;
13496 fail:
13497 return NULL;
13498 }
13499
13500
13501 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13502 PyObject *resultobj;
13503 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13504 wxPrintData *arg2 = 0 ;
13505 PyObject * obj0 = 0 ;
13506 PyObject * obj1 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "self",(char *) "data", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13513 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13514 if (arg2 == NULL) {
13515 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13516 }
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13520
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 Py_INCREF(Py_None); resultobj = Py_None;
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13532 PyObject *resultobj;
13533 int arg1 ;
13534 char *kwnames[] = {
13535 (char *) "ppi", NULL
13536 };
13537
13538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 wxPostScriptDC::SetResolution(arg1);
13542
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 Py_INCREF(Py_None); resultobj = Py_None;
13547 return resultobj;
13548 fail:
13549 return NULL;
13550 }
13551
13552
13553 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13554 PyObject *resultobj;
13555 int result;
13556 char *kwnames[] = {
13557 NULL
13558 };
13559
13560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13561 {
13562 PyThreadState* __tstate = wxPyBeginAllowThreads();
13563 result = (int)wxPostScriptDC::GetResolution();
13564
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 resultobj = PyInt_FromLong((long)result);
13569 return resultobj;
13570 fail:
13571 return NULL;
13572 }
13573
13574
13575 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13576 PyObject *obj;
13577 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13578 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13579 Py_INCREF(obj);
13580 return Py_BuildValue((char *)"");
13581 }
13582 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13583 PyObject *resultobj;
13584 wxString const &arg1_defvalue = wxPyEmptyString ;
13585 wxString *arg1 = (wxString *) &arg1_defvalue ;
13586 wxMetaFile *result;
13587 bool temp1 = False ;
13588 PyObject * obj0 = 0 ;
13589 char *kwnames[] = {
13590 (char *) "filename", NULL
13591 };
13592
13593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13594 if (obj0) {
13595 {
13596 arg1 = wxString_in_helper(obj0);
13597 if (arg1 == NULL) SWIG_fail;
13598 temp1 = True;
13599 }
13600 }
13601 {
13602 PyThreadState* __tstate = wxPyBeginAllowThreads();
13603 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13604
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13609 {
13610 if (temp1)
13611 delete arg1;
13612 }
13613 return resultobj;
13614 fail:
13615 {
13616 if (temp1)
13617 delete arg1;
13618 }
13619 return NULL;
13620 }
13621
13622
13623 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13624 PyObject *obj;
13625 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13626 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13627 Py_INCREF(obj);
13628 return Py_BuildValue((char *)"");
13629 }
13630 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13631 PyObject *resultobj;
13632 wxString const &arg1_defvalue = wxPyEmptyString ;
13633 wxString *arg1 = (wxString *) &arg1_defvalue ;
13634 int arg2 = (int) 0 ;
13635 int arg3 = (int) 0 ;
13636 wxString const &arg4_defvalue = wxPyEmptyString ;
13637 wxString *arg4 = (wxString *) &arg4_defvalue ;
13638 wxMetaFileDC *result;
13639 bool temp1 = False ;
13640 bool temp4 = False ;
13641 PyObject * obj0 = 0 ;
13642 PyObject * obj3 = 0 ;
13643 char *kwnames[] = {
13644 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13645 };
13646
13647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13648 if (obj0) {
13649 {
13650 arg1 = wxString_in_helper(obj0);
13651 if (arg1 == NULL) SWIG_fail;
13652 temp1 = True;
13653 }
13654 }
13655 if (obj3) {
13656 {
13657 arg4 = wxString_in_helper(obj3);
13658 if (arg4 == NULL) SWIG_fail;
13659 temp4 = True;
13660 }
13661 }
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13665
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13670 {
13671 if (temp1)
13672 delete arg1;
13673 }
13674 {
13675 if (temp4)
13676 delete arg4;
13677 }
13678 return resultobj;
13679 fail:
13680 {
13681 if (temp1)
13682 delete arg1;
13683 }
13684 {
13685 if (temp4)
13686 delete arg4;
13687 }
13688 return NULL;
13689 }
13690
13691
13692 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13693 PyObject *obj;
13694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13695 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13696 Py_INCREF(obj);
13697 return Py_BuildValue((char *)"");
13698 }
13699 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13700 PyObject *resultobj;
13701 wxPrintData *arg1 = 0 ;
13702 wxPrinterDC *result;
13703 PyObject * obj0 = 0 ;
13704 char *kwnames[] = {
13705 (char *) "printData", NULL
13706 };
13707
13708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
13709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13710 if (arg1 == NULL) {
13711 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13712 }
13713 {
13714 PyThreadState* __tstate = wxPyBeginAllowThreads();
13715 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
13716
13717 wxPyEndAllowThreads(__tstate);
13718 if (PyErr_Occurred()) SWIG_fail;
13719 }
13720 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
13721 return resultobj;
13722 fail:
13723 return NULL;
13724 }
13725
13726
13727 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
13728 PyObject *obj;
13729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13730 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
13731 Py_INCREF(obj);
13732 return Py_BuildValue((char *)"");
13733 }
13734 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13735 PyObject *resultobj;
13736 int arg1 ;
13737 int arg2 ;
13738 int arg3 = (int) True ;
13739 int arg4 = (int) 1 ;
13740 wxImageList *result;
13741 char *kwnames[] = {
13742 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
13743 };
13744
13745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
13749
13750 wxPyEndAllowThreads(__tstate);
13751 if (PyErr_Occurred()) SWIG_fail;
13752 }
13753 {
13754 resultobj = wxPyMake_wxObject(result);
13755 }
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj;
13764 wxImageList *arg1 = (wxImageList *) 0 ;
13765 PyObject * obj0 = 0 ;
13766 char *kwnames[] = {
13767 (char *) "self", NULL
13768 };
13769
13770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
13771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 delete arg1;
13775
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 Py_INCREF(Py_None); resultobj = Py_None;
13780 return resultobj;
13781 fail:
13782 return NULL;
13783 }
13784
13785
13786 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
13787 PyObject *resultobj;
13788 wxImageList *arg1 = (wxImageList *) 0 ;
13789 wxBitmap *arg2 = 0 ;
13790 wxBitmap const &arg3_defvalue = wxNullBitmap ;
13791 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
13792 int result;
13793 PyObject * obj0 = 0 ;
13794 PyObject * obj1 = 0 ;
13795 PyObject * obj2 = 0 ;
13796 char *kwnames[] = {
13797 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
13798 };
13799
13800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
13801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13802 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13803 if (arg2 == NULL) {
13804 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13805 }
13806 if (obj2) {
13807 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13808 if (arg3 == NULL) {
13809 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13810 }
13811 }
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
13815
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 resultobj = PyInt_FromLong((long)result);
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13827 PyObject *resultobj;
13828 wxImageList *arg1 = (wxImageList *) 0 ;
13829 wxBitmap *arg2 = 0 ;
13830 wxColour *arg3 = 0 ;
13831 int result;
13832 wxColour temp3 ;
13833 PyObject * obj0 = 0 ;
13834 PyObject * obj1 = 0 ;
13835 PyObject * obj2 = 0 ;
13836 char *kwnames[] = {
13837 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
13838 };
13839
13840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
13841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13842 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13843 if (arg2 == NULL) {
13844 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13845 }
13846 {
13847 arg3 = &temp3;
13848 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13849 }
13850 {
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
13853
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 resultobj = PyInt_FromLong((long)result);
13858 return resultobj;
13859 fail:
13860 return NULL;
13861 }
13862
13863
13864 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13865 PyObject *resultobj;
13866 wxImageList *arg1 = (wxImageList *) 0 ;
13867 wxIcon *arg2 = 0 ;
13868 int result;
13869 PyObject * obj0 = 0 ;
13870 PyObject * obj1 = 0 ;
13871 char *kwnames[] = {
13872 (char *) "self",(char *) "icon", NULL
13873 };
13874
13875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
13876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13877 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13878 if (arg2 == NULL) {
13879 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13880 }
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 result = (int)(arg1)->Add((wxIcon const &)*arg2);
13884
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 resultobj = PyInt_FromLong((long)result);
13889 return resultobj;
13890 fail:
13891 return NULL;
13892 }
13893
13894
13895 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
13896 PyObject *resultobj;
13897 wxImageList *arg1 = (wxImageList *) 0 ;
13898 int arg2 ;
13899 wxBitmap *arg3 = 0 ;
13900 bool result;
13901 PyObject * obj0 = 0 ;
13902 PyObject * obj2 = 0 ;
13903 char *kwnames[] = {
13904 (char *) "self",(char *) "index",(char *) "bitmap", NULL
13905 };
13906
13907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
13908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13909 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13910 if (arg3 == NULL) {
13911 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13912 }
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
13915 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
13916
13917 wxPyEndAllowThreads(__tstate);
13918 if (PyErr_Occurred()) SWIG_fail;
13919 }
13920 resultobj = PyInt_FromLong((long)result);
13921 return resultobj;
13922 fail:
13923 return NULL;
13924 }
13925
13926
13927 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
13928 PyObject *resultobj;
13929 wxImageList *arg1 = (wxImageList *) 0 ;
13930 int arg2 ;
13931 wxDC *arg3 = 0 ;
13932 int arg4 ;
13933 int arg5 ;
13934 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
13935 bool arg7 = (bool) (bool)False ;
13936 bool result;
13937 PyObject * obj0 = 0 ;
13938 PyObject * obj2 = 0 ;
13939 PyObject * obj6 = 0 ;
13940 char *kwnames[] = {
13941 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
13942 };
13943
13944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
13945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13946 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13947 if (arg3 == NULL) {
13948 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13949 }
13950 if (obj6) {
13951 arg7 = PyInt_AsLong(obj6) ? true : false;
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
13957
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 resultobj = PyInt_FromLong((long)result);
13962 return resultobj;
13963 fail:
13964 return NULL;
13965 }
13966
13967
13968 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13969 PyObject *resultobj;
13970 wxImageList *arg1 = (wxImageList *) 0 ;
13971 int result;
13972 PyObject * obj0 = 0 ;
13973 char *kwnames[] = {
13974 (char *) "self", NULL
13975 };
13976
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
13978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13979 {
13980 PyThreadState* __tstate = wxPyBeginAllowThreads();
13981 result = (int)(arg1)->GetImageCount();
13982
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 resultobj = PyInt_FromLong((long)result);
13987 return resultobj;
13988 fail:
13989 return NULL;
13990 }
13991
13992
13993 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
13994 PyObject *resultobj;
13995 wxImageList *arg1 = (wxImageList *) 0 ;
13996 int arg2 ;
13997 bool result;
13998 PyObject * obj0 = 0 ;
13999 char *kwnames[] = {
14000 (char *) "self",(char *) "index", NULL
14001 };
14002
14003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
14004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14005 {
14006 PyThreadState* __tstate = wxPyBeginAllowThreads();
14007 result = (bool)(arg1)->Remove(arg2);
14008
14009 wxPyEndAllowThreads(__tstate);
14010 if (PyErr_Occurred()) SWIG_fail;
14011 }
14012 resultobj = PyInt_FromLong((long)result);
14013 return resultobj;
14014 fail:
14015 return NULL;
14016 }
14017
14018
14019 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14020 PyObject *resultobj;
14021 wxImageList *arg1 = (wxImageList *) 0 ;
14022 bool result;
14023 PyObject * obj0 = 0 ;
14024 char *kwnames[] = {
14025 (char *) "self", NULL
14026 };
14027
14028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14030 {
14031 PyThreadState* __tstate = wxPyBeginAllowThreads();
14032 result = (bool)(arg1)->RemoveAll();
14033
14034 wxPyEndAllowThreads(__tstate);
14035 if (PyErr_Occurred()) SWIG_fail;
14036 }
14037 resultobj = PyInt_FromLong((long)result);
14038 return resultobj;
14039 fail:
14040 return NULL;
14041 }
14042
14043
14044 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14045 PyObject *resultobj;
14046 wxImageList *arg1 = (wxImageList *) 0 ;
14047 int arg2 ;
14048 int *arg3 = 0 ;
14049 int *arg4 = 0 ;
14050 int temp3 ;
14051 int temp4 ;
14052 PyObject * obj0 = 0 ;
14053 char *kwnames[] = {
14054 (char *) "self",(char *) "index", NULL
14055 };
14056
14057 arg3 = &temp3;
14058 arg4 = &temp4;
14059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14061 {
14062 PyThreadState* __tstate = wxPyBeginAllowThreads();
14063 (arg1)->GetSize(arg2,*arg3,*arg4);
14064
14065 wxPyEndAllowThreads(__tstate);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
14068 Py_INCREF(Py_None); resultobj = Py_None;
14069 {
14070 PyObject *o = PyInt_FromLong((long) (*arg3));
14071 resultobj = t_output_helper(resultobj,o);
14072 }
14073 {
14074 PyObject *o = PyInt_FromLong((long) (*arg4));
14075 resultobj = t_output_helper(resultobj,o);
14076 }
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14084 PyObject *obj;
14085 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14086 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14087 Py_INCREF(obj);
14088 return Py_BuildValue((char *)"");
14089 }
14090 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14091 PyObject *resultobj;
14092 wxPenList *arg1 = (wxPenList *) 0 ;
14093 wxPen *arg2 = (wxPen *) 0 ;
14094 PyObject * obj0 = 0 ;
14095 PyObject * obj1 = 0 ;
14096 char *kwnames[] = {
14097 (char *) "self",(char *) "pen", NULL
14098 };
14099
14100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14102 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14103 {
14104 PyThreadState* __tstate = wxPyBeginAllowThreads();
14105 (arg1)->AddPen(arg2);
14106
14107 wxPyEndAllowThreads(__tstate);
14108 if (PyErr_Occurred()) SWIG_fail;
14109 }
14110 Py_INCREF(Py_None); resultobj = Py_None;
14111 return resultobj;
14112 fail:
14113 return NULL;
14114 }
14115
14116
14117 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14118 PyObject *resultobj;
14119 wxPenList *arg1 = (wxPenList *) 0 ;
14120 wxColour *arg2 = 0 ;
14121 int arg3 ;
14122 int arg4 ;
14123 wxPen *result;
14124 wxColour temp2 ;
14125 PyObject * obj0 = 0 ;
14126 PyObject * obj1 = 0 ;
14127 char *kwnames[] = {
14128 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14129 };
14130
14131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14133 {
14134 arg2 = &temp2;
14135 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14136 }
14137 {
14138 PyThreadState* __tstate = wxPyBeginAllowThreads();
14139 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14140
14141 wxPyEndAllowThreads(__tstate);
14142 if (PyErr_Occurred()) SWIG_fail;
14143 }
14144 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14145 return resultobj;
14146 fail:
14147 return NULL;
14148 }
14149
14150
14151 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14152 PyObject *resultobj;
14153 wxPenList *arg1 = (wxPenList *) 0 ;
14154 wxPen *arg2 = (wxPen *) 0 ;
14155 PyObject * obj0 = 0 ;
14156 PyObject * obj1 = 0 ;
14157 char *kwnames[] = {
14158 (char *) "self",(char *) "pen", NULL
14159 };
14160
14161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14163 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 (arg1)->RemovePen(arg2);
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 Py_INCREF(Py_None); resultobj = Py_None;
14172 return resultobj;
14173 fail:
14174 return NULL;
14175 }
14176
14177
14178 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14179 PyObject *resultobj;
14180 wxPenList *arg1 = (wxPenList *) 0 ;
14181 int result;
14182 PyObject * obj0 = 0 ;
14183 char *kwnames[] = {
14184 (char *) "self", NULL
14185 };
14186
14187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14189 {
14190 PyThreadState* __tstate = wxPyBeginAllowThreads();
14191 result = (int)(arg1)->GetCount();
14192
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 resultobj = PyInt_FromLong((long)result);
14197 return resultobj;
14198 fail:
14199 return NULL;
14200 }
14201
14202
14203 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14204 PyObject *obj;
14205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14206 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14207 Py_INCREF(obj);
14208 return Py_BuildValue((char *)"");
14209 }
14210 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14211 PyObject *resultobj;
14212 wxBrushList *arg1 = (wxBrushList *) 0 ;
14213 wxBrush *arg2 = (wxBrush *) 0 ;
14214 PyObject * obj0 = 0 ;
14215 PyObject * obj1 = 0 ;
14216 char *kwnames[] = {
14217 (char *) "self",(char *) "brush", NULL
14218 };
14219
14220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14222 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 (arg1)->AddBrush(arg2);
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 Py_INCREF(Py_None); resultobj = Py_None;
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj;
14239 wxBrushList *arg1 = (wxBrushList *) 0 ;
14240 wxColour *arg2 = 0 ;
14241 int arg3 ;
14242 wxBrush *result;
14243 wxColour temp2 ;
14244 PyObject * obj0 = 0 ;
14245 PyObject * obj1 = 0 ;
14246 char *kwnames[] = {
14247 (char *) "self",(char *) "colour",(char *) "style", NULL
14248 };
14249
14250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14252 {
14253 arg2 = &temp2;
14254 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14255 }
14256 {
14257 PyThreadState* __tstate = wxPyBeginAllowThreads();
14258 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14259
14260 wxPyEndAllowThreads(__tstate);
14261 if (PyErr_Occurred()) SWIG_fail;
14262 }
14263 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14264 return resultobj;
14265 fail:
14266 return NULL;
14267 }
14268
14269
14270 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14271 PyObject *resultobj;
14272 wxBrushList *arg1 = (wxBrushList *) 0 ;
14273 wxBrush *arg2 = (wxBrush *) 0 ;
14274 PyObject * obj0 = 0 ;
14275 PyObject * obj1 = 0 ;
14276 char *kwnames[] = {
14277 (char *) "self",(char *) "brush", NULL
14278 };
14279
14280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14282 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14283 {
14284 PyThreadState* __tstate = wxPyBeginAllowThreads();
14285 (arg1)->RemoveBrush(arg2);
14286
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 Py_INCREF(Py_None); resultobj = Py_None;
14291 return resultobj;
14292 fail:
14293 return NULL;
14294 }
14295
14296
14297 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14298 PyObject *resultobj;
14299 wxBrushList *arg1 = (wxBrushList *) 0 ;
14300 int result;
14301 PyObject * obj0 = 0 ;
14302 char *kwnames[] = {
14303 (char *) "self", NULL
14304 };
14305
14306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14308 {
14309 PyThreadState* __tstate = wxPyBeginAllowThreads();
14310 result = (int)(arg1)->GetCount();
14311
14312 wxPyEndAllowThreads(__tstate);
14313 if (PyErr_Occurred()) SWIG_fail;
14314 }
14315 resultobj = PyInt_FromLong((long)result);
14316 return resultobj;
14317 fail:
14318 return NULL;
14319 }
14320
14321
14322 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14323 PyObject *obj;
14324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14325 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14326 Py_INCREF(obj);
14327 return Py_BuildValue((char *)"");
14328 }
14329 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14330 PyObject *resultobj;
14331 wxColourDatabase *result;
14332 char *kwnames[] = {
14333 NULL
14334 };
14335
14336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = (wxColourDatabase *)new wxColourDatabase();
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14345 return resultobj;
14346 fail:
14347 return NULL;
14348 }
14349
14350
14351 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14352 PyObject *resultobj;
14353 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14354 PyObject * obj0 = 0 ;
14355 char *kwnames[] = {
14356 (char *) "self", NULL
14357 };
14358
14359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 delete arg1;
14364
14365 wxPyEndAllowThreads(__tstate);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 }
14368 Py_INCREF(Py_None); resultobj = Py_None;
14369 return resultobj;
14370 fail:
14371 return NULL;
14372 }
14373
14374
14375 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj;
14377 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14378 wxString *arg2 = 0 ;
14379 wxColour result;
14380 bool temp2 = False ;
14381 PyObject * obj0 = 0 ;
14382 PyObject * obj1 = 0 ;
14383 char *kwnames[] = {
14384 (char *) "self",(char *) "name", NULL
14385 };
14386
14387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14389 {
14390 arg2 = wxString_in_helper(obj1);
14391 if (arg2 == NULL) SWIG_fail;
14392 temp2 = True;
14393 }
14394 {
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14397
14398 wxPyEndAllowThreads(__tstate);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 }
14401 {
14402 wxColour * resultptr;
14403 resultptr = new wxColour((wxColour &) result);
14404 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14405 }
14406 {
14407 if (temp2)
14408 delete arg2;
14409 }
14410 return resultobj;
14411 fail:
14412 {
14413 if (temp2)
14414 delete arg2;
14415 }
14416 return NULL;
14417 }
14418
14419
14420 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj;
14422 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14423 wxColour *arg2 = 0 ;
14424 wxString result;
14425 wxColour temp2 ;
14426 PyObject * obj0 = 0 ;
14427 PyObject * obj1 = 0 ;
14428 char *kwnames[] = {
14429 (char *) "self",(char *) "colour", NULL
14430 };
14431
14432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14434 {
14435 arg2 = &temp2;
14436 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14437 }
14438 {
14439 PyThreadState* __tstate = wxPyBeginAllowThreads();
14440 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14441
14442 wxPyEndAllowThreads(__tstate);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 }
14445 {
14446 #if wxUSE_UNICODE
14447 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14448 #else
14449 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14450 #endif
14451 }
14452 return resultobj;
14453 fail:
14454 return NULL;
14455 }
14456
14457
14458 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14459 PyObject *resultobj;
14460 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14461 wxString *arg2 = 0 ;
14462 wxColour *arg3 = 0 ;
14463 bool temp2 = False ;
14464 wxColour temp3 ;
14465 PyObject * obj0 = 0 ;
14466 PyObject * obj1 = 0 ;
14467 PyObject * obj2 = 0 ;
14468 char *kwnames[] = {
14469 (char *) "self",(char *) "name",(char *) "colour", NULL
14470 };
14471
14472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14474 {
14475 arg2 = wxString_in_helper(obj1);
14476 if (arg2 == NULL) SWIG_fail;
14477 temp2 = True;
14478 }
14479 {
14480 arg3 = &temp3;
14481 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14482 }
14483 {
14484 PyThreadState* __tstate = wxPyBeginAllowThreads();
14485 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14486
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 Py_INCREF(Py_None); resultobj = Py_None;
14491 {
14492 if (temp2)
14493 delete arg2;
14494 }
14495 return resultobj;
14496 fail:
14497 {
14498 if (temp2)
14499 delete arg2;
14500 }
14501 return NULL;
14502 }
14503
14504
14505 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14506 PyObject *resultobj;
14507 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14508 wxString *arg2 = 0 ;
14509 int arg3 ;
14510 int arg4 ;
14511 int arg5 ;
14512 bool temp2 = False ;
14513 PyObject * obj0 = 0 ;
14514 PyObject * obj1 = 0 ;
14515 char *kwnames[] = {
14516 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14517 };
14518
14519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14521 {
14522 arg2 = wxString_in_helper(obj1);
14523 if (arg2 == NULL) SWIG_fail;
14524 temp2 = True;
14525 }
14526 {
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14529
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 Py_INCREF(Py_None); resultobj = Py_None;
14534 {
14535 if (temp2)
14536 delete arg2;
14537 }
14538 return resultobj;
14539 fail:
14540 {
14541 if (temp2)
14542 delete arg2;
14543 }
14544 return NULL;
14545 }
14546
14547
14548 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14549 PyObject *obj;
14550 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14551 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14552 Py_INCREF(obj);
14553 return Py_BuildValue((char *)"");
14554 }
14555 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj;
14557 wxFontList *arg1 = (wxFontList *) 0 ;
14558 wxFont *arg2 = (wxFont *) 0 ;
14559 PyObject * obj0 = 0 ;
14560 PyObject * obj1 = 0 ;
14561 char *kwnames[] = {
14562 (char *) "self",(char *) "font", NULL
14563 };
14564
14565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14567 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14568 {
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 (arg1)->AddFont(arg2);
14571
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 Py_INCREF(Py_None); resultobj = Py_None;
14576 return resultobj;
14577 fail:
14578 return NULL;
14579 }
14580
14581
14582 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14583 PyObject *resultobj;
14584 wxFontList *arg1 = (wxFontList *) 0 ;
14585 int arg2 ;
14586 int arg3 ;
14587 int arg4 ;
14588 int arg5 ;
14589 bool arg6 = (bool) False ;
14590 wxString const &arg7_defvalue = wxPyEmptyString ;
14591 wxString *arg7 = (wxString *) &arg7_defvalue ;
14592 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14593 wxFont *result;
14594 bool temp7 = False ;
14595 PyObject * obj0 = 0 ;
14596 PyObject * obj5 = 0 ;
14597 PyObject * obj6 = 0 ;
14598 char *kwnames[] = {
14599 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14600 };
14601
14602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14604 if (obj5) {
14605 arg6 = PyInt_AsLong(obj5) ? true : false;
14606 if (PyErr_Occurred()) SWIG_fail;
14607 }
14608 if (obj6) {
14609 {
14610 arg7 = wxString_in_helper(obj6);
14611 if (arg7 == NULL) SWIG_fail;
14612 temp7 = True;
14613 }
14614 }
14615 {
14616 PyThreadState* __tstate = wxPyBeginAllowThreads();
14617 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14618
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14623 {
14624 if (temp7)
14625 delete arg7;
14626 }
14627 return resultobj;
14628 fail:
14629 {
14630 if (temp7)
14631 delete arg7;
14632 }
14633 return NULL;
14634 }
14635
14636
14637 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj;
14639 wxFontList *arg1 = (wxFontList *) 0 ;
14640 wxFont *arg2 = (wxFont *) 0 ;
14641 PyObject * obj0 = 0 ;
14642 PyObject * obj1 = 0 ;
14643 char *kwnames[] = {
14644 (char *) "self",(char *) "font", NULL
14645 };
14646
14647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14649 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 (arg1)->RemoveFont(arg2);
14653
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 Py_INCREF(Py_None); resultobj = Py_None;
14658 return resultobj;
14659 fail:
14660 return NULL;
14661 }
14662
14663
14664 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj;
14666 wxFontList *arg1 = (wxFontList *) 0 ;
14667 int result;
14668 PyObject * obj0 = 0 ;
14669 char *kwnames[] = {
14670 (char *) "self", NULL
14671 };
14672
14673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14675 {
14676 PyThreadState* __tstate = wxPyBeginAllowThreads();
14677 result = (int)(arg1)->GetCount();
14678
14679 wxPyEndAllowThreads(__tstate);
14680 if (PyErr_Occurred()) SWIG_fail;
14681 }
14682 resultobj = PyInt_FromLong((long)result);
14683 return resultobj;
14684 fail:
14685 return NULL;
14686 }
14687
14688
14689 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14690 PyObject *obj;
14691 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14692 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14693 Py_INCREF(obj);
14694 return Py_BuildValue((char *)"");
14695 }
14696 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14697 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14698 return 1;
14699 }
14700
14701
14702 static PyObject *_wrap_NORMAL_FONT_get() {
14703 PyObject *pyobj;
14704
14705 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
14706 return pyobj;
14707 }
14708
14709
14710 static int _wrap_SMALL_FONT_set(PyObject *_val) {
14711 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
14712 return 1;
14713 }
14714
14715
14716 static PyObject *_wrap_SMALL_FONT_get() {
14717 PyObject *pyobj;
14718
14719 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
14720 return pyobj;
14721 }
14722
14723
14724 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
14725 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
14726 return 1;
14727 }
14728
14729
14730 static PyObject *_wrap_ITALIC_FONT_get() {
14731 PyObject *pyobj;
14732
14733 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
14734 return pyobj;
14735 }
14736
14737
14738 static int _wrap_SWISS_FONT_set(PyObject *_val) {
14739 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
14740 return 1;
14741 }
14742
14743
14744 static PyObject *_wrap_SWISS_FONT_get() {
14745 PyObject *pyobj;
14746
14747 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
14748 return pyobj;
14749 }
14750
14751
14752 static int _wrap_RED_PEN_set(PyObject *_val) {
14753 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
14754 return 1;
14755 }
14756
14757
14758 static PyObject *_wrap_RED_PEN_get() {
14759 PyObject *pyobj;
14760
14761 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
14762 return pyobj;
14763 }
14764
14765
14766 static int _wrap_CYAN_PEN_set(PyObject *_val) {
14767 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
14768 return 1;
14769 }
14770
14771
14772 static PyObject *_wrap_CYAN_PEN_get() {
14773 PyObject *pyobj;
14774
14775 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
14776 return pyobj;
14777 }
14778
14779
14780 static int _wrap_GREEN_PEN_set(PyObject *_val) {
14781 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
14782 return 1;
14783 }
14784
14785
14786 static PyObject *_wrap_GREEN_PEN_get() {
14787 PyObject *pyobj;
14788
14789 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
14790 return pyobj;
14791 }
14792
14793
14794 static int _wrap_BLACK_PEN_set(PyObject *_val) {
14795 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
14796 return 1;
14797 }
14798
14799
14800 static PyObject *_wrap_BLACK_PEN_get() {
14801 PyObject *pyobj;
14802
14803 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
14804 return pyobj;
14805 }
14806
14807
14808 static int _wrap_WHITE_PEN_set(PyObject *_val) {
14809 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
14810 return 1;
14811 }
14812
14813
14814 static PyObject *_wrap_WHITE_PEN_get() {
14815 PyObject *pyobj;
14816
14817 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
14818 return pyobj;
14819 }
14820
14821
14822 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
14823 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
14824 return 1;
14825 }
14826
14827
14828 static PyObject *_wrap_TRANSPARENT_PEN_get() {
14829 PyObject *pyobj;
14830
14831 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
14832 return pyobj;
14833 }
14834
14835
14836 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
14837 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
14838 return 1;
14839 }
14840
14841
14842 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
14843 PyObject *pyobj;
14844
14845 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
14846 return pyobj;
14847 }
14848
14849
14850 static int _wrap_GREY_PEN_set(PyObject *_val) {
14851 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
14852 return 1;
14853 }
14854
14855
14856 static PyObject *_wrap_GREY_PEN_get() {
14857 PyObject *pyobj;
14858
14859 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
14860 return pyobj;
14861 }
14862
14863
14864 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
14865 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
14866 return 1;
14867 }
14868
14869
14870 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
14871 PyObject *pyobj;
14872
14873 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14874 return pyobj;
14875 }
14876
14877
14878 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
14879 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
14880 return 1;
14881 }
14882
14883
14884 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
14885 PyObject *pyobj;
14886
14887 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14888 return pyobj;
14889 }
14890
14891
14892 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
14893 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
14894 return 1;
14895 }
14896
14897
14898 static PyObject *_wrap_BLUE_BRUSH_get() {
14899 PyObject *pyobj;
14900
14901 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14902 return pyobj;
14903 }
14904
14905
14906 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
14907 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
14908 return 1;
14909 }
14910
14911
14912 static PyObject *_wrap_GREEN_BRUSH_get() {
14913 PyObject *pyobj;
14914
14915 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14916 return pyobj;
14917 }
14918
14919
14920 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
14921 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
14922 return 1;
14923 }
14924
14925
14926 static PyObject *_wrap_WHITE_BRUSH_get() {
14927 PyObject *pyobj;
14928
14929 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14930 return pyobj;
14931 }
14932
14933
14934 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
14935 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
14936 return 1;
14937 }
14938
14939
14940 static PyObject *_wrap_BLACK_BRUSH_get() {
14941 PyObject *pyobj;
14942
14943 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
14944 return pyobj;
14945 }
14946
14947
14948 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
14949 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
14950 return 1;
14951 }
14952
14953
14954 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
14955 PyObject *pyobj;
14956
14957 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
14958 return pyobj;
14959 }
14960
14961
14962 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
14963 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
14964 return 1;
14965 }
14966
14967
14968 static PyObject *_wrap_CYAN_BRUSH_get() {
14969 PyObject *pyobj;
14970
14971 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14972 return pyobj;
14973 }
14974
14975
14976 static int _wrap_RED_BRUSH_set(PyObject *_val) {
14977 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
14978 return 1;
14979 }
14980
14981
14982 static PyObject *_wrap_RED_BRUSH_get() {
14983 PyObject *pyobj;
14984
14985 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
14986 return pyobj;
14987 }
14988
14989
14990 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
14991 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
14992 return 1;
14993 }
14994
14995
14996 static PyObject *_wrap_GREY_BRUSH_get() {
14997 PyObject *pyobj;
14998
14999 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15000 return pyobj;
15001 }
15002
15003
15004 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15005 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15006 return 1;
15007 }
15008
15009
15010 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15011 PyObject *pyobj;
15012
15013 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15014 return pyobj;
15015 }
15016
15017
15018 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15019 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15020 return 1;
15021 }
15022
15023
15024 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15025 PyObject *pyobj;
15026
15027 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15028 return pyobj;
15029 }
15030
15031
15032 static int _wrap_BLACK_set(PyObject *_val) {
15033 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15034 return 1;
15035 }
15036
15037
15038 static PyObject *_wrap_BLACK_get() {
15039 PyObject *pyobj;
15040
15041 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15042 return pyobj;
15043 }
15044
15045
15046 static int _wrap_WHITE_set(PyObject *_val) {
15047 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15048 return 1;
15049 }
15050
15051
15052 static PyObject *_wrap_WHITE_get() {
15053 PyObject *pyobj;
15054
15055 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15056 return pyobj;
15057 }
15058
15059
15060 static int _wrap_RED_set(PyObject *_val) {
15061 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15062 return 1;
15063 }
15064
15065
15066 static PyObject *_wrap_RED_get() {
15067 PyObject *pyobj;
15068
15069 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15070 return pyobj;
15071 }
15072
15073
15074 static int _wrap_BLUE_set(PyObject *_val) {
15075 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15076 return 1;
15077 }
15078
15079
15080 static PyObject *_wrap_BLUE_get() {
15081 PyObject *pyobj;
15082
15083 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15084 return pyobj;
15085 }
15086
15087
15088 static int _wrap_GREEN_set(PyObject *_val) {
15089 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15090 return 1;
15091 }
15092
15093
15094 static PyObject *_wrap_GREEN_get() {
15095 PyObject *pyobj;
15096
15097 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15098 return pyobj;
15099 }
15100
15101
15102 static int _wrap_CYAN_set(PyObject *_val) {
15103 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15104 return 1;
15105 }
15106
15107
15108 static PyObject *_wrap_CYAN_get() {
15109 PyObject *pyobj;
15110
15111 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15112 return pyobj;
15113 }
15114
15115
15116 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15117 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15118 return 1;
15119 }
15120
15121
15122 static PyObject *_wrap_LIGHT_GREY_get() {
15123 PyObject *pyobj;
15124
15125 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15126 return pyobj;
15127 }
15128
15129
15130 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15131 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15132 return 1;
15133 }
15134
15135
15136 static PyObject *_wrap_STANDARD_CURSOR_get() {
15137 PyObject *pyobj;
15138
15139 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15140 return pyobj;
15141 }
15142
15143
15144 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15145 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15146 return 1;
15147 }
15148
15149
15150 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15151 PyObject *pyobj;
15152
15153 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15154 return pyobj;
15155 }
15156
15157
15158 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15159 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15160 return 1;
15161 }
15162
15163
15164 static PyObject *_wrap_CROSS_CURSOR_get() {
15165 PyObject *pyobj;
15166
15167 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15168 return pyobj;
15169 }
15170
15171
15172 static int _wrap_NullBitmap_set(PyObject *_val) {
15173 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15174 return 1;
15175 }
15176
15177
15178 static PyObject *_wrap_NullBitmap_get() {
15179 PyObject *pyobj;
15180
15181 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15182 return pyobj;
15183 }
15184
15185
15186 static int _wrap_NullIcon_set(PyObject *_val) {
15187 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15188 return 1;
15189 }
15190
15191
15192 static PyObject *_wrap_NullIcon_get() {
15193 PyObject *pyobj;
15194
15195 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15196 return pyobj;
15197 }
15198
15199
15200 static int _wrap_NullCursor_set(PyObject *_val) {
15201 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15202 return 1;
15203 }
15204
15205
15206 static PyObject *_wrap_NullCursor_get() {
15207 PyObject *pyobj;
15208
15209 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15210 return pyobj;
15211 }
15212
15213
15214 static int _wrap_NullPen_set(PyObject *_val) {
15215 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15216 return 1;
15217 }
15218
15219
15220 static PyObject *_wrap_NullPen_get() {
15221 PyObject *pyobj;
15222
15223 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15224 return pyobj;
15225 }
15226
15227
15228 static int _wrap_NullBrush_set(PyObject *_val) {
15229 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15230 return 1;
15231 }
15232
15233
15234 static PyObject *_wrap_NullBrush_get() {
15235 PyObject *pyobj;
15236
15237 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15238 return pyobj;
15239 }
15240
15241
15242 static int _wrap_NullPalette_set(PyObject *_val) {
15243 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15244 return 1;
15245 }
15246
15247
15248 static PyObject *_wrap_NullPalette_get() {
15249 PyObject *pyobj;
15250
15251 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15252 return pyobj;
15253 }
15254
15255
15256 static int _wrap_NullFont_set(PyObject *_val) {
15257 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15258 return 1;
15259 }
15260
15261
15262 static PyObject *_wrap_NullFont_get() {
15263 PyObject *pyobj;
15264
15265 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15266 return pyobj;
15267 }
15268
15269
15270 static int _wrap_NullColour_set(PyObject *_val) {
15271 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15272 return 1;
15273 }
15274
15275
15276 static PyObject *_wrap_NullColour_get() {
15277 PyObject *pyobj;
15278
15279 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15280 return pyobj;
15281 }
15282
15283
15284 static int _wrap_TheFontList_set(PyObject *_val) {
15285 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15286 return 1;
15287 }
15288
15289
15290 static PyObject *_wrap_TheFontList_get() {
15291 PyObject *pyobj;
15292
15293 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15294 return pyobj;
15295 }
15296
15297
15298 static int _wrap_ThePenList_set(PyObject *_val) {
15299 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15300 return 1;
15301 }
15302
15303
15304 static PyObject *_wrap_ThePenList_get() {
15305 PyObject *pyobj;
15306
15307 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15308 return pyobj;
15309 }
15310
15311
15312 static int _wrap_TheBrushList_set(PyObject *_val) {
15313 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15314 return 1;
15315 }
15316
15317
15318 static PyObject *_wrap_TheBrushList_get() {
15319 PyObject *pyobj;
15320
15321 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15322 return pyobj;
15323 }
15324
15325
15326 static int _wrap_TheColourDatabase_set(PyObject *_val) {
15327 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15328 return 1;
15329 }
15330
15331
15332 static PyObject *_wrap_TheColourDatabase_get() {
15333 PyObject *pyobj;
15334
15335 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15336 return pyobj;
15337 }
15338
15339
15340 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
15341 PyObject *resultobj;
15342 wxEffects *result;
15343 char *kwnames[] = {
15344 NULL
15345 };
15346
15347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
15348 {
15349 PyThreadState* __tstate = wxPyBeginAllowThreads();
15350 result = (wxEffects *)new wxEffects();
15351
15352 wxPyEndAllowThreads(__tstate);
15353 if (PyErr_Occurred()) SWIG_fail;
15354 }
15355 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
15356 return resultobj;
15357 fail:
15358 return NULL;
15359 }
15360
15361
15362 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15363 PyObject *resultobj;
15364 wxEffects *arg1 = (wxEffects *) 0 ;
15365 wxColour result;
15366 PyObject * obj0 = 0 ;
15367 char *kwnames[] = {
15368 (char *) "self", NULL
15369 };
15370
15371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15373 {
15374 PyThreadState* __tstate = wxPyBeginAllowThreads();
15375 result = ((wxEffects const *)arg1)->GetHighlightColour();
15376
15377 wxPyEndAllowThreads(__tstate);
15378 if (PyErr_Occurred()) SWIG_fail;
15379 }
15380 {
15381 wxColour * resultptr;
15382 resultptr = new wxColour((wxColour &) result);
15383 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15384 }
15385 return resultobj;
15386 fail:
15387 return NULL;
15388 }
15389
15390
15391 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15392 PyObject *resultobj;
15393 wxEffects *arg1 = (wxEffects *) 0 ;
15394 wxColour result;
15395 PyObject * obj0 = 0 ;
15396 char *kwnames[] = {
15397 (char *) "self", NULL
15398 };
15399
15400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15402 {
15403 PyThreadState* __tstate = wxPyBeginAllowThreads();
15404 result = ((wxEffects const *)arg1)->GetLightShadow();
15405
15406 wxPyEndAllowThreads(__tstate);
15407 if (PyErr_Occurred()) SWIG_fail;
15408 }
15409 {
15410 wxColour * resultptr;
15411 resultptr = new wxColour((wxColour &) result);
15412 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15413 }
15414 return resultobj;
15415 fail:
15416 return NULL;
15417 }
15418
15419
15420 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15421 PyObject *resultobj;
15422 wxEffects *arg1 = (wxEffects *) 0 ;
15423 wxColour result;
15424 PyObject * obj0 = 0 ;
15425 char *kwnames[] = {
15426 (char *) "self", NULL
15427 };
15428
15429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 result = ((wxEffects const *)arg1)->GetFaceColour();
15434
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 {
15439 wxColour * resultptr;
15440 resultptr = new wxColour((wxColour &) result);
15441 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15442 }
15443 return resultobj;
15444 fail:
15445 return NULL;
15446 }
15447
15448
15449 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj;
15451 wxEffects *arg1 = (wxEffects *) 0 ;
15452 wxColour result;
15453 PyObject * obj0 = 0 ;
15454 char *kwnames[] = {
15455 (char *) "self", NULL
15456 };
15457
15458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15460 {
15461 PyThreadState* __tstate = wxPyBeginAllowThreads();
15462 result = ((wxEffects const *)arg1)->GetMediumShadow();
15463
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 {
15468 wxColour * resultptr;
15469 resultptr = new wxColour((wxColour &) result);
15470 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15471 }
15472 return resultobj;
15473 fail:
15474 return NULL;
15475 }
15476
15477
15478 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15479 PyObject *resultobj;
15480 wxEffects *arg1 = (wxEffects *) 0 ;
15481 wxColour result;
15482 PyObject * obj0 = 0 ;
15483 char *kwnames[] = {
15484 (char *) "self", NULL
15485 };
15486
15487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 result = ((wxEffects const *)arg1)->GetDarkShadow();
15492
15493 wxPyEndAllowThreads(__tstate);
15494 if (PyErr_Occurred()) SWIG_fail;
15495 }
15496 {
15497 wxColour * resultptr;
15498 resultptr = new wxColour((wxColour &) result);
15499 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15500 }
15501 return resultobj;
15502 fail:
15503 return NULL;
15504 }
15505
15506
15507 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15508 PyObject *resultobj;
15509 wxEffects *arg1 = (wxEffects *) 0 ;
15510 wxColour *arg2 = 0 ;
15511 wxColour temp2 ;
15512 PyObject * obj0 = 0 ;
15513 PyObject * obj1 = 0 ;
15514 char *kwnames[] = {
15515 (char *) "self",(char *) "c", NULL
15516 };
15517
15518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15520 {
15521 arg2 = &temp2;
15522 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15523 }
15524 {
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15527
15528 wxPyEndAllowThreads(__tstate);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 Py_INCREF(Py_None); resultobj = Py_None;
15532 return resultobj;
15533 fail:
15534 return NULL;
15535 }
15536
15537
15538 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15539 PyObject *resultobj;
15540 wxEffects *arg1 = (wxEffects *) 0 ;
15541 wxColour *arg2 = 0 ;
15542 wxColour temp2 ;
15543 PyObject * obj0 = 0 ;
15544 PyObject * obj1 = 0 ;
15545 char *kwnames[] = {
15546 (char *) "self",(char *) "c", NULL
15547 };
15548
15549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15551 {
15552 arg2 = &temp2;
15553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15554 }
15555 {
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 (arg1)->SetLightShadow((wxColour const &)*arg2);
15558
15559 wxPyEndAllowThreads(__tstate);
15560 if (PyErr_Occurred()) SWIG_fail;
15561 }
15562 Py_INCREF(Py_None); resultobj = Py_None;
15563 return resultobj;
15564 fail:
15565 return NULL;
15566 }
15567
15568
15569 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15570 PyObject *resultobj;
15571 wxEffects *arg1 = (wxEffects *) 0 ;
15572 wxColour *arg2 = 0 ;
15573 wxColour temp2 ;
15574 PyObject * obj0 = 0 ;
15575 PyObject * obj1 = 0 ;
15576 char *kwnames[] = {
15577 (char *) "self",(char *) "c", NULL
15578 };
15579
15580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15582 {
15583 arg2 = &temp2;
15584 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15585 }
15586 {
15587 PyThreadState* __tstate = wxPyBeginAllowThreads();
15588 (arg1)->SetFaceColour((wxColour const &)*arg2);
15589
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 Py_INCREF(Py_None); resultobj = Py_None;
15594 return resultobj;
15595 fail:
15596 return NULL;
15597 }
15598
15599
15600 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj;
15602 wxEffects *arg1 = (wxEffects *) 0 ;
15603 wxColour *arg2 = 0 ;
15604 wxColour temp2 ;
15605 PyObject * obj0 = 0 ;
15606 PyObject * obj1 = 0 ;
15607 char *kwnames[] = {
15608 (char *) "self",(char *) "c", NULL
15609 };
15610
15611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15613 {
15614 arg2 = &temp2;
15615 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15616 }
15617 {
15618 PyThreadState* __tstate = wxPyBeginAllowThreads();
15619 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15620
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 Py_INCREF(Py_None); resultobj = Py_None;
15625 return resultobj;
15626 fail:
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 wxEffects *arg1 = (wxEffects *) 0 ;
15634 wxColour *arg2 = 0 ;
15635 wxColour temp2 ;
15636 PyObject * obj0 = 0 ;
15637 PyObject * obj1 = 0 ;
15638 char *kwnames[] = {
15639 (char *) "self",(char *) "c", NULL
15640 };
15641
15642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15644 {
15645 arg2 = &temp2;
15646 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15647 }
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
15650 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15651
15652 wxPyEndAllowThreads(__tstate);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
15655 Py_INCREF(Py_None); resultobj = Py_None;
15656 return resultobj;
15657 fail:
15658 return NULL;
15659 }
15660
15661
15662 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15663 PyObject *resultobj;
15664 wxEffects *arg1 = (wxEffects *) 0 ;
15665 wxColour *arg2 = 0 ;
15666 wxColour *arg3 = 0 ;
15667 wxColour *arg4 = 0 ;
15668 wxColour *arg5 = 0 ;
15669 wxColour *arg6 = 0 ;
15670 wxColour temp2 ;
15671 wxColour temp3 ;
15672 wxColour temp4 ;
15673 wxColour temp5 ;
15674 wxColour temp6 ;
15675 PyObject * obj0 = 0 ;
15676 PyObject * obj1 = 0 ;
15677 PyObject * obj2 = 0 ;
15678 PyObject * obj3 = 0 ;
15679 PyObject * obj4 = 0 ;
15680 PyObject * obj5 = 0 ;
15681 char *kwnames[] = {
15682 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
15683 };
15684
15685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15687 {
15688 arg2 = &temp2;
15689 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15690 }
15691 {
15692 arg3 = &temp3;
15693 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15694 }
15695 {
15696 arg4 = &temp4;
15697 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15698 }
15699 {
15700 arg5 = &temp5;
15701 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
15702 }
15703 {
15704 arg6 = &temp6;
15705 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
15706 }
15707 {
15708 PyThreadState* __tstate = wxPyBeginAllowThreads();
15709 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
15710
15711 wxPyEndAllowThreads(__tstate);
15712 if (PyErr_Occurred()) SWIG_fail;
15713 }
15714 Py_INCREF(Py_None); resultobj = Py_None;
15715 return resultobj;
15716 fail:
15717 return NULL;
15718 }
15719
15720
15721 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
15722 PyObject *resultobj;
15723 wxEffects *arg1 = (wxEffects *) 0 ;
15724 wxDC *arg2 = 0 ;
15725 wxRect *arg3 = 0 ;
15726 int arg4 = (int) 1 ;
15727 wxRect temp3 ;
15728 PyObject * obj0 = 0 ;
15729 PyObject * obj1 = 0 ;
15730 PyObject * obj2 = 0 ;
15731 char *kwnames[] = {
15732 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
15733 };
15734
15735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
15736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15737 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15738 if (arg2 == NULL) {
15739 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15740 }
15741 {
15742 arg3 = &temp3;
15743 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15744 }
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 Py_INCREF(Py_None); resultobj = Py_None;
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj;
15761 wxEffects *arg1 = (wxEffects *) 0 ;
15762 wxRect *arg2 = 0 ;
15763 wxDC *arg3 = 0 ;
15764 wxBitmap *arg4 = 0 ;
15765 bool result;
15766 wxRect temp2 ;
15767 PyObject * obj0 = 0 ;
15768 PyObject * obj1 = 0 ;
15769 PyObject * obj2 = 0 ;
15770 PyObject * obj3 = 0 ;
15771 char *kwnames[] = {
15772 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
15773 };
15774
15775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15777 {
15778 arg2 = &temp2;
15779 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15780 }
15781 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15782 if (arg3 == NULL) {
15783 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15784 }
15785 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15786 if (arg4 == NULL) {
15787 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15788 }
15789 {
15790 PyThreadState* __tstate = wxPyBeginAllowThreads();
15791 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
15792
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 resultobj = PyInt_FromLong((long)result);
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
15804 PyObject *obj;
15805 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15806 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
15807 Py_INCREF(obj);
15808 return Py_BuildValue((char *)"");
15809 }
15810 static PyMethodDef SwigMethods[] = {
15811 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
15812 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
15813 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
15814 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
15815 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
15816 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
15817 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
15818 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
15819 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
15820 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
15821 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
15822 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
15823 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
15824 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
15825 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
15826 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
15827 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
15828 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
15829 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
15830 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
15831 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
15832 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
15833 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
15834 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
15835 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
15836 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
15837 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
15838 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
15839 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
15840 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
15841 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
15842 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
15843 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
15844 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
15845 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
15846 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
15847 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
15848 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
15849 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
15850 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
15851 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15852 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
15853 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
15854 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
15855 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
15856 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15857 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
15858 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
15859 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
15860 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
15861 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
15862 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
15863 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
15864 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
15865 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
15866 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
15867 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS },
15868 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS },
15869 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
15870 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
15871 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
15872 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
15873 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
15874 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
15875 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
15876 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
15877 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
15878 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
15879 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
15880 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
15881 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
15882 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
15883 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
15884 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
15885 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
15886 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
15887 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
15888 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
15889 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
15890 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
15891 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
15892 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
15893 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
15894 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
15895 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
15896 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
15897 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
15898 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
15899 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
15900 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
15901 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
15902 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
15903 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
15904 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
15905 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
15906 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
15907 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
15908 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
15909 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
15910 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
15911 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
15912 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
15913 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
15914 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
15915 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
15916 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
15917 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
15918 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
15919 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
15920 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
15921 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
15922 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
15923 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
15924 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
15925 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
15926 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
15927 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
15928 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
15929 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
15930 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
15931 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
15932 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
15933 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
15934 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
15935 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
15936 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
15937 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
15938 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
15939 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
15940 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
15941 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
15942 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
15943 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
15944 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
15945 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
15946 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
15947 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
15948 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
15949 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
15950 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
15951 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
15952 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
15953 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
15954 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
15955 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
15956 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
15957 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
15958 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
15959 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
15960 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15961 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15962 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
15963 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
15964 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
15965 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
15966 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
15967 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
15968 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
15969 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
15970 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
15971 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
15972 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
15973 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
15974 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
15975 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
15976 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
15977 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
15978 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
15979 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
15980 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
15981 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
15982 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
15983 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
15984 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
15985 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
15986 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
15987 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
15988 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
15989 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
15990 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
15991 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
15992 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
15993 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
15994 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
15995 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
15996 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
15997 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
15998 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
15999 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16000 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16001 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16002 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16003 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16004 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16005 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16006 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16007 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16008 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16009 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16010 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16011 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16012 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16013 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16014 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16015 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16016 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16017 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16018 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16019 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16020 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16021 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16022 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16023 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16024 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16025 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16026 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16027 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16028 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16029 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16030 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16031 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16032 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16033 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16034 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16035 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16036 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16037 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16038 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16039 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16040 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16041 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16042 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16043 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16044 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16045 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16046 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16047 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16048 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16049 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16050 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16051 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16052 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16053 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16054 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16055 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16056 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16057 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16058 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16059 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16060 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16061 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16062 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16063 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16064 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16065 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16066 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16067 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16068 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16069 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16070 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16071 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16072 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16073 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16074 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16075 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16076 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16077 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16078 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16079 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16080 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16081 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16082 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16083 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16084 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16085 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16086 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16087 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16088 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16089 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16090 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16091 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16092 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16093 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16094 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16095 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16096 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16097 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16098 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16099 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16100 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16101 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16102 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16103 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16104 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16105 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16106 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16107 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16108 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16109 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16110 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16111 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16112 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16113 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16114 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16115 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16116 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16117 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16118 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16119 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16120 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16121 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16122 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16123 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16124 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16125 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16126 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16127 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16128 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16129 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16130 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16131 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16132 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16133 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16134 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16135 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16136 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16137 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16138 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16139 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16140 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16141 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16142 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16143 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16144 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16145 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16146 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16147 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16148 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16149 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16150 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16151 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16152 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16153 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16154 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16155 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16156 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16157 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16160 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16161 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16162 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16163 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16164 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16165 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16166 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16172 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16178 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16179 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16184 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16189 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16192 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16193 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16194 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16195 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16196 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16197 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16198 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16201 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16203 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16205 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16207 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16211 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16213 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
16215 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16216 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16217 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16218 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16220 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16221 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16222 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16223 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16224 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16226 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16228 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16229 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16230 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16231 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16232 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16233 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16234 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16235 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16236 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16237 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16238 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16239 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16241 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16242 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16243 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16244 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16245 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16246 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16247 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16248 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16249 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16250 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16251 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16252 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16253 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16254 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16255 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16256 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16257 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16258 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16260 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16261 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16262 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16263 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16264 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16265 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16266 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16267 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16268 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16270 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16271 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16272 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16273 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16275 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16277 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16279 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16280 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16281 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16282 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16284 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16285 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16286 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16287 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16288 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16289 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16290 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16292 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16293 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16294 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16295 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16297 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16298 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16299 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16300 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16301 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16302 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16303 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
16304 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16305 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16306 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16307 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16308 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16309 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16310 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16311 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16312 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16313 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16314 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16315 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16316 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16317 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16318 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16319 { NULL, NULL }
16320 };
16321
16322
16323 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16324
16325 static void *_p_wxControlTo_p_wxWindow(void *x) {
16326 return (void *)((wxWindow *) ((wxControl *) x));
16327 }
16328 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16329 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16330 }
16331 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16332 return (void *)((wxWindow *) ((wxMenuBar *) x));
16333 }
16334 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16335 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16336 }
16337 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16338 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16339 }
16340 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16341 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16342 }
16343 static void *_p_wxPenTo_p_wxObject(void *x) {
16344 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16345 }
16346 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16347 return (void *)((wxObject *) ((wxRegionIterator *) x));
16348 }
16349 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16350 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16351 }
16352 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16353 return (void *)((wxObject *) ((wxSizerItem *) x));
16354 }
16355 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16356 return (void *)((wxObject *) ((wxColourDatabase *) x));
16357 }
16358 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16359 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16360 }
16361 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16362 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16363 }
16364 static void *_p_wxIconTo_p_wxObject(void *x) {
16365 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16366 }
16367 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16368 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16369 }
16370 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16371 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16372 }
16373 static void *_p_wxSizerTo_p_wxObject(void *x) {
16374 return (void *)((wxObject *) ((wxSizer *) x));
16375 }
16376 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16377 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16378 }
16379 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16380 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16381 }
16382 static void *_p_wxPenListTo_p_wxObject(void *x) {
16383 return (void *)((wxObject *) ((wxPenList *) x));
16384 }
16385 static void *_p_wxEventTo_p_wxObject(void *x) {
16386 return (void *)((wxObject *) ((wxEvent *) x));
16387 }
16388 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16389 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16390 }
16391 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16392 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16393 }
16394 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16395 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16396 }
16397 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16398 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16399 }
16400 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16401 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16402 }
16403 static void *_p_wxDCTo_p_wxObject(void *x) {
16404 return (void *)((wxObject *) ((wxDC *) x));
16405 }
16406 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16407 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16408 }
16409 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16410 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16411 }
16412 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16413 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16414 }
16415 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16416 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16417 }
16418 static void *_p_wxControlTo_p_wxObject(void *x) {
16419 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16420 }
16421 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16422 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16423 }
16424 static void *_p_wxClientDCTo_p_wxObject(void *x) {
16425 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16426 }
16427 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16428 return (void *)((wxObject *) ((wxFSFile *) x));
16429 }
16430 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16431 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16432 }
16433 static void *_p_wxRegionTo_p_wxObject(void *x) {
16434 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16435 }
16436 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16437 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16438 }
16439 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16440 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16441 }
16442 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16443 return (void *)((wxObject *) ((wxGDIObject *) x));
16444 }
16445 static void *_p_wxEffectsTo_p_wxObject(void *x) {
16446 return (void *)((wxObject *) ((wxEffects *) x));
16447 }
16448 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16449 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16450 }
16451 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16452 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16453 }
16454 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16455 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16456 }
16457 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16458 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16459 }
16460 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16461 return (void *)((wxObject *) ((wxMenuItem *) x));
16462 }
16463 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16464 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16465 }
16466 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16467 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16468 }
16469 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16470 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16471 }
16472 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16473 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16474 }
16475 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16476 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16477 }
16478 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16479 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16480 }
16481 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16482 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16483 }
16484 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16485 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16486 }
16487 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16488 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16489 }
16490 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16491 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16492 }
16493 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16494 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16495 }
16496 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16497 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16498 }
16499 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16500 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16501 }
16502 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16503 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16504 }
16505 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16506 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16507 }
16508 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16509 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16510 }
16511 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16512 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16513 }
16514 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16515 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16516 }
16517 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16518 return (void *)((wxObject *) ((wxImageHandler *) x));
16519 }
16520 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16521 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16522 }
16523 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16524 return (void *)((wxObject *) ((wxEvtHandler *) x));
16525 }
16526 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16527 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16528 }
16529 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16530 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16531 }
16532 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16533 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16534 }
16535 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16536 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16537 }
16538 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16539 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16540 }
16541 static void *_p_wxImageTo_p_wxObject(void *x) {
16542 return (void *)((wxObject *) ((wxImage *) x));
16543 }
16544 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16545 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16546 }
16547 static void *_p_wxPaletteTo_p_wxObject(void *x) {
16548 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16549 }
16550 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16551 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16552 }
16553 static void *_p_wxImageListTo_p_wxObject(void *x) {
16554 return (void *)((wxObject *) ((wxImageList *) x));
16555 }
16556 static void *_p_wxCursorTo_p_wxObject(void *x) {
16557 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16558 }
16559 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16560 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16561 }
16562 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16563 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16564 }
16565 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16567 }
16568 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16569 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16570 }
16571 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16572 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16573 }
16574 static void *_p_wxWindowTo_p_wxObject(void *x) {
16575 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16576 }
16577 static void *_p_wxMenuTo_p_wxObject(void *x) {
16578 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16579 }
16580 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16581 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16582 }
16583 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16584 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16585 }
16586 static void *_p_wxBrushListTo_p_wxObject(void *x) {
16587 return (void *)((wxObject *) ((wxBrushList *) x));
16588 }
16589 static void *_p_wxPyPenTo_p_wxObject(void *x) {
16590 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16591 }
16592 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16593 return (void *)((wxObject *) ((wxFileSystem *) x));
16594 }
16595 static void *_p_wxBitmapTo_p_wxObject(void *x) {
16596 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16597 }
16598 static void *_p_wxMaskTo_p_wxObject(void *x) {
16599 return (void *)((wxObject *) ((wxMask *) x));
16600 }
16601 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16602 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16603 }
16604 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16605 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16606 }
16607 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16608 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16609 }
16610 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16611 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16612 }
16613 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16614 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16615 }
16616 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16617 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16618 }
16619 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16620 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16621 }
16622 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16623 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16624 }
16625 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16626 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16627 }
16628 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16629 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16630 }
16631 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16632 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16633 }
16634 static void *_p_wxFontTo_p_wxObject(void *x) {
16635 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16636 }
16637 static void *_p_wxBrushTo_p_wxObject(void *x) {
16638 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16639 }
16640 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16641 return (void *)((wxObject *) ((wxMetaFile *) x));
16642 }
16643 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16644 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16645 }
16646 static void *_p_wxColourTo_p_wxObject(void *x) {
16647 return (void *)((wxObject *) ((wxColour *) x));
16648 }
16649 static void *_p_wxFontListTo_p_wxObject(void *x) {
16650 return (void *)((wxObject *) ((wxFontList *) x));
16651 }
16652 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16653 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16654 }
16655 static void *_p_wxValidatorTo_p_wxObject(void *x) {
16656 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16657 }
16658 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16659 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
16660 }
16661 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16662 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
16663 }
16664 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16665 return (void *)((wxDC *) ((wxScreenDC *) x));
16666 }
16667 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16668 return (void *)((wxDC *) ((wxMirrorDC *) x));
16669 }
16670 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16671 return (void *)((wxDC *) ((wxMemoryDC *) x));
16672 }
16673 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16674 return (void *)((wxDC *) ((wxWindowDC *) x));
16675 }
16676 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16677 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16678 }
16679 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16680 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16681 }
16682 static void *_p_wxClientDCTo_p_wxDC(void *x) {
16683 return (void *)((wxDC *) ((wxClientDC *) x));
16684 }
16685 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16686 return (void *)((wxDC *) ((wxPaintDC *) x));
16687 }
16688 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16689 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16690 }
16691 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16692 return (void *)((wxDC *) ((wxPrinterDC *) x));
16693 }
16694 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16695 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16696 }
16697 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16698 return (void *)((wxGDIObject *) ((wxIcon *) x));
16699 }
16700 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16701 return (void *)((wxGDIObject *) ((wxPalette *) x));
16702 }
16703 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
16704 return (void *)((wxGDIObject *) ((wxPen *) x));
16705 }
16706 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
16707 return (void *)((wxGDIObject *) ((wxFont *) x));
16708 }
16709 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
16710 return (void *)((wxGDIObject *) ((wxCursor *) x));
16711 }
16712 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
16713 return (void *)((wxGDIObject *) ((wxBitmap *) x));
16714 }
16715 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
16716 return (void *)((wxGDIObject *) ((wxRegion *) x));
16717 }
16718 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
16719 return (void *)((wxGDIObject *) ((wxBrush *) x));
16720 }
16721 static void *_p_wxPyPenTo_p_wxPen(void *x) {
16722 return (void *)((wxPen *) ((wxPyPen *) x));
16723 }
16724 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
16725 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
16726 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
16727 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}};
16728 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
16729 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16730 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
16731 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
16732 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
16733 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
16734 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
16735 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
16736 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}};
16737 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
16738 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
16739 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}};
16740 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
16741 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
16742 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
16743 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
16744 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
16745 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}};
16746 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
16747 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
16748 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
16749 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
16750 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
16751 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
16752 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
16753 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
16754 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
16755 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
16756 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
16757 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
16758 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16759 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}};
16760 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
16761 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
16762 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
16763 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
16764 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
16765 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
16766 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
16767 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
16768 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
16769 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
16770 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
16771 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
16772 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
16773 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
16774 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
16775 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
16776 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
16777 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
16778 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
16779
16780 static swig_type_info *swig_types_initial[] = {
16781 _swigt__p_wxPostScriptDC,
16782 _swigt__p_wxBrush,
16783 _swigt__p_wxColour,
16784 _swigt__p_wxDC,
16785 _swigt__p_wxMirrorDC,
16786 _swigt__p_byte,
16787 _swigt__p_wxPyFontEnumerator,
16788 _swigt__p_wxIconLocation,
16789 _swigt__p_wxImage,
16790 _swigt__p_wxMetaFileDC,
16791 _swigt__p_wxMask,
16792 _swigt__p_wxFont,
16793 _swigt__p_wxWindow,
16794 _swigt__p_wxSize,
16795 _swigt__p_double,
16796 _swigt__p_wxMemoryDC,
16797 _swigt__p_wxFontMapper,
16798 _swigt__p_wxEffects,
16799 _swigt__p_wxNativeEncodingInfo,
16800 _swigt__p_wxPalette,
16801 _swigt__p_wxBitmap,
16802 _swigt__p_wxObject,
16803 _swigt__p_wxRegionIterator,
16804 _swigt__p_wxRect,
16805 _swigt__p_wxString,
16806 _swigt__p_wxPrinterDC,
16807 _swigt__p_wxIconBundle,
16808 _swigt__p_wxPoint,
16809 _swigt__p_wxDash,
16810 _swigt__p_wxScreenDC,
16811 _swigt__p_wxCursor,
16812 _swigt__p_wxClientDC,
16813 _swigt__p_wxBufferedDC,
16814 _swigt__p_wxImageList,
16815 _swigt__p_unsigned_char,
16816 _swigt__p_wxGDIObject,
16817 _swigt__p_wxLocale,
16818 _swigt__p_wxIcon,
16819 _swigt__p_wxRegion,
16820 _swigt__p_wxLanguageInfo,
16821 _swigt__p_wxConfigBase,
16822 _swigt__p_wxWindowDC,
16823 _swigt__p_wxPrintData,
16824 _swigt__p_wxBrushList,
16825 _swigt__p_wxFontList,
16826 _swigt__p_wxPen,
16827 _swigt__p_wxBufferedPaintDC,
16828 _swigt__p_wxPaintDC,
16829 _swigt__p_wxPenList,
16830 _swigt__p_wxPyPen,
16831 _swigt__p_int,
16832 _swigt__p_wxMetaFile,
16833 _swigt__p_wxNativeFontInfo,
16834 _swigt__p_wxEncodingConverter,
16835 _swigt__p_wxColourDatabase,
16836 0
16837 };
16838
16839
16840 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16841
16842 static swig_const_info swig_const_table[] = {
16843 { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
16844 { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
16845 { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
16846 { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
16847 { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
16848 { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
16849 { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
16850 { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
16851 { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
16852 { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
16853 { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
16854 { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
16855 { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
16856 { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
16857 { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
16858 { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
16859 { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
16860 { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
16861 { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
16862 { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
16863 { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
16864 { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
16865 { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
16866 { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
16867 { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
16868 { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
16869 { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
16870 { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
16871 { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
16872 { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
16873 { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
16874 { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
16875 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
16876 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
16877 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
16878 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
16879 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
16880 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
16881 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
16882 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
16883 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
16884 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
16885 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
16886 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
16887 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
16888 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
16889 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
16890 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
16891 { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
16892 { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
16893 { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
16894 { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
16895 { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
16896 { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
16897 { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
16898 { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
16899 { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
16900 { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
16901 { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
16902 { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
16903 { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
16904 { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
16905 { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
16906 { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
16907 { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
16908 { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
16909 { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
16910 { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
16911 { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
16912 { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
16913 { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
16914 { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
16915 { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
16916 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
16917 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
16918 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
16919 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
16920 { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
16921 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
16922 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
16923 { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
16924 { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
16925 { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
16926 { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
16927 { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
16928 { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
16929 { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
16930 { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
16931 { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
16932 { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
16933 { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
16934 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
16935 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
16936 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
16937 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
16938 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
16939 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
16940 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
16941 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
16942 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
16943 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
16944 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
16945 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
16946 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
16947 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
16948 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
16949 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
16950 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
16951 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
16952 { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
16953 { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
16954 { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
16955 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
16956 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
16957 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
16958 { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
16959 { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
16960 { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
16961 { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
16962 { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
16963 { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
16964 { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
16965 { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
16966 { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
16967 { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
16968 { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
16969 { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
16970 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
16971 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
16972 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
16973 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
16974 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
16975 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
16976 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
16977 { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
16978 { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
16979 { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
16980 { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
16981 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
16982 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
16983 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
16984 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
16985 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
16986 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
16987 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
16988 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
16989 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
16990 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
16991 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
16992 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
16993 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
16994 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
16995 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
16996 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
16997 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
16998 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
16999 { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17000 { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17001 { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17002 { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17003 { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17004 { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17005 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17006 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17007 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17008 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17009 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17010 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17011 { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17012 { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17013 { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17014 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17015 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17016 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17017 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17018 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17019 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17020 { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17021 { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17022 { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17023 { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17024 { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17025 { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17026 { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17027 { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17028 { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17029 { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17030 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17031 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17032 { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17033 { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17034 { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17035 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17036 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17037 { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17038 { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17039 { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17040 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17041 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17042 { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17043 { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17044 { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17045 { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17046 { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17047 { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17048 { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17049 { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17050 { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17051 { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17052 { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17053 { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17054 { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17055 { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17056 { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17057 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17058 { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17059 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17060 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17061 { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17062 { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17063 { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17064 { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17065 { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17066 { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17067 { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17068 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17069 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17070 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17071 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17072 { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17073 { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17074 { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17075 { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17076 { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17077 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17078 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17079 { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17080 { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17081 { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17082 { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17083 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17084 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17085 { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17086 { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17087 { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17088 { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17089 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17090 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17091 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17092 { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17093 { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17094 { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17095 { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17096 { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17097 { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17098 { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17099 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17100 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17101 { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17102 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17103 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17104 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17105 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17106 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17107 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17108 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17109 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17110 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17111 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17112 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17113 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17114 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17115 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17116 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17117 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17118 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17119 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17120 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17121 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17122 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17123 { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17124 { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17125 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17126 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17127 { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17128 { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17129 { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17130 { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17131 { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17132 { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17133 { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17134 { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17135 { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17136 { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17137 { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17138 { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17139 { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17140 { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17141 { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17142 { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17143 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17144 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17145 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17146 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17147 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17148 { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17149 { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17150 { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17151 { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17152 { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17153 { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17154 { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17155 { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17156 { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17157 { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17158 { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17159 { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17160 { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17161 { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17162 { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17163 { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17164 { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17165 { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17166 { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17167 { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17168 { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17169 { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17170 { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17171 { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17172 { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17173 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17174 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17175 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17176 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17177 { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17178 { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17179 { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17180 {0}};
17181
17182 #ifdef __cplusplus
17183 }
17184 #endif
17185
17186 #ifdef __cplusplus
17187 extern "C"
17188 #endif
17189 SWIGEXPORT(void) SWIG_init(void) {
17190 static PyObject *SWIG_globals = 0;
17191 static int typeinit = 0;
17192 PyObject *m, *d;
17193 int i;
17194 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17195 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17196 d = PyModule_GetDict(m);
17197
17198 if (!typeinit) {
17199 for (i = 0; swig_types_initial[i]; i++) {
17200 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17201 }
17202 typeinit = 1;
17203 }
17204 SWIG_InstallConstants(d,swig_const_table);
17205
17206
17207 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17208
17209 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17210 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17211 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17212 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17213 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17214 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17215 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17216 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17217 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17218 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17219 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17220 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17221 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17222 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17223 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17224 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17225 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17226 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17227 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17228 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17229 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17230 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17231 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17232 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17233 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17234 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17235 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17236 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17237 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17238 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17239 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17240 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17241 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17242 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17243 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17244 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17245 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17246 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17247 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17248 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17249 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17250 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17251 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17252 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17253 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17254 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17255 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
17256
17257 // Work around a chicken/egg problem in drawlist.cpp
17258 wxPyDrawList_SetAPIPtr();
17259
17260 }
17261