]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
renamed wxEventFixModule to wxWakeUpIdleModule; added error checking; slight code...
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
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 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
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 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
234 #define SWIGTYPE_p_wxBrush swig_types[1]
235 #define SWIGTYPE_p_wxColour swig_types[2]
236 #define SWIGTYPE_p_wxDC swig_types[3]
237 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
238 #define SWIGTYPE_p_byte swig_types[5]
239 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
240 #define SWIGTYPE_p_char swig_types[7]
241 #define SWIGTYPE_p_wxIconLocation swig_types[8]
242 #define SWIGTYPE_p_wxImage swig_types[9]
243 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
244 #define SWIGTYPE_p_wxMask swig_types[11]
245 #define SWIGTYPE_p_wxFont swig_types[12]
246 #define SWIGTYPE_p_wxWindow swig_types[13]
247 #define SWIGTYPE_p_wxSize swig_types[14]
248 #define SWIGTYPE_p_double swig_types[15]
249 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
250 #define SWIGTYPE_p_wxFontMapper swig_types[17]
251 #define SWIGTYPE_p_wxEffects swig_types[18]
252 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
253 #define SWIGTYPE_p_wxPalette swig_types[20]
254 #define SWIGTYPE_p_wxBitmap swig_types[21]
255 #define SWIGTYPE_p_wxObject swig_types[22]
256 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
257 #define SWIGTYPE_p_wxRect swig_types[24]
258 #define SWIGTYPE_p_wxString swig_types[25]
259 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
260 #define SWIGTYPE_p_wxIconBundle swig_types[27]
261 #define SWIGTYPE_p_wxPoint swig_types[28]
262 #define SWIGTYPE_p_wxDash swig_types[29]
263 #define SWIGTYPE_p_wxScreenDC swig_types[30]
264 #define SWIGTYPE_p_wxCursor swig_types[31]
265 #define SWIGTYPE_p_wxClientDC swig_types[32]
266 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
267 #define SWIGTYPE_p_wxImageList swig_types[34]
268 #define SWIGTYPE_p_unsigned_char swig_types[35]
269 #define SWIGTYPE_p_wxGDIObject swig_types[36]
270 #define SWIGTYPE_p_wxIcon swig_types[37]
271 #define SWIGTYPE_p_wxLocale swig_types[38]
272 #define SWIGTYPE_p_wxRegion swig_types[39]
273 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
274 #define SWIGTYPE_p_wxConfigBase swig_types[41]
275 #define SWIGTYPE_p_wxWindowDC swig_types[42]
276 #define SWIGTYPE_p_wxPrintData swig_types[43]
277 #define SWIGTYPE_p_wxBrushList swig_types[44]
278 #define SWIGTYPE_p_wxFontList swig_types[45]
279 #define SWIGTYPE_p_wxPen swig_types[46]
280 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
281 #define SWIGTYPE_p_wxPaintDC swig_types[48]
282 #define SWIGTYPE_p_wxPenList swig_types[49]
283 #define SWIGTYPE_p_wxPyPen swig_types[50]
284 #define SWIGTYPE_p_int swig_types[51]
285 #define SWIGTYPE_p_wxMetaFile swig_types[52]
286 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
287 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
288 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
289 static swig_type_info *swig_types[57];
290
291 /* -------- TYPES TABLE (END) -------- */
292
293
294 /*-----------------------------------------------
295 @(target):= _gdi.so
296 ------------------------------------------------*/
297 #define SWIG_init init_gdi
298
299 #define SWIG_name "_gdi"
300
301 #include <limits.h>
302 #include <float.h>
303 #include <string.h>
304
305 #ifndef SWIGSTATIC
306 #ifdef __cplusplus
307 #define SWIGSTATIC(a) static inline a
308 #else
309 #define SWIGSTATIC(a) static a
310 #endif
311 #endif
312
313 #ifndef numeric_cast
314 #ifdef __cplusplus
315 #ifdef HAVE_NUMERIC_CAST
316 #define numeric_cast(type,a) numeric_cast<type>(a)
317 #else
318 #define numeric_cast(type,a) static_cast<type>(a)
319 #endif
320 #else
321 #define numeric_cast(type,a) (type)(a)
322 #endif
323 #endif
324
325
326
327 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
328 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
329 #define SWIG_PyObj_FromShort PyInt_FromLong
330 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
331 #define SWIG_PyObj_FromInt PyInt_FromLong
332 #define SWIG_PyObj_FromLong PyInt_FromLong
333 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
334 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
335 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
336 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
337
338
339 #include "wx/wxPython/wxPython.h"
340 #include "wx/wxPython/pyclasses.h"
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344
345 SWIGSTATIC(bool)
346 SWIG_PyObj_AsBool(PyObject *obj)
347 {
348 return PyObject_IsTrue(obj) ? true : false;
349 }
350
351
352 SWIGSTATIC(unsigned char)
353 SWIG_PyObj_AsUnsignedChar(PyObject *obj)
354 {
355 return numeric_cast(unsigned char,
356 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
357 }
358
359 PyObject *wxColour_Get(wxColour *self){
360 PyObject* rv = PyTuple_New(3);
361 int red = -1;
362 int green = -1;
363 int blue = -1;
364 if (self->Ok()) {
365 red = self->Red();
366 green = self->Green();
367 blue = self->Blue();
368 }
369 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
370 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
371 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
372 return rv;
373 }
374
375 SWIGSTATIC(int)
376 SWIG_PyObj_AsInt(PyObject *obj)
377 {
378 return numeric_cast(int,
379 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
380 }
381
382
383 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
384 PyObject* o2;
385 PyObject* o3;
386
387 if (!target) {
388 target = o;
389 } else if (target == Py_None) {
390 Py_DECREF(Py_None);
391 target = o;
392 } else {
393 if (!PyTuple_Check(target)) {
394 o2 = target;
395 target = PyTuple_New(1);
396 PyTuple_SetItem(target, 0, o2);
397 }
398 o3 = PyTuple_New(1);
399 PyTuple_SetItem(o3, 0, o);
400
401 o2 = target;
402 target = PySequence_Concat(o2, o3);
403 Py_DECREF(o2);
404 Py_DECREF(o3);
405 }
406 return target;
407 }
408
409 PyObject *wxPen_GetDashes(wxPen *self){
410 wxDash* dashes;
411 int count = self->GetDashes(&dashes);
412 wxPyBeginBlockThreads();
413 PyObject* retval = PyList_New(0);
414 for (int x=0; x<count; x++)
415 PyList_Append(retval, PyInt_FromLong(dashes[x]));
416 wxPyEndBlockThreads();
417 return retval;
418 }
419
420 wxPyPen::~wxPyPen()
421 {
422 if (m_dash)
423 delete [] m_dash;
424 }
425
426 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
427 {
428 if (m_dash)
429 delete [] m_dash;
430 m_dash = new wxDash[nb_dashes];
431 for (int i=0; i<nb_dashes; i++) {
432 m_dash[i] = dash[i];
433 }
434 wxPen::SetDashes(nb_dashes, m_dash);
435 }
436
437
438 #include <wx/image.h>
439
440 static char** ConvertListOfStrings(PyObject* listOfStrings) {
441 char** cArray = NULL;
442 int count;
443
444 if (!PyList_Check(listOfStrings)) {
445 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
446 return NULL;
447 }
448 count = PyList_Size(listOfStrings);
449 cArray = new char*[count];
450
451 for(int x=0; x<count; x++) {
452 // TODO: Need some validation and error checking here
453 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
454 }
455 return cArray;
456 }
457
458
459 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
460 char** cArray = NULL;
461 wxBitmap* bmp;
462
463 cArray = ConvertListOfStrings(listOfStrings);
464 if (! cArray)
465 return NULL;
466 bmp = new wxBitmap(cArray);
467 delete [] cArray;
468 return bmp;
469 }
470 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
471 char* buf;
472 int length;
473 PyString_AsStringAndSize(bits, &buf, &length);
474 return new wxBitmap(buf, width, height, depth);
475 }
476 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
477 wxMask *mask = new wxMask(*self, colour);
478 self->SetMask(mask);
479 }
480
481 #include <wx/iconbndl.h>
482
483 wxIcon *new_wxIcon(wxBitmap const &bmp){
484 wxIcon* icon = new wxIcon();
485 icon->CopyFromBitmap(bmp);
486 return icon;
487 }
488 wxIcon *new_wxIcon(PyObject *listOfStrings){
489 char** cArray = NULL;
490 wxIcon* icon;
491
492 cArray = ConvertListOfStrings(listOfStrings);
493 if (! cArray)
494 return NULL;
495 icon = new wxIcon(cArray);
496 delete [] cArray;
497 return icon;
498 }
499 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
500
501
502
503 return new wxIconLocation(*filename);
504
505 }
506 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
507
508
509
510 // do nothing
511
512 }
513 int wxIconLocation_GetIndex(wxIconLocation *self){
514
515
516
517 return -1;
518
519 }
520
521 SWIGSTATIC(long)
522 SWIG_PyObj_AsLong(PyObject * obj)
523 {
524 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
525 }
526
527 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
528
529 wxCHECK_MSG(False, NULL,
530 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
531
532
533
534 }
535 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
536 char* bitsbuf;
537 char* maskbuf = NULL;
538 int length;
539 PyString_AsStringAndSize(bits, &bitsbuf, &length);
540 if (maskBits)
541 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
542 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
543 }
544
545
546 void wxRegionIterator_Next(wxRegionIterator *self){
547 (*self) ++;
548 }
549 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
550 return self->operator bool();
551 }
552
553 #include <wx/fontutil.h>
554 #include <wx/fontmap.h>
555 #include <wx/fontenum.h>
556
557 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
558 return self->ToString();
559 }
560
561 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
562 static wxNativeEncodingInfo info;
563 if ( wxGetNativeFontEncoding(encoding, &info) )
564 return &info;
565 else
566 return NULL;
567 }
568
569
570 SWIGSTATIC(PyObject* )
571 SWIG_PyObj_FromUnsignedLong(unsigned long value)
572 {
573 return (value > (unsigned long)(LONG_MAX)) ?
574 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
575 }
576
577 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
578 wxFontEncoding alt_enc;
579 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
580 return PyInt_FromLong(alt_enc);
581 else {
582 Py_INCREF(Py_None);
583 return Py_None;
584 }
585 }
586 wxFont *new_wxFont(wxString const &info){
587 wxNativeFontInfo nfi;
588 nfi.FromString(info);
589 return new wxFont(nfi);
590 }
591 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
592 return wxFont::New(pointSize, family, flags, face, encoding);
593 }
594
595 class wxPyFontEnumerator : public wxFontEnumerator {
596 public:
597 wxPyFontEnumerator() {}
598 ~wxPyFontEnumerator() {}
599
600 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
601 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
602
603 PYPRIVATE;
604 };
605
606 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
607 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
608
609
610 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
611 wxArrayString* arr = self->GetEncodings();
612 return wxArrayString2PyList_helper(*arr);
613 }
614 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
615 wxArrayString* arr = self->GetFacenames();
616 return wxArrayString2PyList_helper(*arr);
617 }
618
619
620
621 #include "wx/wxPython/pydrawxxx.h"
622
623 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
624 wxColour col;
625 self->GetPixel(x, y, &col);
626 return col;
627 }
628 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
629 wxColour col;
630 self->GetPixel(pt, &col);
631 return col;
632 }
633
634 SWIGSTATIC(double)
635 SWIG_PyObj_AsDouble(PyObject *obj)
636 {
637 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
638 #if HAVE_LONG_LONG
639 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
640 #else
641 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
642 #endif
643 if (PyErr_Occurred()) {
644 PyErr_Clear();
645 PyErr_SetString(PyExc_TypeError, "a double is expected");
646 }
647 }
648
649 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
650 wxRect rv;
651 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
652 return rv;
653 }
654 wxRect wxDC_GetClippingRect(wxDC *self){
655 wxRect rect;
656 self->GetClippingBox(rect);
657 return rect;
658 }
659 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
660 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
661 }
662 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
663 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
664 }
665 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
666 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
667 }
668 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
669 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
670 }
671 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
672 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
673 }
674 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
675 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
676 }
677
678 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
679 *x1 = dc->MinX();
680 *y1 = dc->MinY();
681 *x2 = dc->MaxX();
682 *y2 = dc->MaxY();
683 }
684
685
686 #include <wx/dcps.h>
687
688
689 class wxMetaFile : public wxObject {
690 public:
691 wxMetaFile(const wxString&)
692 { wxPyRaiseNotImplemented(); }
693 };
694
695 class wxMetaFileDC : public wxClientDC {
696 public:
697 wxMetaFileDC(const wxString&, int, int, const wxString&)
698 { wxPyRaiseNotImplemented(); }
699 };
700
701
702
703 class wxPrinterDC : public wxClientDC {
704 public:
705 wxPrinterDC(const wxPrintData&)
706 { wxPyRaiseNotImplemented(); }
707
708 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
709 // { wxPyRaiseNotImplemented(); }
710 };
711
712
713
714 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
715 self->AddColour(name, wxColour(red, green, blue));
716 }
717
718 #include <wx/effects.h>
719
720 #ifdef __cplusplus
721 extern "C" {
722 #endif
723 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
724 PyObject *resultobj;
725 wxGDIObject *result;
726 char *kwnames[] = {
727 NULL
728 };
729
730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
731 {
732 PyThreadState* __tstate = wxPyBeginAllowThreads();
733 result = (wxGDIObject *)new wxGDIObject();
734
735 wxPyEndAllowThreads(__tstate);
736 if (PyErr_Occurred()) SWIG_fail;
737 }
738 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
739 return resultobj;
740 fail:
741 return NULL;
742 }
743
744
745 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
746 PyObject *resultobj;
747 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
748 PyObject * obj0 = 0 ;
749 char *kwnames[] = {
750 (char *) "self", NULL
751 };
752
753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
755 {
756 PyThreadState* __tstate = wxPyBeginAllowThreads();
757 delete arg1;
758
759 wxPyEndAllowThreads(__tstate);
760 if (PyErr_Occurred()) SWIG_fail;
761 }
762 Py_INCREF(Py_None); resultobj = Py_None;
763 return resultobj;
764 fail:
765 return NULL;
766 }
767
768
769 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
770 PyObject *resultobj;
771 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
772 bool result;
773 PyObject * obj0 = 0 ;
774 char *kwnames[] = {
775 (char *) "self", NULL
776 };
777
778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
780 {
781 PyThreadState* __tstate = wxPyBeginAllowThreads();
782 result = (bool)(arg1)->GetVisible();
783
784 wxPyEndAllowThreads(__tstate);
785 if (PyErr_Occurred()) SWIG_fail;
786 }
787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
788 return resultobj;
789 fail:
790 return NULL;
791 }
792
793
794 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
795 PyObject *resultobj;
796 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
797 bool arg2 ;
798 PyObject * obj0 = 0 ;
799 PyObject * obj1 = 0 ;
800 char *kwnames[] = {
801 (char *) "self",(char *) "visible", NULL
802 };
803
804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
806 {
807 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
808 if (PyErr_Occurred()) SWIG_fail;
809 }
810 {
811 PyThreadState* __tstate = wxPyBeginAllowThreads();
812 (arg1)->SetVisible(arg2);
813
814 wxPyEndAllowThreads(__tstate);
815 if (PyErr_Occurred()) SWIG_fail;
816 }
817 Py_INCREF(Py_None); resultobj = Py_None;
818 return resultobj;
819 fail:
820 return NULL;
821 }
822
823
824 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
825 PyObject *resultobj;
826 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
827 bool result;
828 PyObject * obj0 = 0 ;
829 char *kwnames[] = {
830 (char *) "self", NULL
831 };
832
833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
835 {
836 PyThreadState* __tstate = wxPyBeginAllowThreads();
837 result = (bool)(arg1)->IsNull();
838
839 wxPyEndAllowThreads(__tstate);
840 if (PyErr_Occurred()) SWIG_fail;
841 }
842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
843 return resultobj;
844 fail:
845 return NULL;
846 }
847
848
849 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
850 PyObject *obj;
851 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
852 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
853 Py_INCREF(obj);
854 return Py_BuildValue((char *)"");
855 }
856 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
857 PyObject *resultobj;
858 unsigned char arg1 = (unsigned char) 0 ;
859 unsigned char arg2 = (unsigned char) 0 ;
860 unsigned char arg3 = (unsigned char) 0 ;
861 wxColour *result;
862 PyObject * obj0 = 0 ;
863 PyObject * obj1 = 0 ;
864 PyObject * obj2 = 0 ;
865 char *kwnames[] = {
866 (char *) "red",(char *) "green",(char *) "blue", NULL
867 };
868
869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
870 if (obj0) {
871 {
872 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
873 if (PyErr_Occurred()) SWIG_fail;
874 }
875 }
876 if (obj1) {
877 {
878 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
879 if (PyErr_Occurred()) SWIG_fail;
880 }
881 }
882 if (obj2) {
883 {
884 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
885 if (PyErr_Occurred()) SWIG_fail;
886 }
887 }
888 {
889 PyThreadState* __tstate = wxPyBeginAllowThreads();
890 result = (wxColour *)new wxColour(arg1,arg2,arg3);
891
892 wxPyEndAllowThreads(__tstate);
893 if (PyErr_Occurred()) SWIG_fail;
894 }
895 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
896 return resultobj;
897 fail:
898 return NULL;
899 }
900
901
902 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
903 PyObject *resultobj;
904 wxColour *arg1 = (wxColour *) 0 ;
905 PyObject * obj0 = 0 ;
906 char *kwnames[] = {
907 (char *) "self", NULL
908 };
909
910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
912 {
913 PyThreadState* __tstate = wxPyBeginAllowThreads();
914 delete arg1;
915
916 wxPyEndAllowThreads(__tstate);
917 if (PyErr_Occurred()) SWIG_fail;
918 }
919 Py_INCREF(Py_None); resultobj = Py_None;
920 return resultobj;
921 fail:
922 return NULL;
923 }
924
925
926 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
927 PyObject *resultobj;
928 wxString *arg1 = 0 ;
929 wxColour *result;
930 bool temp1 = False ;
931 PyObject * obj0 = 0 ;
932 char *kwnames[] = {
933 (char *) "colorName", NULL
934 };
935
936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
937 {
938 arg1 = wxString_in_helper(obj0);
939 if (arg1 == NULL) SWIG_fail;
940 temp1 = True;
941 }
942 {
943 PyThreadState* __tstate = wxPyBeginAllowThreads();
944 result = (wxColour *)new wxColour((wxString const &)*arg1);
945
946 wxPyEndAllowThreads(__tstate);
947 if (PyErr_Occurred()) SWIG_fail;
948 }
949 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
950 {
951 if (temp1)
952 delete arg1;
953 }
954 return resultobj;
955 fail:
956 {
957 if (temp1)
958 delete arg1;
959 }
960 return NULL;
961 }
962
963
964 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
965 PyObject *resultobj;
966 unsigned long arg1 ;
967 wxColour *result;
968 PyObject * obj0 = 0 ;
969 char *kwnames[] = {
970 (char *) "colRGB", NULL
971 };
972
973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
974 {
975 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
976 if (PyErr_Occurred()) SWIG_fail;
977 }
978 {
979 PyThreadState* __tstate = wxPyBeginAllowThreads();
980 result = (wxColour *)new wxColour(arg1);
981
982 wxPyEndAllowThreads(__tstate);
983 if (PyErr_Occurred()) SWIG_fail;
984 }
985 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
986 return resultobj;
987 fail:
988 return NULL;
989 }
990
991
992 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
993 PyObject *resultobj;
994 wxColour *arg1 = (wxColour *) 0 ;
995 unsigned char result;
996 PyObject * obj0 = 0 ;
997 char *kwnames[] = {
998 (char *) "self", NULL
999 };
1000
1001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1003 {
1004 PyThreadState* __tstate = wxPyBeginAllowThreads();
1005 result = (unsigned char)(arg1)->Red();
1006
1007 wxPyEndAllowThreads(__tstate);
1008 if (PyErr_Occurred()) SWIG_fail;
1009 }
1010 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1011 return resultobj;
1012 fail:
1013 return NULL;
1014 }
1015
1016
1017 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1018 PyObject *resultobj;
1019 wxColour *arg1 = (wxColour *) 0 ;
1020 unsigned char result;
1021 PyObject * obj0 = 0 ;
1022 char *kwnames[] = {
1023 (char *) "self", NULL
1024 };
1025
1026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1027 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1028 {
1029 PyThreadState* __tstate = wxPyBeginAllowThreads();
1030 result = (unsigned char)(arg1)->Green();
1031
1032 wxPyEndAllowThreads(__tstate);
1033 if (PyErr_Occurred()) SWIG_fail;
1034 }
1035 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1036 return resultobj;
1037 fail:
1038 return NULL;
1039 }
1040
1041
1042 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1043 PyObject *resultobj;
1044 wxColour *arg1 = (wxColour *) 0 ;
1045 unsigned char result;
1046 PyObject * obj0 = 0 ;
1047 char *kwnames[] = {
1048 (char *) "self", NULL
1049 };
1050
1051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1053 {
1054 PyThreadState* __tstate = wxPyBeginAllowThreads();
1055 result = (unsigned char)(arg1)->Blue();
1056
1057 wxPyEndAllowThreads(__tstate);
1058 if (PyErr_Occurred()) SWIG_fail;
1059 }
1060 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1061 return resultobj;
1062 fail:
1063 return NULL;
1064 }
1065
1066
1067 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1068 PyObject *resultobj;
1069 wxColour *arg1 = (wxColour *) 0 ;
1070 bool result;
1071 PyObject * obj0 = 0 ;
1072 char *kwnames[] = {
1073 (char *) "self", NULL
1074 };
1075
1076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1078 {
1079 PyThreadState* __tstate = wxPyBeginAllowThreads();
1080 result = (bool)(arg1)->Ok();
1081
1082 wxPyEndAllowThreads(__tstate);
1083 if (PyErr_Occurred()) SWIG_fail;
1084 }
1085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1086 return resultobj;
1087 fail:
1088 return NULL;
1089 }
1090
1091
1092 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1093 PyObject *resultobj;
1094 wxColour *arg1 = (wxColour *) 0 ;
1095 unsigned char arg2 ;
1096 unsigned char arg3 ;
1097 unsigned char arg4 ;
1098 PyObject * obj0 = 0 ;
1099 PyObject * obj1 = 0 ;
1100 PyObject * obj2 = 0 ;
1101 PyObject * obj3 = 0 ;
1102 char *kwnames[] = {
1103 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1104 };
1105
1106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1108 {
1109 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1110 if (PyErr_Occurred()) SWIG_fail;
1111 }
1112 {
1113 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1114 if (PyErr_Occurred()) SWIG_fail;
1115 }
1116 {
1117 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1118 if (PyErr_Occurred()) SWIG_fail;
1119 }
1120 {
1121 PyThreadState* __tstate = wxPyBeginAllowThreads();
1122 (arg1)->Set(arg2,arg3,arg4);
1123
1124 wxPyEndAllowThreads(__tstate);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 }
1127 Py_INCREF(Py_None); resultobj = Py_None;
1128 return resultobj;
1129 fail:
1130 return NULL;
1131 }
1132
1133
1134 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1135 PyObject *resultobj;
1136 wxColour *arg1 = (wxColour *) 0 ;
1137 unsigned long arg2 ;
1138 PyObject * obj0 = 0 ;
1139 PyObject * obj1 = 0 ;
1140 char *kwnames[] = {
1141 (char *) "self",(char *) "colRGB", NULL
1142 };
1143
1144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1146 {
1147 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1148 if (PyErr_Occurred()) SWIG_fail;
1149 }
1150 {
1151 PyThreadState* __tstate = wxPyBeginAllowThreads();
1152 (arg1)->Set(arg2);
1153
1154 wxPyEndAllowThreads(__tstate);
1155 if (PyErr_Occurred()) SWIG_fail;
1156 }
1157 Py_INCREF(Py_None); resultobj = Py_None;
1158 return resultobj;
1159 fail:
1160 return NULL;
1161 }
1162
1163
1164 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1165 PyObject *resultobj;
1166 wxColour *arg1 = (wxColour *) 0 ;
1167 wxColour *arg2 = 0 ;
1168 bool result;
1169 wxColour temp2 ;
1170 PyObject * obj0 = 0 ;
1171 PyObject * obj1 = 0 ;
1172 char *kwnames[] = {
1173 (char *) "self",(char *) "colour", NULL
1174 };
1175
1176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1178 {
1179 arg2 = &temp2;
1180 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1181 }
1182 {
1183 PyThreadState* __tstate = wxPyBeginAllowThreads();
1184 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1185
1186 wxPyEndAllowThreads(__tstate);
1187 if (PyErr_Occurred()) SWIG_fail;
1188 }
1189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1190 return resultobj;
1191 fail:
1192 return NULL;
1193 }
1194
1195
1196 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1197 PyObject *resultobj;
1198 wxColour *arg1 = (wxColour *) 0 ;
1199 wxColour *arg2 = 0 ;
1200 bool result;
1201 wxColour temp2 ;
1202 PyObject * obj0 = 0 ;
1203 PyObject * obj1 = 0 ;
1204 char *kwnames[] = {
1205 (char *) "self",(char *) "colour", NULL
1206 };
1207
1208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1210 {
1211 arg2 = &temp2;
1212 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1213 }
1214 {
1215 PyThreadState* __tstate = wxPyBeginAllowThreads();
1216 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1217
1218 wxPyEndAllowThreads(__tstate);
1219 if (PyErr_Occurred()) SWIG_fail;
1220 }
1221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1222 return resultobj;
1223 fail:
1224 return NULL;
1225 }
1226
1227
1228 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1229 PyObject *resultobj;
1230 wxColour *arg1 = (wxColour *) 0 ;
1231 wxString *arg2 = 0 ;
1232 bool temp2 = False ;
1233 PyObject * obj0 = 0 ;
1234 PyObject * obj1 = 0 ;
1235 char *kwnames[] = {
1236 (char *) "self",(char *) "colourName", NULL
1237 };
1238
1239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1241 {
1242 arg2 = wxString_in_helper(obj1);
1243 if (arg2 == NULL) SWIG_fail;
1244 temp2 = True;
1245 }
1246 {
1247 PyThreadState* __tstate = wxPyBeginAllowThreads();
1248 (arg1)->InitFromName((wxString const &)*arg2);
1249
1250 wxPyEndAllowThreads(__tstate);
1251 if (PyErr_Occurred()) SWIG_fail;
1252 }
1253 Py_INCREF(Py_None); resultobj = Py_None;
1254 {
1255 if (temp2)
1256 delete arg2;
1257 }
1258 return resultobj;
1259 fail:
1260 {
1261 if (temp2)
1262 delete arg2;
1263 }
1264 return NULL;
1265 }
1266
1267
1268 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1269 PyObject *resultobj;
1270 wxColour *arg1 = (wxColour *) 0 ;
1271 PyObject *result;
1272 PyObject * obj0 = 0 ;
1273 char *kwnames[] = {
1274 (char *) "self", NULL
1275 };
1276
1277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1279 {
1280 PyThreadState* __tstate = wxPyBeginAllowThreads();
1281 result = (PyObject *)wxColour_Get(arg1);
1282
1283 wxPyEndAllowThreads(__tstate);
1284 if (PyErr_Occurred()) SWIG_fail;
1285 }
1286 resultobj = result;
1287 return resultobj;
1288 fail:
1289 return NULL;
1290 }
1291
1292
1293 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1294 PyObject *obj;
1295 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1296 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1297 Py_INCREF(obj);
1298 return Py_BuildValue((char *)"");
1299 }
1300 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1301 PyObject *resultobj;
1302 int arg1 ;
1303 unsigned char *arg2 = (unsigned char *) 0 ;
1304 unsigned char *arg3 = (unsigned char *) 0 ;
1305 unsigned char *arg4 = (unsigned char *) 0 ;
1306 wxPalette *result;
1307 PyObject * obj0 = 0 ;
1308 PyObject * obj1 = 0 ;
1309 PyObject * obj2 = 0 ;
1310 PyObject * obj3 = 0 ;
1311 char *kwnames[] = {
1312 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1313 };
1314
1315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1316 {
1317 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1318 if (PyErr_Occurred()) SWIG_fail;
1319 }
1320 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1321 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1322 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1323 {
1324 PyThreadState* __tstate = wxPyBeginAllowThreads();
1325 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1326
1327 wxPyEndAllowThreads(__tstate);
1328 if (PyErr_Occurred()) SWIG_fail;
1329 }
1330 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1331 return resultobj;
1332 fail:
1333 return NULL;
1334 }
1335
1336
1337 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1338 PyObject *resultobj;
1339 wxPalette *arg1 = (wxPalette *) 0 ;
1340 PyObject * obj0 = 0 ;
1341 char *kwnames[] = {
1342 (char *) "self", NULL
1343 };
1344
1345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1347 {
1348 PyThreadState* __tstate = wxPyBeginAllowThreads();
1349 delete arg1;
1350
1351 wxPyEndAllowThreads(__tstate);
1352 if (PyErr_Occurred()) SWIG_fail;
1353 }
1354 Py_INCREF(Py_None); resultobj = Py_None;
1355 return resultobj;
1356 fail:
1357 return NULL;
1358 }
1359
1360
1361 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1362 PyObject *resultobj;
1363 wxPalette *arg1 = (wxPalette *) 0 ;
1364 byte arg2 ;
1365 byte arg3 ;
1366 byte arg4 ;
1367 int result;
1368 PyObject * obj0 = 0 ;
1369 PyObject * obj1 = 0 ;
1370 PyObject * obj2 = 0 ;
1371 PyObject * obj3 = 0 ;
1372 char *kwnames[] = {
1373 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1374 };
1375
1376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1378 {
1379 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1380 if (PyErr_Occurred()) SWIG_fail;
1381 }
1382 {
1383 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1384 if (PyErr_Occurred()) SWIG_fail;
1385 }
1386 {
1387 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1388 if (PyErr_Occurred()) SWIG_fail;
1389 }
1390 {
1391 PyThreadState* __tstate = wxPyBeginAllowThreads();
1392 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1393
1394 wxPyEndAllowThreads(__tstate);
1395 if (PyErr_Occurred()) SWIG_fail;
1396 }
1397 resultobj = SWIG_PyObj_FromInt((int)result);
1398 return resultobj;
1399 fail:
1400 return NULL;
1401 }
1402
1403
1404 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1405 PyObject *resultobj;
1406 wxPalette *arg1 = (wxPalette *) 0 ;
1407 int arg2 ;
1408 byte *arg3 = (byte *) 0 ;
1409 byte *arg4 = (byte *) 0 ;
1410 byte *arg5 = (byte *) 0 ;
1411 bool result;
1412 byte temp3 ;
1413 byte temp4 ;
1414 byte temp5 ;
1415 PyObject * obj0 = 0 ;
1416 PyObject * obj1 = 0 ;
1417 char *kwnames[] = {
1418 (char *) "self",(char *) "pixel", NULL
1419 };
1420
1421 arg3 = &temp3;
1422 arg4 = &temp4;
1423 arg5 = &temp5;
1424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1426 {
1427 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1428 if (PyErr_Occurred()) SWIG_fail;
1429 }
1430 {
1431 PyThreadState* __tstate = wxPyBeginAllowThreads();
1432 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1433
1434 wxPyEndAllowThreads(__tstate);
1435 if (PyErr_Occurred()) SWIG_fail;
1436 }
1437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1438 {
1439 PyObject *o = PyInt_FromLong((long) (*arg3));
1440 resultobj = t_output_helper(resultobj,o);
1441 }
1442 {
1443 PyObject *o = PyInt_FromLong((long) (*arg4));
1444 resultobj = t_output_helper(resultobj,o);
1445 }
1446 {
1447 PyObject *o = PyInt_FromLong((long) (*arg5));
1448 resultobj = t_output_helper(resultobj,o);
1449 }
1450 return resultobj;
1451 fail:
1452 return NULL;
1453 }
1454
1455
1456 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1457 PyObject *resultobj;
1458 wxPalette *arg1 = (wxPalette *) 0 ;
1459 bool result;
1460 PyObject * obj0 = 0 ;
1461 char *kwnames[] = {
1462 (char *) "self", NULL
1463 };
1464
1465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1467 {
1468 PyThreadState* __tstate = wxPyBeginAllowThreads();
1469 result = (bool)(arg1)->Ok();
1470
1471 wxPyEndAllowThreads(__tstate);
1472 if (PyErr_Occurred()) SWIG_fail;
1473 }
1474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1475 return resultobj;
1476 fail:
1477 return NULL;
1478 }
1479
1480
1481 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1482 PyObject *obj;
1483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1484 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1485 Py_INCREF(obj);
1486 return Py_BuildValue((char *)"");
1487 }
1488 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1489 PyObject *resultobj;
1490 wxColour *arg1 = 0 ;
1491 int arg2 = (int) 1 ;
1492 int arg3 = (int) wxSOLID ;
1493 wxPen *result;
1494 wxColour temp1 ;
1495 PyObject * obj0 = 0 ;
1496 PyObject * obj1 = 0 ;
1497 PyObject * obj2 = 0 ;
1498 char *kwnames[] = {
1499 (char *) "colour",(char *) "width",(char *) "style", NULL
1500 };
1501
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1503 {
1504 arg1 = &temp1;
1505 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1506 }
1507 if (obj1) {
1508 {
1509 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1510 if (PyErr_Occurred()) SWIG_fail;
1511 }
1512 }
1513 if (obj2) {
1514 {
1515 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1516 if (PyErr_Occurred()) SWIG_fail;
1517 }
1518 }
1519 {
1520 PyThreadState* __tstate = wxPyBeginAllowThreads();
1521 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1522
1523 wxPyEndAllowThreads(__tstate);
1524 if (PyErr_Occurred()) SWIG_fail;
1525 }
1526 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1527 return resultobj;
1528 fail:
1529 return NULL;
1530 }
1531
1532
1533 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1534 PyObject *resultobj;
1535 wxPen *arg1 = (wxPen *) 0 ;
1536 PyObject * obj0 = 0 ;
1537 char *kwnames[] = {
1538 (char *) "self", NULL
1539 };
1540
1541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1543 {
1544 PyThreadState* __tstate = wxPyBeginAllowThreads();
1545 delete arg1;
1546
1547 wxPyEndAllowThreads(__tstate);
1548 if (PyErr_Occurred()) SWIG_fail;
1549 }
1550 Py_INCREF(Py_None); resultobj = Py_None;
1551 return resultobj;
1552 fail:
1553 return NULL;
1554 }
1555
1556
1557 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1558 PyObject *resultobj;
1559 wxPen *arg1 = (wxPen *) 0 ;
1560 int result;
1561 PyObject * obj0 = 0 ;
1562 char *kwnames[] = {
1563 (char *) "self", NULL
1564 };
1565
1566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1568 {
1569 PyThreadState* __tstate = wxPyBeginAllowThreads();
1570 result = (int)(arg1)->GetCap();
1571
1572 wxPyEndAllowThreads(__tstate);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 resultobj = SWIG_PyObj_FromInt((int)result);
1576 return resultobj;
1577 fail:
1578 return NULL;
1579 }
1580
1581
1582 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1583 PyObject *resultobj;
1584 wxPen *arg1 = (wxPen *) 0 ;
1585 wxColour result;
1586 PyObject * obj0 = 0 ;
1587 char *kwnames[] = {
1588 (char *) "self", NULL
1589 };
1590
1591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1593 {
1594 PyThreadState* __tstate = wxPyBeginAllowThreads();
1595 result = (arg1)->GetColour();
1596
1597 wxPyEndAllowThreads(__tstate);
1598 if (PyErr_Occurred()) SWIG_fail;
1599 }
1600 {
1601 wxColour * resultptr;
1602 resultptr = new wxColour((wxColour &) result);
1603 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1604 }
1605 return resultobj;
1606 fail:
1607 return NULL;
1608 }
1609
1610
1611 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1612 PyObject *resultobj;
1613 wxPen *arg1 = (wxPen *) 0 ;
1614 int result;
1615 PyObject * obj0 = 0 ;
1616 char *kwnames[] = {
1617 (char *) "self", NULL
1618 };
1619
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1622 {
1623 PyThreadState* __tstate = wxPyBeginAllowThreads();
1624 result = (int)(arg1)->GetJoin();
1625
1626 wxPyEndAllowThreads(__tstate);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 }
1629 resultobj = SWIG_PyObj_FromInt((int)result);
1630 return resultobj;
1631 fail:
1632 return NULL;
1633 }
1634
1635
1636 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1637 PyObject *resultobj;
1638 wxPen *arg1 = (wxPen *) 0 ;
1639 int result;
1640 PyObject * obj0 = 0 ;
1641 char *kwnames[] = {
1642 (char *) "self", NULL
1643 };
1644
1645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1646 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1647 {
1648 PyThreadState* __tstate = wxPyBeginAllowThreads();
1649 result = (int)(arg1)->GetStyle();
1650
1651 wxPyEndAllowThreads(__tstate);
1652 if (PyErr_Occurred()) SWIG_fail;
1653 }
1654 resultobj = SWIG_PyObj_FromInt((int)result);
1655 return resultobj;
1656 fail:
1657 return NULL;
1658 }
1659
1660
1661 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1662 PyObject *resultobj;
1663 wxPen *arg1 = (wxPen *) 0 ;
1664 int result;
1665 PyObject * obj0 = 0 ;
1666 char *kwnames[] = {
1667 (char *) "self", NULL
1668 };
1669
1670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1672 {
1673 PyThreadState* __tstate = wxPyBeginAllowThreads();
1674 result = (int)(arg1)->GetWidth();
1675
1676 wxPyEndAllowThreads(__tstate);
1677 if (PyErr_Occurred()) SWIG_fail;
1678 }
1679 resultobj = SWIG_PyObj_FromInt((int)result);
1680 return resultobj;
1681 fail:
1682 return NULL;
1683 }
1684
1685
1686 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1687 PyObject *resultobj;
1688 wxPen *arg1 = (wxPen *) 0 ;
1689 bool result;
1690 PyObject * obj0 = 0 ;
1691 char *kwnames[] = {
1692 (char *) "self", NULL
1693 };
1694
1695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1697 {
1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
1699 result = (bool)(arg1)->Ok();
1700
1701 wxPyEndAllowThreads(__tstate);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1705 return resultobj;
1706 fail:
1707 return NULL;
1708 }
1709
1710
1711 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1712 PyObject *resultobj;
1713 wxPen *arg1 = (wxPen *) 0 ;
1714 int arg2 ;
1715 PyObject * obj0 = 0 ;
1716 PyObject * obj1 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "self",(char *) "cap_style", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1723 {
1724 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1725 if (PyErr_Occurred()) SWIG_fail;
1726 }
1727 {
1728 PyThreadState* __tstate = wxPyBeginAllowThreads();
1729 (arg1)->SetCap(arg2);
1730
1731 wxPyEndAllowThreads(__tstate);
1732 if (PyErr_Occurred()) SWIG_fail;
1733 }
1734 Py_INCREF(Py_None); resultobj = Py_None;
1735 return resultobj;
1736 fail:
1737 return NULL;
1738 }
1739
1740
1741 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1742 PyObject *resultobj;
1743 wxPen *arg1 = (wxPen *) 0 ;
1744 wxColour *arg2 = 0 ;
1745 wxColour temp2 ;
1746 PyObject * obj0 = 0 ;
1747 PyObject * obj1 = 0 ;
1748 char *kwnames[] = {
1749 (char *) "self",(char *) "colour", NULL
1750 };
1751
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1754 {
1755 arg2 = &temp2;
1756 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1757 }
1758 {
1759 PyThreadState* __tstate = wxPyBeginAllowThreads();
1760 (arg1)->SetColour(*arg2);
1761
1762 wxPyEndAllowThreads(__tstate);
1763 if (PyErr_Occurred()) SWIG_fail;
1764 }
1765 Py_INCREF(Py_None); resultobj = Py_None;
1766 return resultobj;
1767 fail:
1768 return NULL;
1769 }
1770
1771
1772 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1773 PyObject *resultobj;
1774 wxPen *arg1 = (wxPen *) 0 ;
1775 int arg2 ;
1776 PyObject * obj0 = 0 ;
1777 PyObject * obj1 = 0 ;
1778 char *kwnames[] = {
1779 (char *) "self",(char *) "join_style", NULL
1780 };
1781
1782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1784 {
1785 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1786 if (PyErr_Occurred()) SWIG_fail;
1787 }
1788 {
1789 PyThreadState* __tstate = wxPyBeginAllowThreads();
1790 (arg1)->SetJoin(arg2);
1791
1792 wxPyEndAllowThreads(__tstate);
1793 if (PyErr_Occurred()) SWIG_fail;
1794 }
1795 Py_INCREF(Py_None); resultobj = Py_None;
1796 return resultobj;
1797 fail:
1798 return NULL;
1799 }
1800
1801
1802 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1803 PyObject *resultobj;
1804 wxPen *arg1 = (wxPen *) 0 ;
1805 int arg2 ;
1806 PyObject * obj0 = 0 ;
1807 PyObject * obj1 = 0 ;
1808 char *kwnames[] = {
1809 (char *) "self",(char *) "style", NULL
1810 };
1811
1812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1814 {
1815 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1816 if (PyErr_Occurred()) SWIG_fail;
1817 }
1818 {
1819 PyThreadState* __tstate = wxPyBeginAllowThreads();
1820 (arg1)->SetStyle(arg2);
1821
1822 wxPyEndAllowThreads(__tstate);
1823 if (PyErr_Occurred()) SWIG_fail;
1824 }
1825 Py_INCREF(Py_None); resultobj = Py_None;
1826 return resultobj;
1827 fail:
1828 return NULL;
1829 }
1830
1831
1832 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1833 PyObject *resultobj;
1834 wxPen *arg1 = (wxPen *) 0 ;
1835 int arg2 ;
1836 PyObject * obj0 = 0 ;
1837 PyObject * obj1 = 0 ;
1838 char *kwnames[] = {
1839 (char *) "self",(char *) "width", NULL
1840 };
1841
1842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1844 {
1845 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1846 if (PyErr_Occurred()) SWIG_fail;
1847 }
1848 {
1849 PyThreadState* __tstate = wxPyBeginAllowThreads();
1850 (arg1)->SetWidth(arg2);
1851
1852 wxPyEndAllowThreads(__tstate);
1853 if (PyErr_Occurred()) SWIG_fail;
1854 }
1855 Py_INCREF(Py_None); resultobj = Py_None;
1856 return resultobj;
1857 fail:
1858 return NULL;
1859 }
1860
1861
1862 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1863 PyObject *resultobj;
1864 wxPen *arg1 = (wxPen *) 0 ;
1865 int arg2 ;
1866 wxDash *arg3 = (wxDash *) 0 ;
1867 PyObject * obj0 = 0 ;
1868 PyObject * obj1 = 0 ;
1869 char *kwnames[] = {
1870 (char *) "self",(char *) "dashes", NULL
1871 };
1872
1873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1875 {
1876 arg2 = PyList_Size(obj1);
1877 arg3 = (wxDash*)byte_LIST_helper(obj1);
1878 if (arg3 == NULL) SWIG_fail;
1879 }
1880 {
1881 PyThreadState* __tstate = wxPyBeginAllowThreads();
1882 (arg1)->SetDashes(arg2,arg3);
1883
1884 wxPyEndAllowThreads(__tstate);
1885 if (PyErr_Occurred()) SWIG_fail;
1886 }
1887 Py_INCREF(Py_None); resultobj = Py_None;
1888 {
1889 if (arg3) delete [] arg3;
1890 }
1891 return resultobj;
1892 fail:
1893 {
1894 if (arg3) delete [] arg3;
1895 }
1896 return NULL;
1897 }
1898
1899
1900 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1901 PyObject *resultobj;
1902 wxPen *arg1 = (wxPen *) 0 ;
1903 PyObject *result;
1904 PyObject * obj0 = 0 ;
1905 char *kwnames[] = {
1906 (char *) "self", NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1911 {
1912 PyThreadState* __tstate = wxPyBeginAllowThreads();
1913 result = (PyObject *)wxPen_GetDashes(arg1);
1914
1915 wxPyEndAllowThreads(__tstate);
1916 if (PyErr_Occurred()) SWIG_fail;
1917 }
1918 resultobj = result;
1919 return resultobj;
1920 fail:
1921 return NULL;
1922 }
1923
1924
1925 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1926 PyObject *resultobj;
1927 wxPen *arg1 = (wxPen *) 0 ;
1928 int result;
1929 PyObject * obj0 = 0 ;
1930 char *kwnames[] = {
1931 (char *) "self", NULL
1932 };
1933
1934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1936 {
1937 PyThreadState* __tstate = wxPyBeginAllowThreads();
1938 result = (int)((wxPen const *)arg1)->GetDashCount();
1939
1940 wxPyEndAllowThreads(__tstate);
1941 if (PyErr_Occurred()) SWIG_fail;
1942 }
1943 resultobj = SWIG_PyObj_FromInt((int)result);
1944 return resultobj;
1945 fail:
1946 return NULL;
1947 }
1948
1949
1950 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1951 PyObject *obj;
1952 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1953 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1954 Py_INCREF(obj);
1955 return Py_BuildValue((char *)"");
1956 }
1957 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxColour *arg1 = 0 ;
1960 int arg2 = (int) 1 ;
1961 int arg3 = (int) wxSOLID ;
1962 wxPyPen *result;
1963 wxColour temp1 ;
1964 PyObject * obj0 = 0 ;
1965 PyObject * obj1 = 0 ;
1966 PyObject * obj2 = 0 ;
1967 char *kwnames[] = {
1968 (char *) "colour",(char *) "width",(char *) "style", NULL
1969 };
1970
1971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1972 {
1973 arg1 = &temp1;
1974 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1975 }
1976 if (obj1) {
1977 {
1978 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 }
1981 }
1982 if (obj2) {
1983 {
1984 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1985 if (PyErr_Occurred()) SWIG_fail;
1986 }
1987 }
1988 {
1989 PyThreadState* __tstate = wxPyBeginAllowThreads();
1990 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1991
1992 wxPyEndAllowThreads(__tstate);
1993 if (PyErr_Occurred()) SWIG_fail;
1994 }
1995 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1996 return resultobj;
1997 fail:
1998 return NULL;
1999 }
2000
2001
2002 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject *resultobj;
2004 wxPyPen *arg1 = (wxPyPen *) 0 ;
2005 PyObject * obj0 = 0 ;
2006 char *kwnames[] = {
2007 (char *) "self", NULL
2008 };
2009
2010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2012 {
2013 PyThreadState* __tstate = wxPyBeginAllowThreads();
2014 delete arg1;
2015
2016 wxPyEndAllowThreads(__tstate);
2017 if (PyErr_Occurred()) SWIG_fail;
2018 }
2019 Py_INCREF(Py_None); resultobj = Py_None;
2020 return resultobj;
2021 fail:
2022 return NULL;
2023 }
2024
2025
2026 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2027 PyObject *resultobj;
2028 wxPyPen *arg1 = (wxPyPen *) 0 ;
2029 int arg2 ;
2030 wxDash *arg3 = (wxDash *) 0 ;
2031 PyObject * obj0 = 0 ;
2032 PyObject * obj1 = 0 ;
2033 char *kwnames[] = {
2034 (char *) "self",(char *) "dashes", NULL
2035 };
2036
2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2039 {
2040 arg2 = PyList_Size(obj1);
2041 arg3 = (wxDash*)byte_LIST_helper(obj1);
2042 if (arg3 == NULL) SWIG_fail;
2043 }
2044 {
2045 PyThreadState* __tstate = wxPyBeginAllowThreads();
2046 (arg1)->SetDashes(arg2,arg3);
2047
2048 wxPyEndAllowThreads(__tstate);
2049 if (PyErr_Occurred()) SWIG_fail;
2050 }
2051 Py_INCREF(Py_None); resultobj = Py_None;
2052 {
2053 if (arg3) delete [] arg3;
2054 }
2055 return resultobj;
2056 fail:
2057 {
2058 if (arg3) delete [] arg3;
2059 }
2060 return NULL;
2061 }
2062
2063
2064 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2065 PyObject *obj;
2066 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2067 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2068 Py_INCREF(obj);
2069 return Py_BuildValue((char *)"");
2070 }
2071 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2072 PyObject *resultobj;
2073 wxColour *arg1 = 0 ;
2074 int arg2 = (int) wxSOLID ;
2075 wxBrush *result;
2076 wxColour temp1 ;
2077 PyObject * obj0 = 0 ;
2078 PyObject * obj1 = 0 ;
2079 char *kwnames[] = {
2080 (char *) "colour",(char *) "style", NULL
2081 };
2082
2083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2084 {
2085 arg1 = &temp1;
2086 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2087 }
2088 if (obj1) {
2089 {
2090 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2091 if (PyErr_Occurred()) SWIG_fail;
2092 }
2093 }
2094 {
2095 PyThreadState* __tstate = wxPyBeginAllowThreads();
2096 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2097
2098 wxPyEndAllowThreads(__tstate);
2099 if (PyErr_Occurred()) SWIG_fail;
2100 }
2101 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2102 return resultobj;
2103 fail:
2104 return NULL;
2105 }
2106
2107
2108 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2109 PyObject *resultobj;
2110 wxBrush *arg1 = (wxBrush *) 0 ;
2111 PyObject * obj0 = 0 ;
2112 char *kwnames[] = {
2113 (char *) "self", NULL
2114 };
2115
2116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 delete arg1;
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 Py_INCREF(Py_None); resultobj = Py_None;
2126 return resultobj;
2127 fail:
2128 return NULL;
2129 }
2130
2131
2132 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2133 PyObject *resultobj;
2134 wxBrush *arg1 = (wxBrush *) 0 ;
2135 wxColour *arg2 = 0 ;
2136 wxColour temp2 ;
2137 PyObject * obj0 = 0 ;
2138 PyObject * obj1 = 0 ;
2139 char *kwnames[] = {
2140 (char *) "self",(char *) "col", NULL
2141 };
2142
2143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2145 {
2146 arg2 = &temp2;
2147 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2148 }
2149 {
2150 PyThreadState* __tstate = wxPyBeginAllowThreads();
2151 (arg1)->SetColour((wxColour const &)*arg2);
2152
2153 wxPyEndAllowThreads(__tstate);
2154 if (PyErr_Occurred()) SWIG_fail;
2155 }
2156 Py_INCREF(Py_None); resultobj = Py_None;
2157 return resultobj;
2158 fail:
2159 return NULL;
2160 }
2161
2162
2163 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2164 PyObject *resultobj;
2165 wxBrush *arg1 = (wxBrush *) 0 ;
2166 int arg2 ;
2167 PyObject * obj0 = 0 ;
2168 PyObject * obj1 = 0 ;
2169 char *kwnames[] = {
2170 (char *) "self",(char *) "style", NULL
2171 };
2172
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2175 {
2176 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2177 if (PyErr_Occurred()) SWIG_fail;
2178 }
2179 {
2180 PyThreadState* __tstate = wxPyBeginAllowThreads();
2181 (arg1)->SetStyle(arg2);
2182
2183 wxPyEndAllowThreads(__tstate);
2184 if (PyErr_Occurred()) SWIG_fail;
2185 }
2186 Py_INCREF(Py_None); resultobj = Py_None;
2187 return resultobj;
2188 fail:
2189 return NULL;
2190 }
2191
2192
2193 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2194 PyObject *resultobj;
2195 wxBrush *arg1 = (wxBrush *) 0 ;
2196 wxBitmap *arg2 = 0 ;
2197 PyObject * obj0 = 0 ;
2198 PyObject * obj1 = 0 ;
2199 char *kwnames[] = {
2200 (char *) "self",(char *) "stipple", NULL
2201 };
2202
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2205 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2206 if (arg2 == NULL) {
2207 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2208 }
2209 {
2210 PyThreadState* __tstate = wxPyBeginAllowThreads();
2211 (arg1)->SetStipple((wxBitmap const &)*arg2);
2212
2213 wxPyEndAllowThreads(__tstate);
2214 if (PyErr_Occurred()) SWIG_fail;
2215 }
2216 Py_INCREF(Py_None); resultobj = Py_None;
2217 return resultobj;
2218 fail:
2219 return NULL;
2220 }
2221
2222
2223 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2224 PyObject *resultobj;
2225 wxBrush *arg1 = (wxBrush *) 0 ;
2226 wxColour result;
2227 PyObject * obj0 = 0 ;
2228 char *kwnames[] = {
2229 (char *) "self", NULL
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2234 {
2235 PyThreadState* __tstate = wxPyBeginAllowThreads();
2236 result = ((wxBrush const *)arg1)->GetColour();
2237
2238 wxPyEndAllowThreads(__tstate);
2239 if (PyErr_Occurred()) SWIG_fail;
2240 }
2241 {
2242 wxColour * resultptr;
2243 resultptr = new wxColour((wxColour &) result);
2244 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2245 }
2246 return resultobj;
2247 fail:
2248 return NULL;
2249 }
2250
2251
2252 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2253 PyObject *resultobj;
2254 wxBrush *arg1 = (wxBrush *) 0 ;
2255 int result;
2256 PyObject * obj0 = 0 ;
2257 char *kwnames[] = {
2258 (char *) "self", NULL
2259 };
2260
2261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2263 {
2264 PyThreadState* __tstate = wxPyBeginAllowThreads();
2265 result = (int)((wxBrush const *)arg1)->GetStyle();
2266
2267 wxPyEndAllowThreads(__tstate);
2268 if (PyErr_Occurred()) SWIG_fail;
2269 }
2270 resultobj = SWIG_PyObj_FromInt((int)result);
2271 return resultobj;
2272 fail:
2273 return NULL;
2274 }
2275
2276
2277 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2278 PyObject *resultobj;
2279 wxBrush *arg1 = (wxBrush *) 0 ;
2280 wxBitmap *result;
2281 PyObject * obj0 = 0 ;
2282 char *kwnames[] = {
2283 (char *) "self", NULL
2284 };
2285
2286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2288 {
2289 PyThreadState* __tstate = wxPyBeginAllowThreads();
2290 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2291
2292 wxPyEndAllowThreads(__tstate);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 }
2295 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2296 return resultobj;
2297 fail:
2298 return NULL;
2299 }
2300
2301
2302 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2303 PyObject *resultobj;
2304 wxBrush *arg1 = (wxBrush *) 0 ;
2305 bool result;
2306 PyObject * obj0 = 0 ;
2307 char *kwnames[] = {
2308 (char *) "self", NULL
2309 };
2310
2311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2313 {
2314 PyThreadState* __tstate = wxPyBeginAllowThreads();
2315 result = (bool)(arg1)->Ok();
2316
2317 wxPyEndAllowThreads(__tstate);
2318 if (PyErr_Occurred()) SWIG_fail;
2319 }
2320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2321 return resultobj;
2322 fail:
2323 return NULL;
2324 }
2325
2326
2327 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2328 PyObject *obj;
2329 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2330 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2331 Py_INCREF(obj);
2332 return Py_BuildValue((char *)"");
2333 }
2334 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2335 PyObject *resultobj;
2336 wxString *arg1 = 0 ;
2337 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2338 wxBitmap *result;
2339 bool temp1 = False ;
2340 PyObject * obj0 = 0 ;
2341 PyObject * obj1 = 0 ;
2342 char *kwnames[] = {
2343 (char *) "name",(char *) "type", NULL
2344 };
2345
2346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2347 {
2348 arg1 = wxString_in_helper(obj0);
2349 if (arg1 == NULL) SWIG_fail;
2350 temp1 = True;
2351 }
2352 if (obj1) {
2353 {
2354 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 }
2358 {
2359 PyThreadState* __tstate = wxPyBeginAllowThreads();
2360 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2361
2362 wxPyEndAllowThreads(__tstate);
2363 if (PyErr_Occurred()) SWIG_fail;
2364 }
2365 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2366 {
2367 if (temp1)
2368 delete arg1;
2369 }
2370 return resultobj;
2371 fail:
2372 {
2373 if (temp1)
2374 delete arg1;
2375 }
2376 return NULL;
2377 }
2378
2379
2380 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2381 PyObject *resultobj;
2382 wxBitmap *arg1 = (wxBitmap *) 0 ;
2383 PyObject * obj0 = 0 ;
2384 char *kwnames[] = {
2385 (char *) "self", NULL
2386 };
2387
2388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 delete arg1;
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) SWIG_fail;
2396 }
2397 Py_INCREF(Py_None); resultobj = Py_None;
2398 return resultobj;
2399 fail:
2400 return NULL;
2401 }
2402
2403
2404 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2405 PyObject *resultobj;
2406 int arg1 ;
2407 int arg2 ;
2408 int arg3 = (int) -1 ;
2409 wxBitmap *result;
2410 PyObject * obj0 = 0 ;
2411 PyObject * obj1 = 0 ;
2412 PyObject * obj2 = 0 ;
2413 char *kwnames[] = {
2414 (char *) "width",(char *) "height",(char *) "depth", NULL
2415 };
2416
2417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2418 {
2419 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2420 if (PyErr_Occurred()) SWIG_fail;
2421 }
2422 {
2423 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2424 if (PyErr_Occurred()) SWIG_fail;
2425 }
2426 if (obj2) {
2427 {
2428 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2429 if (PyErr_Occurred()) SWIG_fail;
2430 }
2431 }
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2440 return resultobj;
2441 fail:
2442 return NULL;
2443 }
2444
2445
2446 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 wxIcon *arg1 = 0 ;
2449 wxBitmap *result;
2450 PyObject * obj0 = 0 ;
2451 char *kwnames[] = {
2452 (char *) "icon", NULL
2453 };
2454
2455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2457 if (arg1 == NULL) {
2458 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2459 }
2460 {
2461 PyThreadState* __tstate = wxPyBeginAllowThreads();
2462 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2463
2464 wxPyEndAllowThreads(__tstate);
2465 if (PyErr_Occurred()) SWIG_fail;
2466 }
2467 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2468 return resultobj;
2469 fail:
2470 return NULL;
2471 }
2472
2473
2474 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2475 PyObject *resultobj;
2476 wxImage *arg1 = 0 ;
2477 int arg2 = (int) -1 ;
2478 wxBitmap *result;
2479 PyObject * obj0 = 0 ;
2480 PyObject * obj1 = 0 ;
2481 char *kwnames[] = {
2482 (char *) "image",(char *) "depth", NULL
2483 };
2484
2485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2487 if (arg1 == NULL) {
2488 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2489 }
2490 if (obj1) {
2491 {
2492 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2493 if (PyErr_Occurred()) SWIG_fail;
2494 }
2495 }
2496 {
2497 PyThreadState* __tstate = wxPyBeginAllowThreads();
2498 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2499
2500 wxPyEndAllowThreads(__tstate);
2501 if (PyErr_Occurred()) SWIG_fail;
2502 }
2503 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2504 return resultobj;
2505 fail:
2506 return NULL;
2507 }
2508
2509
2510 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2511 PyObject *resultobj;
2512 PyObject *arg1 = (PyObject *) 0 ;
2513 wxBitmap *result;
2514 PyObject * obj0 = 0 ;
2515 char *kwnames[] = {
2516 (char *) "listOfStrings", NULL
2517 };
2518
2519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2520 arg1 = obj0;
2521 {
2522 PyThreadState* __tstate = wxPyBeginAllowThreads();
2523 result = (wxBitmap *)new_wxBitmap(arg1);
2524
2525 wxPyEndAllowThreads(__tstate);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 }
2528 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2529 return resultobj;
2530 fail:
2531 return NULL;
2532 }
2533
2534
2535 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2536 PyObject *resultobj;
2537 PyObject *arg1 = (PyObject *) 0 ;
2538 int arg2 ;
2539 int arg3 ;
2540 int arg4 = (int) 1 ;
2541 wxBitmap *result;
2542 PyObject * obj0 = 0 ;
2543 PyObject * obj1 = 0 ;
2544 PyObject * obj2 = 0 ;
2545 PyObject * obj3 = 0 ;
2546 char *kwnames[] = {
2547 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2548 };
2549
2550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2551 arg1 = obj0;
2552 {
2553 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2554 if (PyErr_Occurred()) SWIG_fail;
2555 }
2556 {
2557 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2558 if (PyErr_Occurred()) SWIG_fail;
2559 }
2560 if (obj3) {
2561 {
2562 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2563 if (PyErr_Occurred()) SWIG_fail;
2564 }
2565 }
2566 {
2567 PyThreadState* __tstate = wxPyBeginAllowThreads();
2568 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2569
2570 wxPyEndAllowThreads(__tstate);
2571 if (PyErr_Occurred()) SWIG_fail;
2572 }
2573 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2574 return resultobj;
2575 fail:
2576 return NULL;
2577 }
2578
2579
2580 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2581 PyObject *resultobj;
2582 wxBitmap *arg1 = (wxBitmap *) 0 ;
2583 bool result;
2584 PyObject * obj0 = 0 ;
2585 char *kwnames[] = {
2586 (char *) "self", NULL
2587 };
2588
2589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2591 {
2592 PyThreadState* __tstate = wxPyBeginAllowThreads();
2593 result = (bool)(arg1)->Ok();
2594
2595 wxPyEndAllowThreads(__tstate);
2596 if (PyErr_Occurred()) SWIG_fail;
2597 }
2598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2599 return resultobj;
2600 fail:
2601 return NULL;
2602 }
2603
2604
2605 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2606 PyObject *resultobj;
2607 wxBitmap *arg1 = (wxBitmap *) 0 ;
2608 int result;
2609 PyObject * obj0 = 0 ;
2610 char *kwnames[] = {
2611 (char *) "self", NULL
2612 };
2613
2614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2616 {
2617 PyThreadState* __tstate = wxPyBeginAllowThreads();
2618 result = (int)(arg1)->GetWidth();
2619
2620 wxPyEndAllowThreads(__tstate);
2621 if (PyErr_Occurred()) SWIG_fail;
2622 }
2623 resultobj = SWIG_PyObj_FromInt((int)result);
2624 return resultobj;
2625 fail:
2626 return NULL;
2627 }
2628
2629
2630 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2631 PyObject *resultobj;
2632 wxBitmap *arg1 = (wxBitmap *) 0 ;
2633 int result;
2634 PyObject * obj0 = 0 ;
2635 char *kwnames[] = {
2636 (char *) "self", NULL
2637 };
2638
2639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2641 {
2642 PyThreadState* __tstate = wxPyBeginAllowThreads();
2643 result = (int)(arg1)->GetHeight();
2644
2645 wxPyEndAllowThreads(__tstate);
2646 if (PyErr_Occurred()) SWIG_fail;
2647 }
2648 resultobj = SWIG_PyObj_FromInt((int)result);
2649 return resultobj;
2650 fail:
2651 return NULL;
2652 }
2653
2654
2655 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2656 PyObject *resultobj;
2657 wxBitmap *arg1 = (wxBitmap *) 0 ;
2658 int result;
2659 PyObject * obj0 = 0 ;
2660 char *kwnames[] = {
2661 (char *) "self", NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2666 {
2667 PyThreadState* __tstate = wxPyBeginAllowThreads();
2668 result = (int)(arg1)->GetDepth();
2669
2670 wxPyEndAllowThreads(__tstate);
2671 if (PyErr_Occurred()) SWIG_fail;
2672 }
2673 resultobj = SWIG_PyObj_FromInt((int)result);
2674 return resultobj;
2675 fail:
2676 return NULL;
2677 }
2678
2679
2680 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2681 PyObject *resultobj;
2682 wxBitmap *arg1 = (wxBitmap *) 0 ;
2683 SwigValueWrapper< wxImage > result;
2684 PyObject * obj0 = 0 ;
2685 char *kwnames[] = {
2686 (char *) "self", NULL
2687 };
2688
2689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2691 {
2692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2693 result = ((wxBitmap const *)arg1)->ConvertToImage();
2694
2695 wxPyEndAllowThreads(__tstate);
2696 if (PyErr_Occurred()) SWIG_fail;
2697 }
2698 {
2699 wxImage * resultptr;
2700 resultptr = new wxImage((wxImage &) result);
2701 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2702 }
2703 return resultobj;
2704 fail:
2705 return NULL;
2706 }
2707
2708
2709 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2710 PyObject *resultobj;
2711 wxBitmap *arg1 = (wxBitmap *) 0 ;
2712 wxMask *result;
2713 PyObject * obj0 = 0 ;
2714 char *kwnames[] = {
2715 (char *) "self", NULL
2716 };
2717
2718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2720 {
2721 PyThreadState* __tstate = wxPyBeginAllowThreads();
2722 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2723
2724 wxPyEndAllowThreads(__tstate);
2725 if (PyErr_Occurred()) SWIG_fail;
2726 }
2727 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2728 return resultobj;
2729 fail:
2730 return NULL;
2731 }
2732
2733
2734 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject *resultobj;
2736 wxBitmap *arg1 = (wxBitmap *) 0 ;
2737 wxMask *arg2 = (wxMask *) 0 ;
2738 PyObject * obj0 = 0 ;
2739 PyObject * obj1 = 0 ;
2740 char *kwnames[] = {
2741 (char *) "self",(char *) "mask", NULL
2742 };
2743
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2746 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2747 {
2748 PyThreadState* __tstate = wxPyBeginAllowThreads();
2749 (arg1)->SetMask(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_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2762 PyObject *resultobj;
2763 wxBitmap *arg1 = (wxBitmap *) 0 ;
2764 wxColour *arg2 = 0 ;
2765 wxColour temp2 ;
2766 PyObject * obj0 = 0 ;
2767 PyObject * obj1 = 0 ;
2768 char *kwnames[] = {
2769 (char *) "self",(char *) "colour", NULL
2770 };
2771
2772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2774 {
2775 arg2 = &temp2;
2776 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2777 }
2778 {
2779 PyThreadState* __tstate = wxPyBeginAllowThreads();
2780 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2781
2782 wxPyEndAllowThreads(__tstate);
2783 if (PyErr_Occurred()) SWIG_fail;
2784 }
2785 Py_INCREF(Py_None); resultobj = Py_None;
2786 return resultobj;
2787 fail:
2788 return NULL;
2789 }
2790
2791
2792 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2793 PyObject *resultobj;
2794 wxBitmap *arg1 = (wxBitmap *) 0 ;
2795 wxRect *arg2 = 0 ;
2796 SwigValueWrapper< wxBitmap > result;
2797 wxRect temp2 ;
2798 PyObject * obj0 = 0 ;
2799 PyObject * obj1 = 0 ;
2800 char *kwnames[] = {
2801 (char *) "self",(char *) "rect", NULL
2802 };
2803
2804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2806 {
2807 arg2 = &temp2;
2808 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2809 }
2810 {
2811 PyThreadState* __tstate = wxPyBeginAllowThreads();
2812 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2813
2814 wxPyEndAllowThreads(__tstate);
2815 if (PyErr_Occurred()) SWIG_fail;
2816 }
2817 {
2818 wxBitmap * resultptr;
2819 resultptr = new wxBitmap((wxBitmap &) result);
2820 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2821 }
2822 return resultobj;
2823 fail:
2824 return NULL;
2825 }
2826
2827
2828 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2829 PyObject *resultobj;
2830 wxBitmap *arg1 = (wxBitmap *) 0 ;
2831 wxString *arg2 = 0 ;
2832 int arg3 ;
2833 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2834 bool result;
2835 bool temp2 = False ;
2836 PyObject * obj0 = 0 ;
2837 PyObject * obj1 = 0 ;
2838 PyObject * obj2 = 0 ;
2839 PyObject * obj3 = 0 ;
2840 char *kwnames[] = {
2841 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2842 };
2843
2844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2846 {
2847 arg2 = wxString_in_helper(obj1);
2848 if (arg2 == NULL) SWIG_fail;
2849 temp2 = True;
2850 }
2851 {
2852 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2853 if (PyErr_Occurred()) SWIG_fail;
2854 }
2855 if (obj3) {
2856 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2857 }
2858 {
2859 PyThreadState* __tstate = wxPyBeginAllowThreads();
2860 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2861
2862 wxPyEndAllowThreads(__tstate);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2866 {
2867 if (temp2)
2868 delete arg2;
2869 }
2870 return resultobj;
2871 fail:
2872 {
2873 if (temp2)
2874 delete arg2;
2875 }
2876 return NULL;
2877 }
2878
2879
2880 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2881 PyObject *resultobj;
2882 wxBitmap *arg1 = (wxBitmap *) 0 ;
2883 wxString *arg2 = 0 ;
2884 int arg3 ;
2885 bool result;
2886 bool temp2 = False ;
2887 PyObject * obj0 = 0 ;
2888 PyObject * obj1 = 0 ;
2889 PyObject * obj2 = 0 ;
2890 char *kwnames[] = {
2891 (char *) "self",(char *) "name",(char *) "type", NULL
2892 };
2893
2894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2896 {
2897 arg2 = wxString_in_helper(obj1);
2898 if (arg2 == NULL) SWIG_fail;
2899 temp2 = True;
2900 }
2901 {
2902 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2905 {
2906 PyThreadState* __tstate = wxPyBeginAllowThreads();
2907 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2908
2909 wxPyEndAllowThreads(__tstate);
2910 if (PyErr_Occurred()) SWIG_fail;
2911 }
2912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2913 {
2914 if (temp2)
2915 delete arg2;
2916 }
2917 return resultobj;
2918 fail:
2919 {
2920 if (temp2)
2921 delete arg2;
2922 }
2923 return NULL;
2924 }
2925
2926
2927 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2928 PyObject *resultobj;
2929 wxBitmap *arg1 = (wxBitmap *) 0 ;
2930 wxIcon *arg2 = 0 ;
2931 bool result;
2932 PyObject * obj0 = 0 ;
2933 PyObject * obj1 = 0 ;
2934 char *kwnames[] = {
2935 (char *) "self",(char *) "icon", NULL
2936 };
2937
2938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2940 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2941 if (arg2 == NULL) {
2942 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2943 }
2944 {
2945 PyThreadState* __tstate = wxPyBeginAllowThreads();
2946 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2947
2948 wxPyEndAllowThreads(__tstate);
2949 if (PyErr_Occurred()) SWIG_fail;
2950 }
2951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2952 return resultobj;
2953 fail:
2954 return NULL;
2955 }
2956
2957
2958 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2959 PyObject *resultobj;
2960 wxBitmap *arg1 = (wxBitmap *) 0 ;
2961 int arg2 ;
2962 PyObject * obj0 = 0 ;
2963 PyObject * obj1 = 0 ;
2964 char *kwnames[] = {
2965 (char *) "self",(char *) "height", NULL
2966 };
2967
2968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2970 {
2971 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2972 if (PyErr_Occurred()) SWIG_fail;
2973 }
2974 {
2975 PyThreadState* __tstate = wxPyBeginAllowThreads();
2976 (arg1)->SetHeight(arg2);
2977
2978 wxPyEndAllowThreads(__tstate);
2979 if (PyErr_Occurred()) SWIG_fail;
2980 }
2981 Py_INCREF(Py_None); resultobj = Py_None;
2982 return resultobj;
2983 fail:
2984 return NULL;
2985 }
2986
2987
2988 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2989 PyObject *resultobj;
2990 wxBitmap *arg1 = (wxBitmap *) 0 ;
2991 int arg2 ;
2992 PyObject * obj0 = 0 ;
2993 PyObject * obj1 = 0 ;
2994 char *kwnames[] = {
2995 (char *) "self",(char *) "width", NULL
2996 };
2997
2998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3000 {
3001 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3002 if (PyErr_Occurred()) SWIG_fail;
3003 }
3004 {
3005 PyThreadState* __tstate = wxPyBeginAllowThreads();
3006 (arg1)->SetWidth(arg2);
3007
3008 wxPyEndAllowThreads(__tstate);
3009 if (PyErr_Occurred()) SWIG_fail;
3010 }
3011 Py_INCREF(Py_None); resultobj = Py_None;
3012 return resultobj;
3013 fail:
3014 return NULL;
3015 }
3016
3017
3018 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3019 PyObject *resultobj;
3020 wxBitmap *arg1 = (wxBitmap *) 0 ;
3021 int arg2 ;
3022 PyObject * obj0 = 0 ;
3023 PyObject * obj1 = 0 ;
3024 char *kwnames[] = {
3025 (char *) "self",(char *) "depth", NULL
3026 };
3027
3028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3030 {
3031 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3032 if (PyErr_Occurred()) SWIG_fail;
3033 }
3034 {
3035 PyThreadState* __tstate = wxPyBeginAllowThreads();
3036 (arg1)->SetDepth(arg2);
3037
3038 wxPyEndAllowThreads(__tstate);
3039 if (PyErr_Occurred()) SWIG_fail;
3040 }
3041 Py_INCREF(Py_None); resultobj = Py_None;
3042 return resultobj;
3043 fail:
3044 return NULL;
3045 }
3046
3047
3048 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3049 PyObject *obj;
3050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3051 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3052 Py_INCREF(obj);
3053 return Py_BuildValue((char *)"");
3054 }
3055 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3056 PyObject *resultobj;
3057 wxBitmap *arg1 = 0 ;
3058 wxMask *result;
3059 PyObject * obj0 = 0 ;
3060 char *kwnames[] = {
3061 (char *) "bitmap", NULL
3062 };
3063
3064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
3065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3066 if (arg1 == NULL) {
3067 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3068 }
3069 {
3070 PyThreadState* __tstate = wxPyBeginAllowThreads();
3071 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
3072
3073 wxPyEndAllowThreads(__tstate);
3074 if (PyErr_Occurred()) SWIG_fail;
3075 }
3076 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3077 return resultobj;
3078 fail:
3079 return NULL;
3080 }
3081
3082
3083 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3084 PyObject *resultobj;
3085 wxBitmap *arg1 = 0 ;
3086 wxColour *arg2 = 0 ;
3087 wxMask *result;
3088 wxColour temp2 ;
3089 PyObject * obj0 = 0 ;
3090 PyObject * obj1 = 0 ;
3091 char *kwnames[] = {
3092 (char *) "bitmap",(char *) "colour", NULL
3093 };
3094
3095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3097 if (arg1 == NULL) {
3098 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3099 }
3100 {
3101 arg2 = &temp2;
3102 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3103 }
3104 {
3105 PyThreadState* __tstate = wxPyBeginAllowThreads();
3106 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3107
3108 wxPyEndAllowThreads(__tstate);
3109 if (PyErr_Occurred()) SWIG_fail;
3110 }
3111 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3112 return resultobj;
3113 fail:
3114 return NULL;
3115 }
3116
3117
3118 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3119 PyObject *obj;
3120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3121 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3122 Py_INCREF(obj);
3123 return Py_BuildValue((char *)"");
3124 }
3125 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3126 PyObject *resultobj;
3127 wxString *arg1 = 0 ;
3128 int arg2 ;
3129 int arg3 = (int) -1 ;
3130 int arg4 = (int) -1 ;
3131 wxIcon *result;
3132 bool temp1 = False ;
3133 PyObject * obj0 = 0 ;
3134 PyObject * obj1 = 0 ;
3135 PyObject * obj2 = 0 ;
3136 PyObject * obj3 = 0 ;
3137 char *kwnames[] = {
3138 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3139 };
3140
3141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3142 {
3143 arg1 = wxString_in_helper(obj0);
3144 if (arg1 == NULL) SWIG_fail;
3145 temp1 = True;
3146 }
3147 {
3148 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 }
3151 if (obj2) {
3152 {
3153 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 }
3157 if (obj3) {
3158 {
3159 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3160 if (PyErr_Occurred()) SWIG_fail;
3161 }
3162 }
3163 {
3164 PyThreadState* __tstate = wxPyBeginAllowThreads();
3165 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3166
3167 wxPyEndAllowThreads(__tstate);
3168 if (PyErr_Occurred()) SWIG_fail;
3169 }
3170 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3171 {
3172 if (temp1)
3173 delete arg1;
3174 }
3175 return resultobj;
3176 fail:
3177 {
3178 if (temp1)
3179 delete arg1;
3180 }
3181 return NULL;
3182 }
3183
3184
3185 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3186 PyObject *resultobj;
3187 wxIcon *arg1 = (wxIcon *) 0 ;
3188 PyObject * obj0 = 0 ;
3189 char *kwnames[] = {
3190 (char *) "self", NULL
3191 };
3192
3193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3195 {
3196 PyThreadState* __tstate = wxPyBeginAllowThreads();
3197 delete arg1;
3198
3199 wxPyEndAllowThreads(__tstate);
3200 if (PyErr_Occurred()) SWIG_fail;
3201 }
3202 Py_INCREF(Py_None); resultobj = Py_None;
3203 return resultobj;
3204 fail:
3205 return NULL;
3206 }
3207
3208
3209 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3210 PyObject *resultobj;
3211 wxIcon *result;
3212 char *kwnames[] = {
3213 NULL
3214 };
3215
3216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3217 {
3218 PyThreadState* __tstate = wxPyBeginAllowThreads();
3219 result = (wxIcon *)new wxIcon();
3220
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3225 return resultobj;
3226 fail:
3227 return NULL;
3228 }
3229
3230
3231 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3232 PyObject *resultobj;
3233 wxIconLocation *arg1 = 0 ;
3234 wxIcon *result;
3235 PyObject * obj0 = 0 ;
3236 char *kwnames[] = {
3237 (char *) "loc", NULL
3238 };
3239
3240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3242 if (arg1 == NULL) {
3243 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3244 }
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3253 return resultobj;
3254 fail:
3255 return NULL;
3256 }
3257
3258
3259 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3260 PyObject *resultobj;
3261 wxBitmap *arg1 = 0 ;
3262 wxIcon *result;
3263 PyObject * obj0 = 0 ;
3264 char *kwnames[] = {
3265 (char *) "bmp", NULL
3266 };
3267
3268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3270 if (arg1 == NULL) {
3271 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3272 }
3273 {
3274 PyThreadState* __tstate = wxPyBeginAllowThreads();
3275 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3276
3277 wxPyEndAllowThreads(__tstate);
3278 if (PyErr_Occurred()) SWIG_fail;
3279 }
3280 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3281 return resultobj;
3282 fail:
3283 return NULL;
3284 }
3285
3286
3287 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3288 PyObject *resultobj;
3289 PyObject *arg1 = (PyObject *) 0 ;
3290 wxIcon *result;
3291 PyObject * obj0 = 0 ;
3292 char *kwnames[] = {
3293 (char *) "listOfStrings", NULL
3294 };
3295
3296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3297 arg1 = obj0;
3298 {
3299 PyThreadState* __tstate = wxPyBeginAllowThreads();
3300 result = (wxIcon *)new_wxIcon(arg1);
3301
3302 wxPyEndAllowThreads(__tstate);
3303 if (PyErr_Occurred()) SWIG_fail;
3304 }
3305 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3306 return resultobj;
3307 fail:
3308 return NULL;
3309 }
3310
3311
3312 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3313 PyObject *resultobj;
3314 wxIcon *arg1 = (wxIcon *) 0 ;
3315 wxString *arg2 = 0 ;
3316 int arg3 ;
3317 bool result;
3318 bool temp2 = False ;
3319 PyObject * obj0 = 0 ;
3320 PyObject * obj1 = 0 ;
3321 PyObject * obj2 = 0 ;
3322 char *kwnames[] = {
3323 (char *) "self",(char *) "name",(char *) "type", NULL
3324 };
3325
3326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3328 {
3329 arg2 = wxString_in_helper(obj1);
3330 if (arg2 == NULL) SWIG_fail;
3331 temp2 = True;
3332 }
3333 {
3334 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3335 if (PyErr_Occurred()) SWIG_fail;
3336 }
3337 {
3338 PyThreadState* __tstate = wxPyBeginAllowThreads();
3339 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3340
3341 wxPyEndAllowThreads(__tstate);
3342 if (PyErr_Occurred()) SWIG_fail;
3343 }
3344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3345 {
3346 if (temp2)
3347 delete arg2;
3348 }
3349 return resultobj;
3350 fail:
3351 {
3352 if (temp2)
3353 delete arg2;
3354 }
3355 return NULL;
3356 }
3357
3358
3359 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3360 PyObject *resultobj;
3361 wxIcon *arg1 = (wxIcon *) 0 ;
3362 bool result;
3363 PyObject * obj0 = 0 ;
3364 char *kwnames[] = {
3365 (char *) "self", NULL
3366 };
3367
3368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3370 {
3371 PyThreadState* __tstate = wxPyBeginAllowThreads();
3372 result = (bool)(arg1)->Ok();
3373
3374 wxPyEndAllowThreads(__tstate);
3375 if (PyErr_Occurred()) SWIG_fail;
3376 }
3377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3378 return resultobj;
3379 fail:
3380 return NULL;
3381 }
3382
3383
3384 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3385 PyObject *resultobj;
3386 wxIcon *arg1 = (wxIcon *) 0 ;
3387 int result;
3388 PyObject * obj0 = 0 ;
3389 char *kwnames[] = {
3390 (char *) "self", NULL
3391 };
3392
3393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3395 {
3396 PyThreadState* __tstate = wxPyBeginAllowThreads();
3397 result = (int)(arg1)->GetWidth();
3398
3399 wxPyEndAllowThreads(__tstate);
3400 if (PyErr_Occurred()) SWIG_fail;
3401 }
3402 resultobj = SWIG_PyObj_FromInt((int)result);
3403 return resultobj;
3404 fail:
3405 return NULL;
3406 }
3407
3408
3409 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3410 PyObject *resultobj;
3411 wxIcon *arg1 = (wxIcon *) 0 ;
3412 int result;
3413 PyObject * obj0 = 0 ;
3414 char *kwnames[] = {
3415 (char *) "self", NULL
3416 };
3417
3418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = (int)(arg1)->GetHeight();
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 resultobj = SWIG_PyObj_FromInt((int)result);
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxIcon *arg1 = (wxIcon *) 0 ;
3437 int result;
3438 PyObject * obj0 = 0 ;
3439 char *kwnames[] = {
3440 (char *) "self", NULL
3441 };
3442
3443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 result = (int)(arg1)->GetDepth();
3448
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 resultobj = SWIG_PyObj_FromInt((int)result);
3453 return resultobj;
3454 fail:
3455 return NULL;
3456 }
3457
3458
3459 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3460 PyObject *resultobj;
3461 wxIcon *arg1 = (wxIcon *) 0 ;
3462 int arg2 ;
3463 PyObject * obj0 = 0 ;
3464 PyObject * obj1 = 0 ;
3465 char *kwnames[] = {
3466 (char *) "self",(char *) "w", NULL
3467 };
3468
3469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3471 {
3472 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 {
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 (arg1)->SetWidth(arg2);
3478
3479 wxPyEndAllowThreads(__tstate);
3480 if (PyErr_Occurred()) SWIG_fail;
3481 }
3482 Py_INCREF(Py_None); resultobj = Py_None;
3483 return resultobj;
3484 fail:
3485 return NULL;
3486 }
3487
3488
3489 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3490 PyObject *resultobj;
3491 wxIcon *arg1 = (wxIcon *) 0 ;
3492 int arg2 ;
3493 PyObject * obj0 = 0 ;
3494 PyObject * obj1 = 0 ;
3495 char *kwnames[] = {
3496 (char *) "self",(char *) "h", NULL
3497 };
3498
3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3501 {
3502 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 {
3506 PyThreadState* __tstate = wxPyBeginAllowThreads();
3507 (arg1)->SetHeight(arg2);
3508
3509 wxPyEndAllowThreads(__tstate);
3510 if (PyErr_Occurred()) SWIG_fail;
3511 }
3512 Py_INCREF(Py_None); resultobj = Py_None;
3513 return resultobj;
3514 fail:
3515 return NULL;
3516 }
3517
3518
3519 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3520 PyObject *resultobj;
3521 wxIcon *arg1 = (wxIcon *) 0 ;
3522 int arg2 ;
3523 PyObject * obj0 = 0 ;
3524 PyObject * obj1 = 0 ;
3525 char *kwnames[] = {
3526 (char *) "self",(char *) "d", NULL
3527 };
3528
3529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3531 {
3532 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 {
3536 PyThreadState* __tstate = wxPyBeginAllowThreads();
3537 (arg1)->SetDepth(arg2);
3538
3539 wxPyEndAllowThreads(__tstate);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 Py_INCREF(Py_None); resultobj = Py_None;
3543 return resultobj;
3544 fail:
3545 return NULL;
3546 }
3547
3548
3549 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3550 PyObject *resultobj;
3551 wxIcon *arg1 = (wxIcon *) 0 ;
3552 wxBitmap *arg2 = 0 ;
3553 PyObject * obj0 = 0 ;
3554 PyObject * obj1 = 0 ;
3555 char *kwnames[] = {
3556 (char *) "self",(char *) "bmp", NULL
3557 };
3558
3559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3561 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3562 if (arg2 == NULL) {
3563 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3564 }
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 Py_INCREF(Py_None); resultobj = Py_None;
3573 return resultobj;
3574 fail:
3575 return NULL;
3576 }
3577
3578
3579 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3580 PyObject *obj;
3581 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3582 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3583 Py_INCREF(obj);
3584 return Py_BuildValue((char *)"");
3585 }
3586 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3587 PyObject *resultobj;
3588 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3589 int arg2 = (int) 0 ;
3590 wxIconLocation *result;
3591 bool temp1 = False ;
3592 PyObject * obj0 = 0 ;
3593 PyObject * obj1 = 0 ;
3594 char *kwnames[] = {
3595 (char *) "filename",(char *) "num", NULL
3596 };
3597
3598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3599 if (obj0) {
3600 {
3601 arg1 = wxString_in_helper(obj0);
3602 if (arg1 == NULL) SWIG_fail;
3603 temp1 = True;
3604 }
3605 }
3606 if (obj1) {
3607 {
3608 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3609 if (PyErr_Occurred()) SWIG_fail;
3610 }
3611 }
3612 {
3613 PyThreadState* __tstate = wxPyBeginAllowThreads();
3614 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3615
3616 wxPyEndAllowThreads(__tstate);
3617 if (PyErr_Occurred()) SWIG_fail;
3618 }
3619 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3620 {
3621 if (temp1)
3622 delete arg1;
3623 }
3624 return resultobj;
3625 fail:
3626 {
3627 if (temp1)
3628 delete arg1;
3629 }
3630 return NULL;
3631 }
3632
3633
3634 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3635 PyObject *resultobj;
3636 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3637 PyObject * obj0 = 0 ;
3638 char *kwnames[] = {
3639 (char *) "self", NULL
3640 };
3641
3642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 delete arg1;
3647
3648 wxPyEndAllowThreads(__tstate);
3649 if (PyErr_Occurred()) SWIG_fail;
3650 }
3651 Py_INCREF(Py_None); resultobj = Py_None;
3652 return resultobj;
3653 fail:
3654 return NULL;
3655 }
3656
3657
3658 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3659 PyObject *resultobj;
3660 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3661 bool result;
3662 PyObject * obj0 = 0 ;
3663 char *kwnames[] = {
3664 (char *) "self", NULL
3665 };
3666
3667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3669 {
3670 PyThreadState* __tstate = wxPyBeginAllowThreads();
3671 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3672
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) SWIG_fail;
3675 }
3676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3677 return resultobj;
3678 fail:
3679 return NULL;
3680 }
3681
3682
3683 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject *resultobj;
3685 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3686 wxString *arg2 = 0 ;
3687 bool temp2 = False ;
3688 PyObject * obj0 = 0 ;
3689 PyObject * obj1 = 0 ;
3690 char *kwnames[] = {
3691 (char *) "self",(char *) "filename", NULL
3692 };
3693
3694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3696 {
3697 arg2 = wxString_in_helper(obj1);
3698 if (arg2 == NULL) SWIG_fail;
3699 temp2 = True;
3700 }
3701 {
3702 PyThreadState* __tstate = wxPyBeginAllowThreads();
3703 (arg1)->SetFileName((wxString const &)*arg2);
3704
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 Py_INCREF(Py_None); resultobj = Py_None;
3709 {
3710 if (temp2)
3711 delete arg2;
3712 }
3713 return resultobj;
3714 fail:
3715 {
3716 if (temp2)
3717 delete arg2;
3718 }
3719 return NULL;
3720 }
3721
3722
3723 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3724 PyObject *resultobj;
3725 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3726 wxString *result;
3727 PyObject * obj0 = 0 ;
3728 char *kwnames[] = {
3729 (char *) "self", NULL
3730 };
3731
3732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3734 {
3735 PyThreadState* __tstate = wxPyBeginAllowThreads();
3736 {
3737 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3738 result = (wxString *) &_result_ref;
3739 }
3740
3741 wxPyEndAllowThreads(__tstate);
3742 if (PyErr_Occurred()) SWIG_fail;
3743 }
3744 {
3745 #if wxUSE_UNICODE
3746 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3747 #else
3748 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3749 #endif
3750 }
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3758 PyObject *resultobj;
3759 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3760 int arg2 ;
3761 PyObject * obj0 = 0 ;
3762 PyObject * obj1 = 0 ;
3763 char *kwnames[] = {
3764 (char *) "self",(char *) "num", NULL
3765 };
3766
3767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
3768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3769 {
3770 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 {
3774 PyThreadState* __tstate = wxPyBeginAllowThreads();
3775 wxIconLocation_SetIndex(arg1,arg2);
3776
3777 wxPyEndAllowThreads(__tstate);
3778 if (PyErr_Occurred()) SWIG_fail;
3779 }
3780 Py_INCREF(Py_None); resultobj = Py_None;
3781 return resultobj;
3782 fail:
3783 return NULL;
3784 }
3785
3786
3787 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3788 PyObject *resultobj;
3789 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3790 int result;
3791 PyObject * obj0 = 0 ;
3792 char *kwnames[] = {
3793 (char *) "self", NULL
3794 };
3795
3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3798 {
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 result = (int)wxIconLocation_GetIndex(arg1);
3801
3802 wxPyEndAllowThreads(__tstate);
3803 if (PyErr_Occurred()) SWIG_fail;
3804 }
3805 resultobj = SWIG_PyObj_FromInt((int)result);
3806 return resultobj;
3807 fail:
3808 return NULL;
3809 }
3810
3811
3812 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3813 PyObject *obj;
3814 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3815 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3816 Py_INCREF(obj);
3817 return Py_BuildValue((char *)"");
3818 }
3819 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3820 PyObject *resultobj;
3821 wxIconBundle *result;
3822 char *kwnames[] = {
3823 NULL
3824 };
3825
3826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3827 {
3828 PyThreadState* __tstate = wxPyBeginAllowThreads();
3829 result = (wxIconBundle *)new wxIconBundle();
3830
3831 wxPyEndAllowThreads(__tstate);
3832 if (PyErr_Occurred()) SWIG_fail;
3833 }
3834 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3835 return resultobj;
3836 fail:
3837 return NULL;
3838 }
3839
3840
3841 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3842 PyObject *resultobj;
3843 wxString *arg1 = 0 ;
3844 long arg2 ;
3845 wxIconBundle *result;
3846 bool temp1 = False ;
3847 PyObject * obj0 = 0 ;
3848 PyObject * obj1 = 0 ;
3849 char *kwnames[] = {
3850 (char *) "file",(char *) "type", NULL
3851 };
3852
3853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
3854 {
3855 arg1 = wxString_in_helper(obj0);
3856 if (arg1 == NULL) SWIG_fail;
3857 temp1 = True;
3858 }
3859 {
3860 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 {
3864 PyThreadState* __tstate = wxPyBeginAllowThreads();
3865 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3866
3867 wxPyEndAllowThreads(__tstate);
3868 if (PyErr_Occurred()) SWIG_fail;
3869 }
3870 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3871 {
3872 if (temp1)
3873 delete arg1;
3874 }
3875 return resultobj;
3876 fail:
3877 {
3878 if (temp1)
3879 delete arg1;
3880 }
3881 return NULL;
3882 }
3883
3884
3885 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3886 PyObject *resultobj;
3887 wxIcon *arg1 = 0 ;
3888 wxIconBundle *result;
3889 PyObject * obj0 = 0 ;
3890 char *kwnames[] = {
3891 (char *) "icon", NULL
3892 };
3893
3894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3896 if (arg1 == NULL) {
3897 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3898 }
3899 {
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3902
3903 wxPyEndAllowThreads(__tstate);
3904 if (PyErr_Occurred()) SWIG_fail;
3905 }
3906 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3907 return resultobj;
3908 fail:
3909 return NULL;
3910 }
3911
3912
3913 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3914 PyObject *resultobj;
3915 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3916 PyObject * obj0 = 0 ;
3917 char *kwnames[] = {
3918 (char *) "self", NULL
3919 };
3920
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 delete arg1;
3926
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 Py_INCREF(Py_None); resultobj = Py_None;
3931 return resultobj;
3932 fail:
3933 return NULL;
3934 }
3935
3936
3937 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3940 wxIcon *arg2 = 0 ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 char *kwnames[] = {
3944 (char *) "self",(char *) "icon", NULL
3945 };
3946
3947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3949 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3950 if (arg2 == NULL) {
3951 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3952 }
3953 {
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 (arg1)->AddIcon((wxIcon const &)*arg2);
3956
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 Py_INCREF(Py_None); resultobj = Py_None;
3961 return resultobj;
3962 fail:
3963 return NULL;
3964 }
3965
3966
3967 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3968 PyObject *resultobj;
3969 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3970 wxString *arg2 = 0 ;
3971 long arg3 ;
3972 bool temp2 = False ;
3973 PyObject * obj0 = 0 ;
3974 PyObject * obj1 = 0 ;
3975 PyObject * obj2 = 0 ;
3976 char *kwnames[] = {
3977 (char *) "self",(char *) "file",(char *) "type", NULL
3978 };
3979
3980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3982 {
3983 arg2 = wxString_in_helper(obj1);
3984 if (arg2 == NULL) SWIG_fail;
3985 temp2 = True;
3986 }
3987 {
3988 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3989 if (PyErr_Occurred()) SWIG_fail;
3990 }
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3994
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 Py_INCREF(Py_None); resultobj = Py_None;
3999 {
4000 if (temp2)
4001 delete arg2;
4002 }
4003 return resultobj;
4004 fail:
4005 {
4006 if (temp2)
4007 delete arg2;
4008 }
4009 return NULL;
4010 }
4011
4012
4013 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4014 PyObject *resultobj;
4015 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4016 wxSize *arg2 = 0 ;
4017 wxIcon *result;
4018 wxSize temp2 ;
4019 PyObject * obj0 = 0 ;
4020 PyObject * obj1 = 0 ;
4021 char *kwnames[] = {
4022 (char *) "self",(char *) "size", NULL
4023 };
4024
4025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4027 {
4028 arg2 = &temp2;
4029 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4030 }
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 {
4034 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4035 result = (wxIcon *) &_result_ref;
4036 }
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4042 return resultobj;
4043 fail:
4044 return NULL;
4045 }
4046
4047
4048 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4049 PyObject *obj;
4050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4051 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4052 Py_INCREF(obj);
4053 return Py_BuildValue((char *)"");
4054 }
4055 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4056 PyObject *resultobj;
4057 wxString *arg1 = (wxString *) 0 ;
4058 long arg2 ;
4059 int arg3 = (int) 0 ;
4060 int arg4 = (int) 0 ;
4061 wxCursor *result;
4062 bool temp1 = False ;
4063 PyObject * obj0 = 0 ;
4064 PyObject * obj1 = 0 ;
4065 PyObject * obj2 = 0 ;
4066 PyObject * obj3 = 0 ;
4067 char *kwnames[] = {
4068 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4069 };
4070
4071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4072 {
4073 arg1 = wxString_in_helper(obj0);
4074 if (arg1 == NULL) SWIG_fail;
4075 temp1 = True;
4076 }
4077 {
4078 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4079 if (PyErr_Occurred()) SWIG_fail;
4080 }
4081 if (obj2) {
4082 {
4083 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 }
4087 if (obj3) {
4088 {
4089 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 }
4092 }
4093 {
4094 PyThreadState* __tstate = wxPyBeginAllowThreads();
4095 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4096
4097 wxPyEndAllowThreads(__tstate);
4098 if (PyErr_Occurred()) SWIG_fail;
4099 }
4100 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4101 {
4102 if (temp1)
4103 delete arg1;
4104 }
4105 return resultobj;
4106 fail:
4107 {
4108 if (temp1)
4109 delete arg1;
4110 }
4111 return NULL;
4112 }
4113
4114
4115 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4116 PyObject *resultobj;
4117 wxCursor *arg1 = (wxCursor *) 0 ;
4118 PyObject * obj0 = 0 ;
4119 char *kwnames[] = {
4120 (char *) "self", NULL
4121 };
4122
4123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4125 {
4126 PyThreadState* __tstate = wxPyBeginAllowThreads();
4127 delete arg1;
4128
4129 wxPyEndAllowThreads(__tstate);
4130 if (PyErr_Occurred()) SWIG_fail;
4131 }
4132 Py_INCREF(Py_None); resultobj = Py_None;
4133 return resultobj;
4134 fail:
4135 return NULL;
4136 }
4137
4138
4139 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4140 PyObject *resultobj;
4141 int arg1 ;
4142 wxCursor *result;
4143 PyObject * obj0 = 0 ;
4144 char *kwnames[] = {
4145 (char *) "id", NULL
4146 };
4147
4148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4149 {
4150 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 result = (wxCursor *)new wxCursor(arg1);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4161 return resultobj;
4162 fail:
4163 return NULL;
4164 }
4165
4166
4167 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4168 PyObject *resultobj;
4169 wxImage *arg1 = 0 ;
4170 wxCursor *result;
4171 PyObject * obj0 = 0 ;
4172 char *kwnames[] = {
4173 (char *) "image", NULL
4174 };
4175
4176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4178 if (arg1 == NULL) {
4179 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4180 }
4181 {
4182 PyThreadState* __tstate = wxPyBeginAllowThreads();
4183 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4184
4185 wxPyEndAllowThreads(__tstate);
4186 if (PyErr_Occurred()) SWIG_fail;
4187 }
4188 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4189 return resultobj;
4190 fail:
4191 return NULL;
4192 }
4193
4194
4195 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4196 PyObject *resultobj;
4197 PyObject *arg1 = (PyObject *) 0 ;
4198 int arg2 ;
4199 int arg3 ;
4200 int arg4 = (int) -1 ;
4201 int arg5 = (int) -1 ;
4202 PyObject *arg6 = (PyObject *) 0 ;
4203 wxCursor *result;
4204 PyObject * obj0 = 0 ;
4205 PyObject * obj1 = 0 ;
4206 PyObject * obj2 = 0 ;
4207 PyObject * obj3 = 0 ;
4208 PyObject * obj4 = 0 ;
4209 PyObject * obj5 = 0 ;
4210 char *kwnames[] = {
4211 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4212 };
4213
4214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4215 arg1 = obj0;
4216 {
4217 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4218 if (PyErr_Occurred()) SWIG_fail;
4219 }
4220 {
4221 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 if (obj3) {
4225 {
4226 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 }
4230 if (obj4) {
4231 {
4232 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 }
4236 if (obj5) {
4237 arg6 = obj5;
4238 }
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4247 return resultobj;
4248 fail:
4249 return NULL;
4250 }
4251
4252
4253 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject *resultobj;
4255 wxCursor *arg1 = (wxCursor *) 0 ;
4256 bool result;
4257 PyObject * obj0 = 0 ;
4258 char *kwnames[] = {
4259 (char *) "self", NULL
4260 };
4261
4262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4264 {
4265 PyThreadState* __tstate = wxPyBeginAllowThreads();
4266 result = (bool)(arg1)->Ok();
4267
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4272 return resultobj;
4273 fail:
4274 return NULL;
4275 }
4276
4277
4278 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4279 PyObject *obj;
4280 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4281 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4282 Py_INCREF(obj);
4283 return Py_BuildValue((char *)"");
4284 }
4285 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject *resultobj;
4287 int arg1 = (int) 0 ;
4288 int arg2 = (int) 0 ;
4289 int arg3 = (int) 0 ;
4290 int arg4 = (int) 0 ;
4291 wxRegion *result;
4292 PyObject * obj0 = 0 ;
4293 PyObject * obj1 = 0 ;
4294 PyObject * obj2 = 0 ;
4295 PyObject * obj3 = 0 ;
4296 char *kwnames[] = {
4297 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4298 };
4299
4300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4301 if (obj0) {
4302 {
4303 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 }
4307 if (obj1) {
4308 {
4309 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 }
4313 if (obj2) {
4314 {
4315 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 }
4319 if (obj3) {
4320 {
4321 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4322 if (PyErr_Occurred()) SWIG_fail;
4323 }
4324 }
4325 {
4326 PyThreadState* __tstate = wxPyBeginAllowThreads();
4327 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4328
4329 wxPyEndAllowThreads(__tstate);
4330 if (PyErr_Occurred()) SWIG_fail;
4331 }
4332 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4333 return resultobj;
4334 fail:
4335 return NULL;
4336 }
4337
4338
4339 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4340 PyObject *resultobj;
4341 wxBitmap *arg1 = 0 ;
4342 wxColour const &arg2_defvalue = wxNullColour ;
4343 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4344 int arg3 = (int) 0 ;
4345 wxRegion *result;
4346 wxColour temp2 ;
4347 PyObject * obj0 = 0 ;
4348 PyObject * obj1 = 0 ;
4349 PyObject * obj2 = 0 ;
4350 char *kwnames[] = {
4351 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4352 };
4353
4354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4356 if (arg1 == NULL) {
4357 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4358 }
4359 if (obj1) {
4360 {
4361 arg2 = &temp2;
4362 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4363 }
4364 }
4365 if (obj2) {
4366 {
4367 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4368 if (PyErr_Occurred()) SWIG_fail;
4369 }
4370 }
4371 {
4372 PyThreadState* __tstate = wxPyBeginAllowThreads();
4373 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4374
4375 wxPyEndAllowThreads(__tstate);
4376 if (PyErr_Occurred()) SWIG_fail;
4377 }
4378 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4379 return resultobj;
4380 fail:
4381 return NULL;
4382 }
4383
4384
4385 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4386 PyObject *resultobj;
4387 int arg1 ;
4388 wxPoint *arg2 = (wxPoint *) 0 ;
4389 int arg3 = (int) wxWINDING_RULE ;
4390 wxRegion *result;
4391 PyObject * obj0 = 0 ;
4392 PyObject * obj1 = 0 ;
4393 char *kwnames[] = {
4394 (char *) "points",(char *) "fillStyle", NULL
4395 };
4396
4397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4398 {
4399 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4400 if (arg2 == NULL) SWIG_fail;
4401 }
4402 if (obj1) {
4403 {
4404 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4405 if (PyErr_Occurred()) SWIG_fail;
4406 }
4407 }
4408 {
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4411
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4416 {
4417 if (arg2) delete [] arg2;
4418 }
4419 return resultobj;
4420 fail:
4421 {
4422 if (arg2) delete [] arg2;
4423 }
4424 return NULL;
4425 }
4426
4427
4428 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4429 PyObject *resultobj;
4430 wxRegion *arg1 = (wxRegion *) 0 ;
4431 PyObject * obj0 = 0 ;
4432 char *kwnames[] = {
4433 (char *) "self", NULL
4434 };
4435
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 delete arg1;
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 Py_INCREF(Py_None); resultobj = Py_None;
4446 return resultobj;
4447 fail:
4448 return NULL;
4449 }
4450
4451
4452 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4453 PyObject *resultobj;
4454 wxRegion *arg1 = (wxRegion *) 0 ;
4455 PyObject * obj0 = 0 ;
4456 char *kwnames[] = {
4457 (char *) "self", NULL
4458 };
4459
4460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4462 {
4463 PyThreadState* __tstate = wxPyBeginAllowThreads();
4464 (arg1)->Clear();
4465
4466 wxPyEndAllowThreads(__tstate);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 Py_INCREF(Py_None); resultobj = Py_None;
4470 return resultobj;
4471 fail:
4472 return NULL;
4473 }
4474
4475
4476 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4477 PyObject *resultobj;
4478 wxRegion *arg1 = (wxRegion *) 0 ;
4479 int arg2 ;
4480 int arg3 ;
4481 bool result;
4482 PyObject * obj0 = 0 ;
4483 PyObject * obj1 = 0 ;
4484 PyObject * obj2 = 0 ;
4485 char *kwnames[] = {
4486 (char *) "self",(char *) "x",(char *) "y", NULL
4487 };
4488
4489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4491 {
4492 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 }
4495 {
4496 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 {
4500 PyThreadState* __tstate = wxPyBeginAllowThreads();
4501 result = (bool)(arg1)->Offset(arg2,arg3);
4502
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4507 return resultobj;
4508 fail:
4509 return NULL;
4510 }
4511
4512
4513 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj;
4515 wxRegion *arg1 = (wxRegion *) 0 ;
4516 int arg2 ;
4517 int arg3 ;
4518 int result;
4519 PyObject * obj0 = 0 ;
4520 PyObject * obj1 = 0 ;
4521 PyObject * obj2 = 0 ;
4522 char *kwnames[] = {
4523 (char *) "self",(char *) "x",(char *) "y", NULL
4524 };
4525
4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4528 {
4529 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 {
4533 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4534 if (PyErr_Occurred()) SWIG_fail;
4535 }
4536 {
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
4538 result = (int)(arg1)->Contains(arg2,arg3);
4539
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = SWIG_PyObj_FromInt((int)result);
4544 return resultobj;
4545 fail:
4546 return NULL;
4547 }
4548
4549
4550 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj;
4552 wxRegion *arg1 = (wxRegion *) 0 ;
4553 wxPoint *arg2 = 0 ;
4554 int result;
4555 wxPoint temp2 ;
4556 PyObject * obj0 = 0 ;
4557 PyObject * obj1 = 0 ;
4558 char *kwnames[] = {
4559 (char *) "self",(char *) "pt", NULL
4560 };
4561
4562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4564 {
4565 arg2 = &temp2;
4566 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4567 }
4568 {
4569 PyThreadState* __tstate = wxPyBeginAllowThreads();
4570 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4571
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 resultobj = SWIG_PyObj_FromInt((int)result);
4576 return resultobj;
4577 fail:
4578 return NULL;
4579 }
4580
4581
4582 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4583 PyObject *resultobj;
4584 wxRegion *arg1 = (wxRegion *) 0 ;
4585 wxRect *arg2 = 0 ;
4586 int result;
4587 wxRect temp2 ;
4588 PyObject * obj0 = 0 ;
4589 PyObject * obj1 = 0 ;
4590 char *kwnames[] = {
4591 (char *) "self",(char *) "rect", NULL
4592 };
4593
4594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4596 {
4597 arg2 = &temp2;
4598 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4599 }
4600 {
4601 PyThreadState* __tstate = wxPyBeginAllowThreads();
4602 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4603
4604 wxPyEndAllowThreads(__tstate);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 resultobj = SWIG_PyObj_FromInt((int)result);
4608 return resultobj;
4609 fail:
4610 return NULL;
4611 }
4612
4613
4614 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4615 PyObject *resultobj;
4616 wxRegion *arg1 = (wxRegion *) 0 ;
4617 int arg2 ;
4618 int arg3 ;
4619 int arg4 ;
4620 int arg5 ;
4621 int result;
4622 PyObject * obj0 = 0 ;
4623 PyObject * obj1 = 0 ;
4624 PyObject * obj2 = 0 ;
4625 PyObject * obj3 = 0 ;
4626 PyObject * obj4 = 0 ;
4627 char *kwnames[] = {
4628 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4629 };
4630
4631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4633 {
4634 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4635 if (PyErr_Occurred()) SWIG_fail;
4636 }
4637 {
4638 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4639 if (PyErr_Occurred()) SWIG_fail;
4640 }
4641 {
4642 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4643 if (PyErr_Occurred()) SWIG_fail;
4644 }
4645 {
4646 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 {
4650 PyThreadState* __tstate = wxPyBeginAllowThreads();
4651 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4652
4653 wxPyEndAllowThreads(__tstate);
4654 if (PyErr_Occurred()) SWIG_fail;
4655 }
4656 resultobj = SWIG_PyObj_FromInt((int)result);
4657 return resultobj;
4658 fail:
4659 return NULL;
4660 }
4661
4662
4663 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4664 PyObject *resultobj;
4665 wxRegion *arg1 = (wxRegion *) 0 ;
4666 wxRect result;
4667 PyObject * obj0 = 0 ;
4668 char *kwnames[] = {
4669 (char *) "self", NULL
4670 };
4671
4672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4674 {
4675 PyThreadState* __tstate = wxPyBeginAllowThreads();
4676 result = (arg1)->GetBox();
4677
4678 wxPyEndAllowThreads(__tstate);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 {
4682 wxRect * resultptr;
4683 resultptr = new wxRect((wxRect &) result);
4684 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4685 }
4686 return resultobj;
4687 fail:
4688 return NULL;
4689 }
4690
4691
4692 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4693 PyObject *resultobj;
4694 wxRegion *arg1 = (wxRegion *) 0 ;
4695 int arg2 ;
4696 int arg3 ;
4697 int arg4 ;
4698 int arg5 ;
4699 bool result;
4700 PyObject * obj0 = 0 ;
4701 PyObject * obj1 = 0 ;
4702 PyObject * obj2 = 0 ;
4703 PyObject * obj3 = 0 ;
4704 PyObject * obj4 = 0 ;
4705 char *kwnames[] = {
4706 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4707 };
4708
4709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4711 {
4712 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4713 if (PyErr_Occurred()) SWIG_fail;
4714 }
4715 {
4716 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 {
4720 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
4723 {
4724 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 {
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4730
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4735 return resultobj;
4736 fail:
4737 return NULL;
4738 }
4739
4740
4741 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4742 PyObject *resultobj;
4743 wxRegion *arg1 = (wxRegion *) 0 ;
4744 wxRect *arg2 = 0 ;
4745 bool result;
4746 wxRect temp2 ;
4747 PyObject * obj0 = 0 ;
4748 PyObject * obj1 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "self",(char *) "rect", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4755 {
4756 arg2 = &temp2;
4757 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4758 }
4759 {
4760 PyThreadState* __tstate = wxPyBeginAllowThreads();
4761 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4762
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4767 return resultobj;
4768 fail:
4769 return NULL;
4770 }
4771
4772
4773 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4774 PyObject *resultobj;
4775 wxRegion *arg1 = (wxRegion *) 0 ;
4776 wxRegion *arg2 = 0 ;
4777 bool result;
4778 PyObject * obj0 = 0 ;
4779 PyObject * obj1 = 0 ;
4780 char *kwnames[] = {
4781 (char *) "self",(char *) "region", NULL
4782 };
4783
4784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4786 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4787 if (arg2 == NULL) {
4788 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4789 }
4790 {
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4793
4794 wxPyEndAllowThreads(__tstate);
4795 if (PyErr_Occurred()) SWIG_fail;
4796 }
4797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4798 return resultobj;
4799 fail:
4800 return NULL;
4801 }
4802
4803
4804 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4805 PyObject *resultobj;
4806 wxRegion *arg1 = (wxRegion *) 0 ;
4807 bool result;
4808 PyObject * obj0 = 0 ;
4809 char *kwnames[] = {
4810 (char *) "self", NULL
4811 };
4812
4813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (bool)(arg1)->IsEmpty();
4818
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4823 return resultobj;
4824 fail:
4825 return NULL;
4826 }
4827
4828
4829 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4830 PyObject *resultobj;
4831 wxRegion *arg1 = (wxRegion *) 0 ;
4832 int arg2 ;
4833 int arg3 ;
4834 int arg4 ;
4835 int arg5 ;
4836 bool result;
4837 PyObject * obj0 = 0 ;
4838 PyObject * obj1 = 0 ;
4839 PyObject * obj2 = 0 ;
4840 PyObject * obj3 = 0 ;
4841 PyObject * obj4 = 0 ;
4842 char *kwnames[] = {
4843 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4844 };
4845
4846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4848 {
4849 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4854 if (PyErr_Occurred()) SWIG_fail;
4855 }
4856 {
4857 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4858 if (PyErr_Occurred()) SWIG_fail;
4859 }
4860 {
4861 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4867
4868 wxPyEndAllowThreads(__tstate);
4869 if (PyErr_Occurred()) SWIG_fail;
4870 }
4871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4872 return resultobj;
4873 fail:
4874 return NULL;
4875 }
4876
4877
4878 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4879 PyObject *resultobj;
4880 wxRegion *arg1 = (wxRegion *) 0 ;
4881 wxRect *arg2 = 0 ;
4882 bool result;
4883 wxRect temp2 ;
4884 PyObject * obj0 = 0 ;
4885 PyObject * obj1 = 0 ;
4886 char *kwnames[] = {
4887 (char *) "self",(char *) "rect", NULL
4888 };
4889
4890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4892 {
4893 arg2 = &temp2;
4894 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4895 }
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4899
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4904 return resultobj;
4905 fail:
4906 return NULL;
4907 }
4908
4909
4910 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4911 PyObject *resultobj;
4912 wxRegion *arg1 = (wxRegion *) 0 ;
4913 wxRegion *arg2 = 0 ;
4914 bool result;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char *kwnames[] = {
4918 (char *) "self",(char *) "region", NULL
4919 };
4920
4921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4923 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4924 if (arg2 == NULL) {
4925 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4926 }
4927 {
4928 PyThreadState* __tstate = wxPyBeginAllowThreads();
4929 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4930
4931 wxPyEndAllowThreads(__tstate);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4935 return resultobj;
4936 fail:
4937 return NULL;
4938 }
4939
4940
4941 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4942 PyObject *resultobj;
4943 wxRegion *arg1 = (wxRegion *) 0 ;
4944 int arg2 ;
4945 int arg3 ;
4946 int arg4 ;
4947 int arg5 ;
4948 bool result;
4949 PyObject * obj0 = 0 ;
4950 PyObject * obj1 = 0 ;
4951 PyObject * obj2 = 0 ;
4952 PyObject * obj3 = 0 ;
4953 PyObject * obj4 = 0 ;
4954 char *kwnames[] = {
4955 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4956 };
4957
4958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4960 {
4961 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 {
4965 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 {
4969 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4970 if (PyErr_Occurred()) SWIG_fail;
4971 }
4972 {
4973 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4974 if (PyErr_Occurred()) SWIG_fail;
4975 }
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4979
4980 wxPyEndAllowThreads(__tstate);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4984 return resultobj;
4985 fail:
4986 return NULL;
4987 }
4988
4989
4990 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4991 PyObject *resultobj;
4992 wxRegion *arg1 = (wxRegion *) 0 ;
4993 wxRect *arg2 = 0 ;
4994 bool result;
4995 wxRect temp2 ;
4996 PyObject * obj0 = 0 ;
4997 PyObject * obj1 = 0 ;
4998 char *kwnames[] = {
4999 (char *) "self",(char *) "rect", NULL
5000 };
5001
5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5004 {
5005 arg2 = &temp2;
5006 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5007 }
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5011
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5016 return resultobj;
5017 fail:
5018 return NULL;
5019 }
5020
5021
5022 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5023 PyObject *resultobj;
5024 wxRegion *arg1 = (wxRegion *) 0 ;
5025 wxRegion *arg2 = 0 ;
5026 bool result;
5027 PyObject * obj0 = 0 ;
5028 PyObject * obj1 = 0 ;
5029 char *kwnames[] = {
5030 (char *) "self",(char *) "region", NULL
5031 };
5032
5033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5035 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5036 if (arg2 == NULL) {
5037 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5038 }
5039 {
5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
5041 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5042
5043 wxPyEndAllowThreads(__tstate);
5044 if (PyErr_Occurred()) SWIG_fail;
5045 }
5046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5047 return resultobj;
5048 fail:
5049 return NULL;
5050 }
5051
5052
5053 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5054 PyObject *resultobj;
5055 wxRegion *arg1 = (wxRegion *) 0 ;
5056 int arg2 ;
5057 int arg3 ;
5058 int arg4 ;
5059 int arg5 ;
5060 bool result;
5061 PyObject * obj0 = 0 ;
5062 PyObject * obj1 = 0 ;
5063 PyObject * obj2 = 0 ;
5064 PyObject * obj3 = 0 ;
5065 PyObject * obj4 = 0 ;
5066 char *kwnames[] = {
5067 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5068 };
5069
5070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5072 {
5073 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5074 if (PyErr_Occurred()) SWIG_fail;
5075 }
5076 {
5077 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
5080 {
5081 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 {
5085 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 }
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5091
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5096 return resultobj;
5097 fail:
5098 return NULL;
5099 }
5100
5101
5102 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5103 PyObject *resultobj;
5104 wxRegion *arg1 = (wxRegion *) 0 ;
5105 wxRect *arg2 = 0 ;
5106 bool result;
5107 wxRect temp2 ;
5108 PyObject * obj0 = 0 ;
5109 PyObject * obj1 = 0 ;
5110 char *kwnames[] = {
5111 (char *) "self",(char *) "rect", NULL
5112 };
5113
5114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5116 {
5117 arg2 = &temp2;
5118 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5119 }
5120 {
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5123
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) SWIG_fail;
5126 }
5127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5128 return resultobj;
5129 fail:
5130 return NULL;
5131 }
5132
5133
5134 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5135 PyObject *resultobj;
5136 wxRegion *arg1 = (wxRegion *) 0 ;
5137 wxRegion *arg2 = 0 ;
5138 bool result;
5139 PyObject * obj0 = 0 ;
5140 PyObject * obj1 = 0 ;
5141 char *kwnames[] = {
5142 (char *) "self",(char *) "region", NULL
5143 };
5144
5145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5147 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5148 if (arg2 == NULL) {
5149 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5150 }
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5154
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5166 PyObject *resultobj;
5167 wxRegion *arg1 = (wxRegion *) 0 ;
5168 SwigValueWrapper< wxBitmap > result;
5169 PyObject * obj0 = 0 ;
5170 char *kwnames[] = {
5171 (char *) "self", NULL
5172 };
5173
5174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 result = (arg1)->ConvertToBitmap();
5179
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 }
5183 {
5184 wxBitmap * resultptr;
5185 resultptr = new wxBitmap((wxBitmap &) result);
5186 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5187 }
5188 return resultobj;
5189 fail:
5190 return NULL;
5191 }
5192
5193
5194 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5195 PyObject *resultobj;
5196 wxRegion *arg1 = (wxRegion *) 0 ;
5197 wxBitmap *arg2 = 0 ;
5198 wxColour const &arg3_defvalue = wxNullColour ;
5199 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5200 int arg4 = (int) 0 ;
5201 bool result;
5202 wxColour temp3 ;
5203 PyObject * obj0 = 0 ;
5204 PyObject * obj1 = 0 ;
5205 PyObject * obj2 = 0 ;
5206 PyObject * obj3 = 0 ;
5207 char *kwnames[] = {
5208 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5209 };
5210
5211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5213 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5214 if (arg2 == NULL) {
5215 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5216 }
5217 if (obj2) {
5218 {
5219 arg3 = &temp3;
5220 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5221 }
5222 }
5223 if (obj3) {
5224 {
5225 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 }
5228 }
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5232
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5237 return resultobj;
5238 fail:
5239 return NULL;
5240 }
5241
5242
5243 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5244 PyObject *obj;
5245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5246 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5247 Py_INCREF(obj);
5248 return Py_BuildValue((char *)"");
5249 }
5250 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5251 PyObject *resultobj;
5252 wxRegion *arg1 = 0 ;
5253 wxRegionIterator *result;
5254 PyObject * obj0 = 0 ;
5255 char *kwnames[] = {
5256 (char *) "region", NULL
5257 };
5258
5259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5261 if (arg1 == NULL) {
5262 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5263 }
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5267
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5272 return resultobj;
5273 fail:
5274 return NULL;
5275 }
5276
5277
5278 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5279 PyObject *resultobj;
5280 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5281 PyObject * obj0 = 0 ;
5282 char *kwnames[] = {
5283 (char *) "self", NULL
5284 };
5285
5286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5288 {
5289 PyThreadState* __tstate = wxPyBeginAllowThreads();
5290 delete arg1;
5291
5292 wxPyEndAllowThreads(__tstate);
5293 if (PyErr_Occurred()) SWIG_fail;
5294 }
5295 Py_INCREF(Py_None); resultobj = Py_None;
5296 return resultobj;
5297 fail:
5298 return NULL;
5299 }
5300
5301
5302 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5303 PyObject *resultobj;
5304 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5305 int result;
5306 PyObject * obj0 = 0 ;
5307 char *kwnames[] = {
5308 (char *) "self", NULL
5309 };
5310
5311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5313 {
5314 PyThreadState* __tstate = wxPyBeginAllowThreads();
5315 result = (int)(arg1)->GetX();
5316
5317 wxPyEndAllowThreads(__tstate);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 }
5320 resultobj = SWIG_PyObj_FromInt((int)result);
5321 return resultobj;
5322 fail:
5323 return NULL;
5324 }
5325
5326
5327 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj;
5329 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5330 int result;
5331 PyObject * obj0 = 0 ;
5332 char *kwnames[] = {
5333 (char *) "self", NULL
5334 };
5335
5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (int)(arg1)->GetY();
5341
5342 wxPyEndAllowThreads(__tstate);
5343 if (PyErr_Occurred()) SWIG_fail;
5344 }
5345 resultobj = SWIG_PyObj_FromInt((int)result);
5346 return resultobj;
5347 fail:
5348 return NULL;
5349 }
5350
5351
5352 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5353 PyObject *resultobj;
5354 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5355 int result;
5356 PyObject * obj0 = 0 ;
5357 char *kwnames[] = {
5358 (char *) "self", NULL
5359 };
5360
5361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5363 {
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 result = (int)(arg1)->GetW();
5366
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 resultobj = SWIG_PyObj_FromInt((int)result);
5371 return resultobj;
5372 fail:
5373 return NULL;
5374 }
5375
5376
5377 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj;
5379 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5380 int result;
5381 PyObject * obj0 = 0 ;
5382 char *kwnames[] = {
5383 (char *) "self", NULL
5384 };
5385
5386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 result = (int)(arg1)->GetWidth();
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 resultobj = SWIG_PyObj_FromInt((int)result);
5396 return resultobj;
5397 fail:
5398 return NULL;
5399 }
5400
5401
5402 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5403 PyObject *resultobj;
5404 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5405 int result;
5406 PyObject * obj0 = 0 ;
5407 char *kwnames[] = {
5408 (char *) "self", NULL
5409 };
5410
5411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (int)(arg1)->GetH();
5416
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 resultobj = SWIG_PyObj_FromInt((int)result);
5421 return resultobj;
5422 fail:
5423 return NULL;
5424 }
5425
5426
5427 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5428 PyObject *resultobj;
5429 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5430 int result;
5431 PyObject * obj0 = 0 ;
5432 char *kwnames[] = {
5433 (char *) "self", NULL
5434 };
5435
5436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5438 {
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = (int)(arg1)->GetHeight();
5441
5442 wxPyEndAllowThreads(__tstate);
5443 if (PyErr_Occurred()) SWIG_fail;
5444 }
5445 resultobj = SWIG_PyObj_FromInt((int)result);
5446 return resultobj;
5447 fail:
5448 return NULL;
5449 }
5450
5451
5452 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5453 PyObject *resultobj;
5454 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5455 wxRect result;
5456 PyObject * obj0 = 0 ;
5457 char *kwnames[] = {
5458 (char *) "self", NULL
5459 };
5460
5461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5463 {
5464 PyThreadState* __tstate = wxPyBeginAllowThreads();
5465 result = (arg1)->GetRect();
5466
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 }
5470 {
5471 wxRect * resultptr;
5472 resultptr = new wxRect((wxRect &) result);
5473 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5474 }
5475 return resultobj;
5476 fail:
5477 return NULL;
5478 }
5479
5480
5481 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5482 PyObject *resultobj;
5483 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5484 bool result;
5485 PyObject * obj0 = 0 ;
5486 char *kwnames[] = {
5487 (char *) "self", NULL
5488 };
5489
5490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5491 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5492 {
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = (bool)(arg1)->HaveRects();
5495
5496 wxPyEndAllowThreads(__tstate);
5497 if (PyErr_Occurred()) SWIG_fail;
5498 }
5499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5500 return resultobj;
5501 fail:
5502 return NULL;
5503 }
5504
5505
5506 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5507 PyObject *resultobj;
5508 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5509 PyObject * obj0 = 0 ;
5510 char *kwnames[] = {
5511 (char *) "self", NULL
5512 };
5513
5514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5516 {
5517 PyThreadState* __tstate = wxPyBeginAllowThreads();
5518 (arg1)->Reset();
5519
5520 wxPyEndAllowThreads(__tstate);
5521 if (PyErr_Occurred()) SWIG_fail;
5522 }
5523 Py_INCREF(Py_None); resultobj = Py_None;
5524 return resultobj;
5525 fail:
5526 return NULL;
5527 }
5528
5529
5530 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject *resultobj;
5532 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5533 PyObject * obj0 = 0 ;
5534 char *kwnames[] = {
5535 (char *) "self", NULL
5536 };
5537
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 wxRegionIterator_Next(arg1);
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 Py_INCREF(Py_None); resultobj = Py_None;
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj;
5556 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5557 bool result;
5558 PyObject * obj0 = 0 ;
5559 char *kwnames[] = {
5560 (char *) "self", NULL
5561 };
5562
5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 result = (bool)wxRegionIterator___nonzero__(arg1);
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5580 PyObject *obj;
5581 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5582 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5583 Py_INCREF(obj);
5584 return Py_BuildValue((char *)"");
5585 }
5586 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5587 PyObject *resultobj;
5588 wxNativeFontInfo *result;
5589 char *kwnames[] = {
5590 NULL
5591 };
5592
5593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5594 {
5595 PyThreadState* __tstate = wxPyBeginAllowThreads();
5596 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5597
5598 wxPyEndAllowThreads(__tstate);
5599 if (PyErr_Occurred()) SWIG_fail;
5600 }
5601 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5602 return resultobj;
5603 fail:
5604 return NULL;
5605 }
5606
5607
5608 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5609 PyObject *resultobj;
5610 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5611 PyObject * obj0 = 0 ;
5612 char *kwnames[] = {
5613 (char *) "self", NULL
5614 };
5615
5616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 delete arg1;
5621
5622 wxPyEndAllowThreads(__tstate);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 Py_INCREF(Py_None); resultobj = Py_None;
5626 return resultobj;
5627 fail:
5628 return NULL;
5629 }
5630
5631
5632 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5633 PyObject *resultobj;
5634 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5635 PyObject * obj0 = 0 ;
5636 char *kwnames[] = {
5637 (char *) "self", NULL
5638 };
5639
5640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 (arg1)->Init();
5645
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 Py_INCREF(Py_None); resultobj = Py_None;
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj;
5658 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5659 wxFont *arg2 = 0 ;
5660 PyObject * obj0 = 0 ;
5661 PyObject * obj1 = 0 ;
5662 char *kwnames[] = {
5663 (char *) "self",(char *) "font", NULL
5664 };
5665
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5668 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5669 if (arg2 == NULL) {
5670 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5671 }
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 (arg1)->InitFromFont((wxFont const &)*arg2);
5675
5676 wxPyEndAllowThreads(__tstate);
5677 if (PyErr_Occurred()) SWIG_fail;
5678 }
5679 Py_INCREF(Py_None); resultobj = Py_None;
5680 return resultobj;
5681 fail:
5682 return NULL;
5683 }
5684
5685
5686 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5687 PyObject *resultobj;
5688 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5689 int result;
5690 PyObject * obj0 = 0 ;
5691 char *kwnames[] = {
5692 (char *) "self", NULL
5693 };
5694
5695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5697 {
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5700
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 resultobj = SWIG_PyObj_FromInt((int)result);
5705 return resultobj;
5706 fail:
5707 return NULL;
5708 }
5709
5710
5711 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5712 PyObject *resultobj;
5713 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5714 int result;
5715 PyObject * obj0 = 0 ;
5716 char *kwnames[] = {
5717 (char *) "self", NULL
5718 };
5719
5720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5725
5726 wxPyEndAllowThreads(__tstate);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 }
5729 resultobj = SWIG_PyObj_FromInt((int)result);
5730 return resultobj;
5731 fail:
5732 return NULL;
5733 }
5734
5735
5736 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5737 PyObject *resultobj;
5738 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5739 int result;
5740 PyObject * obj0 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5750
5751 wxPyEndAllowThreads(__tstate);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 }
5754 resultobj = SWIG_PyObj_FromInt((int)result);
5755 return resultobj;
5756 fail:
5757 return NULL;
5758 }
5759
5760
5761 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5762 PyObject *resultobj;
5763 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5764 bool result;
5765 PyObject * obj0 = 0 ;
5766 char *kwnames[] = {
5767 (char *) "self", NULL
5768 };
5769
5770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5772 {
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5775
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5787 PyObject *resultobj;
5788 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5789 wxString result;
5790 PyObject * obj0 = 0 ;
5791 char *kwnames[] = {
5792 (char *) "self", NULL
5793 };
5794
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5800
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 {
5805 #if wxUSE_UNICODE
5806 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5807 #else
5808 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5809 #endif
5810 }
5811 return resultobj;
5812 fail:
5813 return NULL;
5814 }
5815
5816
5817 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5818 PyObject *resultobj;
5819 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5820 int result;
5821 PyObject * obj0 = 0 ;
5822 char *kwnames[] = {
5823 (char *) "self", NULL
5824 };
5825
5826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = SWIG_PyObj_FromInt((int)result);
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5845 int result;
5846 PyObject * obj0 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5856
5857 wxPyEndAllowThreads(__tstate);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
5860 resultobj = SWIG_PyObj_FromInt((int)result);
5861 return resultobj;
5862 fail:
5863 return NULL;
5864 }
5865
5866
5867 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5868 PyObject *resultobj;
5869 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5870 int arg2 ;
5871 PyObject * obj0 = 0 ;
5872 PyObject * obj1 = 0 ;
5873 char *kwnames[] = {
5874 (char *) "self",(char *) "pointsize", NULL
5875 };
5876
5877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
5878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5879 {
5880 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5881 if (PyErr_Occurred()) SWIG_fail;
5882 }
5883 {
5884 PyThreadState* __tstate = wxPyBeginAllowThreads();
5885 (arg1)->SetPointSize(arg2);
5886
5887 wxPyEndAllowThreads(__tstate);
5888 if (PyErr_Occurred()) SWIG_fail;
5889 }
5890 Py_INCREF(Py_None); resultobj = Py_None;
5891 return resultobj;
5892 fail:
5893 return NULL;
5894 }
5895
5896
5897 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5898 PyObject *resultobj;
5899 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5900 int arg2 ;
5901 PyObject * obj0 = 0 ;
5902 PyObject * obj1 = 0 ;
5903 char *kwnames[] = {
5904 (char *) "self",(char *) "style", NULL
5905 };
5906
5907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
5908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5909 {
5910 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 (arg1)->SetStyle((wxFontStyle )arg2);
5916
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 Py_INCREF(Py_None); resultobj = Py_None;
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj;
5929 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5930 int arg2 ;
5931 PyObject * obj0 = 0 ;
5932 PyObject * obj1 = 0 ;
5933 char *kwnames[] = {
5934 (char *) "self",(char *) "weight", NULL
5935 };
5936
5937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
5938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5939 {
5940 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 {
5944 PyThreadState* __tstate = wxPyBeginAllowThreads();
5945 (arg1)->SetWeight((wxFontWeight )arg2);
5946
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 Py_INCREF(Py_None); resultobj = Py_None;
5951 return resultobj;
5952 fail:
5953 return NULL;
5954 }
5955
5956
5957 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5958 PyObject *resultobj;
5959 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5960 bool arg2 ;
5961 PyObject * obj0 = 0 ;
5962 PyObject * obj1 = 0 ;
5963 char *kwnames[] = {
5964 (char *) "self",(char *) "underlined", NULL
5965 };
5966
5967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5969 {
5970 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
5971 if (PyErr_Occurred()) SWIG_fail;
5972 }
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 (arg1)->SetUnderlined(arg2);
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 Py_INCREF(Py_None); resultobj = Py_None;
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj;
5989 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5990 wxString arg2 ;
5991 PyObject * obj0 = 0 ;
5992 PyObject * obj1 = 0 ;
5993 char *kwnames[] = {
5994 (char *) "self",(char *) "facename", NULL
5995 };
5996
5997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5999 {
6000 wxString* sptr = wxString_in_helper(obj1);
6001 if (sptr == NULL) SWIG_fail;
6002 arg2 = *sptr;
6003 delete sptr;
6004 }
6005 {
6006 PyThreadState* __tstate = wxPyBeginAllowThreads();
6007 (arg1)->SetFaceName(arg2);
6008
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 Py_INCREF(Py_None); resultobj = Py_None;
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6020 PyObject *resultobj;
6021 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6022 int arg2 ;
6023 PyObject * obj0 = 0 ;
6024 PyObject * obj1 = 0 ;
6025 char *kwnames[] = {
6026 (char *) "self",(char *) "family", NULL
6027 };
6028
6029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6031 {
6032 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 (arg1)->SetFamily((wxFontFamily )arg2);
6038
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 Py_INCREF(Py_None); resultobj = Py_None;
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6050 PyObject *resultobj;
6051 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6052 int arg2 ;
6053 PyObject * obj0 = 0 ;
6054 PyObject * obj1 = 0 ;
6055 char *kwnames[] = {
6056 (char *) "self",(char *) "encoding", NULL
6057 };
6058
6059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6061 {
6062 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 (arg1)->SetEncoding((wxFontEncoding )arg2);
6068
6069 wxPyEndAllowThreads(__tstate);
6070 if (PyErr_Occurred()) SWIG_fail;
6071 }
6072 Py_INCREF(Py_None); resultobj = Py_None;
6073 return resultobj;
6074 fail:
6075 return NULL;
6076 }
6077
6078
6079 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6080 PyObject *resultobj;
6081 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6082 wxString *arg2 = 0 ;
6083 bool result;
6084 bool temp2 = False ;
6085 PyObject * obj0 = 0 ;
6086 PyObject * obj1 = 0 ;
6087 char *kwnames[] = {
6088 (char *) "self",(char *) "s", NULL
6089 };
6090
6091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6093 {
6094 arg2 = wxString_in_helper(obj1);
6095 if (arg2 == NULL) SWIG_fail;
6096 temp2 = True;
6097 }
6098 {
6099 PyThreadState* __tstate = wxPyBeginAllowThreads();
6100 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6101
6102 wxPyEndAllowThreads(__tstate);
6103 if (PyErr_Occurred()) SWIG_fail;
6104 }
6105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6106 {
6107 if (temp2)
6108 delete arg2;
6109 }
6110 return resultobj;
6111 fail:
6112 {
6113 if (temp2)
6114 delete arg2;
6115 }
6116 return NULL;
6117 }
6118
6119
6120 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6121 PyObject *resultobj;
6122 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6123 wxString result;
6124 PyObject * obj0 = 0 ;
6125 char *kwnames[] = {
6126 (char *) "self", NULL
6127 };
6128
6129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6131 {
6132 PyThreadState* __tstate = wxPyBeginAllowThreads();
6133 result = ((wxNativeFontInfo const *)arg1)->ToString();
6134
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) SWIG_fail;
6137 }
6138 {
6139 #if wxUSE_UNICODE
6140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6141 #else
6142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6143 #endif
6144 }
6145 return resultobj;
6146 fail:
6147 return NULL;
6148 }
6149
6150
6151 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6152 PyObject *resultobj;
6153 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6154 wxString result;
6155 PyObject * obj0 = 0 ;
6156 char *kwnames[] = {
6157 (char *) "self", NULL
6158 };
6159
6160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6162 {
6163 PyThreadState* __tstate = wxPyBeginAllowThreads();
6164 result = wxNativeFontInfo___str__(arg1);
6165
6166 wxPyEndAllowThreads(__tstate);
6167 if (PyErr_Occurred()) SWIG_fail;
6168 }
6169 {
6170 #if wxUSE_UNICODE
6171 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6172 #else
6173 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6174 #endif
6175 }
6176 return resultobj;
6177 fail:
6178 return NULL;
6179 }
6180
6181
6182 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6183 PyObject *resultobj;
6184 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6185 wxString *arg2 = 0 ;
6186 bool result;
6187 bool temp2 = False ;
6188 PyObject * obj0 = 0 ;
6189 PyObject * obj1 = 0 ;
6190 char *kwnames[] = {
6191 (char *) "self",(char *) "s", NULL
6192 };
6193
6194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6196 {
6197 arg2 = wxString_in_helper(obj1);
6198 if (arg2 == NULL) SWIG_fail;
6199 temp2 = True;
6200 }
6201 {
6202 PyThreadState* __tstate = wxPyBeginAllowThreads();
6203 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6204
6205 wxPyEndAllowThreads(__tstate);
6206 if (PyErr_Occurred()) SWIG_fail;
6207 }
6208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6209 {
6210 if (temp2)
6211 delete arg2;
6212 }
6213 return resultobj;
6214 fail:
6215 {
6216 if (temp2)
6217 delete arg2;
6218 }
6219 return NULL;
6220 }
6221
6222
6223 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj;
6225 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6226 wxString result;
6227 PyObject * obj0 = 0 ;
6228 char *kwnames[] = {
6229 (char *) "self", NULL
6230 };
6231
6232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6234 {
6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
6236 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6237
6238 wxPyEndAllowThreads(__tstate);
6239 if (PyErr_Occurred()) SWIG_fail;
6240 }
6241 {
6242 #if wxUSE_UNICODE
6243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6244 #else
6245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6246 #endif
6247 }
6248 return resultobj;
6249 fail:
6250 return NULL;
6251 }
6252
6253
6254 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6255 PyObject *obj;
6256 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6257 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6258 Py_INCREF(obj);
6259 return Py_BuildValue((char *)"");
6260 }
6261 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj;
6263 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6264 wxString *arg2 = (wxString *) 0 ;
6265 bool temp2 = False ;
6266 PyObject * obj0 = 0 ;
6267 PyObject * obj1 = 0 ;
6268 char *kwnames[] = {
6269 (char *) "self",(char *) "facename", NULL
6270 };
6271
6272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6274 {
6275 arg2 = wxString_in_helper(obj1);
6276 if (arg2 == NULL) SWIG_fail;
6277 temp2 = True;
6278 }
6279 if (arg1) (arg1)->facename = *arg2;
6280
6281 Py_INCREF(Py_None); resultobj = Py_None;
6282 {
6283 if (temp2)
6284 delete arg2;
6285 }
6286 return resultobj;
6287 fail:
6288 {
6289 if (temp2)
6290 delete arg2;
6291 }
6292 return NULL;
6293 }
6294
6295
6296 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6297 PyObject *resultobj;
6298 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6299 wxString *result;
6300 PyObject * obj0 = 0 ;
6301 char *kwnames[] = {
6302 (char *) "self", NULL
6303 };
6304
6305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6307 result = (wxString *)& ((arg1)->facename);
6308
6309 {
6310 #if wxUSE_UNICODE
6311 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6312 #else
6313 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6314 #endif
6315 }
6316 return resultobj;
6317 fail:
6318 return NULL;
6319 }
6320
6321
6322 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6323 PyObject *resultobj;
6324 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6325 int arg2 ;
6326 PyObject * obj0 = 0 ;
6327 PyObject * obj1 = 0 ;
6328 char *kwnames[] = {
6329 (char *) "self",(char *) "encoding", NULL
6330 };
6331
6332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6334 {
6335 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6339
6340 Py_INCREF(Py_None); resultobj = Py_None;
6341 return resultobj;
6342 fail:
6343 return NULL;
6344 }
6345
6346
6347 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6348 PyObject *resultobj;
6349 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6350 int result;
6351 PyObject * obj0 = 0 ;
6352 char *kwnames[] = {
6353 (char *) "self", NULL
6354 };
6355
6356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6358 result = (int) ((arg1)->encoding);
6359
6360 resultobj = SWIG_PyObj_FromInt((int)result);
6361 return resultobj;
6362 fail:
6363 return NULL;
6364 }
6365
6366
6367 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6368 PyObject *resultobj;
6369 wxNativeEncodingInfo *result;
6370 char *kwnames[] = {
6371 NULL
6372 };
6373
6374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6375 {
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6378
6379 wxPyEndAllowThreads(__tstate);
6380 if (PyErr_Occurred()) SWIG_fail;
6381 }
6382 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6383 return resultobj;
6384 fail:
6385 return NULL;
6386 }
6387
6388
6389 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6390 PyObject *resultobj;
6391 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6392 PyObject * obj0 = 0 ;
6393 char *kwnames[] = {
6394 (char *) "self", NULL
6395 };
6396
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 delete arg1;
6402
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 Py_INCREF(Py_None); resultobj = Py_None;
6407 return resultobj;
6408 fail:
6409 return NULL;
6410 }
6411
6412
6413 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj;
6415 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6416 wxString *arg2 = 0 ;
6417 bool result;
6418 bool temp2 = False ;
6419 PyObject * obj0 = 0 ;
6420 PyObject * obj1 = 0 ;
6421 char *kwnames[] = {
6422 (char *) "self",(char *) "s", NULL
6423 };
6424
6425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6427 {
6428 arg2 = wxString_in_helper(obj1);
6429 if (arg2 == NULL) SWIG_fail;
6430 temp2 = True;
6431 }
6432 {
6433 PyThreadState* __tstate = wxPyBeginAllowThreads();
6434 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6435
6436 wxPyEndAllowThreads(__tstate);
6437 if (PyErr_Occurred()) SWIG_fail;
6438 }
6439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6440 {
6441 if (temp2)
6442 delete arg2;
6443 }
6444 return resultobj;
6445 fail:
6446 {
6447 if (temp2)
6448 delete arg2;
6449 }
6450 return NULL;
6451 }
6452
6453
6454 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6455 PyObject *resultobj;
6456 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6457 wxString result;
6458 PyObject * obj0 = 0 ;
6459 char *kwnames[] = {
6460 (char *) "self", NULL
6461 };
6462
6463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6465 {
6466 PyThreadState* __tstate = wxPyBeginAllowThreads();
6467 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6468
6469 wxPyEndAllowThreads(__tstate);
6470 if (PyErr_Occurred()) SWIG_fail;
6471 }
6472 {
6473 #if wxUSE_UNICODE
6474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6475 #else
6476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6477 #endif
6478 }
6479 return resultobj;
6480 fail:
6481 return NULL;
6482 }
6483
6484
6485 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6486 PyObject *obj;
6487 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6488 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6489 Py_INCREF(obj);
6490 return Py_BuildValue((char *)"");
6491 }
6492 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6493 PyObject *resultobj;
6494 int arg1 ;
6495 wxNativeEncodingInfo *result;
6496 PyObject * obj0 = 0 ;
6497 char *kwnames[] = {
6498 (char *) "encoding", NULL
6499 };
6500
6501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6502 {
6503 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 {
6507 PyThreadState* __tstate = wxPyBeginAllowThreads();
6508 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6509
6510 wxPyEndAllowThreads(__tstate);
6511 if (PyErr_Occurred()) SWIG_fail;
6512 }
6513 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6514 return resultobj;
6515 fail:
6516 return NULL;
6517 }
6518
6519
6520 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6521 PyObject *resultobj;
6522 wxNativeEncodingInfo *arg1 = 0 ;
6523 bool result;
6524 PyObject * obj0 = 0 ;
6525 char *kwnames[] = {
6526 (char *) "info", NULL
6527 };
6528
6529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6531 if (arg1 == NULL) {
6532 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6533 }
6534 {
6535 PyThreadState* __tstate = wxPyBeginAllowThreads();
6536 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6537
6538 wxPyEndAllowThreads(__tstate);
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6542 return resultobj;
6543 fail:
6544 return NULL;
6545 }
6546
6547
6548 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6549 PyObject *resultobj;
6550 wxFontMapper *result;
6551 char *kwnames[] = {
6552 NULL
6553 };
6554
6555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6556 {
6557 PyThreadState* __tstate = wxPyBeginAllowThreads();
6558 result = (wxFontMapper *)new wxFontMapper();
6559
6560 wxPyEndAllowThreads(__tstate);
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6564 return resultobj;
6565 fail:
6566 return NULL;
6567 }
6568
6569
6570 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6571 PyObject *resultobj;
6572 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6573 PyObject * obj0 = 0 ;
6574 char *kwnames[] = {
6575 (char *) "self", NULL
6576 };
6577
6578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6580 {
6581 PyThreadState* __tstate = wxPyBeginAllowThreads();
6582 delete arg1;
6583
6584 wxPyEndAllowThreads(__tstate);
6585 if (PyErr_Occurred()) SWIG_fail;
6586 }
6587 Py_INCREF(Py_None); resultobj = Py_None;
6588 return resultobj;
6589 fail:
6590 return NULL;
6591 }
6592
6593
6594 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6595 PyObject *resultobj;
6596 wxFontMapper *result;
6597 char *kwnames[] = {
6598 NULL
6599 };
6600
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6602 {
6603 PyThreadState* __tstate = wxPyBeginAllowThreads();
6604 result = (wxFontMapper *)wxFontMapper::Get();
6605
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6610 return resultobj;
6611 fail:
6612 return NULL;
6613 }
6614
6615
6616 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6617 PyObject *resultobj;
6618 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6619 wxFontMapper *result;
6620 PyObject * obj0 = 0 ;
6621 char *kwnames[] = {
6622 (char *) "mapper", NULL
6623 };
6624
6625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6627 {
6628 PyThreadState* __tstate = wxPyBeginAllowThreads();
6629 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6630
6631 wxPyEndAllowThreads(__tstate);
6632 if (PyErr_Occurred()) SWIG_fail;
6633 }
6634 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6635 return resultobj;
6636 fail:
6637 return NULL;
6638 }
6639
6640
6641 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6642 PyObject *resultobj;
6643 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6644 wxString *arg2 = 0 ;
6645 bool arg3 = (bool) True ;
6646 int result;
6647 bool temp2 = False ;
6648 PyObject * obj0 = 0 ;
6649 PyObject * obj1 = 0 ;
6650 PyObject * obj2 = 0 ;
6651 char *kwnames[] = {
6652 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6653 };
6654
6655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6657 {
6658 arg2 = wxString_in_helper(obj1);
6659 if (arg2 == NULL) SWIG_fail;
6660 temp2 = True;
6661 }
6662 if (obj2) {
6663 {
6664 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
6665 if (PyErr_Occurred()) SWIG_fail;
6666 }
6667 }
6668 {
6669 PyThreadState* __tstate = wxPyBeginAllowThreads();
6670 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6671
6672 wxPyEndAllowThreads(__tstate);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
6675 resultobj = SWIG_PyObj_FromInt((int)result);
6676 {
6677 if (temp2)
6678 delete arg2;
6679 }
6680 return resultobj;
6681 fail:
6682 {
6683 if (temp2)
6684 delete arg2;
6685 }
6686 return NULL;
6687 }
6688
6689
6690 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6691 PyObject *resultobj;
6692 size_t result;
6693 char *kwnames[] = {
6694 NULL
6695 };
6696
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6698 {
6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
6700 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6701
6702 wxPyEndAllowThreads(__tstate);
6703 if (PyErr_Occurred()) SWIG_fail;
6704 }
6705 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
6706 return resultobj;
6707 fail:
6708 return NULL;
6709 }
6710
6711
6712 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj;
6714 size_t arg1 ;
6715 int result;
6716 PyObject * obj0 = 0 ;
6717 char *kwnames[] = {
6718 (char *) "n", NULL
6719 };
6720
6721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6722 {
6723 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 result = (int)wxFontMapper::GetEncoding(arg1);
6729
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 resultobj = SWIG_PyObj_FromInt((int)result);
6734 return resultobj;
6735 fail:
6736 return NULL;
6737 }
6738
6739
6740 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 int arg1 ;
6743 wxString result;
6744 PyObject * obj0 = 0 ;
6745 char *kwnames[] = {
6746 (char *) "encoding", NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
6750 {
6751 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6752 if (PyErr_Occurred()) SWIG_fail;
6753 }
6754 {
6755 PyThreadState* __tstate = wxPyBeginAllowThreads();
6756 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6757
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 {
6762 #if wxUSE_UNICODE
6763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6764 #else
6765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6766 #endif
6767 }
6768 return resultobj;
6769 fail:
6770 return NULL;
6771 }
6772
6773
6774 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6775 PyObject *resultobj;
6776 int arg1 ;
6777 wxString result;
6778 PyObject * obj0 = 0 ;
6779 char *kwnames[] = {
6780 (char *) "encoding", NULL
6781 };
6782
6783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
6784 {
6785 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6786 if (PyErr_Occurred()) SWIG_fail;
6787 }
6788 {
6789 PyThreadState* __tstate = wxPyBeginAllowThreads();
6790 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6791
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 {
6796 #if wxUSE_UNICODE
6797 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6798 #else
6799 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6800 #endif
6801 }
6802 return resultobj;
6803 fail:
6804 return NULL;
6805 }
6806
6807
6808 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6809 PyObject *resultobj;
6810 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6811 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6812 PyObject * obj0 = 0 ;
6813 PyObject * obj1 = 0 ;
6814 char *kwnames[] = {
6815 (char *) "self",(char *) "config", NULL
6816 };
6817
6818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6820 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6821 {
6822 PyThreadState* __tstate = wxPyBeginAllowThreads();
6823 (arg1)->SetConfig(arg2);
6824
6825 wxPyEndAllowThreads(__tstate);
6826 if (PyErr_Occurred()) SWIG_fail;
6827 }
6828 Py_INCREF(Py_None); resultobj = Py_None;
6829 return resultobj;
6830 fail:
6831 return NULL;
6832 }
6833
6834
6835 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6836 PyObject *resultobj;
6837 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6838 wxString *arg2 = 0 ;
6839 bool temp2 = False ;
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6842 char *kwnames[] = {
6843 (char *) "self",(char *) "prefix", NULL
6844 };
6845
6846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6848 {
6849 arg2 = wxString_in_helper(obj1);
6850 if (arg2 == NULL) SWIG_fail;
6851 temp2 = True;
6852 }
6853 {
6854 PyThreadState* __tstate = wxPyBeginAllowThreads();
6855 (arg1)->SetConfigPath((wxString const &)*arg2);
6856
6857 wxPyEndAllowThreads(__tstate);
6858 if (PyErr_Occurred()) SWIG_fail;
6859 }
6860 Py_INCREF(Py_None); resultobj = Py_None;
6861 {
6862 if (temp2)
6863 delete arg2;
6864 }
6865 return resultobj;
6866 fail:
6867 {
6868 if (temp2)
6869 delete arg2;
6870 }
6871 return NULL;
6872 }
6873
6874
6875 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6876 PyObject *resultobj;
6877 wxString result;
6878 char *kwnames[] = {
6879 NULL
6880 };
6881
6882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6883 {
6884 PyThreadState* __tstate = wxPyBeginAllowThreads();
6885 result = wxFontMapper::GetDefaultConfigPath();
6886
6887 wxPyEndAllowThreads(__tstate);
6888 if (PyErr_Occurred()) SWIG_fail;
6889 }
6890 {
6891 #if wxUSE_UNICODE
6892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6893 #else
6894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6895 #endif
6896 }
6897 return resultobj;
6898 fail:
6899 return NULL;
6900 }
6901
6902
6903 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6904 PyObject *resultobj;
6905 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6906 int arg2 ;
6907 wxString const &arg3_defvalue = wxPyEmptyString ;
6908 wxString *arg3 = (wxString *) &arg3_defvalue ;
6909 bool arg4 = (bool) True ;
6910 PyObject *result;
6911 bool temp3 = False ;
6912 PyObject * obj0 = 0 ;
6913 PyObject * obj1 = 0 ;
6914 PyObject * obj2 = 0 ;
6915 PyObject * obj3 = 0 ;
6916 char *kwnames[] = {
6917 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6918 };
6919
6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6922 {
6923 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 if (obj2) {
6927 {
6928 arg3 = wxString_in_helper(obj2);
6929 if (arg3 == NULL) SWIG_fail;
6930 temp3 = True;
6931 }
6932 }
6933 if (obj3) {
6934 {
6935 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 }
6939 {
6940 PyThreadState* __tstate = wxPyBeginAllowThreads();
6941 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6942
6943 wxPyEndAllowThreads(__tstate);
6944 if (PyErr_Occurred()) SWIG_fail;
6945 }
6946 resultobj = result;
6947 {
6948 if (temp3)
6949 delete arg3;
6950 }
6951 return resultobj;
6952 fail:
6953 {
6954 if (temp3)
6955 delete arg3;
6956 }
6957 return NULL;
6958 }
6959
6960
6961 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6962 PyObject *resultobj;
6963 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6964 int arg2 ;
6965 wxString const &arg3_defvalue = wxPyEmptyString ;
6966 wxString *arg3 = (wxString *) &arg3_defvalue ;
6967 bool result;
6968 bool temp3 = False ;
6969 PyObject * obj0 = 0 ;
6970 PyObject * obj1 = 0 ;
6971 PyObject * obj2 = 0 ;
6972 char *kwnames[] = {
6973 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6974 };
6975
6976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
6977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6978 {
6979 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 if (obj2) {
6983 {
6984 arg3 = wxString_in_helper(obj2);
6985 if (arg3 == NULL) SWIG_fail;
6986 temp3 = True;
6987 }
6988 }
6989 {
6990 PyThreadState* __tstate = wxPyBeginAllowThreads();
6991 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6992
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6997 {
6998 if (temp3)
6999 delete arg3;
7000 }
7001 return resultobj;
7002 fail:
7003 {
7004 if (temp3)
7005 delete arg3;
7006 }
7007 return NULL;
7008 }
7009
7010
7011 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7012 PyObject *resultobj;
7013 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7014 wxWindow *arg2 = (wxWindow *) 0 ;
7015 PyObject * obj0 = 0 ;
7016 PyObject * obj1 = 0 ;
7017 char *kwnames[] = {
7018 (char *) "self",(char *) "parent", NULL
7019 };
7020
7021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7023 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7024 {
7025 PyThreadState* __tstate = wxPyBeginAllowThreads();
7026 (arg1)->SetDialogParent(arg2);
7027
7028 wxPyEndAllowThreads(__tstate);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 Py_INCREF(Py_None); resultobj = Py_None;
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj;
7040 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7041 wxString *arg2 = 0 ;
7042 bool temp2 = False ;
7043 PyObject * obj0 = 0 ;
7044 PyObject * obj1 = 0 ;
7045 char *kwnames[] = {
7046 (char *) "self",(char *) "title", NULL
7047 };
7048
7049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7051 {
7052 arg2 = wxString_in_helper(obj1);
7053 if (arg2 == NULL) SWIG_fail;
7054 temp2 = True;
7055 }
7056 {
7057 PyThreadState* __tstate = wxPyBeginAllowThreads();
7058 (arg1)->SetDialogTitle((wxString const &)*arg2);
7059
7060 wxPyEndAllowThreads(__tstate);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 Py_INCREF(Py_None); resultobj = Py_None;
7064 {
7065 if (temp2)
7066 delete arg2;
7067 }
7068 return resultobj;
7069 fail:
7070 {
7071 if (temp2)
7072 delete arg2;
7073 }
7074 return NULL;
7075 }
7076
7077
7078 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7079 PyObject *obj;
7080 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7081 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7082 Py_INCREF(obj);
7083 return Py_BuildValue((char *)"");
7084 }
7085 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7086 PyObject *resultobj;
7087 int arg1 ;
7088 int arg2 ;
7089 int arg3 ;
7090 int arg4 ;
7091 bool arg5 = (bool) False ;
7092 wxString const &arg6_defvalue = wxPyEmptyString ;
7093 wxString *arg6 = (wxString *) &arg6_defvalue ;
7094 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7095 wxFont *result;
7096 bool temp6 = False ;
7097 PyObject * obj0 = 0 ;
7098 PyObject * obj1 = 0 ;
7099 PyObject * obj2 = 0 ;
7100 PyObject * obj3 = 0 ;
7101 PyObject * obj4 = 0 ;
7102 PyObject * obj5 = 0 ;
7103 PyObject * obj6 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7109 {
7110 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 {
7114 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 {
7118 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
7121 {
7122 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7123 if (PyErr_Occurred()) SWIG_fail;
7124 }
7125 if (obj4) {
7126 {
7127 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 }
7131 if (obj5) {
7132 {
7133 arg6 = wxString_in_helper(obj5);
7134 if (arg6 == NULL) SWIG_fail;
7135 temp6 = True;
7136 }
7137 }
7138 if (obj6) {
7139 {
7140 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7141 if (PyErr_Occurred()) SWIG_fail;
7142 }
7143 }
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7147
7148 wxPyEndAllowThreads(__tstate);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7152 {
7153 if (temp6)
7154 delete arg6;
7155 }
7156 return resultobj;
7157 fail:
7158 {
7159 if (temp6)
7160 delete arg6;
7161 }
7162 return NULL;
7163 }
7164
7165
7166 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7167 PyObject *resultobj;
7168 wxFont *arg1 = (wxFont *) 0 ;
7169 PyObject * obj0 = 0 ;
7170 char *kwnames[] = {
7171 (char *) "self", NULL
7172 };
7173
7174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7176 {
7177 PyThreadState* __tstate = wxPyBeginAllowThreads();
7178 delete arg1;
7179
7180 wxPyEndAllowThreads(__tstate);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 Py_INCREF(Py_None); resultobj = Py_None;
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj;
7192 wxNativeFontInfo *arg1 = 0 ;
7193 wxFont *result;
7194 PyObject * obj0 = 0 ;
7195 char *kwnames[] = {
7196 (char *) "info", NULL
7197 };
7198
7199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7201 if (arg1 == NULL) {
7202 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7203 }
7204 {
7205 PyThreadState* __tstate = wxPyBeginAllowThreads();
7206 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7207
7208 wxPyEndAllowThreads(__tstate);
7209 if (PyErr_Occurred()) SWIG_fail;
7210 }
7211 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7212 return resultobj;
7213 fail:
7214 return NULL;
7215 }
7216
7217
7218 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7219 PyObject *resultobj;
7220 wxString *arg1 = 0 ;
7221 wxFont *result;
7222 bool temp1 = False ;
7223 PyObject * obj0 = 0 ;
7224 char *kwnames[] = {
7225 (char *) "info", NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7229 {
7230 arg1 = wxString_in_helper(obj0);
7231 if (arg1 == NULL) SWIG_fail;
7232 temp1 = True;
7233 }
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7242 {
7243 if (temp1)
7244 delete arg1;
7245 }
7246 return resultobj;
7247 fail:
7248 {
7249 if (temp1)
7250 delete arg1;
7251 }
7252 return NULL;
7253 }
7254
7255
7256 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj;
7258 int arg1 ;
7259 int arg2 ;
7260 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7261 wxString const &arg4_defvalue = wxPyEmptyString ;
7262 wxString *arg4 = (wxString *) &arg4_defvalue ;
7263 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7264 wxFont *result;
7265 bool temp4 = False ;
7266 PyObject * obj0 = 0 ;
7267 PyObject * obj1 = 0 ;
7268 PyObject * obj2 = 0 ;
7269 PyObject * obj3 = 0 ;
7270 PyObject * obj4 = 0 ;
7271 char *kwnames[] = {
7272 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7273 };
7274
7275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7276 {
7277 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 {
7281 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 if (obj2) {
7285 {
7286 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 }
7290 if (obj3) {
7291 {
7292 arg4 = wxString_in_helper(obj3);
7293 if (arg4 == NULL) SWIG_fail;
7294 temp4 = True;
7295 }
7296 }
7297 if (obj4) {
7298 {
7299 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 }
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7311 {
7312 if (temp4)
7313 delete arg4;
7314 }
7315 return resultobj;
7316 fail:
7317 {
7318 if (temp4)
7319 delete arg4;
7320 }
7321 return NULL;
7322 }
7323
7324
7325 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7326 PyObject *resultobj;
7327 wxFont *arg1 = (wxFont *) 0 ;
7328 bool result;
7329 PyObject * obj0 = 0 ;
7330 char *kwnames[] = {
7331 (char *) "self", NULL
7332 };
7333
7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7336 {
7337 PyThreadState* __tstate = wxPyBeginAllowThreads();
7338 result = (bool)((wxFont const *)arg1)->Ok();
7339
7340 wxPyEndAllowThreads(__tstate);
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7344 return resultobj;
7345 fail:
7346 return NULL;
7347 }
7348
7349
7350 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7351 PyObject *resultobj;
7352 wxFont *arg1 = (wxFont *) 0 ;
7353 wxFont *arg2 = 0 ;
7354 bool result;
7355 PyObject * obj0 = 0 ;
7356 PyObject * obj1 = 0 ;
7357 char *kwnames[] = {
7358 (char *) "self",(char *) "font", NULL
7359 };
7360
7361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7363 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7364 if (arg2 == NULL) {
7365 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7366 }
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 wxFont *arg1 = (wxFont *) 0 ;
7384 wxFont *arg2 = 0 ;
7385 bool result;
7386 PyObject * obj0 = 0 ;
7387 PyObject * obj1 = 0 ;
7388 char *kwnames[] = {
7389 (char *) "self",(char *) "font", NULL
7390 };
7391
7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7394 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7395 if (arg2 == NULL) {
7396 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7397 }
7398 {
7399 PyThreadState* __tstate = wxPyBeginAllowThreads();
7400 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7401
7402 wxPyEndAllowThreads(__tstate);
7403 if (PyErr_Occurred()) SWIG_fail;
7404 }
7405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7406 return resultobj;
7407 fail:
7408 return NULL;
7409 }
7410
7411
7412 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7413 PyObject *resultobj;
7414 wxFont *arg1 = (wxFont *) 0 ;
7415 int result;
7416 PyObject * obj0 = 0 ;
7417 char *kwnames[] = {
7418 (char *) "self", NULL
7419 };
7420
7421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7423 {
7424 PyThreadState* __tstate = wxPyBeginAllowThreads();
7425 result = (int)((wxFont const *)arg1)->GetPointSize();
7426
7427 wxPyEndAllowThreads(__tstate);
7428 if (PyErr_Occurred()) SWIG_fail;
7429 }
7430 resultobj = SWIG_PyObj_FromInt((int)result);
7431 return resultobj;
7432 fail:
7433 return NULL;
7434 }
7435
7436
7437 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7438 PyObject *resultobj;
7439 wxFont *arg1 = (wxFont *) 0 ;
7440 int result;
7441 PyObject * obj0 = 0 ;
7442 char *kwnames[] = {
7443 (char *) "self", NULL
7444 };
7445
7446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7448 {
7449 PyThreadState* __tstate = wxPyBeginAllowThreads();
7450 result = (int)((wxFont const *)arg1)->GetFamily();
7451
7452 wxPyEndAllowThreads(__tstate);
7453 if (PyErr_Occurred()) SWIG_fail;
7454 }
7455 resultobj = SWIG_PyObj_FromInt((int)result);
7456 return resultobj;
7457 fail:
7458 return NULL;
7459 }
7460
7461
7462 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7463 PyObject *resultobj;
7464 wxFont *arg1 = (wxFont *) 0 ;
7465 int result;
7466 PyObject * obj0 = 0 ;
7467 char *kwnames[] = {
7468 (char *) "self", NULL
7469 };
7470
7471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 result = (int)((wxFont const *)arg1)->GetStyle();
7476
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 resultobj = SWIG_PyObj_FromInt((int)result);
7481 return resultobj;
7482 fail:
7483 return NULL;
7484 }
7485
7486
7487 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7488 PyObject *resultobj;
7489 wxFont *arg1 = (wxFont *) 0 ;
7490 int result;
7491 PyObject * obj0 = 0 ;
7492 char *kwnames[] = {
7493 (char *) "self", NULL
7494 };
7495
7496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
7500 result = (int)((wxFont const *)arg1)->GetWeight();
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 resultobj = SWIG_PyObj_FromInt((int)result);
7506 return resultobj;
7507 fail:
7508 return NULL;
7509 }
7510
7511
7512 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj;
7514 wxFont *arg1 = (wxFont *) 0 ;
7515 bool result;
7516 PyObject * obj0 = 0 ;
7517 char *kwnames[] = {
7518 (char *) "self", NULL
7519 };
7520
7521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7523 {
7524 PyThreadState* __tstate = wxPyBeginAllowThreads();
7525 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7526
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj;
7539 wxFont *arg1 = (wxFont *) 0 ;
7540 wxString result;
7541 PyObject * obj0 = 0 ;
7542 char *kwnames[] = {
7543 (char *) "self", NULL
7544 };
7545
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7548 {
7549 PyThreadState* __tstate = wxPyBeginAllowThreads();
7550 result = ((wxFont const *)arg1)->GetFaceName();
7551
7552 wxPyEndAllowThreads(__tstate);
7553 if (PyErr_Occurred()) SWIG_fail;
7554 }
7555 {
7556 #if wxUSE_UNICODE
7557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7558 #else
7559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7560 #endif
7561 }
7562 return resultobj;
7563 fail:
7564 return NULL;
7565 }
7566
7567
7568 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj;
7570 wxFont *arg1 = (wxFont *) 0 ;
7571 int result;
7572 PyObject * obj0 = 0 ;
7573 char *kwnames[] = {
7574 (char *) "self", NULL
7575 };
7576
7577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7579 {
7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
7581 result = (int)((wxFont const *)arg1)->GetEncoding();
7582
7583 wxPyEndAllowThreads(__tstate);
7584 if (PyErr_Occurred()) SWIG_fail;
7585 }
7586 resultobj = SWIG_PyObj_FromInt((int)result);
7587 return resultobj;
7588 fail:
7589 return NULL;
7590 }
7591
7592
7593 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7594 PyObject *resultobj;
7595 wxFont *arg1 = (wxFont *) 0 ;
7596 wxNativeFontInfo *result;
7597 PyObject * obj0 = 0 ;
7598 char *kwnames[] = {
7599 (char *) "self", NULL
7600 };
7601
7602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7604 {
7605 PyThreadState* __tstate = wxPyBeginAllowThreads();
7606 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7607
7608 wxPyEndAllowThreads(__tstate);
7609 if (PyErr_Occurred()) SWIG_fail;
7610 }
7611 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7612 return resultobj;
7613 fail:
7614 return NULL;
7615 }
7616
7617
7618 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7619 PyObject *resultobj;
7620 wxFont *arg1 = (wxFont *) 0 ;
7621 bool result;
7622 PyObject * obj0 = 0 ;
7623 char *kwnames[] = {
7624 (char *) "self", NULL
7625 };
7626
7627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7637 return resultobj;
7638 fail:
7639 return NULL;
7640 }
7641
7642
7643 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj;
7645 wxFont *arg1 = (wxFont *) 0 ;
7646 wxString result;
7647 PyObject * obj0 = 0 ;
7648 char *kwnames[] = {
7649 (char *) "self", NULL
7650 };
7651
7652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7654 {
7655 PyThreadState* __tstate = wxPyBeginAllowThreads();
7656 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7657
7658 wxPyEndAllowThreads(__tstate);
7659 if (PyErr_Occurred()) SWIG_fail;
7660 }
7661 {
7662 #if wxUSE_UNICODE
7663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7664 #else
7665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7666 #endif
7667 }
7668 return resultobj;
7669 fail:
7670 return NULL;
7671 }
7672
7673
7674 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7675 PyObject *resultobj;
7676 wxFont *arg1 = (wxFont *) 0 ;
7677 wxString result;
7678 PyObject * obj0 = 0 ;
7679 char *kwnames[] = {
7680 (char *) "self", NULL
7681 };
7682
7683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7685 {
7686 PyThreadState* __tstate = wxPyBeginAllowThreads();
7687 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7688
7689 wxPyEndAllowThreads(__tstate);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 {
7693 #if wxUSE_UNICODE
7694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7695 #else
7696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7697 #endif
7698 }
7699 return resultobj;
7700 fail:
7701 return NULL;
7702 }
7703
7704
7705 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7706 PyObject *resultobj;
7707 wxFont *arg1 = (wxFont *) 0 ;
7708 int arg2 ;
7709 PyObject * obj0 = 0 ;
7710 PyObject * obj1 = 0 ;
7711 char *kwnames[] = {
7712 (char *) "self",(char *) "pointSize", NULL
7713 };
7714
7715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7717 {
7718 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 {
7722 PyThreadState* __tstate = wxPyBeginAllowThreads();
7723 (arg1)->SetPointSize(arg2);
7724
7725 wxPyEndAllowThreads(__tstate);
7726 if (PyErr_Occurred()) SWIG_fail;
7727 }
7728 Py_INCREF(Py_None); resultobj = Py_None;
7729 return resultobj;
7730 fail:
7731 return NULL;
7732 }
7733
7734
7735 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7736 PyObject *resultobj;
7737 wxFont *arg1 = (wxFont *) 0 ;
7738 int arg2 ;
7739 PyObject * obj0 = 0 ;
7740 PyObject * obj1 = 0 ;
7741 char *kwnames[] = {
7742 (char *) "self",(char *) "family", NULL
7743 };
7744
7745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7747 {
7748 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7749 if (PyErr_Occurred()) SWIG_fail;
7750 }
7751 {
7752 PyThreadState* __tstate = wxPyBeginAllowThreads();
7753 (arg1)->SetFamily(arg2);
7754
7755 wxPyEndAllowThreads(__tstate);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 Py_INCREF(Py_None); resultobj = Py_None;
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7766 PyObject *resultobj;
7767 wxFont *arg1 = (wxFont *) 0 ;
7768 int arg2 ;
7769 PyObject * obj0 = 0 ;
7770 PyObject * obj1 = 0 ;
7771 char *kwnames[] = {
7772 (char *) "self",(char *) "style", NULL
7773 };
7774
7775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7777 {
7778 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 {
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 (arg1)->SetStyle(arg2);
7784
7785 wxPyEndAllowThreads(__tstate);
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
7788 Py_INCREF(Py_None); resultobj = Py_None;
7789 return resultobj;
7790 fail:
7791 return NULL;
7792 }
7793
7794
7795 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7796 PyObject *resultobj;
7797 wxFont *arg1 = (wxFont *) 0 ;
7798 int arg2 ;
7799 PyObject * obj0 = 0 ;
7800 PyObject * obj1 = 0 ;
7801 char *kwnames[] = {
7802 (char *) "self",(char *) "weight", NULL
7803 };
7804
7805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7807 {
7808 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7809 if (PyErr_Occurred()) SWIG_fail;
7810 }
7811 {
7812 PyThreadState* __tstate = wxPyBeginAllowThreads();
7813 (arg1)->SetWeight(arg2);
7814
7815 wxPyEndAllowThreads(__tstate);
7816 if (PyErr_Occurred()) SWIG_fail;
7817 }
7818 Py_INCREF(Py_None); resultobj = Py_None;
7819 return resultobj;
7820 fail:
7821 return NULL;
7822 }
7823
7824
7825 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7826 PyObject *resultobj;
7827 wxFont *arg1 = (wxFont *) 0 ;
7828 wxString *arg2 = 0 ;
7829 bool temp2 = False ;
7830 PyObject * obj0 = 0 ;
7831 PyObject * obj1 = 0 ;
7832 char *kwnames[] = {
7833 (char *) "self",(char *) "faceName", NULL
7834 };
7835
7836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7838 {
7839 arg2 = wxString_in_helper(obj1);
7840 if (arg2 == NULL) SWIG_fail;
7841 temp2 = True;
7842 }
7843 {
7844 PyThreadState* __tstate = wxPyBeginAllowThreads();
7845 (arg1)->SetFaceName((wxString const &)*arg2);
7846
7847 wxPyEndAllowThreads(__tstate);
7848 if (PyErr_Occurred()) SWIG_fail;
7849 }
7850 Py_INCREF(Py_None); resultobj = Py_None;
7851 {
7852 if (temp2)
7853 delete arg2;
7854 }
7855 return resultobj;
7856 fail:
7857 {
7858 if (temp2)
7859 delete arg2;
7860 }
7861 return NULL;
7862 }
7863
7864
7865 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7866 PyObject *resultobj;
7867 wxFont *arg1 = (wxFont *) 0 ;
7868 bool arg2 ;
7869 PyObject * obj0 = 0 ;
7870 PyObject * obj1 = 0 ;
7871 char *kwnames[] = {
7872 (char *) "self",(char *) "underlined", NULL
7873 };
7874
7875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7877 {
7878 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 {
7882 PyThreadState* __tstate = wxPyBeginAllowThreads();
7883 (arg1)->SetUnderlined(arg2);
7884
7885 wxPyEndAllowThreads(__tstate);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 Py_INCREF(Py_None); resultobj = Py_None;
7889 return resultobj;
7890 fail:
7891 return NULL;
7892 }
7893
7894
7895 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj;
7897 wxFont *arg1 = (wxFont *) 0 ;
7898 int arg2 ;
7899 PyObject * obj0 = 0 ;
7900 PyObject * obj1 = 0 ;
7901 char *kwnames[] = {
7902 (char *) "self",(char *) "encoding", NULL
7903 };
7904
7905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7907 {
7908 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 (arg1)->SetEncoding((wxFontEncoding )arg2);
7914
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 Py_INCREF(Py_None); resultobj = Py_None;
7919 return resultobj;
7920 fail:
7921 return NULL;
7922 }
7923
7924
7925 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7926 PyObject *resultobj;
7927 wxFont *arg1 = (wxFont *) 0 ;
7928 wxNativeFontInfo *arg2 = 0 ;
7929 PyObject * obj0 = 0 ;
7930 PyObject * obj1 = 0 ;
7931 char *kwnames[] = {
7932 (char *) "self",(char *) "info", NULL
7933 };
7934
7935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7937 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7938 if (arg2 == NULL) {
7939 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7940 }
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 Py_INCREF(Py_None); resultobj = Py_None;
7949 return resultobj;
7950 fail:
7951 return NULL;
7952 }
7953
7954
7955 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj;
7957 wxFont *arg1 = (wxFont *) 0 ;
7958 wxString *arg2 = 0 ;
7959 bool temp2 = False ;
7960 PyObject * obj0 = 0 ;
7961 PyObject * obj1 = 0 ;
7962 char *kwnames[] = {
7963 (char *) "self",(char *) "info", NULL
7964 };
7965
7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7968 {
7969 arg2 = wxString_in_helper(obj1);
7970 if (arg2 == NULL) SWIG_fail;
7971 temp2 = True;
7972 }
7973 {
7974 PyThreadState* __tstate = wxPyBeginAllowThreads();
7975 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7976
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 Py_INCREF(Py_None); resultobj = Py_None;
7981 {
7982 if (temp2)
7983 delete arg2;
7984 }
7985 return resultobj;
7986 fail:
7987 {
7988 if (temp2)
7989 delete arg2;
7990 }
7991 return NULL;
7992 }
7993
7994
7995 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7996 PyObject *resultobj;
7997 wxFont *arg1 = (wxFont *) 0 ;
7998 wxString *arg2 = 0 ;
7999 bool temp2 = False ;
8000 PyObject * obj0 = 0 ;
8001 PyObject * obj1 = 0 ;
8002 char *kwnames[] = {
8003 (char *) "self",(char *) "info", NULL
8004 };
8005
8006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8008 {
8009 arg2 = wxString_in_helper(obj1);
8010 if (arg2 == NULL) SWIG_fail;
8011 temp2 = True;
8012 }
8013 {
8014 PyThreadState* __tstate = wxPyBeginAllowThreads();
8015 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8016
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 Py_INCREF(Py_None); resultobj = Py_None;
8021 {
8022 if (temp2)
8023 delete arg2;
8024 }
8025 return resultobj;
8026 fail:
8027 {
8028 if (temp2)
8029 delete arg2;
8030 }
8031 return NULL;
8032 }
8033
8034
8035 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxFont *arg1 = (wxFont *) 0 ;
8038 wxString result;
8039 PyObject * obj0 = 0 ;
8040 char *kwnames[] = {
8041 (char *) "self", NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8046 {
8047 PyThreadState* __tstate = wxPyBeginAllowThreads();
8048 result = ((wxFont const *)arg1)->GetFamilyString();
8049
8050 wxPyEndAllowThreads(__tstate);
8051 if (PyErr_Occurred()) SWIG_fail;
8052 }
8053 {
8054 #if wxUSE_UNICODE
8055 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8056 #else
8057 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8058 #endif
8059 }
8060 return resultobj;
8061 fail:
8062 return NULL;
8063 }
8064
8065
8066 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8067 PyObject *resultobj;
8068 wxFont *arg1 = (wxFont *) 0 ;
8069 wxString result;
8070 PyObject * obj0 = 0 ;
8071 char *kwnames[] = {
8072 (char *) "self", NULL
8073 };
8074
8075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8077 {
8078 PyThreadState* __tstate = wxPyBeginAllowThreads();
8079 result = ((wxFont const *)arg1)->GetStyleString();
8080
8081 wxPyEndAllowThreads(__tstate);
8082 if (PyErr_Occurred()) SWIG_fail;
8083 }
8084 {
8085 #if wxUSE_UNICODE
8086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8087 #else
8088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8089 #endif
8090 }
8091 return resultobj;
8092 fail:
8093 return NULL;
8094 }
8095
8096
8097 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8098 PyObject *resultobj;
8099 wxFont *arg1 = (wxFont *) 0 ;
8100 wxString result;
8101 PyObject * obj0 = 0 ;
8102 char *kwnames[] = {
8103 (char *) "self", NULL
8104 };
8105
8106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8108 {
8109 PyThreadState* __tstate = wxPyBeginAllowThreads();
8110 result = ((wxFont const *)arg1)->GetWeightString();
8111
8112 wxPyEndAllowThreads(__tstate);
8113 if (PyErr_Occurred()) SWIG_fail;
8114 }
8115 {
8116 #if wxUSE_UNICODE
8117 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8118 #else
8119 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8120 #endif
8121 }
8122 return resultobj;
8123 fail:
8124 return NULL;
8125 }
8126
8127
8128 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8129 PyObject *resultobj;
8130 wxFont *arg1 = (wxFont *) 0 ;
8131 bool arg2 = (bool) True ;
8132 PyObject * obj0 = 0 ;
8133 PyObject * obj1 = 0 ;
8134 char *kwnames[] = {
8135 (char *) "self",(char *) "no", NULL
8136 };
8137
8138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8140 if (obj1) {
8141 {
8142 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8143 if (PyErr_Occurred()) SWIG_fail;
8144 }
8145 }
8146 {
8147 PyThreadState* __tstate = wxPyBeginAllowThreads();
8148 (arg1)->SetNoAntiAliasing(arg2);
8149
8150 wxPyEndAllowThreads(__tstate);
8151 if (PyErr_Occurred()) SWIG_fail;
8152 }
8153 Py_INCREF(Py_None); resultobj = Py_None;
8154 return resultobj;
8155 fail:
8156 return NULL;
8157 }
8158
8159
8160 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8161 PyObject *resultobj;
8162 wxFont *arg1 = (wxFont *) 0 ;
8163 bool result;
8164 PyObject * obj0 = 0 ;
8165 char *kwnames[] = {
8166 (char *) "self", NULL
8167 };
8168
8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8171 {
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (bool)(arg1)->GetNoAntiAliasing();
8174
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8179 return resultobj;
8180 fail:
8181 return NULL;
8182 }
8183
8184
8185 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8186 PyObject *resultobj;
8187 int result;
8188 char *kwnames[] = {
8189 NULL
8190 };
8191
8192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8193 {
8194 PyThreadState* __tstate = wxPyBeginAllowThreads();
8195 result = (int)wxFont::GetDefaultEncoding();
8196
8197 wxPyEndAllowThreads(__tstate);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 resultobj = SWIG_PyObj_FromInt((int)result);
8201 return resultobj;
8202 fail:
8203 return NULL;
8204 }
8205
8206
8207 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8208 PyObject *resultobj;
8209 int arg1 ;
8210 PyObject * obj0 = 0 ;
8211 char *kwnames[] = {
8212 (char *) "encoding", NULL
8213 };
8214
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8216 {
8217 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 }
8220 {
8221 PyThreadState* __tstate = wxPyBeginAllowThreads();
8222 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8223
8224 wxPyEndAllowThreads(__tstate);
8225 if (PyErr_Occurred()) SWIG_fail;
8226 }
8227 Py_INCREF(Py_None); resultobj = Py_None;
8228 return resultobj;
8229 fail:
8230 return NULL;
8231 }
8232
8233
8234 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8235 PyObject *obj;
8236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8237 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8238 Py_INCREF(obj);
8239 return Py_BuildValue((char *)"");
8240 }
8241 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8242 PyObject *resultobj;
8243 wxPyFontEnumerator *result;
8244 char *kwnames[] = {
8245 NULL
8246 };
8247
8248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8249 {
8250 PyThreadState* __tstate = wxPyBeginAllowThreads();
8251 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8252
8253 wxPyEndAllowThreads(__tstate);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 }
8256 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8257 return resultobj;
8258 fail:
8259 return NULL;
8260 }
8261
8262
8263 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8264 PyObject *resultobj;
8265 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8266 PyObject * obj0 = 0 ;
8267 char *kwnames[] = {
8268 (char *) "self", NULL
8269 };
8270
8271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8273 {
8274 PyThreadState* __tstate = wxPyBeginAllowThreads();
8275 delete arg1;
8276
8277 wxPyEndAllowThreads(__tstate);
8278 if (PyErr_Occurred()) SWIG_fail;
8279 }
8280 Py_INCREF(Py_None); resultobj = Py_None;
8281 return resultobj;
8282 fail:
8283 return NULL;
8284 }
8285
8286
8287 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8288 PyObject *resultobj;
8289 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8290 PyObject *arg2 = (PyObject *) 0 ;
8291 PyObject *arg3 = (PyObject *) 0 ;
8292 bool arg4 ;
8293 PyObject * obj0 = 0 ;
8294 PyObject * obj1 = 0 ;
8295 PyObject * obj2 = 0 ;
8296 PyObject * obj3 = 0 ;
8297 char *kwnames[] = {
8298 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8299 };
8300
8301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8303 arg2 = obj1;
8304 arg3 = obj2;
8305 {
8306 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8307 if (PyErr_Occurred()) SWIG_fail;
8308 }
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8312
8313 wxPyEndAllowThreads(__tstate);
8314 if (PyErr_Occurred()) SWIG_fail;
8315 }
8316 Py_INCREF(Py_None); resultobj = Py_None;
8317 return resultobj;
8318 fail:
8319 return NULL;
8320 }
8321
8322
8323 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8324 PyObject *resultobj;
8325 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8326 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8327 bool arg3 = (bool) False ;
8328 bool result;
8329 PyObject * obj0 = 0 ;
8330 PyObject * obj1 = 0 ;
8331 PyObject * obj2 = 0 ;
8332 char *kwnames[] = {
8333 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8334 };
8335
8336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8338 if (obj1) {
8339 {
8340 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 }
8344 if (obj2) {
8345 {
8346 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8347 if (PyErr_Occurred()) SWIG_fail;
8348 }
8349 }
8350 {
8351 PyThreadState* __tstate = wxPyBeginAllowThreads();
8352 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8353
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8358 return resultobj;
8359 fail:
8360 return NULL;
8361 }
8362
8363
8364 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8365 PyObject *resultobj;
8366 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8367 wxString const &arg2_defvalue = wxPyEmptyString ;
8368 wxString *arg2 = (wxString *) &arg2_defvalue ;
8369 bool result;
8370 bool temp2 = False ;
8371 PyObject * obj0 = 0 ;
8372 PyObject * obj1 = 0 ;
8373 char *kwnames[] = {
8374 (char *) "self",(char *) "facename", NULL
8375 };
8376
8377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8379 if (obj1) {
8380 {
8381 arg2 = wxString_in_helper(obj1);
8382 if (arg2 == NULL) SWIG_fail;
8383 temp2 = True;
8384 }
8385 }
8386 {
8387 PyThreadState* __tstate = wxPyBeginAllowThreads();
8388 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8389
8390 wxPyEndAllowThreads(__tstate);
8391 if (PyErr_Occurred()) SWIG_fail;
8392 }
8393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8394 {
8395 if (temp2)
8396 delete arg2;
8397 }
8398 return resultobj;
8399 fail:
8400 {
8401 if (temp2)
8402 delete arg2;
8403 }
8404 return NULL;
8405 }
8406
8407
8408 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8409 PyObject *resultobj;
8410 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8411 PyObject *result;
8412 PyObject * obj0 = 0 ;
8413 char *kwnames[] = {
8414 (char *) "self", NULL
8415 };
8416
8417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8419 {
8420 PyThreadState* __tstate = wxPyBeginAllowThreads();
8421 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8422
8423 wxPyEndAllowThreads(__tstate);
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 resultobj = result;
8427 return resultobj;
8428 fail:
8429 return NULL;
8430 }
8431
8432
8433 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8434 PyObject *resultobj;
8435 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8436 PyObject *result;
8437 PyObject * obj0 = 0 ;
8438 char *kwnames[] = {
8439 (char *) "self", NULL
8440 };
8441
8442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8444 {
8445 PyThreadState* __tstate = wxPyBeginAllowThreads();
8446 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8447
8448 wxPyEndAllowThreads(__tstate);
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 resultobj = result;
8452 return resultobj;
8453 fail:
8454 return NULL;
8455 }
8456
8457
8458 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8459 PyObject *obj;
8460 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8461 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8462 Py_INCREF(obj);
8463 return Py_BuildValue((char *)"");
8464 }
8465 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8466 PyObject *resultobj;
8467 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8468 int arg2 ;
8469 PyObject * obj0 = 0 ;
8470 PyObject * obj1 = 0 ;
8471 char *kwnames[] = {
8472 (char *) "self",(char *) "Language", NULL
8473 };
8474
8475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8477 {
8478 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 if (arg1) (arg1)->Language = arg2;
8482
8483 Py_INCREF(Py_None); resultobj = Py_None;
8484 return resultobj;
8485 fail:
8486 return NULL;
8487 }
8488
8489
8490 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj;
8492 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8493 int result;
8494 PyObject * obj0 = 0 ;
8495 char *kwnames[] = {
8496 (char *) "self", NULL
8497 };
8498
8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8501 result = (int) ((arg1)->Language);
8502
8503 resultobj = SWIG_PyObj_FromInt((int)result);
8504 return resultobj;
8505 fail:
8506 return NULL;
8507 }
8508
8509
8510 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8511 PyObject *resultobj;
8512 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8513 wxString *arg2 = (wxString *) 0 ;
8514 bool temp2 = False ;
8515 PyObject * obj0 = 0 ;
8516 PyObject * obj1 = 0 ;
8517 char *kwnames[] = {
8518 (char *) "self",(char *) "CanonicalName", NULL
8519 };
8520
8521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8523 {
8524 arg2 = wxString_in_helper(obj1);
8525 if (arg2 == NULL) SWIG_fail;
8526 temp2 = True;
8527 }
8528 if (arg1) (arg1)->CanonicalName = *arg2;
8529
8530 Py_INCREF(Py_None); resultobj = Py_None;
8531 {
8532 if (temp2)
8533 delete arg2;
8534 }
8535 return resultobj;
8536 fail:
8537 {
8538 if (temp2)
8539 delete arg2;
8540 }
8541 return NULL;
8542 }
8543
8544
8545 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8546 PyObject *resultobj;
8547 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8548 wxString *result;
8549 PyObject * obj0 = 0 ;
8550 char *kwnames[] = {
8551 (char *) "self", NULL
8552 };
8553
8554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8556 result = (wxString *)& ((arg1)->CanonicalName);
8557
8558 {
8559 #if wxUSE_UNICODE
8560 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8561 #else
8562 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8563 #endif
8564 }
8565 return resultobj;
8566 fail:
8567 return NULL;
8568 }
8569
8570
8571 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8572 PyObject *resultobj;
8573 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8574 wxString *arg2 = (wxString *) 0 ;
8575 bool temp2 = False ;
8576 PyObject * obj0 = 0 ;
8577 PyObject * obj1 = 0 ;
8578 char *kwnames[] = {
8579 (char *) "self",(char *) "Description", NULL
8580 };
8581
8582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8584 {
8585 arg2 = wxString_in_helper(obj1);
8586 if (arg2 == NULL) SWIG_fail;
8587 temp2 = True;
8588 }
8589 if (arg1) (arg1)->Description = *arg2;
8590
8591 Py_INCREF(Py_None); resultobj = Py_None;
8592 {
8593 if (temp2)
8594 delete arg2;
8595 }
8596 return resultobj;
8597 fail:
8598 {
8599 if (temp2)
8600 delete arg2;
8601 }
8602 return NULL;
8603 }
8604
8605
8606 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8607 PyObject *resultobj;
8608 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8609 wxString *result;
8610 PyObject * obj0 = 0 ;
8611 char *kwnames[] = {
8612 (char *) "self", NULL
8613 };
8614
8615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8617 result = (wxString *)& ((arg1)->Description);
8618
8619 {
8620 #if wxUSE_UNICODE
8621 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8622 #else
8623 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8624 #endif
8625 }
8626 return resultobj;
8627 fail:
8628 return NULL;
8629 }
8630
8631
8632 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8633 PyObject *obj;
8634 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8635 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8636 Py_INCREF(obj);
8637 return Py_BuildValue((char *)"");
8638 }
8639 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj;
8641 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8642 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8643 wxLocale *result;
8644 PyObject * obj0 = 0 ;
8645 PyObject * obj1 = 0 ;
8646 char *kwnames[] = {
8647 (char *) "language",(char *) "flags", NULL
8648 };
8649
8650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
8651 if (obj0) {
8652 {
8653 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8654 if (PyErr_Occurred()) SWIG_fail;
8655 }
8656 }
8657 if (obj1) {
8658 {
8659 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 }
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 result = (wxLocale *)new wxLocale(arg1,arg2);
8666
8667 wxPyEndAllowThreads(__tstate);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8671 return resultobj;
8672 fail:
8673 return NULL;
8674 }
8675
8676
8677 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj;
8679 wxLocale *arg1 = (wxLocale *) 0 ;
8680 PyObject * obj0 = 0 ;
8681 char *kwnames[] = {
8682 (char *) "self", NULL
8683 };
8684
8685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8687 {
8688 PyThreadState* __tstate = wxPyBeginAllowThreads();
8689 delete arg1;
8690
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 Py_INCREF(Py_None); resultobj = Py_None;
8695 return resultobj;
8696 fail:
8697 return NULL;
8698 }
8699
8700
8701 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8702 PyObject *resultobj;
8703 wxLocale *arg1 = (wxLocale *) 0 ;
8704 wxString *arg2 = 0 ;
8705 wxString const &arg3_defvalue = wxPyEmptyString ;
8706 wxString *arg3 = (wxString *) &arg3_defvalue ;
8707 wxString const &arg4_defvalue = wxPyEmptyString ;
8708 wxString *arg4 = (wxString *) &arg4_defvalue ;
8709 bool arg5 = (bool) True ;
8710 bool arg6 = (bool) False ;
8711 bool result;
8712 bool temp2 = False ;
8713 bool temp3 = False ;
8714 bool temp4 = False ;
8715 PyObject * obj0 = 0 ;
8716 PyObject * obj1 = 0 ;
8717 PyObject * obj2 = 0 ;
8718 PyObject * obj3 = 0 ;
8719 PyObject * obj4 = 0 ;
8720 PyObject * obj5 = 0 ;
8721 char *kwnames[] = {
8722 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8723 };
8724
8725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8727 {
8728 arg2 = wxString_in_helper(obj1);
8729 if (arg2 == NULL) SWIG_fail;
8730 temp2 = True;
8731 }
8732 if (obj2) {
8733 {
8734 arg3 = wxString_in_helper(obj2);
8735 if (arg3 == NULL) SWIG_fail;
8736 temp3 = True;
8737 }
8738 }
8739 if (obj3) {
8740 {
8741 arg4 = wxString_in_helper(obj3);
8742 if (arg4 == NULL) SWIG_fail;
8743 temp4 = True;
8744 }
8745 }
8746 if (obj4) {
8747 {
8748 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 }
8752 if (obj5) {
8753 {
8754 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
8755 if (PyErr_Occurred()) SWIG_fail;
8756 }
8757 }
8758 {
8759 PyThreadState* __tstate = wxPyBeginAllowThreads();
8760 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8761
8762 wxPyEndAllowThreads(__tstate);
8763 if (PyErr_Occurred()) SWIG_fail;
8764 }
8765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8766 {
8767 if (temp2)
8768 delete arg2;
8769 }
8770 {
8771 if (temp3)
8772 delete arg3;
8773 }
8774 {
8775 if (temp4)
8776 delete arg4;
8777 }
8778 return resultobj;
8779 fail:
8780 {
8781 if (temp2)
8782 delete arg2;
8783 }
8784 {
8785 if (temp3)
8786 delete arg3;
8787 }
8788 {
8789 if (temp4)
8790 delete arg4;
8791 }
8792 return NULL;
8793 }
8794
8795
8796 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8797 PyObject *resultobj;
8798 wxLocale *arg1 = (wxLocale *) 0 ;
8799 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8800 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8801 bool result;
8802 PyObject * obj0 = 0 ;
8803 PyObject * obj1 = 0 ;
8804 PyObject * obj2 = 0 ;
8805 char *kwnames[] = {
8806 (char *) "self",(char *) "language",(char *) "flags", NULL
8807 };
8808
8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
8810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8811 if (obj1) {
8812 {
8813 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 }
8817 if (obj2) {
8818 {
8819 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 }
8823 {
8824 PyThreadState* __tstate = wxPyBeginAllowThreads();
8825 result = (bool)(arg1)->Init(arg2,arg3);
8826
8827 wxPyEndAllowThreads(__tstate);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8831 return resultobj;
8832 fail:
8833 return NULL;
8834 }
8835
8836
8837 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8838 PyObject *resultobj;
8839 int result;
8840 char *kwnames[] = {
8841 NULL
8842 };
8843
8844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8845 {
8846 PyThreadState* __tstate = wxPyBeginAllowThreads();
8847 result = (int)wxLocale::GetSystemLanguage();
8848
8849 wxPyEndAllowThreads(__tstate);
8850 if (PyErr_Occurred()) SWIG_fail;
8851 }
8852 resultobj = SWIG_PyObj_FromInt((int)result);
8853 return resultobj;
8854 fail:
8855 return NULL;
8856 }
8857
8858
8859 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8860 PyObject *resultobj;
8861 int result;
8862 char *kwnames[] = {
8863 NULL
8864 };
8865
8866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8867 {
8868 PyThreadState* __tstate = wxPyBeginAllowThreads();
8869 result = (int)wxLocale::GetSystemEncoding();
8870
8871 wxPyEndAllowThreads(__tstate);
8872 if (PyErr_Occurred()) SWIG_fail;
8873 }
8874 resultobj = SWIG_PyObj_FromInt((int)result);
8875 return resultobj;
8876 fail:
8877 return NULL;
8878 }
8879
8880
8881 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8882 PyObject *resultobj;
8883 wxString result;
8884 char *kwnames[] = {
8885 NULL
8886 };
8887
8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8889 {
8890 PyThreadState* __tstate = wxPyBeginAllowThreads();
8891 result = wxLocale::GetSystemEncodingName();
8892
8893 wxPyEndAllowThreads(__tstate);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 {
8897 #if wxUSE_UNICODE
8898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8899 #else
8900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8901 #endif
8902 }
8903 return resultobj;
8904 fail:
8905 return NULL;
8906 }
8907
8908
8909 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8910 PyObject *resultobj;
8911 wxLocale *arg1 = (wxLocale *) 0 ;
8912 bool result;
8913 PyObject * obj0 = 0 ;
8914 char *kwnames[] = {
8915 (char *) "self", NULL
8916 };
8917
8918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8920 {
8921 PyThreadState* __tstate = wxPyBeginAllowThreads();
8922 result = (bool)((wxLocale const *)arg1)->IsOk();
8923
8924 wxPyEndAllowThreads(__tstate);
8925 if (PyErr_Occurred()) SWIG_fail;
8926 }
8927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8928 return resultobj;
8929 fail:
8930 return NULL;
8931 }
8932
8933
8934 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8935 PyObject *resultobj;
8936 wxLocale *arg1 = (wxLocale *) 0 ;
8937 wxString result;
8938 PyObject * obj0 = 0 ;
8939 char *kwnames[] = {
8940 (char *) "self", NULL
8941 };
8942
8943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 result = ((wxLocale const *)arg1)->GetLocale();
8948
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 {
8953 #if wxUSE_UNICODE
8954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8955 #else
8956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8957 #endif
8958 }
8959 return resultobj;
8960 fail:
8961 return NULL;
8962 }
8963
8964
8965 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj;
8967 wxLocale *arg1 = (wxLocale *) 0 ;
8968 int result;
8969 PyObject * obj0 = 0 ;
8970 char *kwnames[] = {
8971 (char *) "self", NULL
8972 };
8973
8974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 result = (int)((wxLocale const *)arg1)->GetLanguage();
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 resultobj = SWIG_PyObj_FromInt((int)result);
8984 return resultobj;
8985 fail:
8986 return NULL;
8987 }
8988
8989
8990 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8991 PyObject *resultobj;
8992 wxLocale *arg1 = (wxLocale *) 0 ;
8993 wxString result;
8994 PyObject * obj0 = 0 ;
8995 char *kwnames[] = {
8996 (char *) "self", NULL
8997 };
8998
8999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9001 {
9002 PyThreadState* __tstate = wxPyBeginAllowThreads();
9003 result = ((wxLocale const *)arg1)->GetSysName();
9004
9005 wxPyEndAllowThreads(__tstate);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 }
9008 {
9009 #if wxUSE_UNICODE
9010 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9011 #else
9012 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9013 #endif
9014 }
9015 return resultobj;
9016 fail:
9017 return NULL;
9018 }
9019
9020
9021 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9022 PyObject *resultobj;
9023 wxLocale *arg1 = (wxLocale *) 0 ;
9024 wxString result;
9025 PyObject * obj0 = 0 ;
9026 char *kwnames[] = {
9027 (char *) "self", NULL
9028 };
9029
9030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9032 {
9033 PyThreadState* __tstate = wxPyBeginAllowThreads();
9034 result = ((wxLocale const *)arg1)->GetCanonicalName();
9035
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 {
9040 #if wxUSE_UNICODE
9041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9042 #else
9043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9044 #endif
9045 }
9046 return resultobj;
9047 fail:
9048 return NULL;
9049 }
9050
9051
9052 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9053 PyObject *resultobj;
9054 wxString *arg1 = 0 ;
9055 bool temp1 = False ;
9056 PyObject * obj0 = 0 ;
9057 char *kwnames[] = {
9058 (char *) "prefix", NULL
9059 };
9060
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9062 {
9063 arg1 = wxString_in_helper(obj0);
9064 if (arg1 == NULL) SWIG_fail;
9065 temp1 = True;
9066 }
9067 {
9068 PyThreadState* __tstate = wxPyBeginAllowThreads();
9069 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9070
9071 wxPyEndAllowThreads(__tstate);
9072 if (PyErr_Occurred()) SWIG_fail;
9073 }
9074 Py_INCREF(Py_None); resultobj = Py_None;
9075 {
9076 if (temp1)
9077 delete arg1;
9078 }
9079 return resultobj;
9080 fail:
9081 {
9082 if (temp1)
9083 delete arg1;
9084 }
9085 return NULL;
9086 }
9087
9088
9089 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9090 PyObject *resultobj;
9091 wxLocale *arg1 = (wxLocale *) 0 ;
9092 wxString *arg2 = 0 ;
9093 bool result;
9094 bool temp2 = False ;
9095 PyObject * obj0 = 0 ;
9096 PyObject * obj1 = 0 ;
9097 char *kwnames[] = {
9098 (char *) "self",(char *) "szDomain", NULL
9099 };
9100
9101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9103 {
9104 arg2 = wxString_in_helper(obj1);
9105 if (arg2 == NULL) SWIG_fail;
9106 temp2 = True;
9107 }
9108 {
9109 PyThreadState* __tstate = wxPyBeginAllowThreads();
9110 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9111
9112 wxPyEndAllowThreads(__tstate);
9113 if (PyErr_Occurred()) SWIG_fail;
9114 }
9115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9116 {
9117 if (temp2)
9118 delete arg2;
9119 }
9120 return resultobj;
9121 fail:
9122 {
9123 if (temp2)
9124 delete arg2;
9125 }
9126 return NULL;
9127 }
9128
9129
9130 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9131 PyObject *resultobj;
9132 wxLocale *arg1 = (wxLocale *) 0 ;
9133 wxString *arg2 = 0 ;
9134 bool result;
9135 bool temp2 = False ;
9136 PyObject * obj0 = 0 ;
9137 PyObject * obj1 = 0 ;
9138 char *kwnames[] = {
9139 (char *) "self",(char *) "szDomain", NULL
9140 };
9141
9142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9144 {
9145 arg2 = wxString_in_helper(obj1);
9146 if (arg2 == NULL) SWIG_fail;
9147 temp2 = True;
9148 }
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9152
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9157 {
9158 if (temp2)
9159 delete arg2;
9160 }
9161 return resultobj;
9162 fail:
9163 {
9164 if (temp2)
9165 delete arg2;
9166 }
9167 return NULL;
9168 }
9169
9170
9171 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9172 PyObject *resultobj;
9173 int arg1 ;
9174 wxLanguageInfo *result;
9175 PyObject * obj0 = 0 ;
9176 char *kwnames[] = {
9177 (char *) "lang", NULL
9178 };
9179
9180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9181 {
9182 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 }
9185 {
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9188
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9193 return resultobj;
9194 fail:
9195 return NULL;
9196 }
9197
9198
9199 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9200 PyObject *resultobj;
9201 int arg1 ;
9202 wxString result;
9203 PyObject * obj0 = 0 ;
9204 char *kwnames[] = {
9205 (char *) "lang", NULL
9206 };
9207
9208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9209 {
9210 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
9213 {
9214 PyThreadState* __tstate = wxPyBeginAllowThreads();
9215 result = wxLocale::GetLanguageName(arg1);
9216
9217 wxPyEndAllowThreads(__tstate);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 {
9221 #if wxUSE_UNICODE
9222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9223 #else
9224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9225 #endif
9226 }
9227 return resultobj;
9228 fail:
9229 return NULL;
9230 }
9231
9232
9233 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9234 PyObject *resultobj;
9235 wxString *arg1 = 0 ;
9236 wxLanguageInfo *result;
9237 bool temp1 = False ;
9238 PyObject * obj0 = 0 ;
9239 char *kwnames[] = {
9240 (char *) "locale", NULL
9241 };
9242
9243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9244 {
9245 arg1 = wxString_in_helper(obj0);
9246 if (arg1 == NULL) SWIG_fail;
9247 temp1 = True;
9248 }
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9252
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9257 {
9258 if (temp1)
9259 delete arg1;
9260 }
9261 return resultobj;
9262 fail:
9263 {
9264 if (temp1)
9265 delete arg1;
9266 }
9267 return NULL;
9268 }
9269
9270
9271 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj;
9273 wxLanguageInfo *arg1 = 0 ;
9274 PyObject * obj0 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "info", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9281 if (arg1 == NULL) {
9282 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9283 }
9284 {
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9287
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 Py_INCREF(Py_None); resultobj = Py_None;
9292 return resultobj;
9293 fail:
9294 return NULL;
9295 }
9296
9297
9298 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9299 PyObject *resultobj;
9300 wxLocale *arg1 = (wxLocale *) 0 ;
9301 wxString *arg2 = 0 ;
9302 wxString const &arg3_defvalue = wxPyEmptyString ;
9303 wxString *arg3 = (wxString *) &arg3_defvalue ;
9304 wxString result;
9305 bool temp2 = False ;
9306 bool temp3 = False ;
9307 PyObject * obj0 = 0 ;
9308 PyObject * obj1 = 0 ;
9309 PyObject * obj2 = 0 ;
9310 char *kwnames[] = {
9311 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9312 };
9313
9314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9315 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9316 {
9317 arg2 = wxString_in_helper(obj1);
9318 if (arg2 == NULL) SWIG_fail;
9319 temp2 = True;
9320 }
9321 if (obj2) {
9322 {
9323 arg3 = wxString_in_helper(obj2);
9324 if (arg3 == NULL) SWIG_fail;
9325 temp3 = True;
9326 }
9327 }
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9331
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 {
9336 #if wxUSE_UNICODE
9337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9338 #else
9339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9340 #endif
9341 }
9342 {
9343 if (temp2)
9344 delete arg2;
9345 }
9346 {
9347 if (temp3)
9348 delete arg3;
9349 }
9350 return resultobj;
9351 fail:
9352 {
9353 if (temp2)
9354 delete arg2;
9355 }
9356 {
9357 if (temp3)
9358 delete arg3;
9359 }
9360 return NULL;
9361 }
9362
9363
9364 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9365 PyObject *resultobj;
9366 wxLocale *arg1 = (wxLocale *) 0 ;
9367 wxString *result;
9368 PyObject * obj0 = 0 ;
9369 char *kwnames[] = {
9370 (char *) "self", NULL
9371 };
9372
9373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 {
9378 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9379 result = (wxString *) &_result_ref;
9380 }
9381
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 {
9386 #if wxUSE_UNICODE
9387 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9388 #else
9389 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9390 #endif
9391 }
9392 return resultobj;
9393 fail:
9394 return NULL;
9395 }
9396
9397
9398 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9399 PyObject *obj;
9400 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9401 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9402 Py_INCREF(obj);
9403 return Py_BuildValue((char *)"");
9404 }
9405 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9406 PyObject *resultobj;
9407 wxLocale *result;
9408 char *kwnames[] = {
9409 NULL
9410 };
9411
9412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 result = (wxLocale *)wxGetLocale();
9416
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9421 return resultobj;
9422 fail:
9423 return NULL;
9424 }
9425
9426
9427 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9428 PyObject *resultobj;
9429 wxString *arg1 = 0 ;
9430 wxString result;
9431 bool temp1 = False ;
9432 PyObject * obj0 = 0 ;
9433
9434 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9435 {
9436 arg1 = wxString_in_helper(obj0);
9437 if (arg1 == NULL) SWIG_fail;
9438 temp1 = True;
9439 }
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 result = wxGetTranslation((wxString const &)*arg1);
9443
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 {
9448 #if wxUSE_UNICODE
9449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9450 #else
9451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9452 #endif
9453 }
9454 {
9455 if (temp1)
9456 delete arg1;
9457 }
9458 return resultobj;
9459 fail:
9460 {
9461 if (temp1)
9462 delete arg1;
9463 }
9464 return NULL;
9465 }
9466
9467
9468 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9469 PyObject *resultobj;
9470 wxString *arg1 = 0 ;
9471 wxString *arg2 = 0 ;
9472 size_t arg3 ;
9473 wxString result;
9474 bool temp1 = False ;
9475 bool temp2 = False ;
9476 PyObject * obj0 = 0 ;
9477 PyObject * obj1 = 0 ;
9478 PyObject * obj2 = 0 ;
9479
9480 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9481 {
9482 arg1 = wxString_in_helper(obj0);
9483 if (arg1 == NULL) SWIG_fail;
9484 temp1 = True;
9485 }
9486 {
9487 arg2 = wxString_in_helper(obj1);
9488 if (arg2 == NULL) SWIG_fail;
9489 temp2 = True;
9490 }
9491 {
9492 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
9493 if (PyErr_Occurred()) SWIG_fail;
9494 }
9495 {
9496 PyThreadState* __tstate = wxPyBeginAllowThreads();
9497 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9498
9499 wxPyEndAllowThreads(__tstate);
9500 if (PyErr_Occurred()) SWIG_fail;
9501 }
9502 {
9503 #if wxUSE_UNICODE
9504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9505 #else
9506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9507 #endif
9508 }
9509 {
9510 if (temp1)
9511 delete arg1;
9512 }
9513 {
9514 if (temp2)
9515 delete arg2;
9516 }
9517 return resultobj;
9518 fail:
9519 {
9520 if (temp1)
9521 delete arg1;
9522 }
9523 {
9524 if (temp2)
9525 delete arg2;
9526 }
9527 return NULL;
9528 }
9529
9530
9531 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9532 int argc;
9533 PyObject *argv[4];
9534 int ii;
9535
9536 argc = PyObject_Length(args);
9537 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9538 argv[ii] = PyTuple_GetItem(args,ii);
9539 }
9540 if (argc == 1) {
9541 int _v;
9542 {
9543 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9544 }
9545 if (_v) {
9546 return _wrap_GetTranslation__SWIG_0(self,args);
9547 }
9548 }
9549 if (argc == 3) {
9550 int _v;
9551 {
9552 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9553 }
9554 if (_v) {
9555 {
9556 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9557 }
9558 if (_v) {
9559 {
9560 SWIG_PyObj_AsUnsignedLong(argv[2]);
9561 if (PyErr_Occurred()) {
9562 _v = 0;
9563 PyErr_Clear();
9564 } else {
9565 _v = 1;
9566 }
9567 }
9568 if (_v) {
9569 return _wrap_GetTranslation__SWIG_1(self,args);
9570 }
9571 }
9572 }
9573 }
9574
9575 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9576 return NULL;
9577 }
9578
9579
9580 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9581 PyObject *resultobj;
9582 wxEncodingConverter *result;
9583 char *kwnames[] = {
9584 NULL
9585 };
9586
9587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9588 {
9589 PyThreadState* __tstate = wxPyBeginAllowThreads();
9590 result = (wxEncodingConverter *)new wxEncodingConverter();
9591
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj;
9604 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9605 PyObject * obj0 = 0 ;
9606 char *kwnames[] = {
9607 (char *) "self", NULL
9608 };
9609
9610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9612 {
9613 PyThreadState* __tstate = wxPyBeginAllowThreads();
9614 delete arg1;
9615
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 Py_INCREF(Py_None); resultobj = Py_None;
9620 return resultobj;
9621 fail:
9622 return NULL;
9623 }
9624
9625
9626 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9627 PyObject *resultobj;
9628 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9629 int arg2 ;
9630 int arg3 ;
9631 int arg4 = (int) wxCONVERT_STRICT ;
9632 bool result;
9633 PyObject * obj0 = 0 ;
9634 PyObject * obj1 = 0 ;
9635 PyObject * obj2 = 0 ;
9636 PyObject * obj3 = 0 ;
9637 char *kwnames[] = {
9638 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9639 };
9640
9641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9643 {
9644 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 {
9648 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 if (obj3) {
9652 {
9653 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 }
9657 {
9658 PyThreadState* __tstate = wxPyBeginAllowThreads();
9659 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9660
9661 wxPyEndAllowThreads(__tstate);
9662 if (PyErr_Occurred()) SWIG_fail;
9663 }
9664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9665 return resultobj;
9666 fail:
9667 return NULL;
9668 }
9669
9670
9671 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9672 PyObject *resultobj;
9673 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9674 wxString *arg2 = 0 ;
9675 wxString result;
9676 bool temp2 = False ;
9677 PyObject * obj0 = 0 ;
9678 PyObject * obj1 = 0 ;
9679 char *kwnames[] = {
9680 (char *) "self",(char *) "input", NULL
9681 };
9682
9683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9685 {
9686 arg2 = wxString_in_helper(obj1);
9687 if (arg2 == NULL) SWIG_fail;
9688 temp2 = True;
9689 }
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 result = (arg1)->Convert((wxString const &)*arg2);
9693
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 {
9698 #if wxUSE_UNICODE
9699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9700 #else
9701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9702 #endif
9703 }
9704 {
9705 if (temp2)
9706 delete arg2;
9707 }
9708 return resultobj;
9709 fail:
9710 {
9711 if (temp2)
9712 delete arg2;
9713 }
9714 return NULL;
9715 }
9716
9717
9718 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9719 PyObject *resultobj;
9720 int arg1 ;
9721 int arg2 = (int) wxPLATFORM_CURRENT ;
9722 wxFontEncodingArray result;
9723 PyObject * obj0 = 0 ;
9724 PyObject * obj1 = 0 ;
9725 char *kwnames[] = {
9726 (char *) "enc",(char *) "platform", NULL
9727 };
9728
9729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
9730 {
9731 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9732 if (PyErr_Occurred()) SWIG_fail;
9733 }
9734 if (obj1) {
9735 {
9736 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 }
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9743
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 {
9748 resultobj = PyList_New(0);
9749 for (size_t i=0; i < (&result)->GetCount(); i++) {
9750 PyObject* number = PyInt_FromLong((&result)->Item(i));
9751 PyList_Append(resultobj, number);
9752 Py_DECREF(number);
9753 }
9754 }
9755 return resultobj;
9756 fail:
9757 return NULL;
9758 }
9759
9760
9761 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9762 PyObject *resultobj;
9763 int arg1 ;
9764 wxFontEncodingArray result;
9765 PyObject * obj0 = 0 ;
9766 char *kwnames[] = {
9767 (char *) "enc", NULL
9768 };
9769
9770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
9771 {
9772 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9773 if (PyErr_Occurred()) SWIG_fail;
9774 }
9775 {
9776 PyThreadState* __tstate = wxPyBeginAllowThreads();
9777 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9778
9779 wxPyEndAllowThreads(__tstate);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 {
9783 resultobj = PyList_New(0);
9784 for (size_t i=0; i < (&result)->GetCount(); i++) {
9785 PyObject* number = PyInt_FromLong((&result)->Item(i));
9786 PyList_Append(resultobj, number);
9787 Py_DECREF(number);
9788 }
9789 }
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj;
9798 int arg1 ;
9799 int arg2 ;
9800 bool result;
9801 PyObject * obj0 = 0 ;
9802 PyObject * obj1 = 0 ;
9803 char *kwnames[] = {
9804 (char *) "encIn",(char *) "encOut", NULL
9805 };
9806
9807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
9808 {
9809 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9810 if (PyErr_Occurred()) SWIG_fail;
9811 }
9812 {
9813 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9814 if (PyErr_Occurred()) SWIG_fail;
9815 }
9816 {
9817 PyThreadState* __tstate = wxPyBeginAllowThreads();
9818 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9819
9820 wxPyEndAllowThreads(__tstate);
9821 if (PyErr_Occurred()) SWIG_fail;
9822 }
9823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9824 return resultobj;
9825 fail:
9826 return NULL;
9827 }
9828
9829
9830 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9831 PyObject *obj;
9832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9833 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9834 Py_INCREF(obj);
9835 return Py_BuildValue((char *)"");
9836 }
9837 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9838 PyObject *resultobj;
9839 wxDC *arg1 = (wxDC *) 0 ;
9840 PyObject * obj0 = 0 ;
9841 char *kwnames[] = {
9842 (char *) "self", NULL
9843 };
9844
9845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 delete arg1;
9850
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 Py_INCREF(Py_None); resultobj = Py_None;
9855 return resultobj;
9856 fail:
9857 return NULL;
9858 }
9859
9860
9861 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj;
9863 wxDC *arg1 = (wxDC *) 0 ;
9864 PyObject * obj0 = 0 ;
9865 char *kwnames[] = {
9866 (char *) "self", NULL
9867 };
9868
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9870 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 (arg1)->BeginDrawing();
9874
9875 wxPyEndAllowThreads(__tstate);
9876 if (PyErr_Occurred()) SWIG_fail;
9877 }
9878 Py_INCREF(Py_None); resultobj = Py_None;
9879 return resultobj;
9880 fail:
9881 return NULL;
9882 }
9883
9884
9885 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9886 PyObject *resultobj;
9887 wxDC *arg1 = (wxDC *) 0 ;
9888 PyObject * obj0 = 0 ;
9889 char *kwnames[] = {
9890 (char *) "self", NULL
9891 };
9892
9893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 (arg1)->EndDrawing();
9898
9899 wxPyEndAllowThreads(__tstate);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 }
9902 Py_INCREF(Py_None); resultobj = Py_None;
9903 return resultobj;
9904 fail:
9905 return NULL;
9906 }
9907
9908
9909 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9910 PyObject *resultobj;
9911 wxDC *arg1 = (wxDC *) 0 ;
9912 int arg2 ;
9913 int arg3 ;
9914 wxColour *arg4 = 0 ;
9915 int arg5 = (int) wxFLOOD_SURFACE ;
9916 bool result;
9917 wxColour temp4 ;
9918 PyObject * obj0 = 0 ;
9919 PyObject * obj1 = 0 ;
9920 PyObject * obj2 = 0 ;
9921 PyObject * obj3 = 0 ;
9922 PyObject * obj4 = 0 ;
9923 char *kwnames[] = {
9924 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9929 {
9930 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 {
9934 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 {
9938 arg4 = &temp4;
9939 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9940 }
9941 if (obj4) {
9942 {
9943 arg5 = (int) SWIG_PyObj_AsInt(obj4);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 }
9946 }
9947 {
9948 PyThreadState* __tstate = wxPyBeginAllowThreads();
9949 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9950
9951 wxPyEndAllowThreads(__tstate);
9952 if (PyErr_Occurred()) SWIG_fail;
9953 }
9954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9955 return resultobj;
9956 fail:
9957 return NULL;
9958 }
9959
9960
9961 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9962 PyObject *resultobj;
9963 wxDC *arg1 = (wxDC *) 0 ;
9964 wxPoint *arg2 = 0 ;
9965 wxColour *arg3 = 0 ;
9966 int arg4 = (int) wxFLOOD_SURFACE ;
9967 bool result;
9968 wxPoint temp2 ;
9969 wxColour temp3 ;
9970 PyObject * obj0 = 0 ;
9971 PyObject * obj1 = 0 ;
9972 PyObject * obj2 = 0 ;
9973 PyObject * obj3 = 0 ;
9974 char *kwnames[] = {
9975 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9976 };
9977
9978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9980 {
9981 arg2 = &temp2;
9982 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9983 }
9984 {
9985 arg3 = &temp3;
9986 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9987 }
9988 if (obj3) {
9989 {
9990 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9991 if (PyErr_Occurred()) SWIG_fail;
9992 }
9993 }
9994 {
9995 PyThreadState* __tstate = wxPyBeginAllowThreads();
9996 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9997
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10002 return resultobj;
10003 fail:
10004 return NULL;
10005 }
10006
10007
10008 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10009 PyObject *resultobj;
10010 wxDC *arg1 = (wxDC *) 0 ;
10011 int arg2 ;
10012 int arg3 ;
10013 wxColour result;
10014 PyObject * obj0 = 0 ;
10015 PyObject * obj1 = 0 ;
10016 PyObject * obj2 = 0 ;
10017 char *kwnames[] = {
10018 (char *) "self",(char *) "x",(char *) "y", NULL
10019 };
10020
10021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10023 {
10024 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10025 if (PyErr_Occurred()) SWIG_fail;
10026 }
10027 {
10028 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 {
10032 PyThreadState* __tstate = wxPyBeginAllowThreads();
10033 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10034
10035 wxPyEndAllowThreads(__tstate);
10036 if (PyErr_Occurred()) SWIG_fail;
10037 }
10038 {
10039 wxColour * resultptr;
10040 resultptr = new wxColour((wxColour &) result);
10041 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10042 }
10043 return resultobj;
10044 fail:
10045 return NULL;
10046 }
10047
10048
10049 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10050 PyObject *resultobj;
10051 wxDC *arg1 = (wxDC *) 0 ;
10052 wxPoint *arg2 = 0 ;
10053 wxColour result;
10054 wxPoint temp2 ;
10055 PyObject * obj0 = 0 ;
10056 PyObject * obj1 = 0 ;
10057 char *kwnames[] = {
10058 (char *) "self",(char *) "pt", NULL
10059 };
10060
10061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10063 {
10064 arg2 = &temp2;
10065 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10066 }
10067 {
10068 PyThreadState* __tstate = wxPyBeginAllowThreads();
10069 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10070
10071 wxPyEndAllowThreads(__tstate);
10072 if (PyErr_Occurred()) SWIG_fail;
10073 }
10074 {
10075 wxColour * resultptr;
10076 resultptr = new wxColour((wxColour &) result);
10077 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10078 }
10079 return resultobj;
10080 fail:
10081 return NULL;
10082 }
10083
10084
10085 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj;
10087 wxDC *arg1 = (wxDC *) 0 ;
10088 int arg2 ;
10089 int arg3 ;
10090 int arg4 ;
10091 int arg5 ;
10092 PyObject * obj0 = 0 ;
10093 PyObject * obj1 = 0 ;
10094 PyObject * obj2 = 0 ;
10095 PyObject * obj3 = 0 ;
10096 PyObject * obj4 = 0 ;
10097 char *kwnames[] = {
10098 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10099 };
10100
10101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10103 {
10104 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 {
10108 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 }
10111 {
10112 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10113 if (PyErr_Occurred()) SWIG_fail;
10114 }
10115 {
10116 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 Py_INCREF(Py_None); resultobj = Py_None;
10127 return resultobj;
10128 fail:
10129 return NULL;
10130 }
10131
10132
10133 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10134 PyObject *resultobj;
10135 wxDC *arg1 = (wxDC *) 0 ;
10136 wxPoint *arg2 = 0 ;
10137 wxPoint *arg3 = 0 ;
10138 wxPoint temp2 ;
10139 wxPoint temp3 ;
10140 PyObject * obj0 = 0 ;
10141 PyObject * obj1 = 0 ;
10142 PyObject * obj2 = 0 ;
10143 char *kwnames[] = {
10144 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10145 };
10146
10147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10149 {
10150 arg2 = &temp2;
10151 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10152 }
10153 {
10154 arg3 = &temp3;
10155 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10156 }
10157 {
10158 PyThreadState* __tstate = wxPyBeginAllowThreads();
10159 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10160
10161 wxPyEndAllowThreads(__tstate);
10162 if (PyErr_Occurred()) SWIG_fail;
10163 }
10164 Py_INCREF(Py_None); resultobj = Py_None;
10165 return resultobj;
10166 fail:
10167 return NULL;
10168 }
10169
10170
10171 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10172 PyObject *resultobj;
10173 wxDC *arg1 = (wxDC *) 0 ;
10174 int arg2 ;
10175 int arg3 ;
10176 PyObject * obj0 = 0 ;
10177 PyObject * obj1 = 0 ;
10178 PyObject * obj2 = 0 ;
10179 char *kwnames[] = {
10180 (char *) "self",(char *) "x",(char *) "y", NULL
10181 };
10182
10183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10185 {
10186 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10187 if (PyErr_Occurred()) SWIG_fail;
10188 }
10189 {
10190 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 {
10194 PyThreadState* __tstate = wxPyBeginAllowThreads();
10195 (arg1)->CrossHair(arg2,arg3);
10196
10197 wxPyEndAllowThreads(__tstate);
10198 if (PyErr_Occurred()) SWIG_fail;
10199 }
10200 Py_INCREF(Py_None); resultobj = Py_None;
10201 return resultobj;
10202 fail:
10203 return NULL;
10204 }
10205
10206
10207 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10208 PyObject *resultobj;
10209 wxDC *arg1 = (wxDC *) 0 ;
10210 wxPoint *arg2 = 0 ;
10211 wxPoint temp2 ;
10212 PyObject * obj0 = 0 ;
10213 PyObject * obj1 = 0 ;
10214 char *kwnames[] = {
10215 (char *) "self",(char *) "pt", NULL
10216 };
10217
10218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10220 {
10221 arg2 = &temp2;
10222 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10223 }
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 (arg1)->CrossHair((wxPoint const &)*arg2);
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 Py_INCREF(Py_None); resultobj = Py_None;
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj;
10240 wxDC *arg1 = (wxDC *) 0 ;
10241 int arg2 ;
10242 int arg3 ;
10243 int arg4 ;
10244 int arg5 ;
10245 int arg6 ;
10246 int arg7 ;
10247 PyObject * obj0 = 0 ;
10248 PyObject * obj1 = 0 ;
10249 PyObject * obj2 = 0 ;
10250 PyObject * obj3 = 0 ;
10251 PyObject * obj4 = 0 ;
10252 PyObject * obj5 = 0 ;
10253 PyObject * obj6 = 0 ;
10254 char *kwnames[] = {
10255 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10256 };
10257
10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10260 {
10261 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10262 if (PyErr_Occurred()) SWIG_fail;
10263 }
10264 {
10265 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 {
10269 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 {
10273 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10274 if (PyErr_Occurred()) SWIG_fail;
10275 }
10276 {
10277 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10278 if (PyErr_Occurred()) SWIG_fail;
10279 }
10280 {
10281 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 }
10284 {
10285 PyThreadState* __tstate = wxPyBeginAllowThreads();
10286 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10287
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 Py_INCREF(Py_None); resultobj = Py_None;
10292 return resultobj;
10293 fail:
10294 return NULL;
10295 }
10296
10297
10298 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10299 PyObject *resultobj;
10300 wxDC *arg1 = (wxDC *) 0 ;
10301 wxPoint *arg2 = 0 ;
10302 wxPoint *arg3 = 0 ;
10303 wxPoint *arg4 = 0 ;
10304 wxPoint temp2 ;
10305 wxPoint temp3 ;
10306 wxPoint temp4 ;
10307 PyObject * obj0 = 0 ;
10308 PyObject * obj1 = 0 ;
10309 PyObject * obj2 = 0 ;
10310 PyObject * obj3 = 0 ;
10311 char *kwnames[] = {
10312 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10313 };
10314
10315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10317 {
10318 arg2 = &temp2;
10319 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10320 }
10321 {
10322 arg3 = &temp3;
10323 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10324 }
10325 {
10326 arg4 = &temp4;
10327 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10328 }
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10332
10333 wxPyEndAllowThreads(__tstate);
10334 if (PyErr_Occurred()) SWIG_fail;
10335 }
10336 Py_INCREF(Py_None); resultobj = Py_None;
10337 return resultobj;
10338 fail:
10339 return NULL;
10340 }
10341
10342
10343 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10344 PyObject *resultobj;
10345 wxDC *arg1 = (wxDC *) 0 ;
10346 int arg2 ;
10347 int arg3 ;
10348 int arg4 ;
10349 int arg5 ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 PyObject * obj2 = 0 ;
10353 PyObject * obj3 = 0 ;
10354 PyObject * obj4 = 0 ;
10355 char *kwnames[] = {
10356 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10357 };
10358
10359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10361 {
10362 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 {
10366 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 {
10370 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10371 if (PyErr_Occurred()) SWIG_fail;
10372 }
10373 {
10374 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 {
10378 PyThreadState* __tstate = wxPyBeginAllowThreads();
10379 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10380
10381 wxPyEndAllowThreads(__tstate);
10382 if (PyErr_Occurred()) SWIG_fail;
10383 }
10384 Py_INCREF(Py_None); resultobj = Py_None;
10385 return resultobj;
10386 fail:
10387 return NULL;
10388 }
10389
10390
10391 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10392 PyObject *resultobj;
10393 wxDC *arg1 = (wxDC *) 0 ;
10394 wxRect *arg2 = 0 ;
10395 wxRect temp2 ;
10396 PyObject * obj0 = 0 ;
10397 PyObject * obj1 = 0 ;
10398 char *kwnames[] = {
10399 (char *) "self",(char *) "rect", NULL
10400 };
10401
10402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10404 {
10405 arg2 = &temp2;
10406 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10407 }
10408 {
10409 PyThreadState* __tstate = wxPyBeginAllowThreads();
10410 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10411
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 }
10415 Py_INCREF(Py_None); resultobj = Py_None;
10416 return resultobj;
10417 fail:
10418 return NULL;
10419 }
10420
10421
10422 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10423 PyObject *resultobj;
10424 wxDC *arg1 = (wxDC *) 0 ;
10425 int arg2 ;
10426 int arg3 ;
10427 int arg4 ;
10428 int arg5 ;
10429 double arg6 ;
10430 double arg7 ;
10431 PyObject * obj0 = 0 ;
10432 PyObject * obj1 = 0 ;
10433 PyObject * obj2 = 0 ;
10434 PyObject * obj3 = 0 ;
10435 PyObject * obj4 = 0 ;
10436 PyObject * obj5 = 0 ;
10437 PyObject * obj6 = 0 ;
10438 char *kwnames[] = {
10439 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10440 };
10441
10442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10444 {
10445 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10446 if (PyErr_Occurred()) SWIG_fail;
10447 }
10448 {
10449 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 }
10452 {
10453 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 {
10457 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10458 if (PyErr_Occurred()) SWIG_fail;
10459 }
10460 {
10461 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 {
10465 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
10466 if (PyErr_Occurred()) SWIG_fail;
10467 }
10468 {
10469 PyThreadState* __tstate = wxPyBeginAllowThreads();
10470 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10471
10472 wxPyEndAllowThreads(__tstate);
10473 if (PyErr_Occurred()) SWIG_fail;
10474 }
10475 Py_INCREF(Py_None); resultobj = Py_None;
10476 return resultobj;
10477 fail:
10478 return NULL;
10479 }
10480
10481
10482 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10483 PyObject *resultobj;
10484 wxDC *arg1 = (wxDC *) 0 ;
10485 wxPoint *arg2 = 0 ;
10486 wxSize *arg3 = 0 ;
10487 double arg4 ;
10488 double arg5 ;
10489 wxPoint temp2 ;
10490 wxSize temp3 ;
10491 PyObject * obj0 = 0 ;
10492 PyObject * obj1 = 0 ;
10493 PyObject * obj2 = 0 ;
10494 PyObject * obj3 = 0 ;
10495 PyObject * obj4 = 0 ;
10496 char *kwnames[] = {
10497 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10498 };
10499
10500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10502 {
10503 arg2 = &temp2;
10504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10505 }
10506 {
10507 arg3 = &temp3;
10508 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10509 }
10510 {
10511 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 {
10515 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 {
10519 PyThreadState* __tstate = wxPyBeginAllowThreads();
10520 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10521
10522 wxPyEndAllowThreads(__tstate);
10523 if (PyErr_Occurred()) SWIG_fail;
10524 }
10525 Py_INCREF(Py_None); resultobj = Py_None;
10526 return resultobj;
10527 fail:
10528 return NULL;
10529 }
10530
10531
10532 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10533 PyObject *resultobj;
10534 wxDC *arg1 = (wxDC *) 0 ;
10535 int arg2 ;
10536 int arg3 ;
10537 PyObject * obj0 = 0 ;
10538 PyObject * obj1 = 0 ;
10539 PyObject * obj2 = 0 ;
10540 char *kwnames[] = {
10541 (char *) "self",(char *) "x",(char *) "y", NULL
10542 };
10543
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10546 {
10547 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 {
10551 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 {
10555 PyThreadState* __tstate = wxPyBeginAllowThreads();
10556 (arg1)->DrawPoint(arg2,arg3);
10557
10558 wxPyEndAllowThreads(__tstate);
10559 if (PyErr_Occurred()) SWIG_fail;
10560 }
10561 Py_INCREF(Py_None); resultobj = Py_None;
10562 return resultobj;
10563 fail:
10564 return NULL;
10565 }
10566
10567
10568 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10569 PyObject *resultobj;
10570 wxDC *arg1 = (wxDC *) 0 ;
10571 wxPoint *arg2 = 0 ;
10572 wxPoint temp2 ;
10573 PyObject * obj0 = 0 ;
10574 PyObject * obj1 = 0 ;
10575 char *kwnames[] = {
10576 (char *) "self",(char *) "pt", NULL
10577 };
10578
10579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10581 {
10582 arg2 = &temp2;
10583 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10584 }
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 (arg1)->DrawPoint((wxPoint const &)*arg2);
10588
10589 wxPyEndAllowThreads(__tstate);
10590 if (PyErr_Occurred()) SWIG_fail;
10591 }
10592 Py_INCREF(Py_None); resultobj = Py_None;
10593 return resultobj;
10594 fail:
10595 return NULL;
10596 }
10597
10598
10599 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj;
10601 wxDC *arg1 = (wxDC *) 0 ;
10602 int arg2 ;
10603 int arg3 ;
10604 int arg4 ;
10605 int arg5 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 PyObject * obj2 = 0 ;
10609 PyObject * obj3 = 0 ;
10610 PyObject * obj4 = 0 ;
10611 char *kwnames[] = {
10612 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10613 };
10614
10615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10617 {
10618 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 {
10622 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10623 if (PyErr_Occurred()) SWIG_fail;
10624 }
10625 {
10626 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 {
10630 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 {
10634 PyThreadState* __tstate = wxPyBeginAllowThreads();
10635 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10636
10637 wxPyEndAllowThreads(__tstate);
10638 if (PyErr_Occurred()) SWIG_fail;
10639 }
10640 Py_INCREF(Py_None); resultobj = Py_None;
10641 return resultobj;
10642 fail:
10643 return NULL;
10644 }
10645
10646
10647 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10648 PyObject *resultobj;
10649 wxDC *arg1 = (wxDC *) 0 ;
10650 wxPoint *arg2 = 0 ;
10651 wxSize *arg3 = 0 ;
10652 wxPoint temp2 ;
10653 wxSize temp3 ;
10654 PyObject * obj0 = 0 ;
10655 PyObject * obj1 = 0 ;
10656 PyObject * obj2 = 0 ;
10657 char *kwnames[] = {
10658 (char *) "self",(char *) "pt",(char *) "sz", NULL
10659 };
10660
10661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10663 {
10664 arg2 = &temp2;
10665 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10666 }
10667 {
10668 arg3 = &temp3;
10669 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10670 }
10671 {
10672 PyThreadState* __tstate = wxPyBeginAllowThreads();
10673 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10674
10675 wxPyEndAllowThreads(__tstate);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 }
10678 Py_INCREF(Py_None); resultobj = Py_None;
10679 return resultobj;
10680 fail:
10681 return NULL;
10682 }
10683
10684
10685 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10686 PyObject *resultobj;
10687 wxDC *arg1 = (wxDC *) 0 ;
10688 wxRect *arg2 = 0 ;
10689 wxRect temp2 ;
10690 PyObject * obj0 = 0 ;
10691 PyObject * obj1 = 0 ;
10692 char *kwnames[] = {
10693 (char *) "self",(char *) "rect", NULL
10694 };
10695
10696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10698 {
10699 arg2 = &temp2;
10700 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10701 }
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 (arg1)->DrawRectangle((wxRect const &)*arg2);
10705
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 Py_INCREF(Py_None); resultobj = Py_None;
10710 return resultobj;
10711 fail:
10712 return NULL;
10713 }
10714
10715
10716 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj;
10718 wxDC *arg1 = (wxDC *) 0 ;
10719 int arg2 ;
10720 int arg3 ;
10721 int arg4 ;
10722 int arg5 ;
10723 double arg6 ;
10724 PyObject * obj0 = 0 ;
10725 PyObject * obj1 = 0 ;
10726 PyObject * obj2 = 0 ;
10727 PyObject * obj3 = 0 ;
10728 PyObject * obj4 = 0 ;
10729 PyObject * obj5 = 0 ;
10730 char *kwnames[] = {
10731 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10732 };
10733
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10736 {
10737 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 {
10741 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10742 if (PyErr_Occurred()) SWIG_fail;
10743 }
10744 {
10745 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 }
10748 {
10749 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 }
10752 {
10753 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10759
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 Py_INCREF(Py_None); resultobj = Py_None;
10764 return resultobj;
10765 fail:
10766 return NULL;
10767 }
10768
10769
10770 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10771 PyObject *resultobj;
10772 wxDC *arg1 = (wxDC *) 0 ;
10773 wxPoint *arg2 = 0 ;
10774 wxSize *arg3 = 0 ;
10775 double arg4 ;
10776 wxPoint temp2 ;
10777 wxSize temp3 ;
10778 PyObject * obj0 = 0 ;
10779 PyObject * obj1 = 0 ;
10780 PyObject * obj2 = 0 ;
10781 PyObject * obj3 = 0 ;
10782 char *kwnames[] = {
10783 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
10784 };
10785
10786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10788 {
10789 arg2 = &temp2;
10790 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10791 }
10792 {
10793 arg3 = &temp3;
10794 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10795 }
10796 {
10797 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10803
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 Py_INCREF(Py_None); resultobj = Py_None;
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj;
10816 wxDC *arg1 = (wxDC *) 0 ;
10817 wxRect *arg2 = 0 ;
10818 double arg3 ;
10819 wxRect temp2 ;
10820 PyObject * obj0 = 0 ;
10821 PyObject * obj1 = 0 ;
10822 PyObject * obj2 = 0 ;
10823 char *kwnames[] = {
10824 (char *) "self",(char *) "r",(char *) "radius", NULL
10825 };
10826
10827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
10828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10829 {
10830 arg2 = &temp2;
10831 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10832 }
10833 {
10834 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
10835 if (PyErr_Occurred()) SWIG_fail;
10836 }
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10840
10841 wxPyEndAllowThreads(__tstate);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 }
10844 Py_INCREF(Py_None); resultobj = Py_None;
10845 return resultobj;
10846 fail:
10847 return NULL;
10848 }
10849
10850
10851 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10852 PyObject *resultobj;
10853 wxDC *arg1 = (wxDC *) 0 ;
10854 int arg2 ;
10855 int arg3 ;
10856 int arg4 ;
10857 PyObject * obj0 = 0 ;
10858 PyObject * obj1 = 0 ;
10859 PyObject * obj2 = 0 ;
10860 PyObject * obj3 = 0 ;
10861 char *kwnames[] = {
10862 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10863 };
10864
10865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10866 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10867 {
10868 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 {
10872 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 {
10876 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 }
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 (arg1)->DrawCircle(arg2,arg3,arg4);
10882
10883 wxPyEndAllowThreads(__tstate);
10884 if (PyErr_Occurred()) SWIG_fail;
10885 }
10886 Py_INCREF(Py_None); resultobj = Py_None;
10887 return resultobj;
10888 fail:
10889 return NULL;
10890 }
10891
10892
10893 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10894 PyObject *resultobj;
10895 wxDC *arg1 = (wxDC *) 0 ;
10896 wxPoint *arg2 = 0 ;
10897 int arg3 ;
10898 wxPoint temp2 ;
10899 PyObject * obj0 = 0 ;
10900 PyObject * obj1 = 0 ;
10901 PyObject * obj2 = 0 ;
10902 char *kwnames[] = {
10903 (char *) "self",(char *) "pt",(char *) "radius", NULL
10904 };
10905
10906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10908 {
10909 arg2 = &temp2;
10910 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10911 }
10912 {
10913 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10914 if (PyErr_Occurred()) SWIG_fail;
10915 }
10916 {
10917 PyThreadState* __tstate = wxPyBeginAllowThreads();
10918 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10919
10920 wxPyEndAllowThreads(__tstate);
10921 if (PyErr_Occurred()) SWIG_fail;
10922 }
10923 Py_INCREF(Py_None); resultobj = Py_None;
10924 return resultobj;
10925 fail:
10926 return NULL;
10927 }
10928
10929
10930 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10931 PyObject *resultobj;
10932 wxDC *arg1 = (wxDC *) 0 ;
10933 int arg2 ;
10934 int arg3 ;
10935 int arg4 ;
10936 int arg5 ;
10937 PyObject * obj0 = 0 ;
10938 PyObject * obj1 = 0 ;
10939 PyObject * obj2 = 0 ;
10940 PyObject * obj3 = 0 ;
10941 PyObject * obj4 = 0 ;
10942 char *kwnames[] = {
10943 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10944 };
10945
10946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10948 {
10949 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 {
10953 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10954 if (PyErr_Occurred()) SWIG_fail;
10955 }
10956 {
10957 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 {
10965 PyThreadState* __tstate = wxPyBeginAllowThreads();
10966 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10967
10968 wxPyEndAllowThreads(__tstate);
10969 if (PyErr_Occurred()) SWIG_fail;
10970 }
10971 Py_INCREF(Py_None); resultobj = Py_None;
10972 return resultobj;
10973 fail:
10974 return NULL;
10975 }
10976
10977
10978 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10979 PyObject *resultobj;
10980 wxDC *arg1 = (wxDC *) 0 ;
10981 wxPoint *arg2 = 0 ;
10982 wxSize *arg3 = 0 ;
10983 wxPoint temp2 ;
10984 wxSize temp3 ;
10985 PyObject * obj0 = 0 ;
10986 PyObject * obj1 = 0 ;
10987 PyObject * obj2 = 0 ;
10988 char *kwnames[] = {
10989 (char *) "self",(char *) "pt",(char *) "sz", NULL
10990 };
10991
10992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
10993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10994 {
10995 arg2 = &temp2;
10996 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10997 }
10998 {
10999 arg3 = &temp3;
11000 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11001 }
11002 {
11003 PyThreadState* __tstate = wxPyBeginAllowThreads();
11004 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11005
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 Py_INCREF(Py_None); resultobj = Py_None;
11010 return resultobj;
11011 fail:
11012 return NULL;
11013 }
11014
11015
11016 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj;
11018 wxDC *arg1 = (wxDC *) 0 ;
11019 wxRect *arg2 = 0 ;
11020 wxRect temp2 ;
11021 PyObject * obj0 = 0 ;
11022 PyObject * obj1 = 0 ;
11023 char *kwnames[] = {
11024 (char *) "self",(char *) "rect", NULL
11025 };
11026
11027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11029 {
11030 arg2 = &temp2;
11031 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11032 }
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 (arg1)->DrawEllipse((wxRect const &)*arg2);
11036
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 Py_INCREF(Py_None); resultobj = Py_None;
11041 return resultobj;
11042 fail:
11043 return NULL;
11044 }
11045
11046
11047 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11048 PyObject *resultobj;
11049 wxDC *arg1 = (wxDC *) 0 ;
11050 wxIcon *arg2 = 0 ;
11051 int arg3 ;
11052 int arg4 ;
11053 PyObject * obj0 = 0 ;
11054 PyObject * obj1 = 0 ;
11055 PyObject * obj2 = 0 ;
11056 PyObject * obj3 = 0 ;
11057 char *kwnames[] = {
11058 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11059 };
11060
11061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11063 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11064 if (arg2 == NULL) {
11065 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11066 }
11067 {
11068 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 {
11072 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11078
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 Py_INCREF(Py_None); resultobj = Py_None;
11083 return resultobj;
11084 fail:
11085 return NULL;
11086 }
11087
11088
11089 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11090 PyObject *resultobj;
11091 wxDC *arg1 = (wxDC *) 0 ;
11092 wxIcon *arg2 = 0 ;
11093 wxPoint *arg3 = 0 ;
11094 wxPoint temp3 ;
11095 PyObject * obj0 = 0 ;
11096 PyObject * obj1 = 0 ;
11097 PyObject * obj2 = 0 ;
11098 char *kwnames[] = {
11099 (char *) "self",(char *) "icon",(char *) "pt", NULL
11100 };
11101
11102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11104 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11105 if (arg2 == NULL) {
11106 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11107 }
11108 {
11109 arg3 = &temp3;
11110 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11111 }
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11115
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 Py_INCREF(Py_None); resultobj = Py_None;
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11127 PyObject *resultobj;
11128 wxDC *arg1 = (wxDC *) 0 ;
11129 wxBitmap *arg2 = 0 ;
11130 int arg3 ;
11131 int arg4 ;
11132 bool arg5 = (bool) False ;
11133 PyObject * obj0 = 0 ;
11134 PyObject * obj1 = 0 ;
11135 PyObject * obj2 = 0 ;
11136 PyObject * obj3 = 0 ;
11137 PyObject * obj4 = 0 ;
11138 char *kwnames[] = {
11139 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11140 };
11141
11142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11144 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11145 if (arg2 == NULL) {
11146 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11147 }
11148 {
11149 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11150 if (PyErr_Occurred()) SWIG_fail;
11151 }
11152 {
11153 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 if (obj4) {
11157 {
11158 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 }
11162 {
11163 PyThreadState* __tstate = wxPyBeginAllowThreads();
11164 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11165
11166 wxPyEndAllowThreads(__tstate);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 Py_INCREF(Py_None); resultobj = Py_None;
11170 return resultobj;
11171 fail:
11172 return NULL;
11173 }
11174
11175
11176 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11177 PyObject *resultobj;
11178 wxDC *arg1 = (wxDC *) 0 ;
11179 wxBitmap *arg2 = 0 ;
11180 wxPoint *arg3 = 0 ;
11181 bool arg4 = (bool) False ;
11182 wxPoint temp3 ;
11183 PyObject * obj0 = 0 ;
11184 PyObject * obj1 = 0 ;
11185 PyObject * obj2 = 0 ;
11186 PyObject * obj3 = 0 ;
11187 char *kwnames[] = {
11188 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11189 };
11190
11191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11193 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11194 if (arg2 == NULL) {
11195 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11196 }
11197 {
11198 arg3 = &temp3;
11199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11200 }
11201 if (obj3) {
11202 {
11203 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 }
11206 }
11207 {
11208 PyThreadState* __tstate = wxPyBeginAllowThreads();
11209 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11210
11211 wxPyEndAllowThreads(__tstate);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 }
11214 Py_INCREF(Py_None); resultobj = Py_None;
11215 return resultobj;
11216 fail:
11217 return NULL;
11218 }
11219
11220
11221 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11222 PyObject *resultobj;
11223 wxDC *arg1 = (wxDC *) 0 ;
11224 wxString *arg2 = 0 ;
11225 int arg3 ;
11226 int arg4 ;
11227 bool temp2 = False ;
11228 PyObject * obj0 = 0 ;
11229 PyObject * obj1 = 0 ;
11230 PyObject * obj2 = 0 ;
11231 PyObject * obj3 = 0 ;
11232 char *kwnames[] = {
11233 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11234 };
11235
11236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11238 {
11239 arg2 = wxString_in_helper(obj1);
11240 if (arg2 == NULL) SWIG_fail;
11241 temp2 = True;
11242 }
11243 {
11244 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 {
11248 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 }
11251 {
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11254
11255 wxPyEndAllowThreads(__tstate);
11256 if (PyErr_Occurred()) SWIG_fail;
11257 }
11258 Py_INCREF(Py_None); resultobj = Py_None;
11259 {
11260 if (temp2)
11261 delete arg2;
11262 }
11263 return resultobj;
11264 fail:
11265 {
11266 if (temp2)
11267 delete arg2;
11268 }
11269 return NULL;
11270 }
11271
11272
11273 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj;
11275 wxDC *arg1 = (wxDC *) 0 ;
11276 wxString *arg2 = 0 ;
11277 wxPoint *arg3 = 0 ;
11278 bool temp2 = False ;
11279 wxPoint temp3 ;
11280 PyObject * obj0 = 0 ;
11281 PyObject * obj1 = 0 ;
11282 PyObject * obj2 = 0 ;
11283 char *kwnames[] = {
11284 (char *) "self",(char *) "text",(char *) "pt", NULL
11285 };
11286
11287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11289 {
11290 arg2 = wxString_in_helper(obj1);
11291 if (arg2 == NULL) SWIG_fail;
11292 temp2 = True;
11293 }
11294 {
11295 arg3 = &temp3;
11296 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11297 }
11298 {
11299 PyThreadState* __tstate = wxPyBeginAllowThreads();
11300 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11301
11302 wxPyEndAllowThreads(__tstate);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 }
11305 Py_INCREF(Py_None); resultobj = Py_None;
11306 {
11307 if (temp2)
11308 delete arg2;
11309 }
11310 return resultobj;
11311 fail:
11312 {
11313 if (temp2)
11314 delete arg2;
11315 }
11316 return NULL;
11317 }
11318
11319
11320 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11321 PyObject *resultobj;
11322 wxDC *arg1 = (wxDC *) 0 ;
11323 wxString *arg2 = 0 ;
11324 int arg3 ;
11325 int arg4 ;
11326 double arg5 ;
11327 bool temp2 = False ;
11328 PyObject * obj0 = 0 ;
11329 PyObject * obj1 = 0 ;
11330 PyObject * obj2 = 0 ;
11331 PyObject * obj3 = 0 ;
11332 PyObject * obj4 = 0 ;
11333 char *kwnames[] = {
11334 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11335 };
11336
11337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11339 {
11340 arg2 = wxString_in_helper(obj1);
11341 if (arg2 == NULL) SWIG_fail;
11342 temp2 = True;
11343 }
11344 {
11345 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 }
11348 {
11349 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 }
11352 {
11353 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 }
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11359
11360 wxPyEndAllowThreads(__tstate);
11361 if (PyErr_Occurred()) SWIG_fail;
11362 }
11363 Py_INCREF(Py_None); resultobj = Py_None;
11364 {
11365 if (temp2)
11366 delete arg2;
11367 }
11368 return resultobj;
11369 fail:
11370 {
11371 if (temp2)
11372 delete arg2;
11373 }
11374 return NULL;
11375 }
11376
11377
11378 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11379 PyObject *resultobj;
11380 wxDC *arg1 = (wxDC *) 0 ;
11381 wxString *arg2 = 0 ;
11382 wxPoint *arg3 = 0 ;
11383 double arg4 ;
11384 bool temp2 = False ;
11385 wxPoint temp3 ;
11386 PyObject * obj0 = 0 ;
11387 PyObject * obj1 = 0 ;
11388 PyObject * obj2 = 0 ;
11389 PyObject * obj3 = 0 ;
11390 char *kwnames[] = {
11391 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11392 };
11393
11394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11396 {
11397 arg2 = wxString_in_helper(obj1);
11398 if (arg2 == NULL) SWIG_fail;
11399 temp2 = True;
11400 }
11401 {
11402 arg3 = &temp3;
11403 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11404 }
11405 {
11406 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11412
11413 wxPyEndAllowThreads(__tstate);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 }
11416 Py_INCREF(Py_None); resultobj = Py_None;
11417 {
11418 if (temp2)
11419 delete arg2;
11420 }
11421 return resultobj;
11422 fail:
11423 {
11424 if (temp2)
11425 delete arg2;
11426 }
11427 return NULL;
11428 }
11429
11430
11431 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11432 PyObject *resultobj;
11433 wxDC *arg1 = (wxDC *) 0 ;
11434 int arg2 ;
11435 int arg3 ;
11436 int arg4 ;
11437 int arg5 ;
11438 wxDC *arg6 = (wxDC *) 0 ;
11439 int arg7 ;
11440 int arg8 ;
11441 int arg9 = (int) wxCOPY ;
11442 bool arg10 = (bool) False ;
11443 int arg11 = (int) -1 ;
11444 int arg12 = (int) -1 ;
11445 bool result;
11446 PyObject * obj0 = 0 ;
11447 PyObject * obj1 = 0 ;
11448 PyObject * obj2 = 0 ;
11449 PyObject * obj3 = 0 ;
11450 PyObject * obj4 = 0 ;
11451 PyObject * obj5 = 0 ;
11452 PyObject * obj6 = 0 ;
11453 PyObject * obj7 = 0 ;
11454 PyObject * obj8 = 0 ;
11455 PyObject * obj9 = 0 ;
11456 PyObject * obj10 = 0 ;
11457 PyObject * obj11 = 0 ;
11458 char *kwnames[] = {
11459 (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
11460 };
11461
11462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
11463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11464 {
11465 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 }
11468 {
11469 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 {
11473 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 }
11476 {
11477 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11481 {
11482 arg7 = (int) SWIG_PyObj_AsInt(obj6);
11483 if (PyErr_Occurred()) SWIG_fail;
11484 }
11485 {
11486 arg8 = (int) SWIG_PyObj_AsInt(obj7);
11487 if (PyErr_Occurred()) SWIG_fail;
11488 }
11489 if (obj8) {
11490 {
11491 arg9 = (int) SWIG_PyObj_AsInt(obj8);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 }
11495 if (obj9) {
11496 {
11497 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
11498 if (PyErr_Occurred()) SWIG_fail;
11499 }
11500 }
11501 if (obj10) {
11502 {
11503 arg11 = (int) SWIG_PyObj_AsInt(obj10);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 }
11507 if (obj11) {
11508 {
11509 arg12 = (int) SWIG_PyObj_AsInt(obj11);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 }
11513 {
11514 PyThreadState* __tstate = wxPyBeginAllowThreads();
11515 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11516
11517 wxPyEndAllowThreads(__tstate);
11518 if (PyErr_Occurred()) SWIG_fail;
11519 }
11520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11521 return resultobj;
11522 fail:
11523 return NULL;
11524 }
11525
11526
11527 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11528 PyObject *resultobj;
11529 wxDC *arg1 = (wxDC *) 0 ;
11530 wxPoint *arg2 = 0 ;
11531 wxSize *arg3 = 0 ;
11532 wxDC *arg4 = (wxDC *) 0 ;
11533 wxPoint *arg5 = 0 ;
11534 int arg6 = (int) wxCOPY ;
11535 bool arg7 = (bool) False ;
11536 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11537 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11538 bool result;
11539 wxPoint temp2 ;
11540 wxSize temp3 ;
11541 wxPoint temp5 ;
11542 wxPoint temp8 ;
11543 PyObject * obj0 = 0 ;
11544 PyObject * obj1 = 0 ;
11545 PyObject * obj2 = 0 ;
11546 PyObject * obj3 = 0 ;
11547 PyObject * obj4 = 0 ;
11548 PyObject * obj5 = 0 ;
11549 PyObject * obj6 = 0 ;
11550 PyObject * obj7 = 0 ;
11551 char *kwnames[] = {
11552 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11553 };
11554
11555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11557 {
11558 arg2 = &temp2;
11559 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11560 }
11561 {
11562 arg3 = &temp3;
11563 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11564 }
11565 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11566 {
11567 arg5 = &temp5;
11568 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11569 }
11570 if (obj5) {
11571 {
11572 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 }
11576 if (obj6) {
11577 {
11578 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
11579 if (PyErr_Occurred()) SWIG_fail;
11580 }
11581 }
11582 if (obj7) {
11583 {
11584 arg8 = &temp8;
11585 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11586 }
11587 }
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11603 PyObject *resultobj;
11604 wxDC *arg1 = (wxDC *) 0 ;
11605 int arg2 ;
11606 wxPoint *arg3 = (wxPoint *) 0 ;
11607 int arg4 = (int) 0 ;
11608 int arg5 = (int) 0 ;
11609 PyObject * obj0 = 0 ;
11610 PyObject * obj1 = 0 ;
11611 PyObject * obj2 = 0 ;
11612 PyObject * obj3 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11619 {
11620 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11621 if (arg3 == NULL) SWIG_fail;
11622 }
11623 if (obj2) {
11624 {
11625 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11626 if (PyErr_Occurred()) SWIG_fail;
11627 }
11628 }
11629 if (obj3) {
11630 {
11631 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11632 if (PyErr_Occurred()) SWIG_fail;
11633 }
11634 }
11635 {
11636 PyThreadState* __tstate = wxPyBeginAllowThreads();
11637 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11638
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 Py_INCREF(Py_None); resultobj = Py_None;
11643 {
11644 if (arg3) delete [] arg3;
11645 }
11646 return resultobj;
11647 fail:
11648 {
11649 if (arg3) delete [] arg3;
11650 }
11651 return NULL;
11652 }
11653
11654
11655 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
11656 PyObject *resultobj;
11657 wxDC *arg1 = (wxDC *) 0 ;
11658 int arg2 ;
11659 wxPoint *arg3 = (wxPoint *) 0 ;
11660 int arg4 = (int) 0 ;
11661 int arg5 = (int) 0 ;
11662 int arg6 = (int) wxODDEVEN_RULE ;
11663 PyObject * obj0 = 0 ;
11664 PyObject * obj1 = 0 ;
11665 PyObject * obj2 = 0 ;
11666 PyObject * obj3 = 0 ;
11667 PyObject * obj4 = 0 ;
11668 char *kwnames[] = {
11669 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11670 };
11671
11672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11674 {
11675 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11676 if (arg3 == NULL) SWIG_fail;
11677 }
11678 if (obj2) {
11679 {
11680 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11681 if (PyErr_Occurred()) SWIG_fail;
11682 }
11683 }
11684 if (obj3) {
11685 {
11686 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 }
11690 if (obj4) {
11691 {
11692 arg6 = (int) SWIG_PyObj_AsInt(obj4);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 }
11696 {
11697 PyThreadState* __tstate = wxPyBeginAllowThreads();
11698 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11699
11700 wxPyEndAllowThreads(__tstate);
11701 if (PyErr_Occurred()) SWIG_fail;
11702 }
11703 Py_INCREF(Py_None); resultobj = Py_None;
11704 {
11705 if (arg3) delete [] arg3;
11706 }
11707 return resultobj;
11708 fail:
11709 {
11710 if (arg3) delete [] arg3;
11711 }
11712 return NULL;
11713 }
11714
11715
11716 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11717 PyObject *resultobj;
11718 wxDC *arg1 = (wxDC *) 0 ;
11719 wxString *arg2 = 0 ;
11720 wxRect *arg3 = 0 ;
11721 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11722 int arg5 = (int) -1 ;
11723 bool temp2 = False ;
11724 wxRect temp3 ;
11725 PyObject * obj0 = 0 ;
11726 PyObject * obj1 = 0 ;
11727 PyObject * obj2 = 0 ;
11728 PyObject * obj3 = 0 ;
11729 PyObject * obj4 = 0 ;
11730 char *kwnames[] = {
11731 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11732 };
11733
11734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11736 {
11737 arg2 = wxString_in_helper(obj1);
11738 if (arg2 == NULL) SWIG_fail;
11739 temp2 = True;
11740 }
11741 {
11742 arg3 = &temp3;
11743 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
11744 }
11745 if (obj3) {
11746 {
11747 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11748 if (PyErr_Occurred()) SWIG_fail;
11749 }
11750 }
11751 if (obj4) {
11752 {
11753 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 }
11757 {
11758 PyThreadState* __tstate = wxPyBeginAllowThreads();
11759 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
11760
11761 wxPyEndAllowThreads(__tstate);
11762 if (PyErr_Occurred()) SWIG_fail;
11763 }
11764 Py_INCREF(Py_None); resultobj = Py_None;
11765 {
11766 if (temp2)
11767 delete arg2;
11768 }
11769 return resultobj;
11770 fail:
11771 {
11772 if (temp2)
11773 delete arg2;
11774 }
11775 return NULL;
11776 }
11777
11778
11779 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11780 PyObject *resultobj;
11781 wxDC *arg1 = (wxDC *) 0 ;
11782 wxString *arg2 = 0 ;
11783 wxBitmap *arg3 = 0 ;
11784 wxRect *arg4 = 0 ;
11785 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11786 int arg6 = (int) -1 ;
11787 wxRect result;
11788 bool temp2 = False ;
11789 wxRect temp4 ;
11790 PyObject * obj0 = 0 ;
11791 PyObject * obj1 = 0 ;
11792 PyObject * obj2 = 0 ;
11793 PyObject * obj3 = 0 ;
11794 PyObject * obj4 = 0 ;
11795 PyObject * obj5 = 0 ;
11796 char *kwnames[] = {
11797 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11798 };
11799
11800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11802 {
11803 arg2 = wxString_in_helper(obj1);
11804 if (arg2 == NULL) SWIG_fail;
11805 temp2 = True;
11806 }
11807 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11808 if (arg3 == NULL) {
11809 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11810 }
11811 {
11812 arg4 = &temp4;
11813 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11814 }
11815 if (obj4) {
11816 {
11817 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11818 if (PyErr_Occurred()) SWIG_fail;
11819 }
11820 }
11821 if (obj5) {
11822 {
11823 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11824 if (PyErr_Occurred()) SWIG_fail;
11825 }
11826 }
11827 {
11828 PyThreadState* __tstate = wxPyBeginAllowThreads();
11829 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11830
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 {
11835 wxRect * resultptr;
11836 resultptr = new wxRect((wxRect &) result);
11837 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11838 }
11839 {
11840 if (temp2)
11841 delete arg2;
11842 }
11843 return resultobj;
11844 fail:
11845 {
11846 if (temp2)
11847 delete arg2;
11848 }
11849 return NULL;
11850 }
11851
11852
11853 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
11854 PyObject *resultobj;
11855 wxDC *arg1 = (wxDC *) 0 ;
11856 int arg2 ;
11857 wxPoint *arg3 = (wxPoint *) 0 ;
11858 PyObject * obj0 = 0 ;
11859 PyObject * obj1 = 0 ;
11860 char *kwnames[] = {
11861 (char *) "self",(char *) "points", NULL
11862 };
11863
11864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
11865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11866 {
11867 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11868 if (arg3 == NULL) SWIG_fail;
11869 }
11870 {
11871 PyThreadState* __tstate = wxPyBeginAllowThreads();
11872 (arg1)->DrawSpline(arg2,arg3);
11873
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 Py_INCREF(Py_None); resultobj = Py_None;
11878 {
11879 if (arg3) delete [] arg3;
11880 }
11881 return resultobj;
11882 fail:
11883 {
11884 if (arg3) delete [] arg3;
11885 }
11886 return NULL;
11887 }
11888
11889
11890 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11891 PyObject *resultobj;
11892 wxDC *arg1 = (wxDC *) 0 ;
11893 PyObject * obj0 = 0 ;
11894 char *kwnames[] = {
11895 (char *) "self", NULL
11896 };
11897
11898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
11899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11900 {
11901 PyThreadState* __tstate = wxPyBeginAllowThreads();
11902 (arg1)->Clear();
11903
11904 wxPyEndAllowThreads(__tstate);
11905 if (PyErr_Occurred()) SWIG_fail;
11906 }
11907 Py_INCREF(Py_None); resultobj = Py_None;
11908 return resultobj;
11909 fail:
11910 return NULL;
11911 }
11912
11913
11914 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11915 PyObject *resultobj;
11916 wxDC *arg1 = (wxDC *) 0 ;
11917 wxString *arg2 = 0 ;
11918 bool result;
11919 bool temp2 = False ;
11920 PyObject * obj0 = 0 ;
11921 PyObject * obj1 = 0 ;
11922 char *kwnames[] = {
11923 (char *) "self",(char *) "message", NULL
11924 };
11925
11926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
11927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11928 {
11929 arg2 = wxString_in_helper(obj1);
11930 if (arg2 == NULL) SWIG_fail;
11931 temp2 = True;
11932 }
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
11936
11937 wxPyEndAllowThreads(__tstate);
11938 if (PyErr_Occurred()) SWIG_fail;
11939 }
11940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11941 {
11942 if (temp2)
11943 delete arg2;
11944 }
11945 return resultobj;
11946 fail:
11947 {
11948 if (temp2)
11949 delete arg2;
11950 }
11951 return NULL;
11952 }
11953
11954
11955 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11956 PyObject *resultobj;
11957 wxDC *arg1 = (wxDC *) 0 ;
11958 PyObject * obj0 = 0 ;
11959 char *kwnames[] = {
11960 (char *) "self", NULL
11961 };
11962
11963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
11964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11965 {
11966 PyThreadState* __tstate = wxPyBeginAllowThreads();
11967 (arg1)->EndDoc();
11968
11969 wxPyEndAllowThreads(__tstate);
11970 if (PyErr_Occurred()) SWIG_fail;
11971 }
11972 Py_INCREF(Py_None); resultobj = Py_None;
11973 return resultobj;
11974 fail:
11975 return NULL;
11976 }
11977
11978
11979 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11980 PyObject *resultobj;
11981 wxDC *arg1 = (wxDC *) 0 ;
11982 PyObject * obj0 = 0 ;
11983 char *kwnames[] = {
11984 (char *) "self", NULL
11985 };
11986
11987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
11988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 (arg1)->StartPage();
11992
11993 wxPyEndAllowThreads(__tstate);
11994 if (PyErr_Occurred()) SWIG_fail;
11995 }
11996 Py_INCREF(Py_None); resultobj = Py_None;
11997 return resultobj;
11998 fail:
11999 return NULL;
12000 }
12001
12002
12003 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12004 PyObject *resultobj;
12005 wxDC *arg1 = (wxDC *) 0 ;
12006 PyObject * obj0 = 0 ;
12007 char *kwnames[] = {
12008 (char *) "self", NULL
12009 };
12010
12011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12013 {
12014 PyThreadState* __tstate = wxPyBeginAllowThreads();
12015 (arg1)->EndPage();
12016
12017 wxPyEndAllowThreads(__tstate);
12018 if (PyErr_Occurred()) SWIG_fail;
12019 }
12020 Py_INCREF(Py_None); resultobj = Py_None;
12021 return resultobj;
12022 fail:
12023 return NULL;
12024 }
12025
12026
12027 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12028 PyObject *resultobj;
12029 wxDC *arg1 = (wxDC *) 0 ;
12030 wxFont *arg2 = 0 ;
12031 PyObject * obj0 = 0 ;
12032 PyObject * obj1 = 0 ;
12033 char *kwnames[] = {
12034 (char *) "self",(char *) "font", NULL
12035 };
12036
12037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12039 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12040 if (arg2 == NULL) {
12041 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12042 }
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 (arg1)->SetFont((wxFont const &)*arg2);
12046
12047 wxPyEndAllowThreads(__tstate);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 Py_INCREF(Py_None); resultobj = Py_None;
12051 return resultobj;
12052 fail:
12053 return NULL;
12054 }
12055
12056
12057 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12058 PyObject *resultobj;
12059 wxDC *arg1 = (wxDC *) 0 ;
12060 wxPen *arg2 = 0 ;
12061 PyObject * obj0 = 0 ;
12062 PyObject * obj1 = 0 ;
12063 char *kwnames[] = {
12064 (char *) "self",(char *) "pen", NULL
12065 };
12066
12067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12069 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12070 if (arg2 == NULL) {
12071 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12072 }
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 (arg1)->SetPen((wxPen const &)*arg2);
12076
12077 wxPyEndAllowThreads(__tstate);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
12080 Py_INCREF(Py_None); resultobj = Py_None;
12081 return resultobj;
12082 fail:
12083 return NULL;
12084 }
12085
12086
12087 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12088 PyObject *resultobj;
12089 wxDC *arg1 = (wxDC *) 0 ;
12090 wxBrush *arg2 = 0 ;
12091 PyObject * obj0 = 0 ;
12092 PyObject * obj1 = 0 ;
12093 char *kwnames[] = {
12094 (char *) "self",(char *) "brush", NULL
12095 };
12096
12097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12099 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12100 if (arg2 == NULL) {
12101 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12102 }
12103 {
12104 PyThreadState* __tstate = wxPyBeginAllowThreads();
12105 (arg1)->SetBrush((wxBrush const &)*arg2);
12106
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 Py_INCREF(Py_None); resultobj = Py_None;
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12118 PyObject *resultobj;
12119 wxDC *arg1 = (wxDC *) 0 ;
12120 wxBrush *arg2 = 0 ;
12121 PyObject * obj0 = 0 ;
12122 PyObject * obj1 = 0 ;
12123 char *kwnames[] = {
12124 (char *) "self",(char *) "brush", NULL
12125 };
12126
12127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12129 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12130 if (arg2 == NULL) {
12131 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12132 }
12133 {
12134 PyThreadState* __tstate = wxPyBeginAllowThreads();
12135 (arg1)->SetBackground((wxBrush const &)*arg2);
12136
12137 wxPyEndAllowThreads(__tstate);
12138 if (PyErr_Occurred()) SWIG_fail;
12139 }
12140 Py_INCREF(Py_None); resultobj = Py_None;
12141 return resultobj;
12142 fail:
12143 return NULL;
12144 }
12145
12146
12147 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12148 PyObject *resultobj;
12149 wxDC *arg1 = (wxDC *) 0 ;
12150 int arg2 ;
12151 PyObject * obj0 = 0 ;
12152 PyObject * obj1 = 0 ;
12153 char *kwnames[] = {
12154 (char *) "self",(char *) "mode", NULL
12155 };
12156
12157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12159 {
12160 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12161 if (PyErr_Occurred()) SWIG_fail;
12162 }
12163 {
12164 PyThreadState* __tstate = wxPyBeginAllowThreads();
12165 (arg1)->SetBackgroundMode(arg2);
12166
12167 wxPyEndAllowThreads(__tstate);
12168 if (PyErr_Occurred()) SWIG_fail;
12169 }
12170 Py_INCREF(Py_None); resultobj = Py_None;
12171 return resultobj;
12172 fail:
12173 return NULL;
12174 }
12175
12176
12177 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12178 PyObject *resultobj;
12179 wxDC *arg1 = (wxDC *) 0 ;
12180 wxPalette *arg2 = 0 ;
12181 PyObject * obj0 = 0 ;
12182 PyObject * obj1 = 0 ;
12183 char *kwnames[] = {
12184 (char *) "self",(char *) "palette", NULL
12185 };
12186
12187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12189 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12190 if (arg2 == NULL) {
12191 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12192 }
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 (arg1)->SetPalette((wxPalette const &)*arg2);
12196
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 Py_INCREF(Py_None); resultobj = Py_None;
12201 return resultobj;
12202 fail:
12203 return NULL;
12204 }
12205
12206
12207 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj;
12209 wxDC *arg1 = (wxDC *) 0 ;
12210 int arg2 ;
12211 int arg3 ;
12212 int arg4 ;
12213 int arg5 ;
12214 PyObject * obj0 = 0 ;
12215 PyObject * obj1 = 0 ;
12216 PyObject * obj2 = 0 ;
12217 PyObject * obj3 = 0 ;
12218 PyObject * obj4 = 0 ;
12219 char *kwnames[] = {
12220 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12221 };
12222
12223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12225 {
12226 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12227 if (PyErr_Occurred()) SWIG_fail;
12228 }
12229 {
12230 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 {
12234 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12235 if (PyErr_Occurred()) SWIG_fail;
12236 }
12237 {
12238 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 }
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 Py_INCREF(Py_None); resultobj = Py_None;
12249 return resultobj;
12250 fail:
12251 return NULL;
12252 }
12253
12254
12255 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj;
12257 wxDC *arg1 = (wxDC *) 0 ;
12258 wxPoint *arg2 = 0 ;
12259 wxSize *arg3 = 0 ;
12260 wxPoint temp2 ;
12261 wxSize temp3 ;
12262 PyObject * obj0 = 0 ;
12263 PyObject * obj1 = 0 ;
12264 PyObject * obj2 = 0 ;
12265 char *kwnames[] = {
12266 (char *) "self",(char *) "pt",(char *) "sz", NULL
12267 };
12268
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12271 {
12272 arg2 = &temp2;
12273 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12274 }
12275 {
12276 arg3 = &temp3;
12277 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12278 }
12279 {
12280 PyThreadState* __tstate = wxPyBeginAllowThreads();
12281 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12282
12283 wxPyEndAllowThreads(__tstate);
12284 if (PyErr_Occurred()) SWIG_fail;
12285 }
12286 Py_INCREF(Py_None); resultobj = Py_None;
12287 return resultobj;
12288 fail:
12289 return NULL;
12290 }
12291
12292
12293 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12294 PyObject *resultobj;
12295 wxDC *arg1 = (wxDC *) 0 ;
12296 wxRect *arg2 = 0 ;
12297 wxRect temp2 ;
12298 PyObject * obj0 = 0 ;
12299 PyObject * obj1 = 0 ;
12300 char *kwnames[] = {
12301 (char *) "self",(char *) "rect", NULL
12302 };
12303
12304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12306 {
12307 arg2 = &temp2;
12308 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12309 }
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 Py_INCREF(Py_None); resultobj = Py_None;
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12325 PyObject *resultobj;
12326 wxDC *arg1 = (wxDC *) 0 ;
12327 wxRegion *arg2 = 0 ;
12328 PyObject * obj0 = 0 ;
12329 PyObject * obj1 = 0 ;
12330 char *kwnames[] = {
12331 (char *) "self",(char *) "region", NULL
12332 };
12333
12334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12336 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12337 if (arg2 == NULL) {
12338 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12339 }
12340 {
12341 PyThreadState* __tstate = wxPyBeginAllowThreads();
12342 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12343
12344 wxPyEndAllowThreads(__tstate);
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 Py_INCREF(Py_None); resultobj = Py_None;
12348 return resultobj;
12349 fail:
12350 return NULL;
12351 }
12352
12353
12354 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12355 PyObject *resultobj;
12356 wxDC *arg1 = (wxDC *) 0 ;
12357 PyObject * obj0 = 0 ;
12358 char *kwnames[] = {
12359 (char *) "self", NULL
12360 };
12361
12362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 (arg1)->DestroyClippingRegion();
12367
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 Py_INCREF(Py_None); resultobj = Py_None;
12372 return resultobj;
12373 fail:
12374 return NULL;
12375 }
12376
12377
12378 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12379 PyObject *resultobj;
12380 wxDC *arg1 = (wxDC *) 0 ;
12381 int *arg2 = (int *) 0 ;
12382 int *arg3 = (int *) 0 ;
12383 int *arg4 = (int *) 0 ;
12384 int *arg5 = (int *) 0 ;
12385 int temp2 ;
12386 int temp3 ;
12387 int temp4 ;
12388 int temp5 ;
12389 PyObject * obj0 = 0 ;
12390 char *kwnames[] = {
12391 (char *) "self", NULL
12392 };
12393
12394 arg2 = &temp2;
12395 arg3 = &temp3;
12396 arg4 = &temp4;
12397 arg5 = &temp5;
12398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12403
12404 wxPyEndAllowThreads(__tstate);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 Py_INCREF(Py_None); resultobj = Py_None;
12408 {
12409 PyObject *o = PyInt_FromLong((long) (*arg2));
12410 resultobj = t_output_helper(resultobj,o);
12411 }
12412 {
12413 PyObject *o = PyInt_FromLong((long) (*arg3));
12414 resultobj = t_output_helper(resultobj,o);
12415 }
12416 {
12417 PyObject *o = PyInt_FromLong((long) (*arg4));
12418 resultobj = t_output_helper(resultobj,o);
12419 }
12420 {
12421 PyObject *o = PyInt_FromLong((long) (*arg5));
12422 resultobj = t_output_helper(resultobj,o);
12423 }
12424 return resultobj;
12425 fail:
12426 return NULL;
12427 }
12428
12429
12430 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12431 PyObject *resultobj;
12432 wxDC *arg1 = (wxDC *) 0 ;
12433 wxRect result;
12434 PyObject * obj0 = 0 ;
12435 char *kwnames[] = {
12436 (char *) "self", NULL
12437 };
12438
12439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 result = wxDC_GetClippingRect(arg1);
12444
12445 wxPyEndAllowThreads(__tstate);
12446 if (PyErr_Occurred()) SWIG_fail;
12447 }
12448 {
12449 wxRect * resultptr;
12450 resultptr = new wxRect((wxRect &) result);
12451 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12452 }
12453 return resultobj;
12454 fail:
12455 return NULL;
12456 }
12457
12458
12459 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12460 PyObject *resultobj;
12461 wxDC *arg1 = (wxDC *) 0 ;
12462 int result;
12463 PyObject * obj0 = 0 ;
12464 char *kwnames[] = {
12465 (char *) "self", NULL
12466 };
12467
12468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 result = (int)((wxDC const *)arg1)->GetCharHeight();
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 resultobj = SWIG_PyObj_FromInt((int)result);
12478 return resultobj;
12479 fail:
12480 return NULL;
12481 }
12482
12483
12484 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12485 PyObject *resultobj;
12486 wxDC *arg1 = (wxDC *) 0 ;
12487 int result;
12488 PyObject * obj0 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12495 {
12496 PyThreadState* __tstate = wxPyBeginAllowThreads();
12497 result = (int)((wxDC const *)arg1)->GetCharWidth();
12498
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 resultobj = SWIG_PyObj_FromInt((int)result);
12503 return resultobj;
12504 fail:
12505 return NULL;
12506 }
12507
12508
12509 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12510 PyObject *resultobj;
12511 wxDC *arg1 = (wxDC *) 0 ;
12512 wxString *arg2 = 0 ;
12513 int *arg3 = (int *) 0 ;
12514 int *arg4 = (int *) 0 ;
12515 bool temp2 = False ;
12516 int temp3 ;
12517 int temp4 ;
12518 PyObject * obj0 = 0 ;
12519 PyObject * obj1 = 0 ;
12520 char *kwnames[] = {
12521 (char *) "self",(char *) "string", NULL
12522 };
12523
12524 arg3 = &temp3;
12525 arg4 = &temp4;
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12528 {
12529 arg2 = wxString_in_helper(obj1);
12530 if (arg2 == NULL) SWIG_fail;
12531 temp2 = True;
12532 }
12533 {
12534 PyThreadState* __tstate = wxPyBeginAllowThreads();
12535 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12536
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 Py_INCREF(Py_None); resultobj = Py_None;
12541 {
12542 PyObject *o = PyInt_FromLong((long) (*arg3));
12543 resultobj = t_output_helper(resultobj,o);
12544 }
12545 {
12546 PyObject *o = PyInt_FromLong((long) (*arg4));
12547 resultobj = t_output_helper(resultobj,o);
12548 }
12549 {
12550 if (temp2)
12551 delete arg2;
12552 }
12553 return resultobj;
12554 fail:
12555 {
12556 if (temp2)
12557 delete arg2;
12558 }
12559 return NULL;
12560 }
12561
12562
12563 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12564 PyObject *resultobj;
12565 wxDC *arg1 = (wxDC *) 0 ;
12566 wxString *arg2 = 0 ;
12567 int *arg3 = (int *) 0 ;
12568 int *arg4 = (int *) 0 ;
12569 int *arg5 = (int *) 0 ;
12570 int *arg6 = (int *) 0 ;
12571 wxFont *arg7 = (wxFont *) NULL ;
12572 bool temp2 = False ;
12573 int temp3 ;
12574 int temp4 ;
12575 int temp5 ;
12576 int temp6 ;
12577 PyObject * obj0 = 0 ;
12578 PyObject * obj1 = 0 ;
12579 PyObject * obj2 = 0 ;
12580 char *kwnames[] = {
12581 (char *) "self",(char *) "string",(char *) "font", NULL
12582 };
12583
12584 arg3 = &temp3;
12585 arg4 = &temp4;
12586 arg5 = &temp5;
12587 arg6 = &temp6;
12588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12590 {
12591 arg2 = wxString_in_helper(obj1);
12592 if (arg2 == NULL) SWIG_fail;
12593 temp2 = True;
12594 }
12595 if (obj2) {
12596 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12597 }
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12601
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 Py_INCREF(Py_None); resultobj = Py_None;
12606 {
12607 PyObject *o = PyInt_FromLong((long) (*arg3));
12608 resultobj = t_output_helper(resultobj,o);
12609 }
12610 {
12611 PyObject *o = PyInt_FromLong((long) (*arg4));
12612 resultobj = t_output_helper(resultobj,o);
12613 }
12614 {
12615 PyObject *o = PyInt_FromLong((long) (*arg5));
12616 resultobj = t_output_helper(resultobj,o);
12617 }
12618 {
12619 PyObject *o = PyInt_FromLong((long) (*arg6));
12620 resultobj = t_output_helper(resultobj,o);
12621 }
12622 {
12623 if (temp2)
12624 delete arg2;
12625 }
12626 return resultobj;
12627 fail:
12628 {
12629 if (temp2)
12630 delete arg2;
12631 }
12632 return NULL;
12633 }
12634
12635
12636 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12637 PyObject *resultobj;
12638 wxDC *arg1 = (wxDC *) 0 ;
12639 wxString *arg2 = 0 ;
12640 int *arg3 = (int *) 0 ;
12641 int *arg4 = (int *) 0 ;
12642 int *arg5 = (int *) 0 ;
12643 wxFont *arg6 = (wxFont *) NULL ;
12644 bool temp2 = False ;
12645 int temp3 ;
12646 int temp4 ;
12647 int temp5 ;
12648 PyObject * obj0 = 0 ;
12649 PyObject * obj1 = 0 ;
12650 PyObject * obj2 = 0 ;
12651 char *kwnames[] = {
12652 (char *) "self",(char *) "text",(char *) "font", NULL
12653 };
12654
12655 arg3 = &temp3;
12656 arg4 = &temp4;
12657 arg5 = &temp5;
12658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12660 {
12661 arg2 = wxString_in_helper(obj1);
12662 if (arg2 == NULL) SWIG_fail;
12663 temp2 = True;
12664 }
12665 if (obj2) {
12666 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12667 }
12668 {
12669 PyThreadState* __tstate = wxPyBeginAllowThreads();
12670 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12671
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 Py_INCREF(Py_None); resultobj = Py_None;
12676 {
12677 PyObject *o = PyInt_FromLong((long) (*arg3));
12678 resultobj = t_output_helper(resultobj,o);
12679 }
12680 {
12681 PyObject *o = PyInt_FromLong((long) (*arg4));
12682 resultobj = t_output_helper(resultobj,o);
12683 }
12684 {
12685 PyObject *o = PyInt_FromLong((long) (*arg5));
12686 resultobj = t_output_helper(resultobj,o);
12687 }
12688 {
12689 if (temp2)
12690 delete arg2;
12691 }
12692 return resultobj;
12693 fail:
12694 {
12695 if (temp2)
12696 delete arg2;
12697 }
12698 return NULL;
12699 }
12700
12701
12702 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12703 PyObject *resultobj;
12704 wxDC *arg1 = (wxDC *) 0 ;
12705 wxSize result;
12706 PyObject * obj0 = 0 ;
12707 char *kwnames[] = {
12708 (char *) "self", NULL
12709 };
12710
12711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
12712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 result = (arg1)->GetSize();
12716
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 {
12721 wxSize * resultptr;
12722 resultptr = new wxSize((wxSize &) result);
12723 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12724 }
12725 return resultobj;
12726 fail:
12727 return NULL;
12728 }
12729
12730
12731 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12732 PyObject *resultobj;
12733 wxDC *arg1 = (wxDC *) 0 ;
12734 int *arg2 = (int *) 0 ;
12735 int *arg3 = (int *) 0 ;
12736 int temp2 ;
12737 int temp3 ;
12738 PyObject * obj0 = 0 ;
12739 char *kwnames[] = {
12740 (char *) "self", NULL
12741 };
12742
12743 arg2 = &temp2;
12744 arg3 = &temp3;
12745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
12746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12747 {
12748 PyThreadState* __tstate = wxPyBeginAllowThreads();
12749 (arg1)->GetSize(arg2,arg3);
12750
12751 wxPyEndAllowThreads(__tstate);
12752 if (PyErr_Occurred()) SWIG_fail;
12753 }
12754 Py_INCREF(Py_None); resultobj = Py_None;
12755 {
12756 PyObject *o = PyInt_FromLong((long) (*arg2));
12757 resultobj = t_output_helper(resultobj,o);
12758 }
12759 {
12760 PyObject *o = PyInt_FromLong((long) (*arg3));
12761 resultobj = t_output_helper(resultobj,o);
12762 }
12763 return resultobj;
12764 fail:
12765 return NULL;
12766 }
12767
12768
12769 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
12770 PyObject *resultobj;
12771 wxDC *arg1 = (wxDC *) 0 ;
12772 wxSize result;
12773 PyObject * obj0 = 0 ;
12774 char *kwnames[] = {
12775 (char *) "self", NULL
12776 };
12777
12778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
12779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12780 {
12781 PyThreadState* __tstate = wxPyBeginAllowThreads();
12782 result = ((wxDC const *)arg1)->GetSizeMM();
12783
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 {
12788 wxSize * resultptr;
12789 resultptr = new wxSize((wxSize &) result);
12790 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12791 }
12792 return resultobj;
12793 fail:
12794 return NULL;
12795 }
12796
12797
12798 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12799 PyObject *resultobj;
12800 wxDC *arg1 = (wxDC *) 0 ;
12801 int *arg2 = (int *) 0 ;
12802 int *arg3 = (int *) 0 ;
12803 int temp2 ;
12804 int temp3 ;
12805 PyObject * obj0 = 0 ;
12806 char *kwnames[] = {
12807 (char *) "self", NULL
12808 };
12809
12810 arg2 = &temp2;
12811 arg3 = &temp3;
12812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
12813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
12817
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 Py_INCREF(Py_None); resultobj = Py_None;
12822 {
12823 PyObject *o = PyInt_FromLong((long) (*arg2));
12824 resultobj = t_output_helper(resultobj,o);
12825 }
12826 {
12827 PyObject *o = PyInt_FromLong((long) (*arg3));
12828 resultobj = t_output_helper(resultobj,o);
12829 }
12830 return resultobj;
12831 fail:
12832 return NULL;
12833 }
12834
12835
12836 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
12837 PyObject *resultobj;
12838 wxDC *arg1 = (wxDC *) 0 ;
12839 int arg2 ;
12840 int result;
12841 PyObject * obj0 = 0 ;
12842 PyObject * obj1 = 0 ;
12843 char *kwnames[] = {
12844 (char *) "self",(char *) "x", NULL
12845 };
12846
12847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
12848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12849 {
12850 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12851 if (PyErr_Occurred()) SWIG_fail;
12852 }
12853 {
12854 PyThreadState* __tstate = wxPyBeginAllowThreads();
12855 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
12856
12857 wxPyEndAllowThreads(__tstate);
12858 if (PyErr_Occurred()) SWIG_fail;
12859 }
12860 resultobj = SWIG_PyObj_FromInt((int)result);
12861 return resultobj;
12862 fail:
12863 return NULL;
12864 }
12865
12866
12867 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
12868 PyObject *resultobj;
12869 wxDC *arg1 = (wxDC *) 0 ;
12870 int arg2 ;
12871 int result;
12872 PyObject * obj0 = 0 ;
12873 PyObject * obj1 = 0 ;
12874 char *kwnames[] = {
12875 (char *) "self",(char *) "y", NULL
12876 };
12877
12878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
12879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12880 {
12881 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 }
12884 {
12885 PyThreadState* __tstate = wxPyBeginAllowThreads();
12886 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
12887
12888 wxPyEndAllowThreads(__tstate);
12889 if (PyErr_Occurred()) SWIG_fail;
12890 }
12891 resultobj = SWIG_PyObj_FromInt((int)result);
12892 return resultobj;
12893 fail:
12894 return NULL;
12895 }
12896
12897
12898 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12899 PyObject *resultobj;
12900 wxDC *arg1 = (wxDC *) 0 ;
12901 int arg2 ;
12902 int result;
12903 PyObject * obj0 = 0 ;
12904 PyObject * obj1 = 0 ;
12905 char *kwnames[] = {
12906 (char *) "self",(char *) "x", NULL
12907 };
12908
12909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
12910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12911 {
12912 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 }
12915 {
12916 PyThreadState* __tstate = wxPyBeginAllowThreads();
12917 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
12918
12919 wxPyEndAllowThreads(__tstate);
12920 if (PyErr_Occurred()) SWIG_fail;
12921 }
12922 resultobj = SWIG_PyObj_FromInt((int)result);
12923 return resultobj;
12924 fail:
12925 return NULL;
12926 }
12927
12928
12929 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12930 PyObject *resultobj;
12931 wxDC *arg1 = (wxDC *) 0 ;
12932 int arg2 ;
12933 int result;
12934 PyObject * obj0 = 0 ;
12935 PyObject * obj1 = 0 ;
12936 char *kwnames[] = {
12937 (char *) "self",(char *) "y", NULL
12938 };
12939
12940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
12941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12942 {
12943 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 {
12947 PyThreadState* __tstate = wxPyBeginAllowThreads();
12948 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
12949
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 resultobj = SWIG_PyObj_FromInt((int)result);
12954 return resultobj;
12955 fail:
12956 return NULL;
12957 }
12958
12959
12960 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
12961 PyObject *resultobj;
12962 wxDC *arg1 = (wxDC *) 0 ;
12963 int arg2 ;
12964 int result;
12965 PyObject * obj0 = 0 ;
12966 PyObject * obj1 = 0 ;
12967 char *kwnames[] = {
12968 (char *) "self",(char *) "x", NULL
12969 };
12970
12971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
12972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12973 {
12974 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12975 if (PyErr_Occurred()) SWIG_fail;
12976 }
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
12979 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
12980
12981 wxPyEndAllowThreads(__tstate);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 }
12984 resultobj = SWIG_PyObj_FromInt((int)result);
12985 return resultobj;
12986 fail:
12987 return NULL;
12988 }
12989
12990
12991 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
12992 PyObject *resultobj;
12993 wxDC *arg1 = (wxDC *) 0 ;
12994 int arg2 ;
12995 int result;
12996 PyObject * obj0 = 0 ;
12997 PyObject * obj1 = 0 ;
12998 char *kwnames[] = {
12999 (char *) "self",(char *) "y", NULL
13000 };
13001
13002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13004 {
13005 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13006 if (PyErr_Occurred()) SWIG_fail;
13007 }
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13011
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 resultobj = SWIG_PyObj_FromInt((int)result);
13016 return resultobj;
13017 fail:
13018 return NULL;
13019 }
13020
13021
13022 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13023 PyObject *resultobj;
13024 wxDC *arg1 = (wxDC *) 0 ;
13025 int arg2 ;
13026 int result;
13027 PyObject * obj0 = 0 ;
13028 PyObject * obj1 = 0 ;
13029 char *kwnames[] = {
13030 (char *) "self",(char *) "x", NULL
13031 };
13032
13033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13035 {
13036 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 }
13039 {
13040 PyThreadState* __tstate = wxPyBeginAllowThreads();
13041 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13042
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 resultobj = SWIG_PyObj_FromInt((int)result);
13047 return resultobj;
13048 fail:
13049 return NULL;
13050 }
13051
13052
13053 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13054 PyObject *resultobj;
13055 wxDC *arg1 = (wxDC *) 0 ;
13056 int arg2 ;
13057 int result;
13058 PyObject * obj0 = 0 ;
13059 PyObject * obj1 = 0 ;
13060 char *kwnames[] = {
13061 (char *) "self",(char *) "y", NULL
13062 };
13063
13064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13066 {
13067 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 {
13071 PyThreadState* __tstate = wxPyBeginAllowThreads();
13072 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13073
13074 wxPyEndAllowThreads(__tstate);
13075 if (PyErr_Occurred()) SWIG_fail;
13076 }
13077 resultobj = SWIG_PyObj_FromInt((int)result);
13078 return resultobj;
13079 fail:
13080 return NULL;
13081 }
13082
13083
13084 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13085 PyObject *resultobj;
13086 wxDC *arg1 = (wxDC *) 0 ;
13087 bool result;
13088 PyObject * obj0 = 0 ;
13089 char *kwnames[] = {
13090 (char *) "self", NULL
13091 };
13092
13093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13103 return resultobj;
13104 fail:
13105 return NULL;
13106 }
13107
13108
13109 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13110 PyObject *resultobj;
13111 wxDC *arg1 = (wxDC *) 0 ;
13112 bool result;
13113 PyObject * obj0 = 0 ;
13114 char *kwnames[] = {
13115 (char *) "self", NULL
13116 };
13117
13118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13123
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13128 return resultobj;
13129 fail:
13130 return NULL;
13131 }
13132
13133
13134 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13135 PyObject *resultobj;
13136 wxDC *arg1 = (wxDC *) 0 ;
13137 int result;
13138 PyObject * obj0 = 0 ;
13139 char *kwnames[] = {
13140 (char *) "self", NULL
13141 };
13142
13143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 result = (int)((wxDC const *)arg1)->GetDepth();
13148
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 resultobj = SWIG_PyObj_FromInt((int)result);
13153 return resultobj;
13154 fail:
13155 return NULL;
13156 }
13157
13158
13159 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13160 PyObject *resultobj;
13161 wxDC *arg1 = (wxDC *) 0 ;
13162 wxSize result;
13163 PyObject * obj0 = 0 ;
13164 char *kwnames[] = {
13165 (char *) "self", NULL
13166 };
13167
13168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 result = ((wxDC const *)arg1)->GetPPI();
13173
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 {
13178 wxSize * resultptr;
13179 resultptr = new wxSize((wxSize &) result);
13180 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13181 }
13182 return resultobj;
13183 fail:
13184 return NULL;
13185 }
13186
13187
13188 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj;
13190 wxDC *arg1 = (wxDC *) 0 ;
13191 bool result;
13192 PyObject * obj0 = 0 ;
13193 char *kwnames[] = {
13194 (char *) "self", NULL
13195 };
13196
13197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 result = (bool)((wxDC const *)arg1)->Ok();
13202
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13207 return resultobj;
13208 fail:
13209 return NULL;
13210 }
13211
13212
13213 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13214 PyObject *resultobj;
13215 wxDC *arg1 = (wxDC *) 0 ;
13216 int result;
13217 PyObject * obj0 = 0 ;
13218 char *kwnames[] = {
13219 (char *) "self", NULL
13220 };
13221
13222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13224 {
13225 PyThreadState* __tstate = wxPyBeginAllowThreads();
13226 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13227
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = SWIG_PyObj_FromInt((int)result);
13232 return resultobj;
13233 fail:
13234 return NULL;
13235 }
13236
13237
13238 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13239 PyObject *resultobj;
13240 wxDC *arg1 = (wxDC *) 0 ;
13241 wxBrush *result;
13242 PyObject * obj0 = 0 ;
13243 char *kwnames[] = {
13244 (char *) "self", NULL
13245 };
13246
13247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 {
13252 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13253 result = (wxBrush *) &_result_ref;
13254 }
13255
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13260 return resultobj;
13261 fail:
13262 return NULL;
13263 }
13264
13265
13266 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj;
13268 wxDC *arg1 = (wxDC *) 0 ;
13269 wxBrush *result;
13270 PyObject * obj0 = 0 ;
13271 char *kwnames[] = {
13272 (char *) "self", NULL
13273 };
13274
13275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13277 {
13278 PyThreadState* __tstate = wxPyBeginAllowThreads();
13279 {
13280 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13281 result = (wxBrush *) &_result_ref;
13282 }
13283
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13288 return resultobj;
13289 fail:
13290 return NULL;
13291 }
13292
13293
13294 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13295 PyObject *resultobj;
13296 wxDC *arg1 = (wxDC *) 0 ;
13297 wxFont *result;
13298 PyObject * obj0 = 0 ;
13299 char *kwnames[] = {
13300 (char *) "self", NULL
13301 };
13302
13303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13305 {
13306 PyThreadState* __tstate = wxPyBeginAllowThreads();
13307 {
13308 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13309 result = (wxFont *) &_result_ref;
13310 }
13311
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj;
13324 wxDC *arg1 = (wxDC *) 0 ;
13325 wxPen *result;
13326 PyObject * obj0 = 0 ;
13327 char *kwnames[] = {
13328 (char *) "self", NULL
13329 };
13330
13331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
13335 {
13336 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13337 result = (wxPen *) &_result_ref;
13338 }
13339
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13344 return resultobj;
13345 fail:
13346 return NULL;
13347 }
13348
13349
13350 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13351 PyObject *resultobj;
13352 wxDC *arg1 = (wxDC *) 0 ;
13353 wxColour *result;
13354 PyObject * obj0 = 0 ;
13355 char *kwnames[] = {
13356 (char *) "self", NULL
13357 };
13358
13359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13361 {
13362 PyThreadState* __tstate = wxPyBeginAllowThreads();
13363 {
13364 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13365 result = (wxColour *) &_result_ref;
13366 }
13367
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13372 return resultobj;
13373 fail:
13374 return NULL;
13375 }
13376
13377
13378 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13379 PyObject *resultobj;
13380 wxDC *arg1 = (wxDC *) 0 ;
13381 wxColour *result;
13382 PyObject * obj0 = 0 ;
13383 char *kwnames[] = {
13384 (char *) "self", NULL
13385 };
13386
13387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 {
13392 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13393 result = (wxColour *) &_result_ref;
13394 }
13395
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13400 return resultobj;
13401 fail:
13402 return NULL;
13403 }
13404
13405
13406 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13407 PyObject *resultobj;
13408 wxDC *arg1 = (wxDC *) 0 ;
13409 wxColour *arg2 = 0 ;
13410 wxColour temp2 ;
13411 PyObject * obj0 = 0 ;
13412 PyObject * obj1 = 0 ;
13413 char *kwnames[] = {
13414 (char *) "self",(char *) "colour", NULL
13415 };
13416
13417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13419 {
13420 arg2 = &temp2;
13421 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13422 }
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 (arg1)->SetTextForeground((wxColour const &)*arg2);
13426
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 Py_INCREF(Py_None); resultobj = Py_None;
13431 return resultobj;
13432 fail:
13433 return NULL;
13434 }
13435
13436
13437 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13438 PyObject *resultobj;
13439 wxDC *arg1 = (wxDC *) 0 ;
13440 wxColour *arg2 = 0 ;
13441 wxColour temp2 ;
13442 PyObject * obj0 = 0 ;
13443 PyObject * obj1 = 0 ;
13444 char *kwnames[] = {
13445 (char *) "self",(char *) "colour", NULL
13446 };
13447
13448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13450 {
13451 arg2 = &temp2;
13452 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13453 }
13454 {
13455 PyThreadState* __tstate = wxPyBeginAllowThreads();
13456 (arg1)->SetTextBackground((wxColour const &)*arg2);
13457
13458 wxPyEndAllowThreads(__tstate);
13459 if (PyErr_Occurred()) SWIG_fail;
13460 }
13461 Py_INCREF(Py_None); resultobj = Py_None;
13462 return resultobj;
13463 fail:
13464 return NULL;
13465 }
13466
13467
13468 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13469 PyObject *resultobj;
13470 wxDC *arg1 = (wxDC *) 0 ;
13471 int result;
13472 PyObject * obj0 = 0 ;
13473 char *kwnames[] = {
13474 (char *) "self", NULL
13475 };
13476
13477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 result = (int)((wxDC const *)arg1)->GetMapMode();
13482
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = SWIG_PyObj_FromInt((int)result);
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13494 PyObject *resultobj;
13495 wxDC *arg1 = (wxDC *) 0 ;
13496 int arg2 ;
13497 PyObject * obj0 = 0 ;
13498 PyObject * obj1 = 0 ;
13499 char *kwnames[] = {
13500 (char *) "self",(char *) "mode", NULL
13501 };
13502
13503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13505 {
13506 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 {
13510 PyThreadState* __tstate = wxPyBeginAllowThreads();
13511 (arg1)->SetMapMode(arg2);
13512
13513 wxPyEndAllowThreads(__tstate);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 Py_INCREF(Py_None); resultobj = Py_None;
13517 return resultobj;
13518 fail:
13519 return NULL;
13520 }
13521
13522
13523 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13524 PyObject *resultobj;
13525 wxDC *arg1 = (wxDC *) 0 ;
13526 double *arg2 = (double *) 0 ;
13527 double *arg3 = (double *) 0 ;
13528 double temp2 ;
13529 double temp3 ;
13530 PyObject * obj0 = 0 ;
13531 char *kwnames[] = {
13532 (char *) "self", NULL
13533 };
13534
13535 arg2 = &temp2;
13536 arg3 = &temp3;
13537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13542
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 Py_INCREF(Py_None); resultobj = Py_None;
13547 {
13548 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13549 resultobj = t_output_helper(resultobj,o);
13550 }
13551 {
13552 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13553 resultobj = t_output_helper(resultobj,o);
13554 }
13555 return resultobj;
13556 fail:
13557 return NULL;
13558 }
13559
13560
13561 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13562 PyObject *resultobj;
13563 wxDC *arg1 = (wxDC *) 0 ;
13564 double arg2 ;
13565 double arg3 ;
13566 PyObject * obj0 = 0 ;
13567 PyObject * obj1 = 0 ;
13568 PyObject * obj2 = 0 ;
13569 char *kwnames[] = {
13570 (char *) "self",(char *) "x",(char *) "y", NULL
13571 };
13572
13573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13575 {
13576 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 }
13579 {
13580 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 {
13584 PyThreadState* __tstate = wxPyBeginAllowThreads();
13585 (arg1)->SetUserScale(arg2,arg3);
13586
13587 wxPyEndAllowThreads(__tstate);
13588 if (PyErr_Occurred()) SWIG_fail;
13589 }
13590 Py_INCREF(Py_None); resultobj = Py_None;
13591 return resultobj;
13592 fail:
13593 return NULL;
13594 }
13595
13596
13597 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13598 PyObject *resultobj;
13599 wxDC *arg1 = (wxDC *) 0 ;
13600 double *arg2 = (double *) 0 ;
13601 double *arg3 = (double *) 0 ;
13602 double temp2 ;
13603 double temp3 ;
13604 PyObject * obj0 = 0 ;
13605 char *kwnames[] = {
13606 (char *) "self", NULL
13607 };
13608
13609 arg2 = &temp2;
13610 arg3 = &temp3;
13611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13613 {
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 (arg1)->GetLogicalScale(arg2,arg3);
13616
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 Py_INCREF(Py_None); resultobj = Py_None;
13621 {
13622 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13623 resultobj = t_output_helper(resultobj,o);
13624 }
13625 {
13626 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13627 resultobj = t_output_helper(resultobj,o);
13628 }
13629 return resultobj;
13630 fail:
13631 return NULL;
13632 }
13633
13634
13635 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13636 PyObject *resultobj;
13637 wxDC *arg1 = (wxDC *) 0 ;
13638 double arg2 ;
13639 double arg3 ;
13640 PyObject * obj0 = 0 ;
13641 PyObject * obj1 = 0 ;
13642 PyObject * obj2 = 0 ;
13643 char *kwnames[] = {
13644 (char *) "self",(char *) "x",(char *) "y", NULL
13645 };
13646
13647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13649 {
13650 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 {
13654 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 }
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 (arg1)->SetLogicalScale(arg2,arg3);
13660
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 Py_INCREF(Py_None); resultobj = Py_None;
13665 return resultobj;
13666 fail:
13667 return NULL;
13668 }
13669
13670
13671 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13672 PyObject *resultobj;
13673 wxDC *arg1 = (wxDC *) 0 ;
13674 wxPoint result;
13675 PyObject * obj0 = 0 ;
13676 char *kwnames[] = {
13677 (char *) "self", NULL
13678 };
13679
13680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
13681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13682 {
13683 PyThreadState* __tstate = wxPyBeginAllowThreads();
13684 result = ((wxDC const *)arg1)->GetLogicalOrigin();
13685
13686 wxPyEndAllowThreads(__tstate);
13687 if (PyErr_Occurred()) SWIG_fail;
13688 }
13689 {
13690 wxPoint * resultptr;
13691 resultptr = new wxPoint((wxPoint &) result);
13692 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13693 }
13694 return resultobj;
13695 fail:
13696 return NULL;
13697 }
13698
13699
13700 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13701 PyObject *resultobj;
13702 wxDC *arg1 = (wxDC *) 0 ;
13703 int *arg2 = (int *) 0 ;
13704 int *arg3 = (int *) 0 ;
13705 int temp2 ;
13706 int temp3 ;
13707 PyObject * obj0 = 0 ;
13708 char *kwnames[] = {
13709 (char *) "self", NULL
13710 };
13711
13712 arg2 = &temp2;
13713 arg3 = &temp3;
13714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
13715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13716 {
13717 PyThreadState* __tstate = wxPyBeginAllowThreads();
13718 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
13719
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 Py_INCREF(Py_None); resultobj = Py_None;
13724 {
13725 PyObject *o = PyInt_FromLong((long) (*arg2));
13726 resultobj = t_output_helper(resultobj,o);
13727 }
13728 {
13729 PyObject *o = PyInt_FromLong((long) (*arg3));
13730 resultobj = t_output_helper(resultobj,o);
13731 }
13732 return resultobj;
13733 fail:
13734 return NULL;
13735 }
13736
13737
13738 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13739 PyObject *resultobj;
13740 wxDC *arg1 = (wxDC *) 0 ;
13741 int arg2 ;
13742 int arg3 ;
13743 PyObject * obj0 = 0 ;
13744 PyObject * obj1 = 0 ;
13745 PyObject * obj2 = 0 ;
13746 char *kwnames[] = {
13747 (char *) "self",(char *) "x",(char *) "y", NULL
13748 };
13749
13750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13752 {
13753 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13754 if (PyErr_Occurred()) SWIG_fail;
13755 }
13756 {
13757 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13758 if (PyErr_Occurred()) SWIG_fail;
13759 }
13760 {
13761 PyThreadState* __tstate = wxPyBeginAllowThreads();
13762 (arg1)->SetLogicalOrigin(arg2,arg3);
13763
13764 wxPyEndAllowThreads(__tstate);
13765 if (PyErr_Occurred()) SWIG_fail;
13766 }
13767 Py_INCREF(Py_None); resultobj = Py_None;
13768 return resultobj;
13769 fail:
13770 return NULL;
13771 }
13772
13773
13774 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13775 PyObject *resultobj;
13776 wxDC *arg1 = (wxDC *) 0 ;
13777 wxPoint result;
13778 PyObject * obj0 = 0 ;
13779 char *kwnames[] = {
13780 (char *) "self", NULL
13781 };
13782
13783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
13784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13785 {
13786 PyThreadState* __tstate = wxPyBeginAllowThreads();
13787 result = ((wxDC const *)arg1)->GetDeviceOrigin();
13788
13789 wxPyEndAllowThreads(__tstate);
13790 if (PyErr_Occurred()) SWIG_fail;
13791 }
13792 {
13793 wxPoint * resultptr;
13794 resultptr = new wxPoint((wxPoint &) result);
13795 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13796 }
13797 return resultobj;
13798 fail:
13799 return NULL;
13800 }
13801
13802
13803 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13804 PyObject *resultobj;
13805 wxDC *arg1 = (wxDC *) 0 ;
13806 int *arg2 = (int *) 0 ;
13807 int *arg3 = (int *) 0 ;
13808 int temp2 ;
13809 int temp3 ;
13810 PyObject * obj0 = 0 ;
13811 char *kwnames[] = {
13812 (char *) "self", NULL
13813 };
13814
13815 arg2 = &temp2;
13816 arg3 = &temp3;
13817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
13818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13819 {
13820 PyThreadState* __tstate = wxPyBeginAllowThreads();
13821 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
13822
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 Py_INCREF(Py_None); resultobj = Py_None;
13827 {
13828 PyObject *o = PyInt_FromLong((long) (*arg2));
13829 resultobj = t_output_helper(resultobj,o);
13830 }
13831 {
13832 PyObject *o = PyInt_FromLong((long) (*arg3));
13833 resultobj = t_output_helper(resultobj,o);
13834 }
13835 return resultobj;
13836 fail:
13837 return NULL;
13838 }
13839
13840
13841 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13842 PyObject *resultobj;
13843 wxDC *arg1 = (wxDC *) 0 ;
13844 int arg2 ;
13845 int arg3 ;
13846 PyObject * obj0 = 0 ;
13847 PyObject * obj1 = 0 ;
13848 PyObject * obj2 = 0 ;
13849 char *kwnames[] = {
13850 (char *) "self",(char *) "x",(char *) "y", NULL
13851 };
13852
13853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13855 {
13856 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 {
13860 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13861 if (PyErr_Occurred()) SWIG_fail;
13862 }
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 (arg1)->SetDeviceOrigin(arg2,arg3);
13866
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 Py_INCREF(Py_None); resultobj = Py_None;
13871 return resultobj;
13872 fail:
13873 return NULL;
13874 }
13875
13876
13877 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj;
13879 wxDC *arg1 = (wxDC *) 0 ;
13880 bool arg2 ;
13881 bool arg3 ;
13882 PyObject * obj0 = 0 ;
13883 PyObject * obj1 = 0 ;
13884 PyObject * obj2 = 0 ;
13885 char *kwnames[] = {
13886 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
13887 };
13888
13889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
13890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13891 {
13892 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 {
13896 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
13897 if (PyErr_Occurred()) SWIG_fail;
13898 }
13899 {
13900 PyThreadState* __tstate = wxPyBeginAllowThreads();
13901 (arg1)->SetAxisOrientation(arg2,arg3);
13902
13903 wxPyEndAllowThreads(__tstate);
13904 if (PyErr_Occurred()) SWIG_fail;
13905 }
13906 Py_INCREF(Py_None); resultobj = Py_None;
13907 return resultobj;
13908 fail:
13909 return NULL;
13910 }
13911
13912
13913 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13914 PyObject *resultobj;
13915 wxDC *arg1 = (wxDC *) 0 ;
13916 int result;
13917 PyObject * obj0 = 0 ;
13918 char *kwnames[] = {
13919 (char *) "self", NULL
13920 };
13921
13922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
13923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13924 {
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
13927
13928 wxPyEndAllowThreads(__tstate);
13929 if (PyErr_Occurred()) SWIG_fail;
13930 }
13931 resultobj = SWIG_PyObj_FromInt((int)result);
13932 return resultobj;
13933 fail:
13934 return NULL;
13935 }
13936
13937
13938 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13939 PyObject *resultobj;
13940 wxDC *arg1 = (wxDC *) 0 ;
13941 int arg2 ;
13942 PyObject * obj0 = 0 ;
13943 PyObject * obj1 = 0 ;
13944 char *kwnames[] = {
13945 (char *) "self",(char *) "function", NULL
13946 };
13947
13948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
13949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13950 {
13951 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 (arg1)->SetLogicalFunction(arg2);
13957
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 Py_INCREF(Py_None); resultobj = Py_None;
13962 return resultobj;
13963 fail:
13964 return NULL;
13965 }
13966
13967
13968 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13969 PyObject *resultobj;
13970 wxDC *arg1 = (wxDC *) 0 ;
13971 bool arg2 ;
13972 PyObject * obj0 = 0 ;
13973 PyObject * obj1 = 0 ;
13974 char *kwnames[] = {
13975 (char *) "self",(char *) "opt", NULL
13976 };
13977
13978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
13979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13980 {
13981 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 (arg1)->SetOptimization(arg2);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 Py_INCREF(Py_None); resultobj = Py_None;
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxDC *arg1 = (wxDC *) 0 ;
14001 bool result;
14002 PyObject * obj0 = 0 ;
14003 char *kwnames[] = {
14004 (char *) "self", NULL
14005 };
14006
14007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14009 {
14010 PyThreadState* __tstate = wxPyBeginAllowThreads();
14011 result = (bool)(arg1)->GetOptimization();
14012
14013 wxPyEndAllowThreads(__tstate);
14014 if (PyErr_Occurred()) SWIG_fail;
14015 }
14016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14017 return resultobj;
14018 fail:
14019 return NULL;
14020 }
14021
14022
14023 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14024 PyObject *resultobj;
14025 wxDC *arg1 = (wxDC *) 0 ;
14026 int arg2 ;
14027 int arg3 ;
14028 PyObject * obj0 = 0 ;
14029 PyObject * obj1 = 0 ;
14030 PyObject * obj2 = 0 ;
14031 char *kwnames[] = {
14032 (char *) "self",(char *) "x",(char *) "y", NULL
14033 };
14034
14035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14037 {
14038 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14039 if (PyErr_Occurred()) SWIG_fail;
14040 }
14041 {
14042 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 {
14046 PyThreadState* __tstate = wxPyBeginAllowThreads();
14047 (arg1)->CalcBoundingBox(arg2,arg3);
14048
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 Py_INCREF(Py_None); resultobj = Py_None;
14053 return resultobj;
14054 fail:
14055 return NULL;
14056 }
14057
14058
14059 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14060 PyObject *resultobj;
14061 wxDC *arg1 = (wxDC *) 0 ;
14062 PyObject * obj0 = 0 ;
14063 char *kwnames[] = {
14064 (char *) "self", NULL
14065 };
14066
14067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 (arg1)->ResetBoundingBox();
14072
14073 wxPyEndAllowThreads(__tstate);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 }
14076 Py_INCREF(Py_None); resultobj = Py_None;
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14084 PyObject *resultobj;
14085 wxDC *arg1 = (wxDC *) 0 ;
14086 int result;
14087 PyObject * obj0 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (int)((wxDC const *)arg1)->MinX();
14097
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 resultobj = SWIG_PyObj_FromInt((int)result);
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 wxDC *arg1 = (wxDC *) 0 ;
14111 int result;
14112 PyObject * obj0 = 0 ;
14113 char *kwnames[] = {
14114 (char *) "self", NULL
14115 };
14116
14117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (int)((wxDC const *)arg1)->MaxX();
14122
14123 wxPyEndAllowThreads(__tstate);
14124 if (PyErr_Occurred()) SWIG_fail;
14125 }
14126 resultobj = SWIG_PyObj_FromInt((int)result);
14127 return resultobj;
14128 fail:
14129 return NULL;
14130 }
14131
14132
14133 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14134 PyObject *resultobj;
14135 wxDC *arg1 = (wxDC *) 0 ;
14136 int result;
14137 PyObject * obj0 = 0 ;
14138 char *kwnames[] = {
14139 (char *) "self", NULL
14140 };
14141
14142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14144 {
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 result = (int)((wxDC const *)arg1)->MinY();
14147
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 resultobj = SWIG_PyObj_FromInt((int)result);
14152 return resultobj;
14153 fail:
14154 return NULL;
14155 }
14156
14157
14158 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14159 PyObject *resultobj;
14160 wxDC *arg1 = (wxDC *) 0 ;
14161 int result;
14162 PyObject * obj0 = 0 ;
14163 char *kwnames[] = {
14164 (char *) "self", NULL
14165 };
14166
14167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14169 {
14170 PyThreadState* __tstate = wxPyBeginAllowThreads();
14171 result = (int)((wxDC const *)arg1)->MaxY();
14172
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_PyObj_FromInt((int)result);
14177 return resultobj;
14178 fail:
14179 return NULL;
14180 }
14181
14182
14183 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14184 PyObject *resultobj;
14185 wxDC *arg1 = (wxDC *) 0 ;
14186 int *arg2 = (int *) 0 ;
14187 int *arg3 = (int *) 0 ;
14188 int *arg4 = (int *) 0 ;
14189 int *arg5 = (int *) 0 ;
14190 int temp2 ;
14191 int temp3 ;
14192 int temp4 ;
14193 int temp5 ;
14194 PyObject * obj0 = 0 ;
14195 char *kwnames[] = {
14196 (char *) "self", NULL
14197 };
14198
14199 arg2 = &temp2;
14200 arg3 = &temp3;
14201 arg4 = &temp4;
14202 arg5 = &temp5;
14203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14205 {
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14208
14209 wxPyEndAllowThreads(__tstate);
14210 if (PyErr_Occurred()) SWIG_fail;
14211 }
14212 Py_INCREF(Py_None); resultobj = Py_None;
14213 {
14214 PyObject *o = PyInt_FromLong((long) (*arg2));
14215 resultobj = t_output_helper(resultobj,o);
14216 }
14217 {
14218 PyObject *o = PyInt_FromLong((long) (*arg3));
14219 resultobj = t_output_helper(resultobj,o);
14220 }
14221 {
14222 PyObject *o = PyInt_FromLong((long) (*arg4));
14223 resultobj = t_output_helper(resultobj,o);
14224 }
14225 {
14226 PyObject *o = PyInt_FromLong((long) (*arg5));
14227 resultobj = t_output_helper(resultobj,o);
14228 }
14229 return resultobj;
14230 fail:
14231 return NULL;
14232 }
14233
14234
14235 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14236 PyObject *resultobj;
14237 wxDC *arg1 = (wxDC *) 0 ;
14238 PyObject *arg2 = (PyObject *) 0 ;
14239 PyObject *arg3 = (PyObject *) 0 ;
14240 PyObject *arg4 = (PyObject *) 0 ;
14241 PyObject *result;
14242 PyObject * obj0 = 0 ;
14243 PyObject * obj1 = 0 ;
14244 PyObject * obj2 = 0 ;
14245 PyObject * obj3 = 0 ;
14246 char *kwnames[] = {
14247 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14248 };
14249
14250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14252 arg2 = obj1;
14253 arg3 = obj2;
14254 arg4 = obj3;
14255 {
14256 PyThreadState* __tstate = wxPyBeginAllowThreads();
14257 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14258
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 resultobj = result;
14263 return resultobj;
14264 fail:
14265 return NULL;
14266 }
14267
14268
14269 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14270 PyObject *resultobj;
14271 wxDC *arg1 = (wxDC *) 0 ;
14272 PyObject *arg2 = (PyObject *) 0 ;
14273 PyObject *arg3 = (PyObject *) 0 ;
14274 PyObject *arg4 = (PyObject *) 0 ;
14275 PyObject *result;
14276 PyObject * obj0 = 0 ;
14277 PyObject * obj1 = 0 ;
14278 PyObject * obj2 = 0 ;
14279 PyObject * obj3 = 0 ;
14280 char *kwnames[] = {
14281 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14282 };
14283
14284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14286 arg2 = obj1;
14287 arg3 = obj2;
14288 arg4 = obj3;
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14292
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 resultobj = result;
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj;
14305 wxDC *arg1 = (wxDC *) 0 ;
14306 PyObject *arg2 = (PyObject *) 0 ;
14307 PyObject *arg3 = (PyObject *) 0 ;
14308 PyObject *arg4 = (PyObject *) 0 ;
14309 PyObject *result;
14310 PyObject * obj0 = 0 ;
14311 PyObject * obj1 = 0 ;
14312 PyObject * obj2 = 0 ;
14313 PyObject * obj3 = 0 ;
14314 char *kwnames[] = {
14315 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14316 };
14317
14318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14320 arg2 = obj1;
14321 arg3 = obj2;
14322 arg4 = obj3;
14323 {
14324 PyThreadState* __tstate = wxPyBeginAllowThreads();
14325 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14326
14327 wxPyEndAllowThreads(__tstate);
14328 if (PyErr_Occurred()) SWIG_fail;
14329 }
14330 resultobj = result;
14331 return resultobj;
14332 fail:
14333 return NULL;
14334 }
14335
14336
14337 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14338 PyObject *resultobj;
14339 wxDC *arg1 = (wxDC *) 0 ;
14340 PyObject *arg2 = (PyObject *) 0 ;
14341 PyObject *arg3 = (PyObject *) 0 ;
14342 PyObject *arg4 = (PyObject *) 0 ;
14343 PyObject *result;
14344 PyObject * obj0 = 0 ;
14345 PyObject * obj1 = 0 ;
14346 PyObject * obj2 = 0 ;
14347 PyObject * obj3 = 0 ;
14348 char *kwnames[] = {
14349 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14350 };
14351
14352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14354 arg2 = obj1;
14355 arg3 = obj2;
14356 arg4 = obj3;
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14360
14361 wxPyEndAllowThreads(__tstate);
14362 if (PyErr_Occurred()) SWIG_fail;
14363 }
14364 resultobj = result;
14365 return resultobj;
14366 fail:
14367 return NULL;
14368 }
14369
14370
14371 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14372 PyObject *resultobj;
14373 wxDC *arg1 = (wxDC *) 0 ;
14374 PyObject *arg2 = (PyObject *) 0 ;
14375 PyObject *arg3 = (PyObject *) 0 ;
14376 PyObject *arg4 = (PyObject *) 0 ;
14377 PyObject *result;
14378 PyObject * obj0 = 0 ;
14379 PyObject * obj1 = 0 ;
14380 PyObject * obj2 = 0 ;
14381 PyObject * obj3 = 0 ;
14382 char *kwnames[] = {
14383 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14384 };
14385
14386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14388 arg2 = obj1;
14389 arg3 = obj2;
14390 arg4 = obj3;
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14394
14395 wxPyEndAllowThreads(__tstate);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 }
14398 resultobj = result;
14399 return resultobj;
14400 fail:
14401 return NULL;
14402 }
14403
14404
14405 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14406 PyObject *resultobj;
14407 wxDC *arg1 = (wxDC *) 0 ;
14408 PyObject *arg2 = (PyObject *) 0 ;
14409 PyObject *arg3 = (PyObject *) 0 ;
14410 PyObject *arg4 = (PyObject *) 0 ;
14411 PyObject *arg5 = (PyObject *) 0 ;
14412 PyObject *result;
14413 PyObject * obj0 = 0 ;
14414 PyObject * obj1 = 0 ;
14415 PyObject * obj2 = 0 ;
14416 PyObject * obj3 = 0 ;
14417 PyObject * obj4 = 0 ;
14418 char *kwnames[] = {
14419 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14420 };
14421
14422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14424 arg2 = obj1;
14425 arg3 = obj2;
14426 arg4 = obj3;
14427 arg5 = obj4;
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14431
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 resultobj = result;
14436 return resultobj;
14437 fail:
14438 return NULL;
14439 }
14440
14441
14442 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14443 PyObject *obj;
14444 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14445 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14446 Py_INCREF(obj);
14447 return Py_BuildValue((char *)"");
14448 }
14449 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14450 PyObject *resultobj;
14451 wxMemoryDC *result;
14452 char *kwnames[] = {
14453 NULL
14454 };
14455
14456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = (wxMemoryDC *)new wxMemoryDC();
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14472 PyObject *resultobj;
14473 wxDC *arg1 = (wxDC *) 0 ;
14474 wxMemoryDC *result;
14475 PyObject * obj0 = 0 ;
14476 char *kwnames[] = {
14477 (char *) "oldDC", NULL
14478 };
14479
14480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14482 {
14483 PyThreadState* __tstate = wxPyBeginAllowThreads();
14484 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14485
14486 wxPyEndAllowThreads(__tstate);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 }
14489 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14490 return resultobj;
14491 fail:
14492 return NULL;
14493 }
14494
14495
14496 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14497 PyObject *resultobj;
14498 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14499 wxBitmap *arg2 = 0 ;
14500 PyObject * obj0 = 0 ;
14501 PyObject * obj1 = 0 ;
14502 char *kwnames[] = {
14503 (char *) "self",(char *) "bitmap", NULL
14504 };
14505
14506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14508 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14509 if (arg2 == NULL) {
14510 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14511 }
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 (arg1)->SelectObject((wxBitmap const &)*arg2);
14515
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 Py_INCREF(Py_None); resultobj = Py_None;
14520 return resultobj;
14521 fail:
14522 return NULL;
14523 }
14524
14525
14526 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14527 PyObject *obj;
14528 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14529 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14530 Py_INCREF(obj);
14531 return Py_BuildValue((char *)"");
14532 }
14533 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14534 PyObject *resultobj;
14535 wxDC *arg1 = (wxDC *) 0 ;
14536 wxBitmap *arg2 = 0 ;
14537 wxBufferedDC *result;
14538 PyObject * obj0 = 0 ;
14539 PyObject * obj1 = 0 ;
14540 char *kwnames[] = {
14541 (char *) "dc",(char *) "buffer", NULL
14542 };
14543
14544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
14545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14546 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14547 if (arg2 == NULL) {
14548 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14549 }
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14553
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj;
14566 wxDC *arg1 = (wxDC *) 0 ;
14567 wxSize *arg2 = 0 ;
14568 wxBufferedDC *result;
14569 wxSize temp2 ;
14570 PyObject * obj0 = 0 ;
14571 PyObject * obj1 = 0 ;
14572 char *kwnames[] = {
14573 (char *) "dc",(char *) "area", NULL
14574 };
14575
14576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
14577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14578 {
14579 arg2 = &temp2;
14580 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14581 }
14582 {
14583 PyThreadState* __tstate = wxPyBeginAllowThreads();
14584 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
14585
14586 wxPyEndAllowThreads(__tstate);
14587 if (PyErr_Occurred()) SWIG_fail;
14588 }
14589 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14590 return resultobj;
14591 fail:
14592 return NULL;
14593 }
14594
14595
14596 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14597 PyObject *resultobj;
14598 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
14599 PyObject * obj0 = 0 ;
14600 char *kwnames[] = {
14601 (char *) "self", NULL
14602 };
14603
14604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
14605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 (arg1)->UnMask();
14609
14610 wxPyEndAllowThreads(__tstate);
14611 if (PyErr_Occurred()) SWIG_fail;
14612 }
14613 Py_INCREF(Py_None); resultobj = Py_None;
14614 return resultobj;
14615 fail:
14616 return NULL;
14617 }
14618
14619
14620 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
14621 PyObject *obj;
14622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14623 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
14624 Py_INCREF(obj);
14625 return Py_BuildValue((char *)"");
14626 }
14627 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14628 PyObject *resultobj;
14629 wxWindow *arg1 = (wxWindow *) 0 ;
14630 wxBitmap const &arg2_defvalue = wxNullBitmap ;
14631 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
14632 wxBufferedPaintDC *result;
14633 PyObject * obj0 = 0 ;
14634 PyObject * obj1 = 0 ;
14635 char *kwnames[] = {
14636 (char *) "window",(char *) "buffer", NULL
14637 };
14638
14639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
14640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14641 if (obj1) {
14642 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14643 if (arg2 == NULL) {
14644 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14645 }
14646 }
14647 {
14648 PyThreadState* __tstate = wxPyBeginAllowThreads();
14649 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
14650
14651 wxPyEndAllowThreads(__tstate);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 }
14654 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14655 return resultobj;
14656 fail:
14657 return NULL;
14658 }
14659
14660
14661 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
14662 PyObject *obj;
14663 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14664 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
14665 Py_INCREF(obj);
14666 return Py_BuildValue((char *)"");
14667 }
14668 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14669 PyObject *resultobj;
14670 wxScreenDC *result;
14671 char *kwnames[] = {
14672 NULL
14673 };
14674
14675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
14676 {
14677 PyThreadState* __tstate = wxPyBeginAllowThreads();
14678 result = (wxScreenDC *)new wxScreenDC();
14679
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
14684 return resultobj;
14685 fail:
14686 return NULL;
14687 }
14688
14689
14690 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj;
14692 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14693 wxWindow *arg2 = (wxWindow *) 0 ;
14694 bool result;
14695 PyObject * obj0 = 0 ;
14696 PyObject * obj1 = 0 ;
14697 char *kwnames[] = {
14698 (char *) "self",(char *) "window", NULL
14699 };
14700
14701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
14702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14703 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14704 {
14705 PyThreadState* __tstate = wxPyBeginAllowThreads();
14706 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14707
14708 wxPyEndAllowThreads(__tstate);
14709 if (PyErr_Occurred()) SWIG_fail;
14710 }
14711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14712 return resultobj;
14713 fail:
14714 return NULL;
14715 }
14716
14717
14718 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14719 PyObject *resultobj;
14720 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14721 wxRect *arg2 = (wxRect *) NULL ;
14722 bool result;
14723 PyObject * obj0 = 0 ;
14724 PyObject * obj1 = 0 ;
14725 char *kwnames[] = {
14726 (char *) "self",(char *) "rect", NULL
14727 };
14728
14729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
14730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14731 if (obj1) {
14732 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14733 }
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14737
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14742 return resultobj;
14743 fail:
14744 return NULL;
14745 }
14746
14747
14748 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14749 PyObject *resultobj;
14750 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14751 bool result;
14752 PyObject * obj0 = 0 ;
14753 char *kwnames[] = {
14754 (char *) "self", NULL
14755 };
14756
14757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
14758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14759 {
14760 PyThreadState* __tstate = wxPyBeginAllowThreads();
14761 result = (bool)(arg1)->EndDrawingOnTop();
14762
14763 wxPyEndAllowThreads(__tstate);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 }
14766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14767 return resultobj;
14768 fail:
14769 return NULL;
14770 }
14771
14772
14773 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
14774 PyObject *obj;
14775 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14776 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
14777 Py_INCREF(obj);
14778 return Py_BuildValue((char *)"");
14779 }
14780 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14781 PyObject *resultobj;
14782 wxWindow *arg1 = (wxWindow *) 0 ;
14783 wxClientDC *result;
14784 PyObject * obj0 = 0 ;
14785 char *kwnames[] = {
14786 (char *) "win", NULL
14787 };
14788
14789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
14790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 result = (wxClientDC *)new wxClientDC(arg1);
14794
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
14799 return resultobj;
14800 fail:
14801 return NULL;
14802 }
14803
14804
14805 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
14806 PyObject *obj;
14807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14808 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
14809 Py_INCREF(obj);
14810 return Py_BuildValue((char *)"");
14811 }
14812 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14813 PyObject *resultobj;
14814 wxWindow *arg1 = (wxWindow *) 0 ;
14815 wxPaintDC *result;
14816 PyObject * obj0 = 0 ;
14817 char *kwnames[] = {
14818 (char *) "win", NULL
14819 };
14820
14821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
14822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14823 {
14824 PyThreadState* __tstate = wxPyBeginAllowThreads();
14825 result = (wxPaintDC *)new wxPaintDC(arg1);
14826
14827 wxPyEndAllowThreads(__tstate);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 }
14830 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
14831 return resultobj;
14832 fail:
14833 return NULL;
14834 }
14835
14836
14837 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
14838 PyObject *obj;
14839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14840 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
14841 Py_INCREF(obj);
14842 return Py_BuildValue((char *)"");
14843 }
14844 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14845 PyObject *resultobj;
14846 wxWindow *arg1 = (wxWindow *) 0 ;
14847 wxWindowDC *result;
14848 PyObject * obj0 = 0 ;
14849 char *kwnames[] = {
14850 (char *) "win", NULL
14851 };
14852
14853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
14854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = (wxWindowDC *)new wxWindowDC(arg1);
14858
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
14863 return resultobj;
14864 fail:
14865 return NULL;
14866 }
14867
14868
14869 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
14870 PyObject *obj;
14871 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14872 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
14873 Py_INCREF(obj);
14874 return Py_BuildValue((char *)"");
14875 }
14876 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14877 PyObject *resultobj;
14878 wxDC *arg1 = 0 ;
14879 bool arg2 ;
14880 wxMirrorDC *result;
14881 PyObject * obj0 = 0 ;
14882 PyObject * obj1 = 0 ;
14883 char *kwnames[] = {
14884 (char *) "dc",(char *) "mirror", NULL
14885 };
14886
14887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
14888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14889 if (arg1 == NULL) {
14890 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14891 }
14892 {
14893 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 {
14897 PyThreadState* __tstate = wxPyBeginAllowThreads();
14898 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
14899
14900 wxPyEndAllowThreads(__tstate);
14901 if (PyErr_Occurred()) SWIG_fail;
14902 }
14903 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
14904 return resultobj;
14905 fail:
14906 return NULL;
14907 }
14908
14909
14910 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
14911 PyObject *obj;
14912 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14913 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
14914 Py_INCREF(obj);
14915 return Py_BuildValue((char *)"");
14916 }
14917 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14918 PyObject *resultobj;
14919 wxPrintData *arg1 = 0 ;
14920 wxPostScriptDC *result;
14921 PyObject * obj0 = 0 ;
14922 char *kwnames[] = {
14923 (char *) "printData", NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
14927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14928 if (arg1 == NULL) {
14929 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14930 }
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
14934
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
14938 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
14939 return resultobj;
14940 fail:
14941 return NULL;
14942 }
14943
14944
14945 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14948 wxPrintData *result;
14949 PyObject * obj0 = 0 ;
14950 char *kwnames[] = {
14951 (char *) "self", NULL
14952 };
14953
14954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
14955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14956 {
14957 PyThreadState* __tstate = wxPyBeginAllowThreads();
14958 {
14959 wxPrintData &_result_ref = (arg1)->GetPrintData();
14960 result = (wxPrintData *) &_result_ref;
14961 }
14962
14963 wxPyEndAllowThreads(__tstate);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 }
14966 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
14967 return resultobj;
14968 fail:
14969 return NULL;
14970 }
14971
14972
14973 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj;
14975 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14976 wxPrintData *arg2 = 0 ;
14977 PyObject * obj0 = 0 ;
14978 PyObject * obj1 = 0 ;
14979 char *kwnames[] = {
14980 (char *) "self",(char *) "data", NULL
14981 };
14982
14983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
14984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14985 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14986 if (arg2 == NULL) {
14987 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14988 }
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 (arg1)->SetPrintData((wxPrintData const &)*arg2);
14992
14993 wxPyEndAllowThreads(__tstate);
14994 if (PyErr_Occurred()) SWIG_fail;
14995 }
14996 Py_INCREF(Py_None); resultobj = Py_None;
14997 return resultobj;
14998 fail:
14999 return NULL;
15000 }
15001
15002
15003 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15004 PyObject *resultobj;
15005 int arg1 ;
15006 PyObject * obj0 = 0 ;
15007 char *kwnames[] = {
15008 (char *) "ppi", NULL
15009 };
15010
15011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15012 {
15013 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15014 if (PyErr_Occurred()) SWIG_fail;
15015 }
15016 {
15017 PyThreadState* __tstate = wxPyBeginAllowThreads();
15018 wxPostScriptDC::SetResolution(arg1);
15019
15020 wxPyEndAllowThreads(__tstate);
15021 if (PyErr_Occurred()) SWIG_fail;
15022 }
15023 Py_INCREF(Py_None); resultobj = Py_None;
15024 return resultobj;
15025 fail:
15026 return NULL;
15027 }
15028
15029
15030 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15031 PyObject *resultobj;
15032 int result;
15033 char *kwnames[] = {
15034 NULL
15035 };
15036
15037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 result = (int)wxPostScriptDC::GetResolution();
15041
15042 wxPyEndAllowThreads(__tstate);
15043 if (PyErr_Occurred()) SWIG_fail;
15044 }
15045 resultobj = SWIG_PyObj_FromInt((int)result);
15046 return resultobj;
15047 fail:
15048 return NULL;
15049 }
15050
15051
15052 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15053 PyObject *obj;
15054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15055 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15056 Py_INCREF(obj);
15057 return Py_BuildValue((char *)"");
15058 }
15059 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15060 PyObject *resultobj;
15061 wxString const &arg1_defvalue = wxPyEmptyString ;
15062 wxString *arg1 = (wxString *) &arg1_defvalue ;
15063 wxMetaFile *result;
15064 bool temp1 = False ;
15065 PyObject * obj0 = 0 ;
15066 char *kwnames[] = {
15067 (char *) "filename", NULL
15068 };
15069
15070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15071 if (obj0) {
15072 {
15073 arg1 = wxString_in_helper(obj0);
15074 if (arg1 == NULL) SWIG_fail;
15075 temp1 = True;
15076 }
15077 }
15078 {
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15081
15082 wxPyEndAllowThreads(__tstate);
15083 if (PyErr_Occurred()) SWIG_fail;
15084 }
15085 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15086 {
15087 if (temp1)
15088 delete arg1;
15089 }
15090 return resultobj;
15091 fail:
15092 {
15093 if (temp1)
15094 delete arg1;
15095 }
15096 return NULL;
15097 }
15098
15099
15100 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15101 PyObject *obj;
15102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15103 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15104 Py_INCREF(obj);
15105 return Py_BuildValue((char *)"");
15106 }
15107 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15108 PyObject *resultobj;
15109 wxString const &arg1_defvalue = wxPyEmptyString ;
15110 wxString *arg1 = (wxString *) &arg1_defvalue ;
15111 int arg2 = (int) 0 ;
15112 int arg3 = (int) 0 ;
15113 wxString const &arg4_defvalue = wxPyEmptyString ;
15114 wxString *arg4 = (wxString *) &arg4_defvalue ;
15115 wxMetaFileDC *result;
15116 bool temp1 = False ;
15117 bool temp4 = False ;
15118 PyObject * obj0 = 0 ;
15119 PyObject * obj1 = 0 ;
15120 PyObject * obj2 = 0 ;
15121 PyObject * obj3 = 0 ;
15122 char *kwnames[] = {
15123 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15124 };
15125
15126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15127 if (obj0) {
15128 {
15129 arg1 = wxString_in_helper(obj0);
15130 if (arg1 == NULL) SWIG_fail;
15131 temp1 = True;
15132 }
15133 }
15134 if (obj1) {
15135 {
15136 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 }
15140 if (obj2) {
15141 {
15142 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15143 if (PyErr_Occurred()) SWIG_fail;
15144 }
15145 }
15146 if (obj3) {
15147 {
15148 arg4 = wxString_in_helper(obj3);
15149 if (arg4 == NULL) SWIG_fail;
15150 temp4 = True;
15151 }
15152 }
15153 {
15154 PyThreadState* __tstate = wxPyBeginAllowThreads();
15155 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15156
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
15161 {
15162 if (temp1)
15163 delete arg1;
15164 }
15165 {
15166 if (temp4)
15167 delete arg4;
15168 }
15169 return resultobj;
15170 fail:
15171 {
15172 if (temp1)
15173 delete arg1;
15174 }
15175 {
15176 if (temp4)
15177 delete arg4;
15178 }
15179 return NULL;
15180 }
15181
15182
15183 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15184 PyObject *obj;
15185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15186 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15187 Py_INCREF(obj);
15188 return Py_BuildValue((char *)"");
15189 }
15190 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15191 PyObject *resultobj;
15192 wxPrintData *arg1 = 0 ;
15193 wxPrinterDC *result;
15194 PyObject * obj0 = 0 ;
15195 char *kwnames[] = {
15196 (char *) "printData", NULL
15197 };
15198
15199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15201 if (arg1 == NULL) {
15202 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15203 }
15204 {
15205 PyThreadState* __tstate = wxPyBeginAllowThreads();
15206 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15207
15208 wxPyEndAllowThreads(__tstate);
15209 if (PyErr_Occurred()) SWIG_fail;
15210 }
15211 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
15212 return resultobj;
15213 fail:
15214 return NULL;
15215 }
15216
15217
15218 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15219 PyObject *obj;
15220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15221 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15222 Py_INCREF(obj);
15223 return Py_BuildValue((char *)"");
15224 }
15225 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj;
15227 int arg1 ;
15228 int arg2 ;
15229 int arg3 = (int) True ;
15230 int arg4 = (int) 1 ;
15231 wxImageList *result;
15232 PyObject * obj0 = 0 ;
15233 PyObject * obj1 = 0 ;
15234 PyObject * obj2 = 0 ;
15235 PyObject * obj3 = 0 ;
15236 char *kwnames[] = {
15237 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15238 };
15239
15240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15241 {
15242 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 {
15246 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15247 if (PyErr_Occurred()) SWIG_fail;
15248 }
15249 if (obj2) {
15250 {
15251 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15252 if (PyErr_Occurred()) SWIG_fail;
15253 }
15254 }
15255 if (obj3) {
15256 {
15257 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15258 if (PyErr_Occurred()) SWIG_fail;
15259 }
15260 }
15261 {
15262 PyThreadState* __tstate = wxPyBeginAllowThreads();
15263 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15264
15265 wxPyEndAllowThreads(__tstate);
15266 if (PyErr_Occurred()) SWIG_fail;
15267 }
15268 {
15269 resultobj = wxPyMake_wxObject(result);
15270 }
15271 return resultobj;
15272 fail:
15273 return NULL;
15274 }
15275
15276
15277 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15278 PyObject *resultobj;
15279 wxImageList *arg1 = (wxImageList *) 0 ;
15280 PyObject * obj0 = 0 ;
15281 char *kwnames[] = {
15282 (char *) "self", NULL
15283 };
15284
15285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15287 {
15288 PyThreadState* __tstate = wxPyBeginAllowThreads();
15289 delete arg1;
15290
15291 wxPyEndAllowThreads(__tstate);
15292 if (PyErr_Occurred()) SWIG_fail;
15293 }
15294 Py_INCREF(Py_None); resultobj = Py_None;
15295 return resultobj;
15296 fail:
15297 return NULL;
15298 }
15299
15300
15301 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15302 PyObject *resultobj;
15303 wxImageList *arg1 = (wxImageList *) 0 ;
15304 wxBitmap *arg2 = 0 ;
15305 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15306 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15307 int result;
15308 PyObject * obj0 = 0 ;
15309 PyObject * obj1 = 0 ;
15310 PyObject * obj2 = 0 ;
15311 char *kwnames[] = {
15312 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15313 };
15314
15315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15317 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15318 if (arg2 == NULL) {
15319 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15320 }
15321 if (obj2) {
15322 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15323 if (arg3 == NULL) {
15324 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15325 }
15326 }
15327 {
15328 PyThreadState* __tstate = wxPyBeginAllowThreads();
15329 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15330
15331 wxPyEndAllowThreads(__tstate);
15332 if (PyErr_Occurred()) SWIG_fail;
15333 }
15334 resultobj = SWIG_PyObj_FromInt((int)result);
15335 return resultobj;
15336 fail:
15337 return NULL;
15338 }
15339
15340
15341 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj;
15343 wxImageList *arg1 = (wxImageList *) 0 ;
15344 wxBitmap *arg2 = 0 ;
15345 wxColour *arg3 = 0 ;
15346 int result;
15347 wxColour temp3 ;
15348 PyObject * obj0 = 0 ;
15349 PyObject * obj1 = 0 ;
15350 PyObject * obj2 = 0 ;
15351 char *kwnames[] = {
15352 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15353 };
15354
15355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15357 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15358 if (arg2 == NULL) {
15359 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15360 }
15361 {
15362 arg3 = &temp3;
15363 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15364 }
15365 {
15366 PyThreadState* __tstate = wxPyBeginAllowThreads();
15367 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15368
15369 wxPyEndAllowThreads(__tstate);
15370 if (PyErr_Occurred()) SWIG_fail;
15371 }
15372 resultobj = SWIG_PyObj_FromInt((int)result);
15373 return resultobj;
15374 fail:
15375 return NULL;
15376 }
15377
15378
15379 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15380 PyObject *resultobj;
15381 wxImageList *arg1 = (wxImageList *) 0 ;
15382 wxIcon *arg2 = 0 ;
15383 int result;
15384 PyObject * obj0 = 0 ;
15385 PyObject * obj1 = 0 ;
15386 char *kwnames[] = {
15387 (char *) "self",(char *) "icon", NULL
15388 };
15389
15390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15392 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15393 if (arg2 == NULL) {
15394 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15395 }
15396 {
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 result = (int)(arg1)->Add((wxIcon const &)*arg2);
15399
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 resultobj = SWIG_PyObj_FromInt((int)result);
15404 return resultobj;
15405 fail:
15406 return NULL;
15407 }
15408
15409
15410 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
15411 PyObject *resultobj;
15412 wxImageList *arg1 = (wxImageList *) 0 ;
15413 int arg2 ;
15414 wxBitmap *arg3 = 0 ;
15415 bool result;
15416 PyObject * obj0 = 0 ;
15417 PyObject * obj1 = 0 ;
15418 PyObject * obj2 = 0 ;
15419 char *kwnames[] = {
15420 (char *) "self",(char *) "index",(char *) "bitmap", NULL
15421 };
15422
15423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15425 {
15426 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15429 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15430 if (arg3 == NULL) {
15431 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15432 }
15433 {
15434 PyThreadState* __tstate = wxPyBeginAllowThreads();
15435 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
15436
15437 wxPyEndAllowThreads(__tstate);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 }
15440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15441 return resultobj;
15442 fail:
15443 return NULL;
15444 }
15445
15446
15447 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
15448 PyObject *resultobj;
15449 wxImageList *arg1 = (wxImageList *) 0 ;
15450 int arg2 ;
15451 wxDC *arg3 = 0 ;
15452 int arg4 ;
15453 int arg5 ;
15454 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
15455 bool arg7 = (bool) (bool)False ;
15456 bool result;
15457 PyObject * obj0 = 0 ;
15458 PyObject * obj1 = 0 ;
15459 PyObject * obj2 = 0 ;
15460 PyObject * obj3 = 0 ;
15461 PyObject * obj4 = 0 ;
15462 PyObject * obj5 = 0 ;
15463 PyObject * obj6 = 0 ;
15464 char *kwnames[] = {
15465 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
15466 };
15467
15468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15470 {
15471 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 }
15474 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15475 if (arg3 == NULL) {
15476 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15477 }
15478 {
15479 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 {
15483 arg5 = (int) SWIG_PyObj_AsInt(obj4);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 if (obj5) {
15487 {
15488 arg6 = (int) SWIG_PyObj_AsInt(obj5);
15489 if (PyErr_Occurred()) SWIG_fail;
15490 }
15491 }
15492 if (obj6) {
15493 {
15494 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 }
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15506 return resultobj;
15507 fail:
15508 return NULL;
15509 }
15510
15511
15512 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15513 PyObject *resultobj;
15514 wxImageList *arg1 = (wxImageList *) 0 ;
15515 int result;
15516 PyObject * obj0 = 0 ;
15517 char *kwnames[] = {
15518 (char *) "self", NULL
15519 };
15520
15521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15523 {
15524 PyThreadState* __tstate = wxPyBeginAllowThreads();
15525 result = (int)(arg1)->GetImageCount();
15526
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 resultobj = SWIG_PyObj_FromInt((int)result);
15531 return resultobj;
15532 fail:
15533 return NULL;
15534 }
15535
15536
15537 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj;
15539 wxImageList *arg1 = (wxImageList *) 0 ;
15540 int arg2 ;
15541 bool result;
15542 PyObject * obj0 = 0 ;
15543 PyObject * obj1 = 0 ;
15544 char *kwnames[] = {
15545 (char *) "self",(char *) "index", NULL
15546 };
15547
15548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15550 {
15551 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
15556 result = (bool)(arg1)->Remove(arg2);
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj;
15570 wxImageList *arg1 = (wxImageList *) 0 ;
15571 bool result;
15572 PyObject * obj0 = 0 ;
15573 char *kwnames[] = {
15574 (char *) "self", NULL
15575 };
15576
15577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15579 {
15580 PyThreadState* __tstate = wxPyBeginAllowThreads();
15581 result = (bool)(arg1)->RemoveAll();
15582
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15587 return resultobj;
15588 fail:
15589 return NULL;
15590 }
15591
15592
15593 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15594 PyObject *resultobj;
15595 wxImageList *arg1 = (wxImageList *) 0 ;
15596 int arg2 ;
15597 int *arg3 = 0 ;
15598 int *arg4 = 0 ;
15599 int temp3 ;
15600 int temp4 ;
15601 PyObject * obj0 = 0 ;
15602 PyObject * obj1 = 0 ;
15603 char *kwnames[] = {
15604 (char *) "self",(char *) "index", NULL
15605 };
15606
15607 arg3 = &temp3;
15608 arg4 = &temp4;
15609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15611 {
15612 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 {
15616 PyThreadState* __tstate = wxPyBeginAllowThreads();
15617 (arg1)->GetSize(arg2,*arg3,*arg4);
15618
15619 wxPyEndAllowThreads(__tstate);
15620 if (PyErr_Occurred()) SWIG_fail;
15621 }
15622 Py_INCREF(Py_None); resultobj = Py_None;
15623 {
15624 PyObject *o = PyInt_FromLong((long) (*arg3));
15625 resultobj = t_output_helper(resultobj,o);
15626 }
15627 {
15628 PyObject *o = PyInt_FromLong((long) (*arg4));
15629 resultobj = t_output_helper(resultobj,o);
15630 }
15631 return resultobj;
15632 fail:
15633 return NULL;
15634 }
15635
15636
15637 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
15638 PyObject *obj;
15639 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15640 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
15641 Py_INCREF(obj);
15642 return Py_BuildValue((char *)"");
15643 }
15644 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
15645 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15646 return 1;
15647 }
15648
15649
15650 static PyObject *_wrap_NORMAL_FONT_get() {
15651 PyObject *pyobj;
15652
15653 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15654 return pyobj;
15655 }
15656
15657
15658 static int _wrap_SMALL_FONT_set(PyObject *_val) {
15659 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15660 return 1;
15661 }
15662
15663
15664 static PyObject *_wrap_SMALL_FONT_get() {
15665 PyObject *pyobj;
15666
15667 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15668 return pyobj;
15669 }
15670
15671
15672 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
15673 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15674 return 1;
15675 }
15676
15677
15678 static PyObject *_wrap_ITALIC_FONT_get() {
15679 PyObject *pyobj;
15680
15681 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15682 return pyobj;
15683 }
15684
15685
15686 static int _wrap_SWISS_FONT_set(PyObject *_val) {
15687 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15688 return 1;
15689 }
15690
15691
15692 static PyObject *_wrap_SWISS_FONT_get() {
15693 PyObject *pyobj;
15694
15695 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15696 return pyobj;
15697 }
15698
15699
15700 static int _wrap_RED_PEN_set(PyObject *_val) {
15701 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15702 return 1;
15703 }
15704
15705
15706 static PyObject *_wrap_RED_PEN_get() {
15707 PyObject *pyobj;
15708
15709 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15710 return pyobj;
15711 }
15712
15713
15714 static int _wrap_CYAN_PEN_set(PyObject *_val) {
15715 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15716 return 1;
15717 }
15718
15719
15720 static PyObject *_wrap_CYAN_PEN_get() {
15721 PyObject *pyobj;
15722
15723 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15724 return pyobj;
15725 }
15726
15727
15728 static int _wrap_GREEN_PEN_set(PyObject *_val) {
15729 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
15730 return 1;
15731 }
15732
15733
15734 static PyObject *_wrap_GREEN_PEN_get() {
15735 PyObject *pyobj;
15736
15737 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
15738 return pyobj;
15739 }
15740
15741
15742 static int _wrap_BLACK_PEN_set(PyObject *_val) {
15743 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
15744 return 1;
15745 }
15746
15747
15748 static PyObject *_wrap_BLACK_PEN_get() {
15749 PyObject *pyobj;
15750
15751 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
15752 return pyobj;
15753 }
15754
15755
15756 static int _wrap_WHITE_PEN_set(PyObject *_val) {
15757 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
15758 return 1;
15759 }
15760
15761
15762 static PyObject *_wrap_WHITE_PEN_get() {
15763 PyObject *pyobj;
15764
15765 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
15766 return pyobj;
15767 }
15768
15769
15770 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
15771 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
15772 return 1;
15773 }
15774
15775
15776 static PyObject *_wrap_TRANSPARENT_PEN_get() {
15777 PyObject *pyobj;
15778
15779 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
15780 return pyobj;
15781 }
15782
15783
15784 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
15785 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
15786 return 1;
15787 }
15788
15789
15790 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
15791 PyObject *pyobj;
15792
15793 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
15794 return pyobj;
15795 }
15796
15797
15798 static int _wrap_GREY_PEN_set(PyObject *_val) {
15799 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
15800 return 1;
15801 }
15802
15803
15804 static PyObject *_wrap_GREY_PEN_get() {
15805 PyObject *pyobj;
15806
15807 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
15808 return pyobj;
15809 }
15810
15811
15812 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
15813 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
15814 return 1;
15815 }
15816
15817
15818 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
15819 PyObject *pyobj;
15820
15821 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15822 return pyobj;
15823 }
15824
15825
15826 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
15827 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
15828 return 1;
15829 }
15830
15831
15832 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
15833 PyObject *pyobj;
15834
15835 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15836 return pyobj;
15837 }
15838
15839
15840 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
15841 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
15842 return 1;
15843 }
15844
15845
15846 static PyObject *_wrap_BLUE_BRUSH_get() {
15847 PyObject *pyobj;
15848
15849 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15850 return pyobj;
15851 }
15852
15853
15854 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
15855 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
15856 return 1;
15857 }
15858
15859
15860 static PyObject *_wrap_GREEN_BRUSH_get() {
15861 PyObject *pyobj;
15862
15863 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15864 return pyobj;
15865 }
15866
15867
15868 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
15869 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
15870 return 1;
15871 }
15872
15873
15874 static PyObject *_wrap_WHITE_BRUSH_get() {
15875 PyObject *pyobj;
15876
15877 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15878 return pyobj;
15879 }
15880
15881
15882 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
15883 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
15884 return 1;
15885 }
15886
15887
15888 static PyObject *_wrap_BLACK_BRUSH_get() {
15889 PyObject *pyobj;
15890
15891 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
15892 return pyobj;
15893 }
15894
15895
15896 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
15897 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15898 return 1;
15899 }
15900
15901
15902 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15903 PyObject *pyobj;
15904
15905 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15906 return pyobj;
15907 }
15908
15909
15910 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
15911 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15912 return 1;
15913 }
15914
15915
15916 static PyObject *_wrap_CYAN_BRUSH_get() {
15917 PyObject *pyobj;
15918
15919 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15920 return pyobj;
15921 }
15922
15923
15924 static int _wrap_RED_BRUSH_set(PyObject *_val) {
15925 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15926 return 1;
15927 }
15928
15929
15930 static PyObject *_wrap_RED_BRUSH_get() {
15931 PyObject *pyobj;
15932
15933 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15934 return pyobj;
15935 }
15936
15937
15938 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
15939 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15940 return 1;
15941 }
15942
15943
15944 static PyObject *_wrap_GREY_BRUSH_get() {
15945 PyObject *pyobj;
15946
15947 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15948 return pyobj;
15949 }
15950
15951
15952 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15953 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15954 return 1;
15955 }
15956
15957
15958 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15959 PyObject *pyobj;
15960
15961 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15962 return pyobj;
15963 }
15964
15965
15966 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15967 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15968 return 1;
15969 }
15970
15971
15972 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15973 PyObject *pyobj;
15974
15975 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15976 return pyobj;
15977 }
15978
15979
15980 static int _wrap_BLACK_set(PyObject *_val) {
15981 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15982 return 1;
15983 }
15984
15985
15986 static PyObject *_wrap_BLACK_get() {
15987 PyObject *pyobj;
15988
15989 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15990 return pyobj;
15991 }
15992
15993
15994 static int _wrap_WHITE_set(PyObject *_val) {
15995 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15996 return 1;
15997 }
15998
15999
16000 static PyObject *_wrap_WHITE_get() {
16001 PyObject *pyobj;
16002
16003 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
16004 return pyobj;
16005 }
16006
16007
16008 static int _wrap_RED_set(PyObject *_val) {
16009 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16010 return 1;
16011 }
16012
16013
16014 static PyObject *_wrap_RED_get() {
16015 PyObject *pyobj;
16016
16017 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
16018 return pyobj;
16019 }
16020
16021
16022 static int _wrap_BLUE_set(PyObject *_val) {
16023 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16024 return 1;
16025 }
16026
16027
16028 static PyObject *_wrap_BLUE_get() {
16029 PyObject *pyobj;
16030
16031 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
16032 return pyobj;
16033 }
16034
16035
16036 static int _wrap_GREEN_set(PyObject *_val) {
16037 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16038 return 1;
16039 }
16040
16041
16042 static PyObject *_wrap_GREEN_get() {
16043 PyObject *pyobj;
16044
16045 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
16046 return pyobj;
16047 }
16048
16049
16050 static int _wrap_CYAN_set(PyObject *_val) {
16051 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16052 return 1;
16053 }
16054
16055
16056 static PyObject *_wrap_CYAN_get() {
16057 PyObject *pyobj;
16058
16059 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
16060 return pyobj;
16061 }
16062
16063
16064 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16065 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16066 return 1;
16067 }
16068
16069
16070 static PyObject *_wrap_LIGHT_GREY_get() {
16071 PyObject *pyobj;
16072
16073 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
16074 return pyobj;
16075 }
16076
16077
16078 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16079 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16080 return 1;
16081 }
16082
16083
16084 static PyObject *_wrap_STANDARD_CURSOR_get() {
16085 PyObject *pyobj;
16086
16087 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
16088 return pyobj;
16089 }
16090
16091
16092 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16093 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16094 return 1;
16095 }
16096
16097
16098 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16099 PyObject *pyobj;
16100
16101 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16102 return pyobj;
16103 }
16104
16105
16106 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16107 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16108 return 1;
16109 }
16110
16111
16112 static PyObject *_wrap_CROSS_CURSOR_get() {
16113 PyObject *pyobj;
16114
16115 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16116 return pyobj;
16117 }
16118
16119
16120 static int _wrap_NullBitmap_set(PyObject *_val) {
16121 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16122 return 1;
16123 }
16124
16125
16126 static PyObject *_wrap_NullBitmap_get() {
16127 PyObject *pyobj;
16128
16129 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16130 return pyobj;
16131 }
16132
16133
16134 static int _wrap_NullIcon_set(PyObject *_val) {
16135 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16136 return 1;
16137 }
16138
16139
16140 static PyObject *_wrap_NullIcon_get() {
16141 PyObject *pyobj;
16142
16143 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16144 return pyobj;
16145 }
16146
16147
16148 static int _wrap_NullCursor_set(PyObject *_val) {
16149 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16150 return 1;
16151 }
16152
16153
16154 static PyObject *_wrap_NullCursor_get() {
16155 PyObject *pyobj;
16156
16157 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16158 return pyobj;
16159 }
16160
16161
16162 static int _wrap_NullPen_set(PyObject *_val) {
16163 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16164 return 1;
16165 }
16166
16167
16168 static PyObject *_wrap_NullPen_get() {
16169 PyObject *pyobj;
16170
16171 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16172 return pyobj;
16173 }
16174
16175
16176 static int _wrap_NullBrush_set(PyObject *_val) {
16177 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16178 return 1;
16179 }
16180
16181
16182 static PyObject *_wrap_NullBrush_get() {
16183 PyObject *pyobj;
16184
16185 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16186 return pyobj;
16187 }
16188
16189
16190 static int _wrap_NullPalette_set(PyObject *_val) {
16191 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16192 return 1;
16193 }
16194
16195
16196 static PyObject *_wrap_NullPalette_get() {
16197 PyObject *pyobj;
16198
16199 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16200 return pyobj;
16201 }
16202
16203
16204 static int _wrap_NullFont_set(PyObject *_val) {
16205 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16206 return 1;
16207 }
16208
16209
16210 static PyObject *_wrap_NullFont_get() {
16211 PyObject *pyobj;
16212
16213 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16214 return pyobj;
16215 }
16216
16217
16218 static int _wrap_NullColour_set(PyObject *_val) {
16219 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16220 return 1;
16221 }
16222
16223
16224 static PyObject *_wrap_NullColour_get() {
16225 PyObject *pyobj;
16226
16227 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
16228 return pyobj;
16229 }
16230
16231
16232 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16233 PyObject *resultobj;
16234 wxPenList *arg1 = (wxPenList *) 0 ;
16235 wxPen *arg2 = (wxPen *) 0 ;
16236 PyObject * obj0 = 0 ;
16237 PyObject * obj1 = 0 ;
16238 char *kwnames[] = {
16239 (char *) "self",(char *) "pen", NULL
16240 };
16241
16242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16244 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 (arg1)->AddPen(arg2);
16248
16249 wxPyEndAllowThreads(__tstate);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 }
16252 Py_INCREF(Py_None); resultobj = Py_None;
16253 return resultobj;
16254 fail:
16255 return NULL;
16256 }
16257
16258
16259 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16260 PyObject *resultobj;
16261 wxPenList *arg1 = (wxPenList *) 0 ;
16262 wxColour *arg2 = 0 ;
16263 int arg3 ;
16264 int arg4 ;
16265 wxPen *result;
16266 wxColour temp2 ;
16267 PyObject * obj0 = 0 ;
16268 PyObject * obj1 = 0 ;
16269 PyObject * obj2 = 0 ;
16270 PyObject * obj3 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16277 {
16278 arg2 = &temp2;
16279 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16280 }
16281 {
16282 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 {
16286 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 {
16290 PyThreadState* __tstate = wxPyBeginAllowThreads();
16291 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16292
16293 wxPyEndAllowThreads(__tstate);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
16297 return resultobj;
16298 fail:
16299 return NULL;
16300 }
16301
16302
16303 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16304 PyObject *resultobj;
16305 wxPenList *arg1 = (wxPenList *) 0 ;
16306 wxPen *arg2 = (wxPen *) 0 ;
16307 PyObject * obj0 = 0 ;
16308 PyObject * obj1 = 0 ;
16309 char *kwnames[] = {
16310 (char *) "self",(char *) "pen", NULL
16311 };
16312
16313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16315 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 (arg1)->RemovePen(arg2);
16319
16320 wxPyEndAllowThreads(__tstate);
16321 if (PyErr_Occurred()) SWIG_fail;
16322 }
16323 Py_INCREF(Py_None); resultobj = Py_None;
16324 return resultobj;
16325 fail:
16326 return NULL;
16327 }
16328
16329
16330 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16331 PyObject *resultobj;
16332 wxPenList *arg1 = (wxPenList *) 0 ;
16333 int result;
16334 PyObject * obj0 = 0 ;
16335 char *kwnames[] = {
16336 (char *) "self", NULL
16337 };
16338
16339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16341 {
16342 PyThreadState* __tstate = wxPyBeginAllowThreads();
16343 result = (int)(arg1)->GetCount();
16344
16345 wxPyEndAllowThreads(__tstate);
16346 if (PyErr_Occurred()) SWIG_fail;
16347 }
16348 resultobj = SWIG_PyObj_FromInt((int)result);
16349 return resultobj;
16350 fail:
16351 return NULL;
16352 }
16353
16354
16355 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16356 PyObject *obj;
16357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16358 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16359 Py_INCREF(obj);
16360 return Py_BuildValue((char *)"");
16361 }
16362 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj;
16364 wxBrushList *arg1 = (wxBrushList *) 0 ;
16365 wxBrush *arg2 = (wxBrush *) 0 ;
16366 PyObject * obj0 = 0 ;
16367 PyObject * obj1 = 0 ;
16368 char *kwnames[] = {
16369 (char *) "self",(char *) "brush", NULL
16370 };
16371
16372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16374 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16375 {
16376 PyThreadState* __tstate = wxPyBeginAllowThreads();
16377 (arg1)->AddBrush(arg2);
16378
16379 wxPyEndAllowThreads(__tstate);
16380 if (PyErr_Occurred()) SWIG_fail;
16381 }
16382 Py_INCREF(Py_None); resultobj = Py_None;
16383 return resultobj;
16384 fail:
16385 return NULL;
16386 }
16387
16388
16389 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16390 PyObject *resultobj;
16391 wxBrushList *arg1 = (wxBrushList *) 0 ;
16392 wxColour *arg2 = 0 ;
16393 int arg3 ;
16394 wxBrush *result;
16395 wxColour temp2 ;
16396 PyObject * obj0 = 0 ;
16397 PyObject * obj1 = 0 ;
16398 PyObject * obj2 = 0 ;
16399 char *kwnames[] = {
16400 (char *) "self",(char *) "colour",(char *) "style", NULL
16401 };
16402
16403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
16404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16405 {
16406 arg2 = &temp2;
16407 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16408 }
16409 {
16410 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16411 if (PyErr_Occurred()) SWIG_fail;
16412 }
16413 {
16414 PyThreadState* __tstate = wxPyBeginAllowThreads();
16415 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
16416
16417 wxPyEndAllowThreads(__tstate);
16418 if (PyErr_Occurred()) SWIG_fail;
16419 }
16420 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
16421 return resultobj;
16422 fail:
16423 return NULL;
16424 }
16425
16426
16427 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16428 PyObject *resultobj;
16429 wxBrushList *arg1 = (wxBrushList *) 0 ;
16430 wxBrush *arg2 = (wxBrush *) 0 ;
16431 PyObject * obj0 = 0 ;
16432 PyObject * obj1 = 0 ;
16433 char *kwnames[] = {
16434 (char *) "self",(char *) "brush", NULL
16435 };
16436
16437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
16438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16439 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16440 {
16441 PyThreadState* __tstate = wxPyBeginAllowThreads();
16442 (arg1)->RemoveBrush(arg2);
16443
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 Py_INCREF(Py_None); resultobj = Py_None;
16448 return resultobj;
16449 fail:
16450 return NULL;
16451 }
16452
16453
16454 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj;
16456 wxBrushList *arg1 = (wxBrushList *) 0 ;
16457 int result;
16458 PyObject * obj0 = 0 ;
16459 char *kwnames[] = {
16460 (char *) "self", NULL
16461 };
16462
16463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
16464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16465 {
16466 PyThreadState* __tstate = wxPyBeginAllowThreads();
16467 result = (int)(arg1)->GetCount();
16468
16469 wxPyEndAllowThreads(__tstate);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 }
16472 resultobj = SWIG_PyObj_FromInt((int)result);
16473 return resultobj;
16474 fail:
16475 return NULL;
16476 }
16477
16478
16479 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
16480 PyObject *obj;
16481 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16482 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
16483 Py_INCREF(obj);
16484 return Py_BuildValue((char *)"");
16485 }
16486 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16487 PyObject *resultobj;
16488 wxColourDatabase *result;
16489 char *kwnames[] = {
16490 NULL
16491 };
16492
16493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
16494 {
16495 PyThreadState* __tstate = wxPyBeginAllowThreads();
16496 result = (wxColourDatabase *)new wxColourDatabase();
16497
16498 wxPyEndAllowThreads(__tstate);
16499 if (PyErr_Occurred()) SWIG_fail;
16500 }
16501 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
16502 return resultobj;
16503 fail:
16504 return NULL;
16505 }
16506
16507
16508 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16509 PyObject *resultobj;
16510 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16511 PyObject * obj0 = 0 ;
16512 char *kwnames[] = {
16513 (char *) "self", NULL
16514 };
16515
16516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
16517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16518 {
16519 PyThreadState* __tstate = wxPyBeginAllowThreads();
16520 delete arg1;
16521
16522 wxPyEndAllowThreads(__tstate);
16523 if (PyErr_Occurred()) SWIG_fail;
16524 }
16525 Py_INCREF(Py_None); resultobj = Py_None;
16526 return resultobj;
16527 fail:
16528 return NULL;
16529 }
16530
16531
16532 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
16533 PyObject *resultobj;
16534 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16535 wxString *arg2 = 0 ;
16536 wxColour result;
16537 bool temp2 = False ;
16538 PyObject * obj0 = 0 ;
16539 PyObject * obj1 = 0 ;
16540 char *kwnames[] = {
16541 (char *) "self",(char *) "name", NULL
16542 };
16543
16544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
16545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16546 {
16547 arg2 = wxString_in_helper(obj1);
16548 if (arg2 == NULL) SWIG_fail;
16549 temp2 = True;
16550 }
16551 {
16552 PyThreadState* __tstate = wxPyBeginAllowThreads();
16553 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
16554
16555 wxPyEndAllowThreads(__tstate);
16556 if (PyErr_Occurred()) SWIG_fail;
16557 }
16558 {
16559 wxColour * resultptr;
16560 resultptr = new wxColour((wxColour &) result);
16561 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16562 }
16563 {
16564 if (temp2)
16565 delete arg2;
16566 }
16567 return resultobj;
16568 fail:
16569 {
16570 if (temp2)
16571 delete arg2;
16572 }
16573 return NULL;
16574 }
16575
16576
16577 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
16578 PyObject *resultobj;
16579 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16580 wxColour *arg2 = 0 ;
16581 wxString result;
16582 wxColour temp2 ;
16583 PyObject * obj0 = 0 ;
16584 PyObject * obj1 = 0 ;
16585 char *kwnames[] = {
16586 (char *) "self",(char *) "colour", NULL
16587 };
16588
16589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
16590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16591 {
16592 arg2 = &temp2;
16593 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16594 }
16595 {
16596 PyThreadState* __tstate = wxPyBeginAllowThreads();
16597 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
16598
16599 wxPyEndAllowThreads(__tstate);
16600 if (PyErr_Occurred()) SWIG_fail;
16601 }
16602 {
16603 #if wxUSE_UNICODE
16604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16605 #else
16606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16607 #endif
16608 }
16609 return resultobj;
16610 fail:
16611 return NULL;
16612 }
16613
16614
16615 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16616 PyObject *resultobj;
16617 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16618 wxString *arg2 = 0 ;
16619 wxColour *arg3 = 0 ;
16620 bool temp2 = False ;
16621 wxColour temp3 ;
16622 PyObject * obj0 = 0 ;
16623 PyObject * obj1 = 0 ;
16624 PyObject * obj2 = 0 ;
16625 char *kwnames[] = {
16626 (char *) "self",(char *) "name",(char *) "colour", NULL
16627 };
16628
16629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
16630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16631 {
16632 arg2 = wxString_in_helper(obj1);
16633 if (arg2 == NULL) SWIG_fail;
16634 temp2 = True;
16635 }
16636 {
16637 arg3 = &temp3;
16638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16639 }
16640 {
16641 PyThreadState* __tstate = wxPyBeginAllowThreads();
16642 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
16643
16644 wxPyEndAllowThreads(__tstate);
16645 if (PyErr_Occurred()) SWIG_fail;
16646 }
16647 Py_INCREF(Py_None); resultobj = Py_None;
16648 {
16649 if (temp2)
16650 delete arg2;
16651 }
16652 return resultobj;
16653 fail:
16654 {
16655 if (temp2)
16656 delete arg2;
16657 }
16658 return NULL;
16659 }
16660
16661
16662 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
16663 PyObject *resultobj;
16664 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16665 wxString *arg2 = 0 ;
16666 int arg3 ;
16667 int arg4 ;
16668 int arg5 ;
16669 bool temp2 = False ;
16670 PyObject * obj0 = 0 ;
16671 PyObject * obj1 = 0 ;
16672 PyObject * obj2 = 0 ;
16673 PyObject * obj3 = 0 ;
16674 PyObject * obj4 = 0 ;
16675 char *kwnames[] = {
16676 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
16677 };
16678
16679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16681 {
16682 arg2 = wxString_in_helper(obj1);
16683 if (arg2 == NULL) SWIG_fail;
16684 temp2 = True;
16685 }
16686 {
16687 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16688 if (PyErr_Occurred()) SWIG_fail;
16689 }
16690 {
16691 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16692 if (PyErr_Occurred()) SWIG_fail;
16693 }
16694 {
16695 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16696 if (PyErr_Occurred()) SWIG_fail;
16697 }
16698 {
16699 PyThreadState* __tstate = wxPyBeginAllowThreads();
16700 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
16701
16702 wxPyEndAllowThreads(__tstate);
16703 if (PyErr_Occurred()) SWIG_fail;
16704 }
16705 Py_INCREF(Py_None); resultobj = Py_None;
16706 {
16707 if (temp2)
16708 delete arg2;
16709 }
16710 return resultobj;
16711 fail:
16712 {
16713 if (temp2)
16714 delete arg2;
16715 }
16716 return NULL;
16717 }
16718
16719
16720 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
16721 PyObject *obj;
16722 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16723 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
16724 Py_INCREF(obj);
16725 return Py_BuildValue((char *)"");
16726 }
16727 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16728 PyObject *resultobj;
16729 wxFontList *arg1 = (wxFontList *) 0 ;
16730 wxFont *arg2 = (wxFont *) 0 ;
16731 PyObject * obj0 = 0 ;
16732 PyObject * obj1 = 0 ;
16733 char *kwnames[] = {
16734 (char *) "self",(char *) "font", NULL
16735 };
16736
16737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
16738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16739 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16740 {
16741 PyThreadState* __tstate = wxPyBeginAllowThreads();
16742 (arg1)->AddFont(arg2);
16743
16744 wxPyEndAllowThreads(__tstate);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 }
16747 Py_INCREF(Py_None); resultobj = Py_None;
16748 return resultobj;
16749 fail:
16750 return NULL;
16751 }
16752
16753
16754 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16755 PyObject *resultobj;
16756 wxFontList *arg1 = (wxFontList *) 0 ;
16757 int arg2 ;
16758 int arg3 ;
16759 int arg4 ;
16760 int arg5 ;
16761 bool arg6 = (bool) False ;
16762 wxString const &arg7_defvalue = wxPyEmptyString ;
16763 wxString *arg7 = (wxString *) &arg7_defvalue ;
16764 int arg8 = (int) wxFONTENCODING_DEFAULT ;
16765 wxFont *result;
16766 bool temp7 = False ;
16767 PyObject * obj0 = 0 ;
16768 PyObject * obj1 = 0 ;
16769 PyObject * obj2 = 0 ;
16770 PyObject * obj3 = 0 ;
16771 PyObject * obj4 = 0 ;
16772 PyObject * obj5 = 0 ;
16773 PyObject * obj6 = 0 ;
16774 PyObject * obj7 = 0 ;
16775 char *kwnames[] = {
16776 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
16777 };
16778
16779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
16780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16781 {
16782 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16783 if (PyErr_Occurred()) SWIG_fail;
16784 }
16785 {
16786 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16787 if (PyErr_Occurred()) SWIG_fail;
16788 }
16789 {
16790 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 {
16794 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 if (obj5) {
16798 {
16799 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
16800 if (PyErr_Occurred()) SWIG_fail;
16801 }
16802 }
16803 if (obj6) {
16804 {
16805 arg7 = wxString_in_helper(obj6);
16806 if (arg7 == NULL) SWIG_fail;
16807 temp7 = True;
16808 }
16809 }
16810 if (obj7) {
16811 {
16812 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 }
16816 {
16817 PyThreadState* __tstate = wxPyBeginAllowThreads();
16818 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
16819
16820 wxPyEndAllowThreads(__tstate);
16821 if (PyErr_Occurred()) SWIG_fail;
16822 }
16823 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
16824 {
16825 if (temp7)
16826 delete arg7;
16827 }
16828 return resultobj;
16829 fail:
16830 {
16831 if (temp7)
16832 delete arg7;
16833 }
16834 return NULL;
16835 }
16836
16837
16838 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj;
16840 wxFontList *arg1 = (wxFontList *) 0 ;
16841 wxFont *arg2 = (wxFont *) 0 ;
16842 PyObject * obj0 = 0 ;
16843 PyObject * obj1 = 0 ;
16844 char *kwnames[] = {
16845 (char *) "self",(char *) "font", NULL
16846 };
16847
16848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
16849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16850 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 (arg1)->RemoveFont(arg2);
16854
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 Py_INCREF(Py_None); resultobj = Py_None;
16859 return resultobj;
16860 fail:
16861 return NULL;
16862 }
16863
16864
16865 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16866 PyObject *resultobj;
16867 wxFontList *arg1 = (wxFontList *) 0 ;
16868 int result;
16869 PyObject * obj0 = 0 ;
16870 char *kwnames[] = {
16871 (char *) "self", NULL
16872 };
16873
16874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
16875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16876 {
16877 PyThreadState* __tstate = wxPyBeginAllowThreads();
16878 result = (int)(arg1)->GetCount();
16879
16880 wxPyEndAllowThreads(__tstate);
16881 if (PyErr_Occurred()) SWIG_fail;
16882 }
16883 resultobj = SWIG_PyObj_FromInt((int)result);
16884 return resultobj;
16885 fail:
16886 return NULL;
16887 }
16888
16889
16890 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
16891 PyObject *obj;
16892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16893 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
16894 Py_INCREF(obj);
16895 return Py_BuildValue((char *)"");
16896 }
16897 static int _wrap_TheFontList_set(PyObject *_val) {
16898 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
16899 return 1;
16900 }
16901
16902
16903 static PyObject *_wrap_TheFontList_get() {
16904 PyObject *pyobj;
16905
16906 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
16907 return pyobj;
16908 }
16909
16910
16911 static int _wrap_ThePenList_set(PyObject *_val) {
16912 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
16913 return 1;
16914 }
16915
16916
16917 static PyObject *_wrap_ThePenList_get() {
16918 PyObject *pyobj;
16919
16920 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
16921 return pyobj;
16922 }
16923
16924
16925 static int _wrap_TheBrushList_set(PyObject *_val) {
16926 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
16927 return 1;
16928 }
16929
16930
16931 static PyObject *_wrap_TheBrushList_get() {
16932 PyObject *pyobj;
16933
16934 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
16935 return pyobj;
16936 }
16937
16938
16939 static int _wrap_TheColourDatabase_set(PyObject *_val) {
16940 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
16941 return 1;
16942 }
16943
16944
16945 static PyObject *_wrap_TheColourDatabase_get() {
16946 PyObject *pyobj;
16947
16948 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
16949 return pyobj;
16950 }
16951
16952
16953 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj;
16955 wxEffects *result;
16956 char *kwnames[] = {
16957 NULL
16958 };
16959
16960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
16961 {
16962 PyThreadState* __tstate = wxPyBeginAllowThreads();
16963 result = (wxEffects *)new wxEffects();
16964
16965 wxPyEndAllowThreads(__tstate);
16966 if (PyErr_Occurred()) SWIG_fail;
16967 }
16968 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
16969 return resultobj;
16970 fail:
16971 return NULL;
16972 }
16973
16974
16975 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16976 PyObject *resultobj;
16977 wxEffects *arg1 = (wxEffects *) 0 ;
16978 wxColour result;
16979 PyObject * obj0 = 0 ;
16980 char *kwnames[] = {
16981 (char *) "self", NULL
16982 };
16983
16984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
16985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16986 {
16987 PyThreadState* __tstate = wxPyBeginAllowThreads();
16988 result = ((wxEffects const *)arg1)->GetHighlightColour();
16989
16990 wxPyEndAllowThreads(__tstate);
16991 if (PyErr_Occurred()) SWIG_fail;
16992 }
16993 {
16994 wxColour * resultptr;
16995 resultptr = new wxColour((wxColour &) result);
16996 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16997 }
16998 return resultobj;
16999 fail:
17000 return NULL;
17001 }
17002
17003
17004 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17005 PyObject *resultobj;
17006 wxEffects *arg1 = (wxEffects *) 0 ;
17007 wxColour result;
17008 PyObject * obj0 = 0 ;
17009 char *kwnames[] = {
17010 (char *) "self", NULL
17011 };
17012
17013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17015 {
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = ((wxEffects const *)arg1)->GetLightShadow();
17018
17019 wxPyEndAllowThreads(__tstate);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 }
17022 {
17023 wxColour * resultptr;
17024 resultptr = new wxColour((wxColour &) result);
17025 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17026 }
17027 return resultobj;
17028 fail:
17029 return NULL;
17030 }
17031
17032
17033 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17034 PyObject *resultobj;
17035 wxEffects *arg1 = (wxEffects *) 0 ;
17036 wxColour result;
17037 PyObject * obj0 = 0 ;
17038 char *kwnames[] = {
17039 (char *) "self", NULL
17040 };
17041
17042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17044 {
17045 PyThreadState* __tstate = wxPyBeginAllowThreads();
17046 result = ((wxEffects const *)arg1)->GetFaceColour();
17047
17048 wxPyEndAllowThreads(__tstate);
17049 if (PyErr_Occurred()) SWIG_fail;
17050 }
17051 {
17052 wxColour * resultptr;
17053 resultptr = new wxColour((wxColour &) result);
17054 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17055 }
17056 return resultobj;
17057 fail:
17058 return NULL;
17059 }
17060
17061
17062 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17063 PyObject *resultobj;
17064 wxEffects *arg1 = (wxEffects *) 0 ;
17065 wxColour result;
17066 PyObject * obj0 = 0 ;
17067 char *kwnames[] = {
17068 (char *) "self", NULL
17069 };
17070
17071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17073 {
17074 PyThreadState* __tstate = wxPyBeginAllowThreads();
17075 result = ((wxEffects const *)arg1)->GetMediumShadow();
17076
17077 wxPyEndAllowThreads(__tstate);
17078 if (PyErr_Occurred()) SWIG_fail;
17079 }
17080 {
17081 wxColour * resultptr;
17082 resultptr = new wxColour((wxColour &) result);
17083 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17084 }
17085 return resultobj;
17086 fail:
17087 return NULL;
17088 }
17089
17090
17091 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17092 PyObject *resultobj;
17093 wxEffects *arg1 = (wxEffects *) 0 ;
17094 wxColour result;
17095 PyObject * obj0 = 0 ;
17096 char *kwnames[] = {
17097 (char *) "self", NULL
17098 };
17099
17100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17102 {
17103 PyThreadState* __tstate = wxPyBeginAllowThreads();
17104 result = ((wxEffects const *)arg1)->GetDarkShadow();
17105
17106 wxPyEndAllowThreads(__tstate);
17107 if (PyErr_Occurred()) SWIG_fail;
17108 }
17109 {
17110 wxColour * resultptr;
17111 resultptr = new wxColour((wxColour &) result);
17112 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17113 }
17114 return resultobj;
17115 fail:
17116 return NULL;
17117 }
17118
17119
17120 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17121 PyObject *resultobj;
17122 wxEffects *arg1 = (wxEffects *) 0 ;
17123 wxColour *arg2 = 0 ;
17124 wxColour temp2 ;
17125 PyObject * obj0 = 0 ;
17126 PyObject * obj1 = 0 ;
17127 char *kwnames[] = {
17128 (char *) "self",(char *) "c", NULL
17129 };
17130
17131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17133 {
17134 arg2 = &temp2;
17135 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17136 }
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17140
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 Py_INCREF(Py_None); resultobj = Py_None;
17145 return resultobj;
17146 fail:
17147 return NULL;
17148 }
17149
17150
17151 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj;
17153 wxEffects *arg1 = (wxEffects *) 0 ;
17154 wxColour *arg2 = 0 ;
17155 wxColour temp2 ;
17156 PyObject * obj0 = 0 ;
17157 PyObject * obj1 = 0 ;
17158 char *kwnames[] = {
17159 (char *) "self",(char *) "c", NULL
17160 };
17161
17162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17164 {
17165 arg2 = &temp2;
17166 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17167 }
17168 {
17169 PyThreadState* __tstate = wxPyBeginAllowThreads();
17170 (arg1)->SetLightShadow((wxColour const &)*arg2);
17171
17172 wxPyEndAllowThreads(__tstate);
17173 if (PyErr_Occurred()) SWIG_fail;
17174 }
17175 Py_INCREF(Py_None); resultobj = Py_None;
17176 return resultobj;
17177 fail:
17178 return NULL;
17179 }
17180
17181
17182 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17183 PyObject *resultobj;
17184 wxEffects *arg1 = (wxEffects *) 0 ;
17185 wxColour *arg2 = 0 ;
17186 wxColour temp2 ;
17187 PyObject * obj0 = 0 ;
17188 PyObject * obj1 = 0 ;
17189 char *kwnames[] = {
17190 (char *) "self",(char *) "c", NULL
17191 };
17192
17193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17195 {
17196 arg2 = &temp2;
17197 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17198 }
17199 {
17200 PyThreadState* __tstate = wxPyBeginAllowThreads();
17201 (arg1)->SetFaceColour((wxColour const &)*arg2);
17202
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
17206 Py_INCREF(Py_None); resultobj = Py_None;
17207 return resultobj;
17208 fail:
17209 return NULL;
17210 }
17211
17212
17213 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj;
17215 wxEffects *arg1 = (wxEffects *) 0 ;
17216 wxColour *arg2 = 0 ;
17217 wxColour temp2 ;
17218 PyObject * obj0 = 0 ;
17219 PyObject * obj1 = 0 ;
17220 char *kwnames[] = {
17221 (char *) "self",(char *) "c", NULL
17222 };
17223
17224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17226 {
17227 arg2 = &temp2;
17228 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17229 }
17230 {
17231 PyThreadState* __tstate = wxPyBeginAllowThreads();
17232 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17233
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 Py_INCREF(Py_None); resultobj = Py_None;
17238 return resultobj;
17239 fail:
17240 return NULL;
17241 }
17242
17243
17244 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17245 PyObject *resultobj;
17246 wxEffects *arg1 = (wxEffects *) 0 ;
17247 wxColour *arg2 = 0 ;
17248 wxColour temp2 ;
17249 PyObject * obj0 = 0 ;
17250 PyObject * obj1 = 0 ;
17251 char *kwnames[] = {
17252 (char *) "self",(char *) "c", NULL
17253 };
17254
17255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17257 {
17258 arg2 = &temp2;
17259 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17260 }
17261 {
17262 PyThreadState* __tstate = wxPyBeginAllowThreads();
17263 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17264
17265 wxPyEndAllowThreads(__tstate);
17266 if (PyErr_Occurred()) SWIG_fail;
17267 }
17268 Py_INCREF(Py_None); resultobj = Py_None;
17269 return resultobj;
17270 fail:
17271 return NULL;
17272 }
17273
17274
17275 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17276 PyObject *resultobj;
17277 wxEffects *arg1 = (wxEffects *) 0 ;
17278 wxColour *arg2 = 0 ;
17279 wxColour *arg3 = 0 ;
17280 wxColour *arg4 = 0 ;
17281 wxColour *arg5 = 0 ;
17282 wxColour *arg6 = 0 ;
17283 wxColour temp2 ;
17284 wxColour temp3 ;
17285 wxColour temp4 ;
17286 wxColour temp5 ;
17287 wxColour temp6 ;
17288 PyObject * obj0 = 0 ;
17289 PyObject * obj1 = 0 ;
17290 PyObject * obj2 = 0 ;
17291 PyObject * obj3 = 0 ;
17292 PyObject * obj4 = 0 ;
17293 PyObject * obj5 = 0 ;
17294 char *kwnames[] = {
17295 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17296 };
17297
17298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17300 {
17301 arg2 = &temp2;
17302 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17303 }
17304 {
17305 arg3 = &temp3;
17306 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17307 }
17308 {
17309 arg4 = &temp4;
17310 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17311 }
17312 {
17313 arg5 = &temp5;
17314 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17315 }
17316 {
17317 arg6 = &temp6;
17318 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17319 }
17320 {
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17323
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 Py_INCREF(Py_None); resultobj = Py_None;
17328 return resultobj;
17329 fail:
17330 return NULL;
17331 }
17332
17333
17334 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17335 PyObject *resultobj;
17336 wxEffects *arg1 = (wxEffects *) 0 ;
17337 wxDC *arg2 = 0 ;
17338 wxRect *arg3 = 0 ;
17339 int arg4 = (int) 1 ;
17340 wxRect temp3 ;
17341 PyObject * obj0 = 0 ;
17342 PyObject * obj1 = 0 ;
17343 PyObject * obj2 = 0 ;
17344 PyObject * obj3 = 0 ;
17345 char *kwnames[] = {
17346 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17347 };
17348
17349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17351 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17352 if (arg2 == NULL) {
17353 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17354 }
17355 {
17356 arg3 = &temp3;
17357 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17358 }
17359 if (obj3) {
17360 {
17361 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 }
17365 {
17366 PyThreadState* __tstate = wxPyBeginAllowThreads();
17367 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17368
17369 wxPyEndAllowThreads(__tstate);
17370 if (PyErr_Occurred()) SWIG_fail;
17371 }
17372 Py_INCREF(Py_None); resultobj = Py_None;
17373 return resultobj;
17374 fail:
17375 return NULL;
17376 }
17377
17378
17379 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
17380 PyObject *resultobj;
17381 wxEffects *arg1 = (wxEffects *) 0 ;
17382 wxRect *arg2 = 0 ;
17383 wxDC *arg3 = 0 ;
17384 wxBitmap *arg4 = 0 ;
17385 bool result;
17386 wxRect temp2 ;
17387 PyObject * obj0 = 0 ;
17388 PyObject * obj1 = 0 ;
17389 PyObject * obj2 = 0 ;
17390 PyObject * obj3 = 0 ;
17391 char *kwnames[] = {
17392 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
17393 };
17394
17395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17397 {
17398 arg2 = &temp2;
17399 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17400 }
17401 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17402 if (arg3 == NULL) {
17403 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17404 }
17405 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17406 if (arg4 == NULL) {
17407 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17408 }
17409 {
17410 PyThreadState* __tstate = wxPyBeginAllowThreads();
17411 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
17412
17413 wxPyEndAllowThreads(__tstate);
17414 if (PyErr_Occurred()) SWIG_fail;
17415 }
17416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17417 return resultobj;
17418 fail:
17419 return NULL;
17420 }
17421
17422
17423 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
17424 PyObject *obj;
17425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17426 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
17427 Py_INCREF(obj);
17428 return Py_BuildValue((char *)"");
17429 }
17430 static PyMethodDef SwigMethods[] = {
17431 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
17432 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
17433 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
17434 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
17435 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
17436 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
17437 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
17438 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
17439 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
17440 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
17441 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
17442 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
17443 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
17444 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
17445 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
17446 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
17447 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
17448 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
17449 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
17450 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
17451 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
17452 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
17453 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
17454 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
17455 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
17456 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
17457 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
17458 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
17459 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
17460 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
17461 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
17462 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
17463 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
17464 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
17465 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
17466 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
17467 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
17468 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
17469 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
17470 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
17471 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17472 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
17473 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
17474 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
17475 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
17476 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
17477 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17478 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
17479 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
17480 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
17481 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
17482 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
17483 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
17484 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
17485 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
17486 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
17487 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
17488 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
17489 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
17490 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
17491 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
17492 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
17493 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
17494 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
17495 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
17496 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
17497 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
17498 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
17499 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
17500 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
17501 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
17502 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
17503 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
17504 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
17505 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
17506 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
17507 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
17508 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
17509 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
17510 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
17511 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
17512 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
17513 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
17514 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
17515 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
17516 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
17517 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
17518 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
17519 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
17520 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
17521 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
17522 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
17523 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
17524 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
17525 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
17526 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
17527 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
17528 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
17529 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
17530 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
17531 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
17532 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
17533 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
17534 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
17535 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
17536 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
17537 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
17538 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
17539 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
17540 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
17541 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
17542 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
17543 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
17544 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
17545 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
17546 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
17547 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
17548 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
17549 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
17550 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
17551 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
17552 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
17553 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
17554 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
17555 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
17556 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
17557 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
17558 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
17559 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
17560 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
17561 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
17562 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
17563 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
17564 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
17565 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
17566 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
17567 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
17568 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
17569 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
17570 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
17571 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
17572 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
17573 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
17574 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
17575 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
17576 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
17577 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
17578 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
17579 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
17580 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
17581 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17582 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17583 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
17584 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
17585 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
17586 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
17587 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
17588 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
17589 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
17590 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
17591 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
17592 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
17593 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
17594 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
17595 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17596 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17597 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
17598 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
17599 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17600 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
17601 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
17602 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17603 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17604 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
17605 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17606 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17607 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
17608 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
17609 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17610 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17611 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
17612 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17613 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17614 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17615 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
17616 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
17617 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
17618 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
17619 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
17620 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
17621 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
17622 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
17623 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17624 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17625 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17626 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17627 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
17628 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
17629 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
17630 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
17631 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
17632 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
17633 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
17634 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
17635 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
17636 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17637 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
17638 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
17639 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
17640 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
17641 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
17642 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
17643 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
17644 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
17645 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
17646 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
17647 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
17648 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
17649 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
17650 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
17651 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
17652 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
17653 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
17654 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
17655 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17656 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
17657 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
17658 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
17659 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17660 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17661 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17662 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17663 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
17664 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
17665 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17666 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17667 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
17668 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
17669 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
17670 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17671 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17672 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17673 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17674 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
17675 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17676 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
17677 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
17678 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
17679 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17680 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17681 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17682 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17683 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
17684 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17685 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17686 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
17687 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
17688 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
17689 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
17690 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
17691 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
17692 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
17693 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
17694 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
17695 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
17696 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
17697 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
17698 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
17699 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
17700 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
17701 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
17702 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
17703 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
17704 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
17705 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
17706 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
17707 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
17708 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
17709 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
17710 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
17711 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
17712 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
17713 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
17714 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17715 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
17716 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17717 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
17718 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
17719 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
17720 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
17721 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
17722 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
17723 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17724 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17725 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
17726 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
17727 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
17728 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
17729 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
17730 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
17731 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
17732 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
17733 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
17734 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
17735 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
17736 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
17737 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
17738 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
17739 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
17740 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
17741 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
17742 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
17743 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
17744 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
17745 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
17746 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
17747 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
17748 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
17749 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
17750 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
17751 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
17752 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
17753 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
17754 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
17755 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
17756 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
17757 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
17758 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
17759 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
17760 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
17761 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
17762 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
17763 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
17764 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
17765 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
17766 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
17767 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
17768 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
17769 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
17770 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
17771 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
17772 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
17773 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
17774 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
17775 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
17776 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
17777 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
17778 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
17779 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
17780 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
17781 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
17782 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
17783 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
17784 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
17785 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
17786 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
17787 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
17788 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
17789 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
17790 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
17791 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
17792 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
17793 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
17794 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
17795 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
17796 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
17797 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
17798 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
17799 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
17800 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
17801 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
17802 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
17803 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
17804 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
17805 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
17806 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
17807 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
17808 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
17809 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
17810 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
17811 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
17812 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
17813 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
17814 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
17815 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
17816 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
17817 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
17818 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
17819 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
17820 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
17821 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
17822 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
17823 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
17824 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
17825 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
17826 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
17827 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
17828 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
17829 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17830 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17831 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17832 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
17833 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17834 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17835 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
17836 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17837 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
17838 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17839 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17840 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
17841 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
17842 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
17843 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17844 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
17845 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
17846 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
17847 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
17848 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17849 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
17850 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
17851 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
17852 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
17853 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
17854 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
17855 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
17856 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
17857 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
17858 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
17859 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
17860 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
17861 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
17862 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
17863 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
17864 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
17865 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
17866 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
17867 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
17868 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17869 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17870 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
17871 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
17872 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
17873 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
17874 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
17875 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
17876 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
17877 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
17878 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
17879 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
17880 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
17881 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
17882 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
17883 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
17884 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
17885 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
17886 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
17887 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
17888 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
17889 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
17890 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
17891 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
17892 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
17893 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
17894 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
17895 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
17896 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
17897 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
17898 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
17899 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
17900 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
17901 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
17902 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
17903 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
17904 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
17905 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
17906 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
17907 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
17908 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
17909 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
17910 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
17911 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
17912 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
17913 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17914 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17915 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
17916 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
17917 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
17918 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
17919 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
17920 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
17921 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
17922 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
17923 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
17924 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
17925 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
17926 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17927 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
17928 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
17929 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17930 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17931 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17932 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
17933 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
17934 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17935 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17936 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
17937 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
17938 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
17939 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
17940 { NULL, NULL }
17941 };
17942
17943
17944 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
17945
17946 static void *_p_wxControlTo_p_wxWindow(void *x) {
17947 return (void *)((wxWindow *) ((wxControl *) x));
17948 }
17949 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
17950 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
17951 }
17952 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
17953 return (void *)((wxWindow *) ((wxMenuBar *) x));
17954 }
17955 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
17956 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
17957 }
17958 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
17959 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
17960 }
17961 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
17962 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
17963 }
17964 static void *_p_wxPenTo_p_wxObject(void *x) {
17965 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
17966 }
17967 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
17968 return (void *)((wxObject *) ((wxRegionIterator *) x));
17969 }
17970 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
17971 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
17972 }
17973 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
17974 return (void *)((wxObject *) ((wxSizerItem *) x));
17975 }
17976 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
17977 return (void *)((wxObject *) ((wxColourDatabase *) x));
17978 }
17979 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
17980 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
17981 }
17982 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
17983 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
17984 }
17985 static void *_p_wxIconTo_p_wxObject(void *x) {
17986 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
17987 }
17988 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
17989 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
17990 }
17991 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
17992 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
17993 }
17994 static void *_p_wxSizerTo_p_wxObject(void *x) {
17995 return (void *)((wxObject *) ((wxSizer *) x));
17996 }
17997 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
17998 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
17999 }
18000 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18001 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18002 }
18003 static void *_p_wxPenListTo_p_wxObject(void *x) {
18004 return (void *)((wxObject *) ((wxPenList *) x));
18005 }
18006 static void *_p_wxEventTo_p_wxObject(void *x) {
18007 return (void *)((wxObject *) ((wxEvent *) x));
18008 }
18009 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18010 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18011 }
18012 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18013 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18014 }
18015 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18016 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18017 }
18018 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18019 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18020 }
18021 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18022 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18023 }
18024 static void *_p_wxDCTo_p_wxObject(void *x) {
18025 return (void *)((wxObject *) ((wxDC *) x));
18026 }
18027 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18028 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18029 }
18030 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18031 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18032 }
18033 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18034 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18035 }
18036 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18037 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18038 }
18039 static void *_p_wxControlTo_p_wxObject(void *x) {
18040 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18041 }
18042 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18043 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18044 }
18045 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18046 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18047 }
18048 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18049 return (void *)((wxObject *) ((wxFSFile *) x));
18050 }
18051 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18052 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18053 }
18054 static void *_p_wxRegionTo_p_wxObject(void *x) {
18055 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18056 }
18057 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18058 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18059 }
18060 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18061 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18062 }
18063 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18064 return (void *)((wxObject *) ((wxGDIObject *) x));
18065 }
18066 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18067 return (void *)((wxObject *) ((wxEffects *) x));
18068 }
18069 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18070 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18071 }
18072 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18073 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18074 }
18075 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18076 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18077 }
18078 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18079 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18080 }
18081 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18082 return (void *)((wxObject *) ((wxMenuItem *) x));
18083 }
18084 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18085 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18086 }
18087 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18088 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18089 }
18090 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18091 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18092 }
18093 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18094 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18095 }
18096 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18097 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18098 }
18099 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18100 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18101 }
18102 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18103 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18104 }
18105 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18106 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18107 }
18108 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18109 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18110 }
18111 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18112 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18113 }
18114 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18115 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18116 }
18117 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18118 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18119 }
18120 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18121 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18122 }
18123 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18124 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18125 }
18126 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18127 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18128 }
18129 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18130 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18131 }
18132 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18133 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18134 }
18135 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18136 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18137 }
18138 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18139 return (void *)((wxObject *) ((wxImageHandler *) x));
18140 }
18141 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18142 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18143 }
18144 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18145 return (void *)((wxObject *) ((wxEvtHandler *) x));
18146 }
18147 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18148 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18149 }
18150 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18151 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18152 }
18153 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18154 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18155 }
18156 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18157 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18158 }
18159 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18160 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18161 }
18162 static void *_p_wxImageTo_p_wxObject(void *x) {
18163 return (void *)((wxObject *) ((wxImage *) x));
18164 }
18165 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18166 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18167 }
18168 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18169 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18170 }
18171 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18172 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18173 }
18174 static void *_p_wxImageListTo_p_wxObject(void *x) {
18175 return (void *)((wxObject *) ((wxImageList *) x));
18176 }
18177 static void *_p_wxCursorTo_p_wxObject(void *x) {
18178 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18179 }
18180 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18181 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18182 }
18183 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18184 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18185 }
18186 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18187 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18188 }
18189 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18190 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18191 }
18192 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18193 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18194 }
18195 static void *_p_wxWindowTo_p_wxObject(void *x) {
18196 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18197 }
18198 static void *_p_wxMenuTo_p_wxObject(void *x) {
18199 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18200 }
18201 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18202 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18203 }
18204 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18205 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18206 }
18207 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18208 return (void *)((wxObject *) ((wxBrushList *) x));
18209 }
18210 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18211 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18212 }
18213 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18214 return (void *)((wxObject *) ((wxFileSystem *) x));
18215 }
18216 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18217 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18218 }
18219 static void *_p_wxMaskTo_p_wxObject(void *x) {
18220 return (void *)((wxObject *) ((wxMask *) x));
18221 }
18222 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18223 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18224 }
18225 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18226 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18227 }
18228 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18229 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18230 }
18231 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18232 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18233 }
18234 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18235 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18236 }
18237 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18238 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18239 }
18240 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18241 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18242 }
18243 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18244 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18245 }
18246 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18247 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18248 }
18249 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18250 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18251 }
18252 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18253 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18254 }
18255 static void *_p_wxFontTo_p_wxObject(void *x) {
18256 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18257 }
18258 static void *_p_wxBrushTo_p_wxObject(void *x) {
18259 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18260 }
18261 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18262 return (void *)((wxObject *) ((wxMetaFile *) x));
18263 }
18264 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18265 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18266 }
18267 static void *_p_wxColourTo_p_wxObject(void *x) {
18268 return (void *)((wxObject *) ((wxColour *) x));
18269 }
18270 static void *_p_wxFontListTo_p_wxObject(void *x) {
18271 return (void *)((wxObject *) ((wxFontList *) x));
18272 }
18273 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18274 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18275 }
18276 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18277 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18278 }
18279 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18280 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18281 }
18282 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18283 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18284 }
18285 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18286 return (void *)((wxDC *) ((wxScreenDC *) x));
18287 }
18288 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18289 return (void *)((wxDC *) ((wxMirrorDC *) x));
18290 }
18291 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18292 return (void *)((wxDC *) ((wxMemoryDC *) x));
18293 }
18294 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18295 return (void *)((wxDC *) ((wxWindowDC *) x));
18296 }
18297 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18298 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18299 }
18300 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18301 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18302 }
18303 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18304 return (void *)((wxDC *) ((wxClientDC *) x));
18305 }
18306 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18307 return (void *)((wxDC *) ((wxPaintDC *) x));
18308 }
18309 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18310 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18311 }
18312 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18313 return (void *)((wxDC *) ((wxPrinterDC *) x));
18314 }
18315 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18316 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18317 }
18318 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18319 return (void *)((wxGDIObject *) ((wxIcon *) x));
18320 }
18321 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18322 return (void *)((wxGDIObject *) ((wxPalette *) x));
18323 }
18324 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18325 return (void *)((wxGDIObject *) ((wxPen *) x));
18326 }
18327 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18328 return (void *)((wxGDIObject *) ((wxFont *) x));
18329 }
18330 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18331 return (void *)((wxGDIObject *) ((wxCursor *) x));
18332 }
18333 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18334 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18335 }
18336 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18337 return (void *)((wxGDIObject *) ((wxRegion *) x));
18338 }
18339 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18340 return (void *)((wxGDIObject *) ((wxBrush *) x));
18341 }
18342 static void *_p_wxPyPenTo_p_wxPen(void *x) {
18343 return (void *)((wxPen *) ((wxPyPen *) x));
18344 }
18345 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
18346 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
18347 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
18348 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}};
18349 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
18350 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18351 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
18352 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
18353 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
18354 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
18355 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
18356 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
18357 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
18358 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}};
18359 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
18360 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
18361 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}};
18362 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
18363 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
18364 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
18365 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
18366 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
18367 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}};
18368 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
18369 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
18370 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
18371 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
18372 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
18373 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
18374 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
18375 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
18376 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
18377 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
18378 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
18379 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
18380 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18381 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}};
18382 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
18383 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
18384 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
18385 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
18386 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
18387 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
18388 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
18389 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
18390 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
18391 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
18392 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
18393 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
18394 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
18395 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
18396 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
18397 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
18398 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
18399 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
18400 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
18401
18402 static swig_type_info *swig_types_initial[] = {
18403 _swigt__p_wxPostScriptDC,
18404 _swigt__p_wxBrush,
18405 _swigt__p_wxColour,
18406 _swigt__p_wxDC,
18407 _swigt__p_wxMirrorDC,
18408 _swigt__p_byte,
18409 _swigt__p_wxPyFontEnumerator,
18410 _swigt__p_char,
18411 _swigt__p_wxIconLocation,
18412 _swigt__p_wxImage,
18413 _swigt__p_wxMetaFileDC,
18414 _swigt__p_wxMask,
18415 _swigt__p_wxFont,
18416 _swigt__p_wxWindow,
18417 _swigt__p_wxSize,
18418 _swigt__p_double,
18419 _swigt__p_wxMemoryDC,
18420 _swigt__p_wxFontMapper,
18421 _swigt__p_wxEffects,
18422 _swigt__p_wxNativeEncodingInfo,
18423 _swigt__p_wxPalette,
18424 _swigt__p_wxBitmap,
18425 _swigt__p_wxObject,
18426 _swigt__p_wxRegionIterator,
18427 _swigt__p_wxRect,
18428 _swigt__p_wxString,
18429 _swigt__p_wxPrinterDC,
18430 _swigt__p_wxIconBundle,
18431 _swigt__p_wxPoint,
18432 _swigt__p_wxDash,
18433 _swigt__p_wxScreenDC,
18434 _swigt__p_wxCursor,
18435 _swigt__p_wxClientDC,
18436 _swigt__p_wxBufferedDC,
18437 _swigt__p_wxImageList,
18438 _swigt__p_unsigned_char,
18439 _swigt__p_wxGDIObject,
18440 _swigt__p_wxIcon,
18441 _swigt__p_wxLocale,
18442 _swigt__p_wxRegion,
18443 _swigt__p_wxLanguageInfo,
18444 _swigt__p_wxConfigBase,
18445 _swigt__p_wxWindowDC,
18446 _swigt__p_wxPrintData,
18447 _swigt__p_wxBrushList,
18448 _swigt__p_wxFontList,
18449 _swigt__p_wxPen,
18450 _swigt__p_wxBufferedPaintDC,
18451 _swigt__p_wxPaintDC,
18452 _swigt__p_wxPenList,
18453 _swigt__p_wxPyPen,
18454 _swigt__p_int,
18455 _swigt__p_wxMetaFile,
18456 _swigt__p_wxNativeFontInfo,
18457 _swigt__p_wxEncodingConverter,
18458 _swigt__p_wxColourDatabase,
18459 0
18460 };
18461
18462
18463 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
18464
18465 static swig_const_info swig_const_table[] = {
18466 {0}};
18467
18468 #ifdef __cplusplus
18469 }
18470 #endif
18471
18472 #ifdef __cplusplus
18473 extern "C"
18474 #endif
18475 SWIGEXPORT(void) SWIG_init(void) {
18476 static PyObject *SWIG_globals = 0;
18477 static int typeinit = 0;
18478 PyObject *m, *d;
18479 int i;
18480 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18481 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18482 d = PyModule_GetDict(m);
18483
18484 if (!typeinit) {
18485 for (i = 0; swig_types_initial[i]; i++) {
18486 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18487 }
18488 typeinit = 1;
18489 }
18490 SWIG_InstallConstants(d,swig_const_table);
18491
18492 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
18493 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
18494 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
18495 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
18496 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
18497 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
18498 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
18499 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
18500 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
18501 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
18502 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
18503 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
18504 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
18505 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
18506 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
18507 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
18508 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
18509 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
18510 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
18511 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
18512 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
18513 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
18514 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
18515 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
18516 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
18517 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
18518 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
18519 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
18520 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
18521 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
18522 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
18523 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
18524 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
18525 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
18526 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
18527 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
18528 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
18529 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
18530 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
18531 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
18532 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
18533 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
18534 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
18535 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
18536 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
18537 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
18538 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
18539 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
18540 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
18541 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
18542 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
18543 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
18544 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
18545 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
18546 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
18547 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
18548 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
18549 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
18550 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
18551 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
18552 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
18553 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
18554 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
18555 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
18556 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
18557 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
18558 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
18559 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
18560 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
18561 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
18562 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
18563 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
18564 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
18565 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
18566 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
18567 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
18568 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
18569 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
18570 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
18571 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
18572 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
18573 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
18574 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
18575 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
18576 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
18577 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
18578 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
18579 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
18580 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
18581 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
18582 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
18583 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
18584 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
18585 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
18586 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
18587 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
18588 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
18589 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
18590 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
18591 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
18592 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
18593 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
18594 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
18595 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
18596 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
18597 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
18598 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
18599 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
18600 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
18601 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
18602 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
18603 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
18604 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
18605 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
18606 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
18607 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
18608 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
18609 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
18610 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
18611 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
18612 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
18613 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
18614 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
18615 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
18616 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
18617 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
18618
18619 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
18620
18621 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
18622 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
18623 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
18624 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
18625 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
18626 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
18627 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
18628 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
18629 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
18630 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
18631 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
18632 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
18633 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
18634 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
18635 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
18636 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
18637 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
18638 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
18639 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
18640 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
18641 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
18642 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
18643 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
18644 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
18645 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
18646 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
18647 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
18648 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
18649 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
18650 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
18651 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
18652 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
18653 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
18654 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
18655 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
18656 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
18657 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
18658 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
18659 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
18660 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
18661 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
18662 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
18663 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
18664 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
18665 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
18666 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
18667 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
18668 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
18669 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
18670 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
18671 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
18672 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
18673 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
18674 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
18675 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
18676 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
18677 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
18678 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
18679 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
18680 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
18681 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
18682 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
18683 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
18684 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
18685 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
18686 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
18687 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
18688 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
18689 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
18690 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
18691 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
18692 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
18693 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
18694 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
18695 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
18696 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
18697 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
18698 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
18699 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
18700 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
18701 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
18702 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
18703 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
18704 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
18705 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
18706 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
18707 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
18708 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
18709 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
18710 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
18711 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
18712 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
18713 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
18714 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
18715 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
18716 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
18717 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
18718 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
18719 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
18720 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
18721 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
18722 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
18723 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
18724 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
18725 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
18726 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
18727 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
18728 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
18729 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
18730 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
18731 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
18732 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
18733 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
18734 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
18735 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
18736 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
18737 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
18738 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
18739 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
18740 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
18741 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
18742 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
18743 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
18744 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
18745 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
18746 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
18747 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
18748 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
18749 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
18750 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
18751 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
18752 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
18753 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
18754 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
18755 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
18756 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
18757 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
18758 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
18759 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
18760 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
18761 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
18762 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
18763 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
18764 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
18765 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
18766 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
18767 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
18768 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
18769 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
18770 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
18771 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
18772 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
18773 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
18774 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
18775 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
18776 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
18777 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
18778 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
18779 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
18780 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
18781 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
18782 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
18783 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
18784 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
18785 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
18786 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
18787 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
18788 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
18789 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
18790 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
18791 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
18792 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
18793 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
18794 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
18795 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
18796 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
18797 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
18798 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
18799 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
18800 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
18801 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
18802 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
18803 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
18804 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
18805 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
18806 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
18807 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
18808 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
18809 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
18810 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
18811 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
18812 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
18813 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
18814 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
18815 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
18816 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
18817 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
18818 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
18819 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
18820 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
18821 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
18822 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
18823 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
18824 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
18825 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
18826 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
18827 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
18828 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
18829 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
18830 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
18831 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
18832 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
18833 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
18834 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
18835 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
18836 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
18837 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
18838 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
18839 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
18840 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
18841 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
18842 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
18843 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
18844 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
18845 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
18846 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
18847 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
18848 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
18849 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
18850 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
18851 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
18852 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
18853 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
18854 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
18855 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
18856 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
18857 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
18858 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
18859 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
18860 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
18861 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
18862 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
18863 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
18864 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
18865 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
18866 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
18867 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
18868 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
18869 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
18870 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
18871 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
18872 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
18873 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
18874 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
18875 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
18876 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
18877 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
18878 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
18879 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
18880 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
18881 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
18882 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
18883 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
18884 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
18885 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
18886 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
18887 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
18888 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
18889 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
18890 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
18891 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
18892 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
18893 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
18894 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
18895 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
18896 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
18897 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
18898 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
18899 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
18900 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
18901 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
18902 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
18903 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
18904 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
18905 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
18906 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
18907 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
18908 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
18909 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
18910 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
18911 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
18912 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
18913 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
18914 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
18915 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
18916 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
18917 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
18918 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
18919 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
18920 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
18921
18922 // Work around a chicken/egg problem in drawlist.cpp
18923 wxPyDrawList_SetAPIPtr();
18924
18925 }
18926