]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Inital fill in background, removed tabs, -1->wxID_ANY, TRUE->true, FALSE->false
[wxWidgets.git] / wxPython / src / msw / _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 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250 #define SWIGTYPE_p_wxConfigBase swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_int swig_types[50]
260 #define SWIGTYPE_p_wxMetaFile swig_types[51]
261 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
262 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
263 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
264 static swig_type_info *swig_types[56];
265
266 /* -------- TYPES TABLE (END) -------- */
267
268
269 /*-----------------------------------------------
270 @(target):= _gdi_.so
271 ------------------------------------------------*/
272 #define SWIG_init init_gdi_
273
274 #define SWIG_name "_gdi_"
275
276 /* Auxiliar swig macros */
277
278 #ifdef __cplusplus
279 #define SWIGSTATICINLINE(a) static inline a
280 #define SWIGSTATIC(a) static a
281 #define swig_new_array(type, size) (new type[(size)])
282 #define swig_delete_array(cptr) delete[] cptr
283 #define swig_const_cast(type,a) const_cast<type>(a)
284 #define swig_static_cast(type,a) static_cast<type>(a)
285 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
286
287 #ifdef HAVE_NUMERIC_CAST
288 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
289 #else
290 #define swig_numeric_cast(type,a) static_cast<type>(a)
291 #endif
292
293 #else /* C case */
294
295 #define SWIGSTATICINLINE(a) static a
296 #define SWIGSTATIC(a) static a
297 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
298 #define swig_delete_array(cptr) free((char*)cptr)
299 #define swig_const_cast(type,a) (type)(a)
300 #define swig_static_cast(type,a) (type)(a)
301 #define swig_reinterpret_cast(type,a) (type)(a)
302 #define swig_numeric_cast(type,a) (type)(a)
303
304 #endif /* __cplusplus */
305
306
307 #define SWIG_FromSignedChar PyInt_FromLong
308 #define SWIG_FromUnsignedChar PyInt_FromLong
309 #define SWIG_FromShort PyInt_FromLong
310 #define SWIG_FromUnsignedShort PyInt_FromLong
311 #define SWIG_FromInt PyInt_FromLong
312 #define SWIG_FromLong PyInt_FromLong
313 #define SWIG_FromFloat PyFloat_FromDouble
314 #define SWIG_FromDouble PyFloat_FromDouble
315 #define SWIG_FromFloat PyFloat_FromDouble
316 #define SWIG_FromDouble PyFloat_FromDouble
317
318
319 #include "wx/wxPython/wxPython.h"
320 #include "wx/wxPython/pyclasses.h"
321
322
323 static const wxString wxPyEmptyString(wxEmptyString);
324
325 SWIGSTATICINLINE(bool)
326 SWIG_AsBool(PyObject *obj)
327 {
328 return PyObject_IsTrue(obj) ? true : false;
329 }
330
331
332 SWIGSTATICINLINE(int)
333 SWIG_CheckBool(PyObject* obj)
334 {
335 SWIG_AsBool(obj);
336 if (PyErr_Occurred()) {
337 PyErr_Clear();
338 return 0;
339 } else {
340 return 1;
341 }
342 }
343
344
345 #include <limits.h>
346
347
348 SWIGSTATICINLINE(unsigned long)
349 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
350 unsigned long max_value)
351 {
352 if (!PyErr_Occurred()) {
353 if (value > max_value) {
354 PyObject *err =
355 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
356 value, type, max_value);
357 PyErr_SetObject(PyExc_OverflowError, err);
358 Py_DECREF(err);
359 }
360 }
361 return value;
362 }
363
364
365 SWIGSTATICINLINE(long)
366 SWIG_AsLong(PyObject * obj)
367 {
368 if (PyNumber_Check(obj))
369 return PyInt_AsLong(obj);
370 else {
371 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
372 obj->ob_type->tp_name);
373 PyErr_SetObject(PyExc_TypeError, errmsg);
374 Py_DECREF(errmsg);
375 return 0;
376 }
377 }
378
379
380 SWIGSTATICINLINE(unsigned long)
381 SWIG_AsUnsignedLong(PyObject * obj)
382 {
383 if (PyLong_Check(obj)) {
384 return PyLong_AsUnsignedLong(obj);
385 } else {
386 long i = SWIG_AsLong(obj);
387 if ( !PyErr_Occurred() && (i < 0)) {
388 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
389 }
390 return i;
391 }
392 }
393
394
395 SWIGSTATICINLINE(unsigned char)
396 SWIG_AsUnsignedChar(PyObject *obj)
397 {
398 return swig_numeric_cast(unsigned char,
399 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
400 "unsigned char", UCHAR_MAX));
401 }
402
403
404 SWIGSTATICINLINE(int)
405 SWIG_CheckUnsignedChar(PyObject* obj)
406 {
407 SWIG_AsUnsignedChar(obj);
408 if (PyErr_Occurred()) {
409 PyErr_Clear();
410 return 0;
411 } else {
412 return 1;
413 }
414 }
415
416
417 SWIGSTATICINLINE(int)
418 SWIG_CheckUnsignedLong(PyObject* obj)
419 {
420 SWIG_AsUnsignedLong(obj);
421 if (PyErr_Occurred()) {
422 PyErr_Clear();
423 return 0;
424 } else {
425 return 1;
426 }
427 }
428
429 PyObject *wxColour_Get(wxColour *self){
430 PyObject* rv = PyTuple_New(3);
431 int red = -1;
432 int green = -1;
433 int blue = -1;
434 if (self->Ok()) {
435 red = self->Red();
436 green = self->Green();
437 blue = self->Blue();
438 }
439 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
440 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
441 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
442 return rv;
443 }
444 unsigned long wxColour_GetRGB(wxColour *self){
445 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
446 }
447
448 SWIGSTATICINLINE(PyObject* )
449 SWIG_FromUnsignedLong(unsigned long value)
450 {
451 return (value > LONG_MAX) ?
452 PyLong_FromUnsignedLong(value)
453 : PyInt_FromLong(swig_numeric_cast(long,value));
454 }
455
456
457 SWIGSTATICINLINE(long)
458 SWIG_CheckLongInRange(long value, const char* type,
459 long min_value, long max_value)
460 {
461 if (!PyErr_Occurred()) {
462 if (value < min_value) {
463 PyObject *err =
464 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
465 value, type, min_value);
466
467 PyErr_SetObject(PyExc_OverflowError, err);
468 Py_DECREF(err);
469 } else if (value > max_value) {
470 PyObject *err =
471 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
472 value, type, max_value);
473 PyErr_SetObject(PyExc_OverflowError, err);
474 Py_DECREF(err);
475 }
476 }
477 return value;
478 }
479
480
481 #if INT_MAX != LONG_MAX
482 SWIGSTATICINLINE(int)
483 SWIG_AsInt(PyObject *obj)
484 {
485 return swig_numeric_cast(int,
486 SWIG_CheckLongInRange(SWIG_AsLong(obj),
487 "int", INT_MIN, INT_MAX));
488 }
489 #else
490 #define SWIG_AsInt SWIG_AsLong
491 #endif
492
493
494 SWIGSTATICINLINE(int)
495 SWIG_CheckInt(PyObject* obj)
496 {
497 SWIG_AsInt(obj);
498 if (PyErr_Occurred()) {
499 PyErr_Clear();
500 return 0;
501 } else {
502 return 1;
503 }
504 }
505
506
507 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
508 PyObject* o2;
509 PyObject* o3;
510
511 if (!target) {
512 target = o;
513 } else if (target == Py_None) {
514 Py_DECREF(Py_None);
515 target = o;
516 } else {
517 if (!PyTuple_Check(target)) {
518 o2 = target;
519 target = PyTuple_New(1);
520 PyTuple_SetItem(target, 0, o2);
521 }
522 o3 = PyTuple_New(1);
523 PyTuple_SetItem(o3, 0, o);
524
525 o2 = target;
526 target = PySequence_Concat(o2, o3);
527 Py_DECREF(o2);
528 Py_DECREF(o3);
529 }
530 return target;
531 }
532
533 PyObject *wxPen_GetDashes(wxPen *self){
534 wxDash* dashes;
535 int count = self->GetDashes(&dashes);
536 bool blocked = wxPyBeginBlockThreads();
537 PyObject* retval = PyList_New(0);
538 for (int x=0; x<count; x++) {
539 PyObject* pyint = PyInt_FromLong(dashes[x]);
540 PyList_Append(retval, pyint);
541 Py_DECREF(pyint);
542 }
543 wxPyEndBlockThreads(blocked);
544 return retval;
545 }
546 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
547 bool blocked = wxPyBeginBlockThreads();
548 int size = PyList_Size(pyDashes);
549 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
550
551 // black magic warning! The array of wxDashes needs to exist as
552 // long as the pen does because wxPen does not copy the array. So
553 // stick a copy in a Python string object and attach it to _self,
554 // and then call SetDashes with a pointer to that array. Then
555 // when the Python pen object is destroyed the array will be
556 // cleaned up too.
557 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
558 PyObject_SetAttrString(_self, "_dashes", strDashes);
559
560 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
561 delete [] dashes;
562 Py_DECREF(strDashes);
563 wxPyEndBlockThreads(blocked);
564 }
565 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
566 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
567
568 #include <wx/image.h>
569
570 static char** ConvertListOfStrings(PyObject* listOfStrings) {
571 char** cArray = NULL;
572 int count;
573
574 if (!PyList_Check(listOfStrings)) {
575 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
576 return NULL;
577 }
578 count = PyList_Size(listOfStrings);
579 cArray = new char*[count];
580
581 for(int x=0; x<count; x++) {
582 // TODO: Need some validation and error checking here
583 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
584 }
585 return cArray;
586 }
587
588
589 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
590 char** cArray = NULL;
591 wxBitmap* bmp;
592
593 cArray = ConvertListOfStrings(listOfStrings);
594 if (! cArray)
595 return NULL;
596 bmp = new wxBitmap(cArray);
597 delete [] cArray;
598 return bmp;
599 }
600 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
601 char* buf;
602 int length;
603 PyString_AsStringAndSize(bits, &buf, &length);
604 return new wxBitmap(buf, width, height, depth);
605 }
606
607 SWIGSTATICINLINE(int)
608 SWIG_CheckLong(PyObject* obj)
609 {
610 SWIG_AsLong(obj);
611 if (PyErr_Occurred()) {
612 PyErr_Clear();
613 return 0;
614 } else {
615 return 1;
616 }
617 }
618
619 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
620 wxSize wxBitmap_GetSize(wxBitmap *self){
621 wxSize size(self->GetWidth(), self->GetHeight());
622 return size;
623 }
624 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
625 wxMask *mask = new wxMask(*self, colour);
626 self->SetMask(mask);
627 }
628 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
629 self->SetWidth(size.x);
630 self->SetHeight(size.y);
631 }
632 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
633 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
634 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
635 if ( !colour.Ok() )
636 return new wxMask(bitmap, *wxBLACK);
637 else
638 return new wxMask(bitmap, colour);
639 }
640
641 #include <wx/iconbndl.h>
642
643 wxIcon *new_wxIcon(wxBitmap const &bmp){
644 wxIcon* icon = new wxIcon();
645 icon->CopyFromBitmap(bmp);
646 return icon;
647 }
648 wxIcon *new_wxIcon(PyObject *listOfStrings){
649 char** cArray = NULL;
650 wxIcon* icon;
651
652 cArray = ConvertListOfStrings(listOfStrings);
653 if (! cArray)
654 return NULL;
655 icon = new wxIcon(cArray);
656 delete [] cArray;
657 return icon;
658 }
659 void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
660 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
661
662 return new wxIconLocation(*filename, num);
663
664
665
666 }
667 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
668
669 self->SetIndex(num);
670
671
672
673 }
674 int wxIconLocation_GetIndex(wxIconLocation *self){
675
676 return self->GetIndex();
677
678
679
680 }
681 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
682 #ifdef __WXGTK__
683 wxCHECK_MSG(False, NULL,
684 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
685 #else
686 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
687 #endif
688 }
689 void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
690
691
692 void wxRegionIterator_Next(wxRegionIterator *self){
693 (*self) ++;
694 }
695 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
696 return self->operator bool();
697 }
698
699 #include <wx/fontutil.h>
700 #include <wx/fontmap.h>
701 #include <wx/fontenum.h>
702
703 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
704 return self->ToString();
705 }
706
707 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
708 { wxPyRaiseNotImplemented(); return NULL; }
709
710 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
711 { wxPyRaiseNotImplemented(); return False; }
712
713 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
714 wxFontEncoding alt_enc;
715 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
716 return PyInt_FromLong(alt_enc);
717 else {
718 Py_INCREF(Py_None);
719 return Py_None;
720 }
721 }
722 wxFont *new_wxFont(wxString const &info){
723 wxNativeFontInfo nfi;
724 nfi.FromString(info);
725 return new wxFont(nfi);
726 }
727 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
728 return wxFont::New(pointSize, family, flags, face, encoding);
729 }
730 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
731 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
732
733 class wxPyFontEnumerator : public wxFontEnumerator {
734 public:
735 wxPyFontEnumerator() {}
736 ~wxPyFontEnumerator() {}
737
738 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
739 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
740
741 PYPRIVATE;
742 };
743
744 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
745 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
746
747
748 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
749 wxArrayString* arr = self->GetEncodings();
750 return wxArrayString2PyList_helper(*arr);
751 }
752 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
753 wxArrayString* arr = self->GetFacenames();
754 return wxArrayString2PyList_helper(*arr);
755 }
756
757
758 wxLocale *new_wxLocale(int language,int flags){
759 if (language == -1)
760 return new wxLocale();
761 else
762 return new wxLocale(language, flags);
763 }
764
765 #include "wx/wxPython/pydrawxxx.h"
766
767 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
768 wxColour col;
769 self->GetPixel(x, y, &col);
770 return col;
771 }
772 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
773 wxColour col;
774 self->GetPixel(pt, &col);
775 return col;
776 }
777
778 SWIGSTATICINLINE(double)
779 SWIG_AsDouble(PyObject *obj)
780 {
781 if (PyNumber_Check(obj))
782 return PyFloat_AsDouble(obj);
783 else {
784 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
785 obj->ob_type->tp_name);
786 PyErr_SetObject(PyExc_TypeError, errmsg);
787 Py_DECREF(errmsg);
788 return 0;
789 }
790 }
791
792
793 SWIGSTATICINLINE(int)
794 SWIG_CheckDouble(PyObject* obj)
795 {
796 SWIG_AsDouble(obj);
797 if (PyErr_Occurred()) {
798 PyErr_Clear();
799 return 0;
800 } else {
801 return 1;
802 }
803 }
804
805 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
806 wxRect rv;
807 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
808 return rv;
809 }
810 wxRect wxDC_GetClippingRect(wxDC *self){
811 wxRect rect;
812 self->GetClippingBox(rect);
813 return rect;
814 }
815 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
816 wxArrayInt widths;
817 self->GetPartialTextExtents(text, widths);
818 return widths;
819 }
820 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
821 self->SetLogicalOrigin(point.x, point.y);
822 }
823 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
824 self->SetDeviceOrigin(point.x, point.y);
825 }
826 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
827 self->CalcBoundingBox(point.x, point.y);
828 }
829 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
830 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
831 }
832 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
833 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
834 }
835 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
836 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
837 }
838 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
839 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
840 }
841 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
842 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
843 }
844 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
845 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
846 }
847
848 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
849 *x1 = dc->MinX();
850 *y1 = dc->MinY();
851 *x2 = dc->MaxX();
852 *y2 = dc->MaxY();
853 }
854
855
856 #include <wx/dcbuffer.h>
857
858
859 #include <wx/dcps.h>
860
861
862 #include <wx/metafile.h>
863
864
865
866 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
867 self->AddColour(name, wxColour(red, green, blue));
868 }
869
870 #include <wx/effects.h>
871
872 #ifdef __cplusplus
873 extern "C" {
874 #endif
875 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
876 PyObject *resultobj;
877 wxGDIObject *result;
878 char *kwnames[] = {
879 NULL
880 };
881
882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
883 {
884 PyThreadState* __tstate = wxPyBeginAllowThreads();
885 result = (wxGDIObject *)new wxGDIObject();
886
887 wxPyEndAllowThreads(__tstate);
888 if (PyErr_Occurred()) SWIG_fail;
889 }
890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
891 return resultobj;
892 fail:
893 return NULL;
894 }
895
896
897 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
898 PyObject *resultobj;
899 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
900 PyObject * obj0 = 0 ;
901 char *kwnames[] = {
902 (char *) "self", NULL
903 };
904
905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
908 {
909 PyThreadState* __tstate = wxPyBeginAllowThreads();
910 delete arg1;
911
912 wxPyEndAllowThreads(__tstate);
913 if (PyErr_Occurred()) SWIG_fail;
914 }
915 Py_INCREF(Py_None); resultobj = Py_None;
916 return resultobj;
917 fail:
918 return NULL;
919 }
920
921
922 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
923 PyObject *resultobj;
924 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
925 bool result;
926 PyObject * obj0 = 0 ;
927 char *kwnames[] = {
928 (char *) "self", NULL
929 };
930
931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
934 {
935 PyThreadState* __tstate = wxPyBeginAllowThreads();
936 result = (bool)(arg1)->GetVisible();
937
938 wxPyEndAllowThreads(__tstate);
939 if (PyErr_Occurred()) SWIG_fail;
940 }
941 {
942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
943 }
944 return resultobj;
945 fail:
946 return NULL;
947 }
948
949
950 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
951 PyObject *resultobj;
952 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
953 bool arg2 ;
954 PyObject * obj0 = 0 ;
955 PyObject * obj1 = 0 ;
956 char *kwnames[] = {
957 (char *) "self",(char *) "visible", NULL
958 };
959
960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
963 arg2 = (bool) SWIG_AsBool(obj1);
964 if (PyErr_Occurred()) SWIG_fail;
965 {
966 PyThreadState* __tstate = wxPyBeginAllowThreads();
967 (arg1)->SetVisible(arg2);
968
969 wxPyEndAllowThreads(__tstate);
970 if (PyErr_Occurred()) SWIG_fail;
971 }
972 Py_INCREF(Py_None); resultobj = Py_None;
973 return resultobj;
974 fail:
975 return NULL;
976 }
977
978
979 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
980 PyObject *resultobj;
981 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
982 bool result;
983 PyObject * obj0 = 0 ;
984 char *kwnames[] = {
985 (char *) "self", NULL
986 };
987
988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
991 {
992 PyThreadState* __tstate = wxPyBeginAllowThreads();
993 result = (bool)(arg1)->IsNull();
994
995 wxPyEndAllowThreads(__tstate);
996 if (PyErr_Occurred()) SWIG_fail;
997 }
998 {
999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1000 }
1001 return resultobj;
1002 fail:
1003 return NULL;
1004 }
1005
1006
1007 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1008 PyObject *obj;
1009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1010 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1011 Py_INCREF(obj);
1012 return Py_BuildValue((char *)"");
1013 }
1014 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1015 PyObject *resultobj;
1016 byte arg1 = (byte) 0 ;
1017 byte arg2 = (byte) 0 ;
1018 byte arg3 = (byte) 0 ;
1019 wxColour *result;
1020 PyObject * obj0 = 0 ;
1021 PyObject * obj1 = 0 ;
1022 PyObject * obj2 = 0 ;
1023 char *kwnames[] = {
1024 (char *) "red",(char *) "green",(char *) "blue", NULL
1025 };
1026
1027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1028 if (obj0) {
1029 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1030 if (PyErr_Occurred()) SWIG_fail;
1031 }
1032 if (obj1) {
1033 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1034 if (PyErr_Occurred()) SWIG_fail;
1035 }
1036 if (obj2) {
1037 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1038 if (PyErr_Occurred()) SWIG_fail;
1039 }
1040 {
1041 PyThreadState* __tstate = wxPyBeginAllowThreads();
1042 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1043
1044 wxPyEndAllowThreads(__tstate);
1045 if (PyErr_Occurred()) SWIG_fail;
1046 }
1047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1048 return resultobj;
1049 fail:
1050 return NULL;
1051 }
1052
1053
1054 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1055 PyObject *resultobj;
1056 wxString *arg1 = 0 ;
1057 wxColour *result;
1058 bool temp1 = False ;
1059 PyObject * obj0 = 0 ;
1060 char *kwnames[] = {
1061 (char *) "colorName", NULL
1062 };
1063
1064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1065 {
1066 arg1 = wxString_in_helper(obj0);
1067 if (arg1 == NULL) SWIG_fail;
1068 temp1 = True;
1069 }
1070 {
1071 PyThreadState* __tstate = wxPyBeginAllowThreads();
1072 result = (wxColour *)new wxColour((wxString const &)*arg1);
1073
1074 wxPyEndAllowThreads(__tstate);
1075 if (PyErr_Occurred()) SWIG_fail;
1076 }
1077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1078 {
1079 if (temp1)
1080 delete arg1;
1081 }
1082 return resultobj;
1083 fail:
1084 {
1085 if (temp1)
1086 delete arg1;
1087 }
1088 return NULL;
1089 }
1090
1091
1092 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1093 PyObject *resultobj;
1094 unsigned long arg1 ;
1095 wxColour *result;
1096 PyObject * obj0 = 0 ;
1097 char *kwnames[] = {
1098 (char *) "colRGB", NULL
1099 };
1100
1101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1102 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1103 if (PyErr_Occurred()) SWIG_fail;
1104 {
1105 PyThreadState* __tstate = wxPyBeginAllowThreads();
1106 result = (wxColour *)new wxColour(arg1);
1107
1108 wxPyEndAllowThreads(__tstate);
1109 if (PyErr_Occurred()) SWIG_fail;
1110 }
1111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1112 return resultobj;
1113 fail:
1114 return NULL;
1115 }
1116
1117
1118 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1119 PyObject *resultobj;
1120 wxColour *arg1 = (wxColour *) 0 ;
1121 PyObject * obj0 = 0 ;
1122 char *kwnames[] = {
1123 (char *) "self", NULL
1124 };
1125
1126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1129 {
1130 PyThreadState* __tstate = wxPyBeginAllowThreads();
1131 delete arg1;
1132
1133 wxPyEndAllowThreads(__tstate);
1134 if (PyErr_Occurred()) SWIG_fail;
1135 }
1136 Py_INCREF(Py_None); resultobj = Py_None;
1137 return resultobj;
1138 fail:
1139 return NULL;
1140 }
1141
1142
1143 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1144 PyObject *resultobj;
1145 wxColour *arg1 = (wxColour *) 0 ;
1146 byte result;
1147 PyObject * obj0 = 0 ;
1148 char *kwnames[] = {
1149 (char *) "self", NULL
1150 };
1151
1152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1155 {
1156 PyThreadState* __tstate = wxPyBeginAllowThreads();
1157 result = (byte)(arg1)->Red();
1158
1159 wxPyEndAllowThreads(__tstate);
1160 if (PyErr_Occurred()) SWIG_fail;
1161 }
1162 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1163 return resultobj;
1164 fail:
1165 return NULL;
1166 }
1167
1168
1169 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1170 PyObject *resultobj;
1171 wxColour *arg1 = (wxColour *) 0 ;
1172 byte result;
1173 PyObject * obj0 = 0 ;
1174 char *kwnames[] = {
1175 (char *) "self", NULL
1176 };
1177
1178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1181 {
1182 PyThreadState* __tstate = wxPyBeginAllowThreads();
1183 result = (byte)(arg1)->Green();
1184
1185 wxPyEndAllowThreads(__tstate);
1186 if (PyErr_Occurred()) SWIG_fail;
1187 }
1188 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1189 return resultobj;
1190 fail:
1191 return NULL;
1192 }
1193
1194
1195 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1196 PyObject *resultobj;
1197 wxColour *arg1 = (wxColour *) 0 ;
1198 byte result;
1199 PyObject * obj0 = 0 ;
1200 char *kwnames[] = {
1201 (char *) "self", NULL
1202 };
1203
1204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1207 {
1208 PyThreadState* __tstate = wxPyBeginAllowThreads();
1209 result = (byte)(arg1)->Blue();
1210
1211 wxPyEndAllowThreads(__tstate);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 }
1214 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1215 return resultobj;
1216 fail:
1217 return NULL;
1218 }
1219
1220
1221 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1222 PyObject *resultobj;
1223 wxColour *arg1 = (wxColour *) 0 ;
1224 bool result;
1225 PyObject * obj0 = 0 ;
1226 char *kwnames[] = {
1227 (char *) "self", NULL
1228 };
1229
1230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1233 {
1234 PyThreadState* __tstate = wxPyBeginAllowThreads();
1235 result = (bool)(arg1)->Ok();
1236
1237 wxPyEndAllowThreads(__tstate);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 }
1240 {
1241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1242 }
1243 return resultobj;
1244 fail:
1245 return NULL;
1246 }
1247
1248
1249 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1250 PyObject *resultobj;
1251 wxColour *arg1 = (wxColour *) 0 ;
1252 byte arg2 ;
1253 byte arg3 ;
1254 byte arg4 ;
1255 PyObject * obj0 = 0 ;
1256 PyObject * obj1 = 0 ;
1257 PyObject * obj2 = 0 ;
1258 PyObject * obj3 = 0 ;
1259 char *kwnames[] = {
1260 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1261 };
1262
1263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1266 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1267 if (PyErr_Occurred()) SWIG_fail;
1268 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1269 if (PyErr_Occurred()) SWIG_fail;
1270 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1271 if (PyErr_Occurred()) SWIG_fail;
1272 {
1273 PyThreadState* __tstate = wxPyBeginAllowThreads();
1274 (arg1)->Set(arg2,arg3,arg4);
1275
1276 wxPyEndAllowThreads(__tstate);
1277 if (PyErr_Occurred()) SWIG_fail;
1278 }
1279 Py_INCREF(Py_None); resultobj = Py_None;
1280 return resultobj;
1281 fail:
1282 return NULL;
1283 }
1284
1285
1286 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1287 PyObject *resultobj;
1288 wxColour *arg1 = (wxColour *) 0 ;
1289 unsigned long arg2 ;
1290 PyObject * obj0 = 0 ;
1291 PyObject * obj1 = 0 ;
1292 char *kwnames[] = {
1293 (char *) "self",(char *) "colRGB", NULL
1294 };
1295
1296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1299 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1300 if (PyErr_Occurred()) SWIG_fail;
1301 {
1302 PyThreadState* __tstate = wxPyBeginAllowThreads();
1303 (arg1)->Set(arg2);
1304
1305 wxPyEndAllowThreads(__tstate);
1306 if (PyErr_Occurred()) SWIG_fail;
1307 }
1308 Py_INCREF(Py_None); resultobj = Py_None;
1309 return resultobj;
1310 fail:
1311 return NULL;
1312 }
1313
1314
1315 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1316 PyObject *resultobj;
1317 wxColour *arg1 = (wxColour *) 0 ;
1318 wxString *arg2 = 0 ;
1319 bool temp2 = False ;
1320 PyObject * obj0 = 0 ;
1321 PyObject * obj1 = 0 ;
1322 char *kwnames[] = {
1323 (char *) "self",(char *) "colourName", NULL
1324 };
1325
1326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1329 {
1330 arg2 = wxString_in_helper(obj1);
1331 if (arg2 == NULL) SWIG_fail;
1332 temp2 = True;
1333 }
1334 {
1335 PyThreadState* __tstate = wxPyBeginAllowThreads();
1336 (arg1)->InitFromName((wxString const &)*arg2);
1337
1338 wxPyEndAllowThreads(__tstate);
1339 if (PyErr_Occurred()) SWIG_fail;
1340 }
1341 Py_INCREF(Py_None); resultobj = Py_None;
1342 {
1343 if (temp2)
1344 delete arg2;
1345 }
1346 return resultobj;
1347 fail:
1348 {
1349 if (temp2)
1350 delete arg2;
1351 }
1352 return NULL;
1353 }
1354
1355
1356 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1357 PyObject *resultobj;
1358 wxColour *arg1 = (wxColour *) 0 ;
1359 long result;
1360 PyObject * obj0 = 0 ;
1361 char *kwnames[] = {
1362 (char *) "self", NULL
1363 };
1364
1365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1368 {
1369 PyThreadState* __tstate = wxPyBeginAllowThreads();
1370 result = (long)((wxColour const *)arg1)->GetPixel();
1371
1372 wxPyEndAllowThreads(__tstate);
1373 if (PyErr_Occurred()) SWIG_fail;
1374 }
1375 resultobj = SWIG_FromLong((long)result);
1376 return resultobj;
1377 fail:
1378 return NULL;
1379 }
1380
1381
1382 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1383 PyObject *resultobj;
1384 wxColour *arg1 = (wxColour *) 0 ;
1385 wxColour *arg2 = 0 ;
1386 bool result;
1387 wxColour temp2 ;
1388 PyObject * obj0 = 0 ;
1389 PyObject * obj1 = 0 ;
1390 char *kwnames[] = {
1391 (char *) "self",(char *) "colour", NULL
1392 };
1393
1394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1397 {
1398 arg2 = &temp2;
1399 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1400 }
1401 {
1402 PyThreadState* __tstate = wxPyBeginAllowThreads();
1403 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1404
1405 wxPyEndAllowThreads(__tstate);
1406 if (PyErr_Occurred()) SWIG_fail;
1407 }
1408 {
1409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1410 }
1411 return resultobj;
1412 fail:
1413 return NULL;
1414 }
1415
1416
1417 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1418 PyObject *resultobj;
1419 wxColour *arg1 = (wxColour *) 0 ;
1420 wxColour *arg2 = 0 ;
1421 bool result;
1422 wxColour temp2 ;
1423 PyObject * obj0 = 0 ;
1424 PyObject * obj1 = 0 ;
1425 char *kwnames[] = {
1426 (char *) "self",(char *) "colour", NULL
1427 };
1428
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1432 {
1433 arg2 = &temp2;
1434 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1435 }
1436 {
1437 PyThreadState* __tstate = wxPyBeginAllowThreads();
1438 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1439
1440 wxPyEndAllowThreads(__tstate);
1441 if (PyErr_Occurred()) SWIG_fail;
1442 }
1443 {
1444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1445 }
1446 return resultobj;
1447 fail:
1448 return NULL;
1449 }
1450
1451
1452 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1453 PyObject *resultobj;
1454 wxColour *arg1 = (wxColour *) 0 ;
1455 PyObject *result;
1456 PyObject * obj0 = 0 ;
1457 char *kwnames[] = {
1458 (char *) "self", NULL
1459 };
1460
1461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1464 {
1465 PyThreadState* __tstate = wxPyBeginAllowThreads();
1466 result = (PyObject *)wxColour_Get(arg1);
1467
1468 wxPyEndAllowThreads(__tstate);
1469 if (PyErr_Occurred()) SWIG_fail;
1470 }
1471 resultobj = result;
1472 return resultobj;
1473 fail:
1474 return NULL;
1475 }
1476
1477
1478 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1479 PyObject *resultobj;
1480 wxColour *arg1 = (wxColour *) 0 ;
1481 unsigned long result;
1482 PyObject * obj0 = 0 ;
1483 char *kwnames[] = {
1484 (char *) "self", NULL
1485 };
1486
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1490 {
1491 PyThreadState* __tstate = wxPyBeginAllowThreads();
1492 result = (unsigned long)wxColour_GetRGB(arg1);
1493
1494 wxPyEndAllowThreads(__tstate);
1495 if (PyErr_Occurred()) SWIG_fail;
1496 }
1497 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1498 return resultobj;
1499 fail:
1500 return NULL;
1501 }
1502
1503
1504 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1505 PyObject *obj;
1506 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1507 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1508 Py_INCREF(obj);
1509 return Py_BuildValue((char *)"");
1510 }
1511 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1512 PyObject *resultobj;
1513 int arg1 ;
1514 unsigned char *arg2 = (unsigned char *) 0 ;
1515 unsigned char *arg3 = (unsigned char *) 0 ;
1516 unsigned char *arg4 = (unsigned char *) 0 ;
1517 wxPalette *result;
1518 PyObject * obj0 = 0 ;
1519 PyObject * obj1 = 0 ;
1520 PyObject * obj2 = 0 ;
1521 PyObject * obj3 = 0 ;
1522 char *kwnames[] = {
1523 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1524 };
1525
1526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1527 arg1 = (int) SWIG_AsInt(obj0);
1528 if (PyErr_Occurred()) SWIG_fail;
1529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1531 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1533 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1535 {
1536 PyThreadState* __tstate = wxPyBeginAllowThreads();
1537 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1538
1539 wxPyEndAllowThreads(__tstate);
1540 if (PyErr_Occurred()) SWIG_fail;
1541 }
1542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1543 return resultobj;
1544 fail:
1545 return NULL;
1546 }
1547
1548
1549 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1550 PyObject *resultobj;
1551 wxPalette *arg1 = (wxPalette *) 0 ;
1552 PyObject * obj0 = 0 ;
1553 char *kwnames[] = {
1554 (char *) "self", NULL
1555 };
1556
1557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1560 {
1561 PyThreadState* __tstate = wxPyBeginAllowThreads();
1562 delete arg1;
1563
1564 wxPyEndAllowThreads(__tstate);
1565 if (PyErr_Occurred()) SWIG_fail;
1566 }
1567 Py_INCREF(Py_None); resultobj = Py_None;
1568 return resultobj;
1569 fail:
1570 return NULL;
1571 }
1572
1573
1574 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1575 PyObject *resultobj;
1576 wxPalette *arg1 = (wxPalette *) 0 ;
1577 byte arg2 ;
1578 byte arg3 ;
1579 byte arg4 ;
1580 int result;
1581 PyObject * obj0 = 0 ;
1582 PyObject * obj1 = 0 ;
1583 PyObject * obj2 = 0 ;
1584 PyObject * obj3 = 0 ;
1585 char *kwnames[] = {
1586 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1587 };
1588
1589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1592 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1593 if (PyErr_Occurred()) SWIG_fail;
1594 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1595 if (PyErr_Occurred()) SWIG_fail;
1596 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1597 if (PyErr_Occurred()) SWIG_fail;
1598 {
1599 PyThreadState* __tstate = wxPyBeginAllowThreads();
1600 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1601
1602 wxPyEndAllowThreads(__tstate);
1603 if (PyErr_Occurred()) SWIG_fail;
1604 }
1605 resultobj = SWIG_FromInt((int)result);
1606 return resultobj;
1607 fail:
1608 return NULL;
1609 }
1610
1611
1612 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1613 PyObject *resultobj;
1614 wxPalette *arg1 = (wxPalette *) 0 ;
1615 int arg2 ;
1616 byte *arg3 = (byte *) 0 ;
1617 byte *arg4 = (byte *) 0 ;
1618 byte *arg5 = (byte *) 0 ;
1619 bool result;
1620 byte temp3 ;
1621 byte temp4 ;
1622 byte temp5 ;
1623 PyObject * obj0 = 0 ;
1624 PyObject * obj1 = 0 ;
1625 char *kwnames[] = {
1626 (char *) "self",(char *) "pixel", NULL
1627 };
1628
1629 arg3 = &temp3;
1630 arg4 = &temp4;
1631 arg5 = &temp5;
1632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1635 arg2 = (int) SWIG_AsInt(obj1);
1636 if (PyErr_Occurred()) SWIG_fail;
1637 {
1638 PyThreadState* __tstate = wxPyBeginAllowThreads();
1639 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1640
1641 wxPyEndAllowThreads(__tstate);
1642 if (PyErr_Occurred()) SWIG_fail;
1643 }
1644 {
1645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1646 }
1647 {
1648 PyObject *o = PyInt_FromLong((long) (*arg3));
1649 resultobj = t_output_helper(resultobj,o);
1650 }
1651 {
1652 PyObject *o = PyInt_FromLong((long) (*arg4));
1653 resultobj = t_output_helper(resultobj,o);
1654 }
1655 {
1656 PyObject *o = PyInt_FromLong((long) (*arg5));
1657 resultobj = t_output_helper(resultobj,o);
1658 }
1659 return resultobj;
1660 fail:
1661 return NULL;
1662 }
1663
1664
1665 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1666 PyObject *resultobj;
1667 wxPalette *arg1 = (wxPalette *) 0 ;
1668 bool result;
1669 PyObject * obj0 = 0 ;
1670 char *kwnames[] = {
1671 (char *) "self", NULL
1672 };
1673
1674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1677 {
1678 PyThreadState* __tstate = wxPyBeginAllowThreads();
1679 result = (bool)(arg1)->Ok();
1680
1681 wxPyEndAllowThreads(__tstate);
1682 if (PyErr_Occurred()) SWIG_fail;
1683 }
1684 {
1685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1686 }
1687 return resultobj;
1688 fail:
1689 return NULL;
1690 }
1691
1692
1693 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1694 PyObject *obj;
1695 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1696 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1697 Py_INCREF(obj);
1698 return Py_BuildValue((char *)"");
1699 }
1700 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1701 PyObject *resultobj;
1702 wxColour *arg1 = 0 ;
1703 int arg2 = (int) 1 ;
1704 int arg3 = (int) wxSOLID ;
1705 wxPen *result;
1706 wxColour temp1 ;
1707 PyObject * obj0 = 0 ;
1708 PyObject * obj1 = 0 ;
1709 PyObject * obj2 = 0 ;
1710 char *kwnames[] = {
1711 (char *) "colour",(char *) "width",(char *) "style", NULL
1712 };
1713
1714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1715 {
1716 arg1 = &temp1;
1717 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1718 }
1719 if (obj1) {
1720 arg2 = (int) SWIG_AsInt(obj1);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 }
1723 if (obj2) {
1724 arg3 = (int) SWIG_AsInt(obj2);
1725 if (PyErr_Occurred()) SWIG_fail;
1726 }
1727 {
1728 PyThreadState* __tstate = wxPyBeginAllowThreads();
1729 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1730
1731 wxPyEndAllowThreads(__tstate);
1732 if (PyErr_Occurred()) SWIG_fail;
1733 }
1734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1735 return resultobj;
1736 fail:
1737 return NULL;
1738 }
1739
1740
1741 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1742 PyObject *resultobj;
1743 wxPen *arg1 = (wxPen *) 0 ;
1744 PyObject * obj0 = 0 ;
1745 char *kwnames[] = {
1746 (char *) "self", NULL
1747 };
1748
1749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1752 {
1753 PyThreadState* __tstate = wxPyBeginAllowThreads();
1754 delete arg1;
1755
1756 wxPyEndAllowThreads(__tstate);
1757 if (PyErr_Occurred()) SWIG_fail;
1758 }
1759 Py_INCREF(Py_None); resultobj = Py_None;
1760 return resultobj;
1761 fail:
1762 return NULL;
1763 }
1764
1765
1766 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1767 PyObject *resultobj;
1768 wxPen *arg1 = (wxPen *) 0 ;
1769 int result;
1770 PyObject * obj0 = 0 ;
1771 char *kwnames[] = {
1772 (char *) "self", NULL
1773 };
1774
1775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1778 {
1779 PyThreadState* __tstate = wxPyBeginAllowThreads();
1780 result = (int)(arg1)->GetCap();
1781
1782 wxPyEndAllowThreads(__tstate);
1783 if (PyErr_Occurred()) SWIG_fail;
1784 }
1785 resultobj = SWIG_FromInt((int)result);
1786 return resultobj;
1787 fail:
1788 return NULL;
1789 }
1790
1791
1792 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1793 PyObject *resultobj;
1794 wxPen *arg1 = (wxPen *) 0 ;
1795 wxColour result;
1796 PyObject * obj0 = 0 ;
1797 char *kwnames[] = {
1798 (char *) "self", NULL
1799 };
1800
1801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1804 {
1805 PyThreadState* __tstate = wxPyBeginAllowThreads();
1806 result = (arg1)->GetColour();
1807
1808 wxPyEndAllowThreads(__tstate);
1809 if (PyErr_Occurred()) SWIG_fail;
1810 }
1811 {
1812 wxColour * resultptr;
1813 resultptr = new wxColour((wxColour &) result);
1814 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1815 }
1816 return resultobj;
1817 fail:
1818 return NULL;
1819 }
1820
1821
1822 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1823 PyObject *resultobj;
1824 wxPen *arg1 = (wxPen *) 0 ;
1825 int result;
1826 PyObject * obj0 = 0 ;
1827 char *kwnames[] = {
1828 (char *) "self", NULL
1829 };
1830
1831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1834 {
1835 PyThreadState* __tstate = wxPyBeginAllowThreads();
1836 result = (int)(arg1)->GetJoin();
1837
1838 wxPyEndAllowThreads(__tstate);
1839 if (PyErr_Occurred()) SWIG_fail;
1840 }
1841 resultobj = SWIG_FromInt((int)result);
1842 return resultobj;
1843 fail:
1844 return NULL;
1845 }
1846
1847
1848 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1849 PyObject *resultobj;
1850 wxPen *arg1 = (wxPen *) 0 ;
1851 int result;
1852 PyObject * obj0 = 0 ;
1853 char *kwnames[] = {
1854 (char *) "self", NULL
1855 };
1856
1857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1860 {
1861 PyThreadState* __tstate = wxPyBeginAllowThreads();
1862 result = (int)(arg1)->GetStyle();
1863
1864 wxPyEndAllowThreads(__tstate);
1865 if (PyErr_Occurred()) SWIG_fail;
1866 }
1867 resultobj = SWIG_FromInt((int)result);
1868 return resultobj;
1869 fail:
1870 return NULL;
1871 }
1872
1873
1874 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1875 PyObject *resultobj;
1876 wxPen *arg1 = (wxPen *) 0 ;
1877 int result;
1878 PyObject * obj0 = 0 ;
1879 char *kwnames[] = {
1880 (char *) "self", NULL
1881 };
1882
1883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1886 {
1887 PyThreadState* __tstate = wxPyBeginAllowThreads();
1888 result = (int)(arg1)->GetWidth();
1889
1890 wxPyEndAllowThreads(__tstate);
1891 if (PyErr_Occurred()) SWIG_fail;
1892 }
1893 resultobj = SWIG_FromInt((int)result);
1894 return resultobj;
1895 fail:
1896 return NULL;
1897 }
1898
1899
1900 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1901 PyObject *resultobj;
1902 wxPen *arg1 = (wxPen *) 0 ;
1903 bool result;
1904 PyObject * obj0 = 0 ;
1905 char *kwnames[] = {
1906 (char *) "self", NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1912 {
1913 PyThreadState* __tstate = wxPyBeginAllowThreads();
1914 result = (bool)(arg1)->Ok();
1915
1916 wxPyEndAllowThreads(__tstate);
1917 if (PyErr_Occurred()) SWIG_fail;
1918 }
1919 {
1920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1921 }
1922 return resultobj;
1923 fail:
1924 return NULL;
1925 }
1926
1927
1928 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1929 PyObject *resultobj;
1930 wxPen *arg1 = (wxPen *) 0 ;
1931 int arg2 ;
1932 PyObject * obj0 = 0 ;
1933 PyObject * obj1 = 0 ;
1934 char *kwnames[] = {
1935 (char *) "self",(char *) "cap_style", NULL
1936 };
1937
1938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1941 arg2 = (int) SWIG_AsInt(obj1);
1942 if (PyErr_Occurred()) SWIG_fail;
1943 {
1944 PyThreadState* __tstate = wxPyBeginAllowThreads();
1945 (arg1)->SetCap(arg2);
1946
1947 wxPyEndAllowThreads(__tstate);
1948 if (PyErr_Occurred()) SWIG_fail;
1949 }
1950 Py_INCREF(Py_None); resultobj = Py_None;
1951 return resultobj;
1952 fail:
1953 return NULL;
1954 }
1955
1956
1957 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxPen *arg1 = (wxPen *) 0 ;
1960 wxColour *arg2 = 0 ;
1961 wxColour temp2 ;
1962 PyObject * obj0 = 0 ;
1963 PyObject * obj1 = 0 ;
1964 char *kwnames[] = {
1965 (char *) "self",(char *) "colour", NULL
1966 };
1967
1968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1971 {
1972 arg2 = &temp2;
1973 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1974 }
1975 {
1976 PyThreadState* __tstate = wxPyBeginAllowThreads();
1977 (arg1)->SetColour(*arg2);
1978
1979 wxPyEndAllowThreads(__tstate);
1980 if (PyErr_Occurred()) SWIG_fail;
1981 }
1982 Py_INCREF(Py_None); resultobj = Py_None;
1983 return resultobj;
1984 fail:
1985 return NULL;
1986 }
1987
1988
1989 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1990 PyObject *resultobj;
1991 wxPen *arg1 = (wxPen *) 0 ;
1992 int arg2 ;
1993 PyObject * obj0 = 0 ;
1994 PyObject * obj1 = 0 ;
1995 char *kwnames[] = {
1996 (char *) "self",(char *) "join_style", NULL
1997 };
1998
1999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2002 arg2 = (int) SWIG_AsInt(obj1);
2003 if (PyErr_Occurred()) SWIG_fail;
2004 {
2005 PyThreadState* __tstate = wxPyBeginAllowThreads();
2006 (arg1)->SetJoin(arg2);
2007
2008 wxPyEndAllowThreads(__tstate);
2009 if (PyErr_Occurred()) SWIG_fail;
2010 }
2011 Py_INCREF(Py_None); resultobj = Py_None;
2012 return resultobj;
2013 fail:
2014 return NULL;
2015 }
2016
2017
2018 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2019 PyObject *resultobj;
2020 wxPen *arg1 = (wxPen *) 0 ;
2021 int arg2 ;
2022 PyObject * obj0 = 0 ;
2023 PyObject * obj1 = 0 ;
2024 char *kwnames[] = {
2025 (char *) "self",(char *) "style", NULL
2026 };
2027
2028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2031 arg2 = (int) SWIG_AsInt(obj1);
2032 if (PyErr_Occurred()) SWIG_fail;
2033 {
2034 PyThreadState* __tstate = wxPyBeginAllowThreads();
2035 (arg1)->SetStyle(arg2);
2036
2037 wxPyEndAllowThreads(__tstate);
2038 if (PyErr_Occurred()) SWIG_fail;
2039 }
2040 Py_INCREF(Py_None); resultobj = Py_None;
2041 return resultobj;
2042 fail:
2043 return NULL;
2044 }
2045
2046
2047 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2048 PyObject *resultobj;
2049 wxPen *arg1 = (wxPen *) 0 ;
2050 int arg2 ;
2051 PyObject * obj0 = 0 ;
2052 PyObject * obj1 = 0 ;
2053 char *kwnames[] = {
2054 (char *) "self",(char *) "width", NULL
2055 };
2056
2057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2060 arg2 = (int) SWIG_AsInt(obj1);
2061 if (PyErr_Occurred()) SWIG_fail;
2062 {
2063 PyThreadState* __tstate = wxPyBeginAllowThreads();
2064 (arg1)->SetWidth(arg2);
2065
2066 wxPyEndAllowThreads(__tstate);
2067 if (PyErr_Occurred()) SWIG_fail;
2068 }
2069 Py_INCREF(Py_None); resultobj = Py_None;
2070 return resultobj;
2071 fail:
2072 return NULL;
2073 }
2074
2075
2076 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2077 PyObject *resultobj;
2078 wxPen *arg1 = (wxPen *) 0 ;
2079 int arg2 ;
2080 wxDash *arg3 = (wxDash *) 0 ;
2081 PyObject * obj0 = 0 ;
2082 PyObject * obj1 = 0 ;
2083 char *kwnames[] = {
2084 (char *) "self",(char *) "dashes", NULL
2085 };
2086
2087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2090 {
2091 arg2 = PyList_Size(obj1);
2092 arg3 = (wxDash*)byte_LIST_helper(obj1);
2093 if (arg3 == NULL) SWIG_fail;
2094 }
2095 {
2096 PyThreadState* __tstate = wxPyBeginAllowThreads();
2097 (arg1)->SetDashes(arg2,arg3);
2098
2099 wxPyEndAllowThreads(__tstate);
2100 if (PyErr_Occurred()) SWIG_fail;
2101 }
2102 Py_INCREF(Py_None); resultobj = Py_None;
2103 {
2104 if (arg3) delete [] arg3;
2105 }
2106 return resultobj;
2107 fail:
2108 {
2109 if (arg3) delete [] arg3;
2110 }
2111 return NULL;
2112 }
2113
2114
2115 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2116 PyObject *resultobj;
2117 wxPen *arg1 = (wxPen *) 0 ;
2118 PyObject *result;
2119 PyObject * obj0 = 0 ;
2120 char *kwnames[] = {
2121 (char *) "self", NULL
2122 };
2123
2124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2127 {
2128 PyThreadState* __tstate = wxPyBeginAllowThreads();
2129 result = (PyObject *)wxPen_GetDashes(arg1);
2130
2131 wxPyEndAllowThreads(__tstate);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 }
2134 resultobj = result;
2135 return resultobj;
2136 fail:
2137 return NULL;
2138 }
2139
2140
2141 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2142 PyObject *resultobj;
2143 wxPen *arg1 = (wxPen *) 0 ;
2144 PyObject *arg2 = (PyObject *) 0 ;
2145 PyObject *arg3 = (PyObject *) 0 ;
2146 PyObject * obj0 = 0 ;
2147 PyObject * obj1 = 0 ;
2148 PyObject * obj2 = 0 ;
2149 char *kwnames[] = {
2150 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2156 arg2 = obj1;
2157 arg3 = obj2;
2158 {
2159 PyThreadState* __tstate = wxPyBeginAllowThreads();
2160 wxPen__SetDashes(arg1,arg2,arg3);
2161
2162 wxPyEndAllowThreads(__tstate);
2163 if (PyErr_Occurred()) SWIG_fail;
2164 }
2165 Py_INCREF(Py_None); resultobj = Py_None;
2166 return resultobj;
2167 fail:
2168 return NULL;
2169 }
2170
2171
2172 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2173 PyObject *resultobj;
2174 wxPen *arg1 = (wxPen *) 0 ;
2175 int result;
2176 PyObject * obj0 = 0 ;
2177 char *kwnames[] = {
2178 (char *) "self", NULL
2179 };
2180
2181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2184 {
2185 PyThreadState* __tstate = wxPyBeginAllowThreads();
2186 result = (int)((wxPen const *)arg1)->GetDashCount();
2187
2188 wxPyEndAllowThreads(__tstate);
2189 if (PyErr_Occurred()) SWIG_fail;
2190 }
2191 resultobj = SWIG_FromInt((int)result);
2192 return resultobj;
2193 fail:
2194 return NULL;
2195 }
2196
2197
2198 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2199 PyObject *resultobj;
2200 wxPen *arg1 = (wxPen *) 0 ;
2201 wxBitmap *result;
2202 PyObject * obj0 = 0 ;
2203 char *kwnames[] = {
2204 (char *) "self", NULL
2205 };
2206
2207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2210 {
2211 PyThreadState* __tstate = wxPyBeginAllowThreads();
2212 result = (wxBitmap *)(arg1)->GetStipple();
2213
2214 wxPyEndAllowThreads(__tstate);
2215 if (PyErr_Occurred()) SWIG_fail;
2216 }
2217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2218 return resultobj;
2219 fail:
2220 return NULL;
2221 }
2222
2223
2224 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2225 PyObject *resultobj;
2226 wxPen *arg1 = (wxPen *) 0 ;
2227 wxBitmap *arg2 = 0 ;
2228 PyObject * obj0 = 0 ;
2229 PyObject * obj1 = 0 ;
2230 char *kwnames[] = {
2231 (char *) "self",(char *) "stipple", NULL
2232 };
2233
2234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2238 SWIG_POINTER_EXCEPTION | 0)) == -1)
2239 SWIG_fail;
2240 if (arg2 == NULL) {
2241 PyErr_SetString(PyExc_TypeError,"null reference");
2242 SWIG_fail;
2243 }
2244 {
2245 PyThreadState* __tstate = wxPyBeginAllowThreads();
2246 (arg1)->SetStipple(*arg2);
2247
2248 wxPyEndAllowThreads(__tstate);
2249 if (PyErr_Occurred()) SWIG_fail;
2250 }
2251 Py_INCREF(Py_None); resultobj = Py_None;
2252 return resultobj;
2253 fail:
2254 return NULL;
2255 }
2256
2257
2258 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2259 PyObject *resultobj;
2260 wxPen *arg1 = (wxPen *) 0 ;
2261 wxPen *arg2 = (wxPen *) 0 ;
2262 bool result;
2263 PyObject * obj0 = 0 ;
2264 PyObject * obj1 = 0 ;
2265 char *kwnames[] = {
2266 (char *) "self",(char *) "other", NULL
2267 };
2268
2269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2274 {
2275 PyThreadState* __tstate = wxPyBeginAllowThreads();
2276 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2277
2278 wxPyEndAllowThreads(__tstate);
2279 if (PyErr_Occurred()) SWIG_fail;
2280 }
2281 {
2282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2283 }
2284 return resultobj;
2285 fail:
2286 return NULL;
2287 }
2288
2289
2290 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject *resultobj;
2292 wxPen *arg1 = (wxPen *) 0 ;
2293 wxPen *arg2 = (wxPen *) 0 ;
2294 bool result;
2295 PyObject * obj0 = 0 ;
2296 PyObject * obj1 = 0 ;
2297 char *kwnames[] = {
2298 (char *) "self",(char *) "other", NULL
2299 };
2300
2301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2304 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2306 {
2307 PyThreadState* __tstate = wxPyBeginAllowThreads();
2308 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2309
2310 wxPyEndAllowThreads(__tstate);
2311 if (PyErr_Occurred()) SWIG_fail;
2312 }
2313 {
2314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2315 }
2316 return resultobj;
2317 fail:
2318 return NULL;
2319 }
2320
2321
2322 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2323 PyObject *obj;
2324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2325 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2326 Py_INCREF(obj);
2327 return Py_BuildValue((char *)"");
2328 }
2329 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2330 PyObject *resultobj;
2331 wxColour *arg1 = 0 ;
2332 int arg2 = (int) wxSOLID ;
2333 wxBrush *result;
2334 wxColour temp1 ;
2335 PyObject * obj0 = 0 ;
2336 PyObject * obj1 = 0 ;
2337 char *kwnames[] = {
2338 (char *) "colour",(char *) "style", NULL
2339 };
2340
2341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2342 {
2343 arg1 = &temp1;
2344 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2345 }
2346 if (obj1) {
2347 arg2 = (int) SWIG_AsInt(obj1);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 }
2350 {
2351 PyThreadState* __tstate = wxPyBeginAllowThreads();
2352 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2353
2354 wxPyEndAllowThreads(__tstate);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2358 return resultobj;
2359 fail:
2360 return NULL;
2361 }
2362
2363
2364 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2365 PyObject *resultobj;
2366 wxBrush *arg1 = (wxBrush *) 0 ;
2367 PyObject * obj0 = 0 ;
2368 char *kwnames[] = {
2369 (char *) "self", NULL
2370 };
2371
2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2375 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 delete arg1;
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) SWIG_fail;
2381 }
2382 Py_INCREF(Py_None); resultobj = Py_None;
2383 return resultobj;
2384 fail:
2385 return NULL;
2386 }
2387
2388
2389 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2390 PyObject *resultobj;
2391 wxBrush *arg1 = (wxBrush *) 0 ;
2392 wxColour *arg2 = 0 ;
2393 wxColour temp2 ;
2394 PyObject * obj0 = 0 ;
2395 PyObject * obj1 = 0 ;
2396 char *kwnames[] = {
2397 (char *) "self",(char *) "col", NULL
2398 };
2399
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2403 {
2404 arg2 = &temp2;
2405 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2406 }
2407 {
2408 PyThreadState* __tstate = wxPyBeginAllowThreads();
2409 (arg1)->SetColour((wxColour const &)*arg2);
2410
2411 wxPyEndAllowThreads(__tstate);
2412 if (PyErr_Occurred()) SWIG_fail;
2413 }
2414 Py_INCREF(Py_None); resultobj = Py_None;
2415 return resultobj;
2416 fail:
2417 return NULL;
2418 }
2419
2420
2421 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2422 PyObject *resultobj;
2423 wxBrush *arg1 = (wxBrush *) 0 ;
2424 int arg2 ;
2425 PyObject * obj0 = 0 ;
2426 PyObject * obj1 = 0 ;
2427 char *kwnames[] = {
2428 (char *) "self",(char *) "style", NULL
2429 };
2430
2431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2434 arg2 = (int) SWIG_AsInt(obj1);
2435 if (PyErr_Occurred()) SWIG_fail;
2436 {
2437 PyThreadState* __tstate = wxPyBeginAllowThreads();
2438 (arg1)->SetStyle(arg2);
2439
2440 wxPyEndAllowThreads(__tstate);
2441 if (PyErr_Occurred()) SWIG_fail;
2442 }
2443 Py_INCREF(Py_None); resultobj = Py_None;
2444 return resultobj;
2445 fail:
2446 return NULL;
2447 }
2448
2449
2450 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2451 PyObject *resultobj;
2452 wxBrush *arg1 = (wxBrush *) 0 ;
2453 wxBitmap *arg2 = 0 ;
2454 PyObject * obj0 = 0 ;
2455 PyObject * obj1 = 0 ;
2456 char *kwnames[] = {
2457 (char *) "self",(char *) "stipple", NULL
2458 };
2459
2460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2464 SWIG_POINTER_EXCEPTION | 0)) == -1)
2465 SWIG_fail;
2466 if (arg2 == NULL) {
2467 PyErr_SetString(PyExc_TypeError,"null reference");
2468 SWIG_fail;
2469 }
2470 {
2471 PyThreadState* __tstate = wxPyBeginAllowThreads();
2472 (arg1)->SetStipple((wxBitmap const &)*arg2);
2473
2474 wxPyEndAllowThreads(__tstate);
2475 if (PyErr_Occurred()) SWIG_fail;
2476 }
2477 Py_INCREF(Py_None); resultobj = Py_None;
2478 return resultobj;
2479 fail:
2480 return NULL;
2481 }
2482
2483
2484 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2485 PyObject *resultobj;
2486 wxBrush *arg1 = (wxBrush *) 0 ;
2487 wxColour result;
2488 PyObject * obj0 = 0 ;
2489 char *kwnames[] = {
2490 (char *) "self", NULL
2491 };
2492
2493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2496 {
2497 PyThreadState* __tstate = wxPyBeginAllowThreads();
2498 result = ((wxBrush const *)arg1)->GetColour();
2499
2500 wxPyEndAllowThreads(__tstate);
2501 if (PyErr_Occurred()) SWIG_fail;
2502 }
2503 {
2504 wxColour * resultptr;
2505 resultptr = new wxColour((wxColour &) result);
2506 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2507 }
2508 return resultobj;
2509 fail:
2510 return NULL;
2511 }
2512
2513
2514 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2515 PyObject *resultobj;
2516 wxBrush *arg1 = (wxBrush *) 0 ;
2517 int result;
2518 PyObject * obj0 = 0 ;
2519 char *kwnames[] = {
2520 (char *) "self", NULL
2521 };
2522
2523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2526 {
2527 PyThreadState* __tstate = wxPyBeginAllowThreads();
2528 result = (int)((wxBrush const *)arg1)->GetStyle();
2529
2530 wxPyEndAllowThreads(__tstate);
2531 if (PyErr_Occurred()) SWIG_fail;
2532 }
2533 resultobj = SWIG_FromInt((int)result);
2534 return resultobj;
2535 fail:
2536 return NULL;
2537 }
2538
2539
2540 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2541 PyObject *resultobj;
2542 wxBrush *arg1 = (wxBrush *) 0 ;
2543 wxBitmap *result;
2544 PyObject * obj0 = 0 ;
2545 char *kwnames[] = {
2546 (char *) "self", NULL
2547 };
2548
2549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2552 {
2553 PyThreadState* __tstate = wxPyBeginAllowThreads();
2554 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2555
2556 wxPyEndAllowThreads(__tstate);
2557 if (PyErr_Occurred()) SWIG_fail;
2558 }
2559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2560 return resultobj;
2561 fail:
2562 return NULL;
2563 }
2564
2565
2566 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2567 PyObject *resultobj;
2568 wxBrush *arg1 = (wxBrush *) 0 ;
2569 bool result;
2570 PyObject * obj0 = 0 ;
2571 char *kwnames[] = {
2572 (char *) "self", NULL
2573 };
2574
2575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2578 {
2579 PyThreadState* __tstate = wxPyBeginAllowThreads();
2580 result = (bool)(arg1)->Ok();
2581
2582 wxPyEndAllowThreads(__tstate);
2583 if (PyErr_Occurred()) SWIG_fail;
2584 }
2585 {
2586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2587 }
2588 return resultobj;
2589 fail:
2590 return NULL;
2591 }
2592
2593
2594 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2595 PyObject *obj;
2596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2597 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2598 Py_INCREF(obj);
2599 return Py_BuildValue((char *)"");
2600 }
2601 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2602 PyObject *resultobj;
2603 wxString *arg1 = 0 ;
2604 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2605 wxBitmap *result;
2606 bool temp1 = False ;
2607 PyObject * obj0 = 0 ;
2608 PyObject * obj1 = 0 ;
2609 char *kwnames[] = {
2610 (char *) "name",(char *) "type", NULL
2611 };
2612
2613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2614 {
2615 arg1 = wxString_in_helper(obj0);
2616 if (arg1 == NULL) SWIG_fail;
2617 temp1 = True;
2618 }
2619 if (obj1) {
2620 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2621 if (PyErr_Occurred()) SWIG_fail;
2622 }
2623 {
2624 PyThreadState* __tstate = wxPyBeginAllowThreads();
2625 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2626
2627 wxPyEndAllowThreads(__tstate);
2628 if (PyErr_Occurred()) SWIG_fail;
2629 }
2630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2631 {
2632 if (temp1)
2633 delete arg1;
2634 }
2635 return resultobj;
2636 fail:
2637 {
2638 if (temp1)
2639 delete arg1;
2640 }
2641 return NULL;
2642 }
2643
2644
2645 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2646 PyObject *resultobj;
2647 wxBitmap *arg1 = (wxBitmap *) 0 ;
2648 PyObject * obj0 = 0 ;
2649 char *kwnames[] = {
2650 (char *) "self", NULL
2651 };
2652
2653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2656 {
2657 PyThreadState* __tstate = wxPyBeginAllowThreads();
2658 delete arg1;
2659
2660 wxPyEndAllowThreads(__tstate);
2661 if (PyErr_Occurred()) SWIG_fail;
2662 }
2663 Py_INCREF(Py_None); resultobj = Py_None;
2664 return resultobj;
2665 fail:
2666 return NULL;
2667 }
2668
2669
2670 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2671 PyObject *resultobj;
2672 int arg1 ;
2673 int arg2 ;
2674 int arg3 = (int) -1 ;
2675 wxBitmap *result;
2676 PyObject * obj0 = 0 ;
2677 PyObject * obj1 = 0 ;
2678 PyObject * obj2 = 0 ;
2679 char *kwnames[] = {
2680 (char *) "width",(char *) "height",(char *) "depth", NULL
2681 };
2682
2683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2684 arg1 = (int) SWIG_AsInt(obj0);
2685 if (PyErr_Occurred()) SWIG_fail;
2686 arg2 = (int) SWIG_AsInt(obj1);
2687 if (PyErr_Occurred()) SWIG_fail;
2688 if (obj2) {
2689 arg3 = (int) SWIG_AsInt(obj2);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 {
2693 PyThreadState* __tstate = wxPyBeginAllowThreads();
2694 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2695
2696 wxPyEndAllowThreads(__tstate);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 }
2699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2700 return resultobj;
2701 fail:
2702 return NULL;
2703 }
2704
2705
2706 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2707 PyObject *resultobj;
2708 wxIcon *arg1 = 0 ;
2709 wxBitmap *result;
2710 PyObject * obj0 = 0 ;
2711 char *kwnames[] = {
2712 (char *) "icon", NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2717 SWIG_POINTER_EXCEPTION | 0)) == -1)
2718 SWIG_fail;
2719 if (arg1 == NULL) {
2720 PyErr_SetString(PyExc_TypeError,"null reference");
2721 SWIG_fail;
2722 }
2723 {
2724 PyThreadState* __tstate = wxPyBeginAllowThreads();
2725 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2726
2727 wxPyEndAllowThreads(__tstate);
2728 if (PyErr_Occurred()) SWIG_fail;
2729 }
2730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2731 return resultobj;
2732 fail:
2733 return NULL;
2734 }
2735
2736
2737 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2738 PyObject *resultobj;
2739 wxImage *arg1 = 0 ;
2740 int arg2 = (int) -1 ;
2741 wxBitmap *result;
2742 PyObject * obj0 = 0 ;
2743 PyObject * obj1 = 0 ;
2744 char *kwnames[] = {
2745 (char *) "image",(char *) "depth", NULL
2746 };
2747
2748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2750 SWIG_POINTER_EXCEPTION | 0)) == -1)
2751 SWIG_fail;
2752 if (arg1 == NULL) {
2753 PyErr_SetString(PyExc_TypeError,"null reference");
2754 SWIG_fail;
2755 }
2756 if (obj1) {
2757 arg2 = (int) SWIG_AsInt(obj1);
2758 if (PyErr_Occurred()) SWIG_fail;
2759 }
2760 {
2761 PyThreadState* __tstate = wxPyBeginAllowThreads();
2762 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2763
2764 wxPyEndAllowThreads(__tstate);
2765 if (PyErr_Occurred()) SWIG_fail;
2766 }
2767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2768 return resultobj;
2769 fail:
2770 return NULL;
2771 }
2772
2773
2774 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2775 PyObject *resultobj;
2776 PyObject *arg1 = (PyObject *) 0 ;
2777 wxBitmap *result;
2778 PyObject * obj0 = 0 ;
2779 char *kwnames[] = {
2780 (char *) "listOfStrings", NULL
2781 };
2782
2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2784 arg1 = obj0;
2785 {
2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
2787 result = (wxBitmap *)new_wxBitmap(arg1);
2788
2789 wxPyEndAllowThreads(__tstate);
2790 if (PyErr_Occurred()) SWIG_fail;
2791 }
2792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2793 return resultobj;
2794 fail:
2795 return NULL;
2796 }
2797
2798
2799 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2800 PyObject *resultobj;
2801 PyObject *arg1 = (PyObject *) 0 ;
2802 int arg2 ;
2803 int arg3 ;
2804 int arg4 = (int) 1 ;
2805 wxBitmap *result;
2806 PyObject * obj0 = 0 ;
2807 PyObject * obj1 = 0 ;
2808 PyObject * obj2 = 0 ;
2809 PyObject * obj3 = 0 ;
2810 char *kwnames[] = {
2811 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2812 };
2813
2814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2815 arg1 = obj0;
2816 arg2 = (int) SWIG_AsInt(obj1);
2817 if (PyErr_Occurred()) SWIG_fail;
2818 arg3 = (int) SWIG_AsInt(obj2);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 if (obj3) {
2821 arg4 = (int) SWIG_AsInt(obj3);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 }
2824 {
2825 PyThreadState* __tstate = wxPyBeginAllowThreads();
2826 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2827
2828 wxPyEndAllowThreads(__tstate);
2829 if (PyErr_Occurred()) SWIG_fail;
2830 }
2831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2832 return resultobj;
2833 fail:
2834 return NULL;
2835 }
2836
2837
2838 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2839 PyObject *resultobj;
2840 wxBitmap *arg1 = (wxBitmap *) 0 ;
2841 wxPalette *arg2 = 0 ;
2842 PyObject * obj0 = 0 ;
2843 PyObject * obj1 = 0 ;
2844 char *kwnames[] = {
2845 (char *) "self",(char *) "palette", NULL
2846 };
2847
2848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2851 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2852 SWIG_POINTER_EXCEPTION | 0)) == -1)
2853 SWIG_fail;
2854 if (arg2 == NULL) {
2855 PyErr_SetString(PyExc_TypeError,"null reference");
2856 SWIG_fail;
2857 }
2858 {
2859 PyThreadState* __tstate = wxPyBeginAllowThreads();
2860 (arg1)->SetPalette(*arg2);
2861
2862 wxPyEndAllowThreads(__tstate);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 Py_INCREF(Py_None); resultobj = Py_None;
2866 return resultobj;
2867 fail:
2868 return NULL;
2869 }
2870
2871
2872 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2873 PyObject *resultobj;
2874 wxBitmap *arg1 = (wxBitmap *) 0 ;
2875 long result;
2876 PyObject * obj0 = 0 ;
2877 char *kwnames[] = {
2878 (char *) "self", NULL
2879 };
2880
2881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2884 {
2885 PyThreadState* __tstate = wxPyBeginAllowThreads();
2886 result = (long)(arg1)->GetHandle();
2887
2888 wxPyEndAllowThreads(__tstate);
2889 if (PyErr_Occurred()) SWIG_fail;
2890 }
2891 resultobj = SWIG_FromLong((long)result);
2892 return resultobj;
2893 fail:
2894 return NULL;
2895 }
2896
2897
2898 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2899 PyObject *resultobj;
2900 wxBitmap *arg1 = (wxBitmap *) 0 ;
2901 long arg2 ;
2902 PyObject * obj0 = 0 ;
2903 PyObject * obj1 = 0 ;
2904 char *kwnames[] = {
2905 (char *) "self",(char *) "handle", NULL
2906 };
2907
2908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2911 arg2 = (long) SWIG_AsLong(obj1);
2912 if (PyErr_Occurred()) SWIG_fail;
2913 {
2914 PyThreadState* __tstate = wxPyBeginAllowThreads();
2915 wxBitmap_SetHandle(arg1,arg2);
2916
2917 wxPyEndAllowThreads(__tstate);
2918 if (PyErr_Occurred()) SWIG_fail;
2919 }
2920 Py_INCREF(Py_None); resultobj = Py_None;
2921 return resultobj;
2922 fail:
2923 return NULL;
2924 }
2925
2926
2927 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2928 PyObject *resultobj;
2929 wxBitmap *arg1 = (wxBitmap *) 0 ;
2930 bool result;
2931 PyObject * obj0 = 0 ;
2932 char *kwnames[] = {
2933 (char *) "self", NULL
2934 };
2935
2936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2939 {
2940 PyThreadState* __tstate = wxPyBeginAllowThreads();
2941 result = (bool)(arg1)->Ok();
2942
2943 wxPyEndAllowThreads(__tstate);
2944 if (PyErr_Occurred()) SWIG_fail;
2945 }
2946 {
2947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2948 }
2949 return resultobj;
2950 fail:
2951 return NULL;
2952 }
2953
2954
2955 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2956 PyObject *resultobj;
2957 wxBitmap *arg1 = (wxBitmap *) 0 ;
2958 int result;
2959 PyObject * obj0 = 0 ;
2960 char *kwnames[] = {
2961 (char *) "self", NULL
2962 };
2963
2964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2967 {
2968 PyThreadState* __tstate = wxPyBeginAllowThreads();
2969 result = (int)(arg1)->GetWidth();
2970
2971 wxPyEndAllowThreads(__tstate);
2972 if (PyErr_Occurred()) SWIG_fail;
2973 }
2974 resultobj = SWIG_FromInt((int)result);
2975 return resultobj;
2976 fail:
2977 return NULL;
2978 }
2979
2980
2981 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2982 PyObject *resultobj;
2983 wxBitmap *arg1 = (wxBitmap *) 0 ;
2984 int result;
2985 PyObject * obj0 = 0 ;
2986 char *kwnames[] = {
2987 (char *) "self", NULL
2988 };
2989
2990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2993 {
2994 PyThreadState* __tstate = wxPyBeginAllowThreads();
2995 result = (int)(arg1)->GetHeight();
2996
2997 wxPyEndAllowThreads(__tstate);
2998 if (PyErr_Occurred()) SWIG_fail;
2999 }
3000 resultobj = SWIG_FromInt((int)result);
3001 return resultobj;
3002 fail:
3003 return NULL;
3004 }
3005
3006
3007 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3008 PyObject *resultobj;
3009 wxBitmap *arg1 = (wxBitmap *) 0 ;
3010 int result;
3011 PyObject * obj0 = 0 ;
3012 char *kwnames[] = {
3013 (char *) "self", NULL
3014 };
3015
3016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3019 {
3020 PyThreadState* __tstate = wxPyBeginAllowThreads();
3021 result = (int)(arg1)->GetDepth();
3022
3023 wxPyEndAllowThreads(__tstate);
3024 if (PyErr_Occurred()) SWIG_fail;
3025 }
3026 resultobj = SWIG_FromInt((int)result);
3027 return resultobj;
3028 fail:
3029 return NULL;
3030 }
3031
3032
3033 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3034 PyObject *resultobj;
3035 wxBitmap *arg1 = (wxBitmap *) 0 ;
3036 wxSize result;
3037 PyObject * obj0 = 0 ;
3038 char *kwnames[] = {
3039 (char *) "self", NULL
3040 };
3041
3042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3045 {
3046 PyThreadState* __tstate = wxPyBeginAllowThreads();
3047 result = wxBitmap_GetSize(arg1);
3048
3049 wxPyEndAllowThreads(__tstate);
3050 if (PyErr_Occurred()) SWIG_fail;
3051 }
3052 {
3053 wxSize * resultptr;
3054 resultptr = new wxSize((wxSize &) result);
3055 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3056 }
3057 return resultobj;
3058 fail:
3059 return NULL;
3060 }
3061
3062
3063 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3064 PyObject *resultobj;
3065 wxBitmap *arg1 = (wxBitmap *) 0 ;
3066 SwigValueWrapper< wxImage > result;
3067 PyObject * obj0 = 0 ;
3068 char *kwnames[] = {
3069 (char *) "self", NULL
3070 };
3071
3072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3075 {
3076 PyThreadState* __tstate = wxPyBeginAllowThreads();
3077 result = ((wxBitmap const *)arg1)->ConvertToImage();
3078
3079 wxPyEndAllowThreads(__tstate);
3080 if (PyErr_Occurred()) SWIG_fail;
3081 }
3082 {
3083 wxImage * resultptr;
3084 resultptr = new wxImage((wxImage &) result);
3085 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3086 }
3087 return resultobj;
3088 fail:
3089 return NULL;
3090 }
3091
3092
3093 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3094 PyObject *resultobj;
3095 wxBitmap *arg1 = (wxBitmap *) 0 ;
3096 wxMask *result;
3097 PyObject * obj0 = 0 ;
3098 char *kwnames[] = {
3099 (char *) "self", NULL
3100 };
3101
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 {
3106 PyThreadState* __tstate = wxPyBeginAllowThreads();
3107 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3108
3109 wxPyEndAllowThreads(__tstate);
3110 if (PyErr_Occurred()) SWIG_fail;
3111 }
3112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3113 return resultobj;
3114 fail:
3115 return NULL;
3116 }
3117
3118
3119 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3120 PyObject *resultobj;
3121 wxBitmap *arg1 = (wxBitmap *) 0 ;
3122 wxMask *arg2 = (wxMask *) 0 ;
3123 PyObject * obj0 = 0 ;
3124 PyObject * obj1 = 0 ;
3125 char *kwnames[] = {
3126 (char *) "self",(char *) "mask", NULL
3127 };
3128
3129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3132 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3134 {
3135 PyThreadState* __tstate = wxPyBeginAllowThreads();
3136 (arg1)->SetMask(arg2);
3137
3138 wxPyEndAllowThreads(__tstate);
3139 if (PyErr_Occurred()) SWIG_fail;
3140 }
3141 Py_INCREF(Py_None); resultobj = Py_None;
3142 return resultobj;
3143 fail:
3144 return NULL;
3145 }
3146
3147
3148 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3149 PyObject *resultobj;
3150 wxBitmap *arg1 = (wxBitmap *) 0 ;
3151 wxColour *arg2 = 0 ;
3152 wxColour temp2 ;
3153 PyObject * obj0 = 0 ;
3154 PyObject * obj1 = 0 ;
3155 char *kwnames[] = {
3156 (char *) "self",(char *) "colour", NULL
3157 };
3158
3159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3162 {
3163 arg2 = &temp2;
3164 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3165 }
3166 {
3167 PyThreadState* __tstate = wxPyBeginAllowThreads();
3168 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3169
3170 wxPyEndAllowThreads(__tstate);
3171 if (PyErr_Occurred()) SWIG_fail;
3172 }
3173 Py_INCREF(Py_None); resultobj = Py_None;
3174 return resultobj;
3175 fail:
3176 return NULL;
3177 }
3178
3179
3180 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3181 PyObject *resultobj;
3182 wxBitmap *arg1 = (wxBitmap *) 0 ;
3183 wxRect *arg2 = 0 ;
3184 SwigValueWrapper< wxBitmap > result;
3185 wxRect temp2 ;
3186 PyObject * obj0 = 0 ;
3187 PyObject * obj1 = 0 ;
3188 char *kwnames[] = {
3189 (char *) "self",(char *) "rect", NULL
3190 };
3191
3192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3195 {
3196 arg2 = &temp2;
3197 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3198 }
3199 {
3200 PyThreadState* __tstate = wxPyBeginAllowThreads();
3201 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3202
3203 wxPyEndAllowThreads(__tstate);
3204 if (PyErr_Occurred()) SWIG_fail;
3205 }
3206 {
3207 wxBitmap * resultptr;
3208 resultptr = new wxBitmap((wxBitmap &) result);
3209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3210 }
3211 return resultobj;
3212 fail:
3213 return NULL;
3214 }
3215
3216
3217 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3218 PyObject *resultobj;
3219 wxBitmap *arg1 = (wxBitmap *) 0 ;
3220 wxString *arg2 = 0 ;
3221 int arg3 ;
3222 wxPalette *arg4 = (wxPalette *) NULL ;
3223 bool result;
3224 bool temp2 = False ;
3225 PyObject * obj0 = 0 ;
3226 PyObject * obj1 = 0 ;
3227 PyObject * obj2 = 0 ;
3228 PyObject * obj3 = 0 ;
3229 char *kwnames[] = {
3230 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3231 };
3232
3233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3236 {
3237 arg2 = wxString_in_helper(obj1);
3238 if (arg2 == NULL) SWIG_fail;
3239 temp2 = True;
3240 }
3241 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3242 if (PyErr_Occurred()) SWIG_fail;
3243 if (obj3) {
3244 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3246 }
3247 {
3248 PyThreadState* __tstate = wxPyBeginAllowThreads();
3249 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3250
3251 wxPyEndAllowThreads(__tstate);
3252 if (PyErr_Occurred()) SWIG_fail;
3253 }
3254 {
3255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3256 }
3257 {
3258 if (temp2)
3259 delete arg2;
3260 }
3261 return resultobj;
3262 fail:
3263 {
3264 if (temp2)
3265 delete arg2;
3266 }
3267 return NULL;
3268 }
3269
3270
3271 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject *resultobj;
3273 wxBitmap *arg1 = (wxBitmap *) 0 ;
3274 wxString *arg2 = 0 ;
3275 int arg3 ;
3276 bool result;
3277 bool temp2 = False ;
3278 PyObject * obj0 = 0 ;
3279 PyObject * obj1 = 0 ;
3280 PyObject * obj2 = 0 ;
3281 char *kwnames[] = {
3282 (char *) "self",(char *) "name",(char *) "type", NULL
3283 };
3284
3285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3288 {
3289 arg2 = wxString_in_helper(obj1);
3290 if (arg2 == NULL) SWIG_fail;
3291 temp2 = True;
3292 }
3293 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3294 if (PyErr_Occurred()) SWIG_fail;
3295 {
3296 PyThreadState* __tstate = wxPyBeginAllowThreads();
3297 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3298
3299 wxPyEndAllowThreads(__tstate);
3300 if (PyErr_Occurred()) SWIG_fail;
3301 }
3302 {
3303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3304 }
3305 {
3306 if (temp2)
3307 delete arg2;
3308 }
3309 return resultobj;
3310 fail:
3311 {
3312 if (temp2)
3313 delete arg2;
3314 }
3315 return NULL;
3316 }
3317
3318
3319 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3320 PyObject *resultobj;
3321 wxBitmap *arg1 = (wxBitmap *) 0 ;
3322 wxIcon *arg2 = 0 ;
3323 bool result;
3324 PyObject * obj0 = 0 ;
3325 PyObject * obj1 = 0 ;
3326 char *kwnames[] = {
3327 (char *) "self",(char *) "icon", NULL
3328 };
3329
3330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3333 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3334 SWIG_POINTER_EXCEPTION | 0)) == -1)
3335 SWIG_fail;
3336 if (arg2 == NULL) {
3337 PyErr_SetString(PyExc_TypeError,"null reference");
3338 SWIG_fail;
3339 }
3340 {
3341 PyThreadState* __tstate = wxPyBeginAllowThreads();
3342 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3343
3344 wxPyEndAllowThreads(__tstate);
3345 if (PyErr_Occurred()) SWIG_fail;
3346 }
3347 {
3348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3349 }
3350 return resultobj;
3351 fail:
3352 return NULL;
3353 }
3354
3355
3356 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3357 PyObject *resultobj;
3358 wxBitmap *arg1 = (wxBitmap *) 0 ;
3359 int arg2 ;
3360 PyObject * obj0 = 0 ;
3361 PyObject * obj1 = 0 ;
3362 char *kwnames[] = {
3363 (char *) "self",(char *) "height", NULL
3364 };
3365
3366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3369 arg2 = (int) SWIG_AsInt(obj1);
3370 if (PyErr_Occurred()) SWIG_fail;
3371 {
3372 PyThreadState* __tstate = wxPyBeginAllowThreads();
3373 (arg1)->SetHeight(arg2);
3374
3375 wxPyEndAllowThreads(__tstate);
3376 if (PyErr_Occurred()) SWIG_fail;
3377 }
3378 Py_INCREF(Py_None); resultobj = Py_None;
3379 return resultobj;
3380 fail:
3381 return NULL;
3382 }
3383
3384
3385 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3386 PyObject *resultobj;
3387 wxBitmap *arg1 = (wxBitmap *) 0 ;
3388 int arg2 ;
3389 PyObject * obj0 = 0 ;
3390 PyObject * obj1 = 0 ;
3391 char *kwnames[] = {
3392 (char *) "self",(char *) "width", NULL
3393 };
3394
3395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3398 arg2 = (int) SWIG_AsInt(obj1);
3399 if (PyErr_Occurred()) SWIG_fail;
3400 {
3401 PyThreadState* __tstate = wxPyBeginAllowThreads();
3402 (arg1)->SetWidth(arg2);
3403
3404 wxPyEndAllowThreads(__tstate);
3405 if (PyErr_Occurred()) SWIG_fail;
3406 }
3407 Py_INCREF(Py_None); resultobj = Py_None;
3408 return resultobj;
3409 fail:
3410 return NULL;
3411 }
3412
3413
3414 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3415 PyObject *resultobj;
3416 wxBitmap *arg1 = (wxBitmap *) 0 ;
3417 int arg2 ;
3418 PyObject * obj0 = 0 ;
3419 PyObject * obj1 = 0 ;
3420 char *kwnames[] = {
3421 (char *) "self",(char *) "depth", NULL
3422 };
3423
3424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3427 arg2 = (int) SWIG_AsInt(obj1);
3428 if (PyErr_Occurred()) SWIG_fail;
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 (arg1)->SetDepth(arg2);
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 Py_INCREF(Py_None); resultobj = Py_None;
3437 return resultobj;
3438 fail:
3439 return NULL;
3440 }
3441
3442
3443 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3444 PyObject *resultobj;
3445 wxBitmap *arg1 = (wxBitmap *) 0 ;
3446 wxSize *arg2 = 0 ;
3447 wxSize temp2 ;
3448 PyObject * obj0 = 0 ;
3449 PyObject * obj1 = 0 ;
3450 char *kwnames[] = {
3451 (char *) "self",(char *) "size", NULL
3452 };
3453
3454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3457 {
3458 arg2 = &temp2;
3459 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3460 }
3461 {
3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
3463 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3464
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) SWIG_fail;
3467 }
3468 Py_INCREF(Py_None); resultobj = Py_None;
3469 return resultobj;
3470 fail:
3471 return NULL;
3472 }
3473
3474
3475 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3476 PyObject *resultobj;
3477 wxBitmap *arg1 = (wxBitmap *) 0 ;
3478 wxCursor *arg2 = 0 ;
3479 bool result;
3480 PyObject * obj0 = 0 ;
3481 PyObject * obj1 = 0 ;
3482 char *kwnames[] = {
3483 (char *) "self",(char *) "cursor", NULL
3484 };
3485
3486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3490 SWIG_POINTER_EXCEPTION | 0)) == -1)
3491 SWIG_fail;
3492 if (arg2 == NULL) {
3493 PyErr_SetString(PyExc_TypeError,"null reference");
3494 SWIG_fail;
3495 }
3496 {
3497 PyThreadState* __tstate = wxPyBeginAllowThreads();
3498 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3499
3500 wxPyEndAllowThreads(__tstate);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 }
3503 {
3504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3505 }
3506 return resultobj;
3507 fail:
3508 return NULL;
3509 }
3510
3511
3512 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3513 PyObject *resultobj;
3514 wxBitmap *arg1 = (wxBitmap *) 0 ;
3515 int result;
3516 PyObject * obj0 = 0 ;
3517 char *kwnames[] = {
3518 (char *) "self", NULL
3519 };
3520
3521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3524 {
3525 PyThreadState* __tstate = wxPyBeginAllowThreads();
3526 result = (int)(arg1)->GetQuality();
3527
3528 wxPyEndAllowThreads(__tstate);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 }
3531 resultobj = SWIG_FromInt((int)result);
3532 return resultobj;
3533 fail:
3534 return NULL;
3535 }
3536
3537
3538 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject *resultobj;
3540 wxBitmap *arg1 = (wxBitmap *) 0 ;
3541 int arg2 ;
3542 PyObject * obj0 = 0 ;
3543 PyObject * obj1 = 0 ;
3544 char *kwnames[] = {
3545 (char *) "self",(char *) "q", NULL
3546 };
3547
3548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3551 arg2 = (int) SWIG_AsInt(obj1);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 {
3554 PyThreadState* __tstate = wxPyBeginAllowThreads();
3555 (arg1)->SetQuality(arg2);
3556
3557 wxPyEndAllowThreads(__tstate);
3558 if (PyErr_Occurred()) SWIG_fail;
3559 }
3560 Py_INCREF(Py_None); resultobj = Py_None;
3561 return resultobj;
3562 fail:
3563 return NULL;
3564 }
3565
3566
3567 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3568 PyObject *resultobj;
3569 wxBitmap *arg1 = (wxBitmap *) 0 ;
3570 wxBitmap *arg2 = (wxBitmap *) 0 ;
3571 bool result;
3572 PyObject * obj0 = 0 ;
3573 PyObject * obj1 = 0 ;
3574 char *kwnames[] = {
3575 (char *) "self",(char *) "other", NULL
3576 };
3577
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3583 {
3584 PyThreadState* __tstate = wxPyBeginAllowThreads();
3585 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3586
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 {
3591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3592 }
3593 return resultobj;
3594 fail:
3595 return NULL;
3596 }
3597
3598
3599 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3600 PyObject *resultobj;
3601 wxBitmap *arg1 = (wxBitmap *) 0 ;
3602 wxBitmap *arg2 = (wxBitmap *) 0 ;
3603 bool result;
3604 PyObject * obj0 = 0 ;
3605 PyObject * obj1 = 0 ;
3606 char *kwnames[] = {
3607 (char *) "self",(char *) "other", NULL
3608 };
3609
3610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3613 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3615 {
3616 PyThreadState* __tstate = wxPyBeginAllowThreads();
3617 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3618
3619 wxPyEndAllowThreads(__tstate);
3620 if (PyErr_Occurred()) SWIG_fail;
3621 }
3622 {
3623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3624 }
3625 return resultobj;
3626 fail:
3627 return NULL;
3628 }
3629
3630
3631 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3632 PyObject *obj;
3633 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3634 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3635 Py_INCREF(obj);
3636 return Py_BuildValue((char *)"");
3637 }
3638 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3639 PyObject *resultobj;
3640 wxBitmap *arg1 = 0 ;
3641 wxColour const &arg2_defvalue = wxNullColour ;
3642 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3643 wxMask *result;
3644 wxColour temp2 ;
3645 PyObject * obj0 = 0 ;
3646 PyObject * obj1 = 0 ;
3647 char *kwnames[] = {
3648 (char *) "bitmap",(char *) "colour", NULL
3649 };
3650
3651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3653 SWIG_POINTER_EXCEPTION | 0)) == -1)
3654 SWIG_fail;
3655 if (arg1 == NULL) {
3656 PyErr_SetString(PyExc_TypeError,"null reference");
3657 SWIG_fail;
3658 }
3659 if (obj1) {
3660 {
3661 arg2 = &temp2;
3662 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3663 }
3664 }
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
3667 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3668
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3673 return resultobj;
3674 fail:
3675 return NULL;
3676 }
3677
3678
3679 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3680 PyObject *obj;
3681 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3682 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3683 Py_INCREF(obj);
3684 return Py_BuildValue((char *)"");
3685 }
3686 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3687 PyObject *resultobj;
3688 wxString *arg1 = 0 ;
3689 int arg2 ;
3690 int arg3 = (int) -1 ;
3691 int arg4 = (int) -1 ;
3692 wxIcon *result;
3693 bool temp1 = False ;
3694 PyObject * obj0 = 0 ;
3695 PyObject * obj1 = 0 ;
3696 PyObject * obj2 = 0 ;
3697 PyObject * obj3 = 0 ;
3698 char *kwnames[] = {
3699 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3700 };
3701
3702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3703 {
3704 arg1 = wxString_in_helper(obj0);
3705 if (arg1 == NULL) SWIG_fail;
3706 temp1 = True;
3707 }
3708 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 if (obj2) {
3711 arg3 = (int) SWIG_AsInt(obj2);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 }
3714 if (obj3) {
3715 arg4 = (int) SWIG_AsInt(obj3);
3716 if (PyErr_Occurred()) SWIG_fail;
3717 }
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3721
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3726 {
3727 if (temp1)
3728 delete arg1;
3729 }
3730 return resultobj;
3731 fail:
3732 {
3733 if (temp1)
3734 delete arg1;
3735 }
3736 return NULL;
3737 }
3738
3739
3740 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3741 PyObject *resultobj;
3742 wxIcon *arg1 = (wxIcon *) 0 ;
3743 PyObject * obj0 = 0 ;
3744 char *kwnames[] = {
3745 (char *) "self", NULL
3746 };
3747
3748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3751 {
3752 PyThreadState* __tstate = wxPyBeginAllowThreads();
3753 delete arg1;
3754
3755 wxPyEndAllowThreads(__tstate);
3756 if (PyErr_Occurred()) SWIG_fail;
3757 }
3758 Py_INCREF(Py_None); resultobj = Py_None;
3759 return resultobj;
3760 fail:
3761 return NULL;
3762 }
3763
3764
3765 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3766 PyObject *resultobj;
3767 wxIcon *result;
3768 char *kwnames[] = {
3769 NULL
3770 };
3771
3772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3773 {
3774 PyThreadState* __tstate = wxPyBeginAllowThreads();
3775 result = (wxIcon *)new wxIcon();
3776
3777 wxPyEndAllowThreads(__tstate);
3778 if (PyErr_Occurred()) SWIG_fail;
3779 }
3780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3781 return resultobj;
3782 fail:
3783 return NULL;
3784 }
3785
3786
3787 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3788 PyObject *resultobj;
3789 wxIconLocation *arg1 = 0 ;
3790 wxIcon *result;
3791 PyObject * obj0 = 0 ;
3792 char *kwnames[] = {
3793 (char *) "loc", NULL
3794 };
3795
3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3798 SWIG_POINTER_EXCEPTION | 0)) == -1)
3799 SWIG_fail;
3800 if (arg1 == NULL) {
3801 PyErr_SetString(PyExc_TypeError,"null reference");
3802 SWIG_fail;
3803 }
3804 {
3805 PyThreadState* __tstate = wxPyBeginAllowThreads();
3806 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3807
3808 wxPyEndAllowThreads(__tstate);
3809 if (PyErr_Occurred()) SWIG_fail;
3810 }
3811 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3812 return resultobj;
3813 fail:
3814 return NULL;
3815 }
3816
3817
3818 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj;
3820 wxBitmap *arg1 = 0 ;
3821 wxIcon *result;
3822 PyObject * obj0 = 0 ;
3823 char *kwnames[] = {
3824 (char *) "bmp", NULL
3825 };
3826
3827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3829 SWIG_POINTER_EXCEPTION | 0)) == -1)
3830 SWIG_fail;
3831 if (arg1 == NULL) {
3832 PyErr_SetString(PyExc_TypeError,"null reference");
3833 SWIG_fail;
3834 }
3835 {
3836 PyThreadState* __tstate = wxPyBeginAllowThreads();
3837 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3838
3839 wxPyEndAllowThreads(__tstate);
3840 if (PyErr_Occurred()) SWIG_fail;
3841 }
3842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3843 return resultobj;
3844 fail:
3845 return NULL;
3846 }
3847
3848
3849 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3850 PyObject *resultobj;
3851 PyObject *arg1 = (PyObject *) 0 ;
3852 wxIcon *result;
3853 PyObject * obj0 = 0 ;
3854 char *kwnames[] = {
3855 (char *) "listOfStrings", NULL
3856 };
3857
3858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3859 arg1 = obj0;
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 result = (wxIcon *)new_wxIcon(arg1);
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3868 return resultobj;
3869 fail:
3870 return NULL;
3871 }
3872
3873
3874 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj;
3876 wxIcon *arg1 = (wxIcon *) 0 ;
3877 wxString *arg2 = 0 ;
3878 int arg3 ;
3879 bool result;
3880 bool temp2 = False ;
3881 PyObject * obj0 = 0 ;
3882 PyObject * obj1 = 0 ;
3883 PyObject * obj2 = 0 ;
3884 char *kwnames[] = {
3885 (char *) "self",(char *) "name",(char *) "type", NULL
3886 };
3887
3888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3891 {
3892 arg2 = wxString_in_helper(obj1);
3893 if (arg2 == NULL) SWIG_fail;
3894 temp2 = True;
3895 }
3896 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3897 if (PyErr_Occurred()) SWIG_fail;
3898 {
3899 PyThreadState* __tstate = wxPyBeginAllowThreads();
3900 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3901
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 {
3906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3907 }
3908 {
3909 if (temp2)
3910 delete arg2;
3911 }
3912 return resultobj;
3913 fail:
3914 {
3915 if (temp2)
3916 delete arg2;
3917 }
3918 return NULL;
3919 }
3920
3921
3922 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3923 PyObject *resultobj;
3924 wxIcon *arg1 = (wxIcon *) 0 ;
3925 long result;
3926 PyObject * obj0 = 0 ;
3927 char *kwnames[] = {
3928 (char *) "self", NULL
3929 };
3930
3931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3934 {
3935 PyThreadState* __tstate = wxPyBeginAllowThreads();
3936 result = (long)(arg1)->GetHandle();
3937
3938 wxPyEndAllowThreads(__tstate);
3939 if (PyErr_Occurred()) SWIG_fail;
3940 }
3941 resultobj = SWIG_FromLong((long)result);
3942 return resultobj;
3943 fail:
3944 return NULL;
3945 }
3946
3947
3948 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3949 PyObject *resultobj;
3950 wxIcon *arg1 = (wxIcon *) 0 ;
3951 long arg2 ;
3952 PyObject * obj0 = 0 ;
3953 PyObject * obj1 = 0 ;
3954 char *kwnames[] = {
3955 (char *) "self",(char *) "handle", NULL
3956 };
3957
3958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3961 arg2 = (long) SWIG_AsLong(obj1);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 wxIcon_SetHandle(arg1,arg2);
3966
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) SWIG_fail;
3969 }
3970 Py_INCREF(Py_None); resultobj = Py_None;
3971 return resultobj;
3972 fail:
3973 return NULL;
3974 }
3975
3976
3977 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3978 PyObject *resultobj;
3979 wxIcon *arg1 = (wxIcon *) 0 ;
3980 bool result;
3981 PyObject * obj0 = 0 ;
3982 char *kwnames[] = {
3983 (char *) "self", NULL
3984 };
3985
3986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3989 {
3990 PyThreadState* __tstate = wxPyBeginAllowThreads();
3991 result = (bool)(arg1)->Ok();
3992
3993 wxPyEndAllowThreads(__tstate);
3994 if (PyErr_Occurred()) SWIG_fail;
3995 }
3996 {
3997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3998 }
3999 return resultobj;
4000 fail:
4001 return NULL;
4002 }
4003
4004
4005 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4006 PyObject *resultobj;
4007 wxIcon *arg1 = (wxIcon *) 0 ;
4008 int result;
4009 PyObject * obj0 = 0 ;
4010 char *kwnames[] = {
4011 (char *) "self", NULL
4012 };
4013
4014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4017 {
4018 PyThreadState* __tstate = wxPyBeginAllowThreads();
4019 result = (int)(arg1)->GetWidth();
4020
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 resultobj = SWIG_FromInt((int)result);
4025 return resultobj;
4026 fail:
4027 return NULL;
4028 }
4029
4030
4031 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4032 PyObject *resultobj;
4033 wxIcon *arg1 = (wxIcon *) 0 ;
4034 int result;
4035 PyObject * obj0 = 0 ;
4036 char *kwnames[] = {
4037 (char *) "self", NULL
4038 };
4039
4040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4043 {
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 result = (int)(arg1)->GetHeight();
4046
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 resultobj = SWIG_FromInt((int)result);
4051 return resultobj;
4052 fail:
4053 return NULL;
4054 }
4055
4056
4057 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4058 PyObject *resultobj;
4059 wxIcon *arg1 = (wxIcon *) 0 ;
4060 int result;
4061 PyObject * obj0 = 0 ;
4062 char *kwnames[] = {
4063 (char *) "self", NULL
4064 };
4065
4066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 result = (int)(arg1)->GetDepth();
4072
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 resultobj = SWIG_FromInt((int)result);
4077 return resultobj;
4078 fail:
4079 return NULL;
4080 }
4081
4082
4083 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4084 PyObject *resultobj;
4085 wxIcon *arg1 = (wxIcon *) 0 ;
4086 int arg2 ;
4087 PyObject * obj0 = 0 ;
4088 PyObject * obj1 = 0 ;
4089 char *kwnames[] = {
4090 (char *) "self",(char *) "w", NULL
4091 };
4092
4093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4096 arg2 = (int) SWIG_AsInt(obj1);
4097 if (PyErr_Occurred()) SWIG_fail;
4098 {
4099 PyThreadState* __tstate = wxPyBeginAllowThreads();
4100 (arg1)->SetWidth(arg2);
4101
4102 wxPyEndAllowThreads(__tstate);
4103 if (PyErr_Occurred()) SWIG_fail;
4104 }
4105 Py_INCREF(Py_None); resultobj = Py_None;
4106 return resultobj;
4107 fail:
4108 return NULL;
4109 }
4110
4111
4112 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4113 PyObject *resultobj;
4114 wxIcon *arg1 = (wxIcon *) 0 ;
4115 int arg2 ;
4116 PyObject * obj0 = 0 ;
4117 PyObject * obj1 = 0 ;
4118 char *kwnames[] = {
4119 (char *) "self",(char *) "h", NULL
4120 };
4121
4122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4125 arg2 = (int) SWIG_AsInt(obj1);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 (arg1)->SetHeight(arg2);
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 Py_INCREF(Py_None); resultobj = Py_None;
4135 return resultobj;
4136 fail:
4137 return NULL;
4138 }
4139
4140
4141 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 wxIcon *arg1 = (wxIcon *) 0 ;
4144 int arg2 ;
4145 PyObject * obj0 = 0 ;
4146 PyObject * obj1 = 0 ;
4147 char *kwnames[] = {
4148 (char *) "self",(char *) "d", NULL
4149 };
4150
4151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4154 arg2 = (int) SWIG_AsInt(obj1);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 (arg1)->SetDepth(arg2);
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 Py_INCREF(Py_None); resultobj = Py_None;
4164 return resultobj;
4165 fail:
4166 return NULL;
4167 }
4168
4169
4170 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj;
4172 wxIcon *arg1 = (wxIcon *) 0 ;
4173 wxSize *arg2 = 0 ;
4174 wxSize temp2 ;
4175 PyObject * obj0 = 0 ;
4176 PyObject * obj1 = 0 ;
4177 char *kwnames[] = {
4178 (char *) "self",(char *) "size", NULL
4179 };
4180
4181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4184 {
4185 arg2 = &temp2;
4186 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4187 }
4188 {
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 (arg1)->SetSize((wxSize const &)*arg2);
4191
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 Py_INCREF(Py_None); resultobj = Py_None;
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj;
4204 wxIcon *arg1 = (wxIcon *) 0 ;
4205 wxBitmap *arg2 = 0 ;
4206 PyObject * obj0 = 0 ;
4207 PyObject * obj1 = 0 ;
4208 char *kwnames[] = {
4209 (char *) "self",(char *) "bmp", NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4216 SWIG_POINTER_EXCEPTION | 0)) == -1)
4217 SWIG_fail;
4218 if (arg2 == NULL) {
4219 PyErr_SetString(PyExc_TypeError,"null reference");
4220 SWIG_fail;
4221 }
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4225
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 Py_INCREF(Py_None); resultobj = Py_None;
4230 return resultobj;
4231 fail:
4232 return NULL;
4233 }
4234
4235
4236 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4237 PyObject *obj;
4238 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4239 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4240 Py_INCREF(obj);
4241 return Py_BuildValue((char *)"");
4242 }
4243 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4244 PyObject *resultobj;
4245 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4246 int arg2 = (int) 0 ;
4247 wxIconLocation *result;
4248 bool temp1 = False ;
4249 PyObject * obj0 = 0 ;
4250 PyObject * obj1 = 0 ;
4251 char *kwnames[] = {
4252 (char *) "filename",(char *) "num", NULL
4253 };
4254
4255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4256 if (obj0) {
4257 {
4258 arg1 = wxString_in_helper(obj0);
4259 if (arg1 == NULL) SWIG_fail;
4260 temp1 = True;
4261 }
4262 }
4263 if (obj1) {
4264 arg2 = (int) SWIG_AsInt(obj1);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4270
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4275 {
4276 if (temp1)
4277 delete arg1;
4278 }
4279 return resultobj;
4280 fail:
4281 {
4282 if (temp1)
4283 delete arg1;
4284 }
4285 return NULL;
4286 }
4287
4288
4289 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4290 PyObject *resultobj;
4291 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4292 PyObject * obj0 = 0 ;
4293 char *kwnames[] = {
4294 (char *) "self", NULL
4295 };
4296
4297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 delete arg1;
4303
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 Py_INCREF(Py_None); resultobj = Py_None;
4308 return resultobj;
4309 fail:
4310 return NULL;
4311 }
4312
4313
4314 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj;
4316 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4317 bool result;
4318 PyObject * obj0 = 0 ;
4319 char *kwnames[] = {
4320 (char *) "self", NULL
4321 };
4322
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4326 {
4327 PyThreadState* __tstate = wxPyBeginAllowThreads();
4328 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4329
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 {
4334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4335 }
4336 return resultobj;
4337 fail:
4338 return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj;
4344 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4345 wxString *arg2 = 0 ;
4346 bool temp2 = False ;
4347 PyObject * obj0 = 0 ;
4348 PyObject * obj1 = 0 ;
4349 char *kwnames[] = {
4350 (char *) "self",(char *) "filename", NULL
4351 };
4352
4353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4356 {
4357 arg2 = wxString_in_helper(obj1);
4358 if (arg2 == NULL) SWIG_fail;
4359 temp2 = True;
4360 }
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 (arg1)->SetFileName((wxString const &)*arg2);
4364
4365 wxPyEndAllowThreads(__tstate);
4366 if (PyErr_Occurred()) SWIG_fail;
4367 }
4368 Py_INCREF(Py_None); resultobj = Py_None;
4369 {
4370 if (temp2)
4371 delete arg2;
4372 }
4373 return resultobj;
4374 fail:
4375 {
4376 if (temp2)
4377 delete arg2;
4378 }
4379 return NULL;
4380 }
4381
4382
4383 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4384 PyObject *resultobj;
4385 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4386 wxString *result;
4387 PyObject * obj0 = 0 ;
4388 char *kwnames[] = {
4389 (char *) "self", NULL
4390 };
4391
4392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4395 {
4396 PyThreadState* __tstate = wxPyBeginAllowThreads();
4397 {
4398 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4399 result = (wxString *) &_result_ref;
4400 }
4401
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 }
4405 {
4406 #if wxUSE_UNICODE
4407 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4408 #else
4409 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4410 #endif
4411 }
4412 return resultobj;
4413 fail:
4414 return NULL;
4415 }
4416
4417
4418 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4419 PyObject *resultobj;
4420 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4421 int arg2 ;
4422 PyObject * obj0 = 0 ;
4423 PyObject * obj1 = 0 ;
4424 char *kwnames[] = {
4425 (char *) "self",(char *) "num", NULL
4426 };
4427
4428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4431 arg2 = (int) SWIG_AsInt(obj1);
4432 if (PyErr_Occurred()) SWIG_fail;
4433 {
4434 PyThreadState* __tstate = wxPyBeginAllowThreads();
4435 wxIconLocation_SetIndex(arg1,arg2);
4436
4437 wxPyEndAllowThreads(__tstate);
4438 if (PyErr_Occurred()) SWIG_fail;
4439 }
4440 Py_INCREF(Py_None); resultobj = Py_None;
4441 return resultobj;
4442 fail:
4443 return NULL;
4444 }
4445
4446
4447 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4448 PyObject *resultobj;
4449 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4450 int result;
4451 PyObject * obj0 = 0 ;
4452 char *kwnames[] = {
4453 (char *) "self", NULL
4454 };
4455
4456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 result = (int)wxIconLocation_GetIndex(arg1);
4462
4463 wxPyEndAllowThreads(__tstate);
4464 if (PyErr_Occurred()) SWIG_fail;
4465 }
4466 resultobj = SWIG_FromInt((int)result);
4467 return resultobj;
4468 fail:
4469 return NULL;
4470 }
4471
4472
4473 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4474 PyObject *obj;
4475 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4476 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4477 Py_INCREF(obj);
4478 return Py_BuildValue((char *)"");
4479 }
4480 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4481 PyObject *resultobj;
4482 wxIconBundle *result;
4483 char *kwnames[] = {
4484 NULL
4485 };
4486
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4488 {
4489 PyThreadState* __tstate = wxPyBeginAllowThreads();
4490 result = (wxIconBundle *)new wxIconBundle();
4491
4492 wxPyEndAllowThreads(__tstate);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 }
4495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4496 return resultobj;
4497 fail:
4498 return NULL;
4499 }
4500
4501
4502 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4503 PyObject *resultobj;
4504 wxString *arg1 = 0 ;
4505 long arg2 ;
4506 wxIconBundle *result;
4507 bool temp1 = False ;
4508 PyObject * obj0 = 0 ;
4509 PyObject * obj1 = 0 ;
4510 char *kwnames[] = {
4511 (char *) "file",(char *) "type", NULL
4512 };
4513
4514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4515 {
4516 arg1 = wxString_in_helper(obj0);
4517 if (arg1 == NULL) SWIG_fail;
4518 temp1 = True;
4519 }
4520 arg2 = (long) SWIG_AsLong(obj1);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4525
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4530 {
4531 if (temp1)
4532 delete arg1;
4533 }
4534 return resultobj;
4535 fail:
4536 {
4537 if (temp1)
4538 delete arg1;
4539 }
4540 return NULL;
4541 }
4542
4543
4544 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj;
4546 wxIcon *arg1 = 0 ;
4547 wxIconBundle *result;
4548 PyObject * obj0 = 0 ;
4549 char *kwnames[] = {
4550 (char *) "icon", NULL
4551 };
4552
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4555 SWIG_POINTER_EXCEPTION | 0)) == -1)
4556 SWIG_fail;
4557 if (arg1 == NULL) {
4558 PyErr_SetString(PyExc_TypeError,"null reference");
4559 SWIG_fail;
4560 }
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4564
4565 wxPyEndAllowThreads(__tstate);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4569 return resultobj;
4570 fail:
4571 return NULL;
4572 }
4573
4574
4575 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4576 PyObject *resultobj;
4577 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4578 PyObject * obj0 = 0 ;
4579 char *kwnames[] = {
4580 (char *) "self", NULL
4581 };
4582
4583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 delete arg1;
4589
4590 wxPyEndAllowThreads(__tstate);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 Py_INCREF(Py_None); resultobj = Py_None;
4594 return resultobj;
4595 fail:
4596 return NULL;
4597 }
4598
4599
4600 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject *resultobj;
4602 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4603 wxIcon *arg2 = 0 ;
4604 PyObject * obj0 = 0 ;
4605 PyObject * obj1 = 0 ;
4606 char *kwnames[] = {
4607 (char *) "self",(char *) "icon", NULL
4608 };
4609
4610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4613 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4614 SWIG_POINTER_EXCEPTION | 0)) == -1)
4615 SWIG_fail;
4616 if (arg2 == NULL) {
4617 PyErr_SetString(PyExc_TypeError,"null reference");
4618 SWIG_fail;
4619 }
4620 {
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 (arg1)->AddIcon((wxIcon const &)*arg2);
4623
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 Py_INCREF(Py_None); resultobj = Py_None;
4628 return resultobj;
4629 fail:
4630 return NULL;
4631 }
4632
4633
4634 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4635 PyObject *resultobj;
4636 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4637 wxString *arg2 = 0 ;
4638 long arg3 ;
4639 bool temp2 = False ;
4640 PyObject * obj0 = 0 ;
4641 PyObject * obj1 = 0 ;
4642 PyObject * obj2 = 0 ;
4643 char *kwnames[] = {
4644 (char *) "self",(char *) "file",(char *) "type", NULL
4645 };
4646
4647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4650 {
4651 arg2 = wxString_in_helper(obj1);
4652 if (arg2 == NULL) SWIG_fail;
4653 temp2 = True;
4654 }
4655 arg3 = (long) SWIG_AsLong(obj2);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 {
4658 PyThreadState* __tstate = wxPyBeginAllowThreads();
4659 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4660
4661 wxPyEndAllowThreads(__tstate);
4662 if (PyErr_Occurred()) SWIG_fail;
4663 }
4664 Py_INCREF(Py_None); resultobj = Py_None;
4665 {
4666 if (temp2)
4667 delete arg2;
4668 }
4669 return resultobj;
4670 fail:
4671 {
4672 if (temp2)
4673 delete arg2;
4674 }
4675 return NULL;
4676 }
4677
4678
4679 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject *resultobj;
4681 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4682 wxSize *arg2 = 0 ;
4683 wxIcon *result;
4684 wxSize temp2 ;
4685 PyObject * obj0 = 0 ;
4686 PyObject * obj1 = 0 ;
4687 char *kwnames[] = {
4688 (char *) "self",(char *) "size", NULL
4689 };
4690
4691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4694 {
4695 arg2 = &temp2;
4696 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4697 }
4698 {
4699 PyThreadState* __tstate = wxPyBeginAllowThreads();
4700 {
4701 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4702 result = (wxIcon *) &_result_ref;
4703 }
4704
4705 wxPyEndAllowThreads(__tstate);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 {
4709 wxIcon* resultptr = new wxIcon(*result);
4710 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4711 }
4712 return resultobj;
4713 fail:
4714 return NULL;
4715 }
4716
4717
4718 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4719 PyObject *obj;
4720 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4721 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4722 Py_INCREF(obj);
4723 return Py_BuildValue((char *)"");
4724 }
4725 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4726 PyObject *resultobj;
4727 wxString *arg1 = (wxString *) 0 ;
4728 long arg2 ;
4729 int arg3 = (int) 0 ;
4730 int arg4 = (int) 0 ;
4731 wxCursor *result;
4732 bool temp1 = False ;
4733 PyObject * obj0 = 0 ;
4734 PyObject * obj1 = 0 ;
4735 PyObject * obj2 = 0 ;
4736 PyObject * obj3 = 0 ;
4737 char *kwnames[] = {
4738 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4739 };
4740
4741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4742 {
4743 arg1 = wxString_in_helper(obj0);
4744 if (arg1 == NULL) SWIG_fail;
4745 temp1 = True;
4746 }
4747 arg2 = (long) SWIG_AsLong(obj1);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 if (obj2) {
4750 arg3 = (int) SWIG_AsInt(obj2);
4751 if (PyErr_Occurred()) SWIG_fail;
4752 }
4753 if (obj3) {
4754 arg4 = (int) SWIG_AsInt(obj3);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 {
4758 PyThreadState* __tstate = wxPyBeginAllowThreads();
4759 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4760
4761 wxPyEndAllowThreads(__tstate);
4762 if (PyErr_Occurred()) SWIG_fail;
4763 }
4764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4765 {
4766 if (temp1)
4767 delete arg1;
4768 }
4769 return resultobj;
4770 fail:
4771 {
4772 if (temp1)
4773 delete arg1;
4774 }
4775 return NULL;
4776 }
4777
4778
4779 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4780 PyObject *resultobj;
4781 wxCursor *arg1 = (wxCursor *) 0 ;
4782 PyObject * obj0 = 0 ;
4783 char *kwnames[] = {
4784 (char *) "self", NULL
4785 };
4786
4787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4790 {
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 delete arg1;
4793
4794 wxPyEndAllowThreads(__tstate);
4795 if (PyErr_Occurred()) SWIG_fail;
4796 }
4797 Py_INCREF(Py_None); resultobj = Py_None;
4798 return resultobj;
4799 fail:
4800 return NULL;
4801 }
4802
4803
4804 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4805 PyObject *resultobj;
4806 int arg1 ;
4807 wxCursor *result;
4808 PyObject * obj0 = 0 ;
4809 char *kwnames[] = {
4810 (char *) "id", NULL
4811 };
4812
4813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4814 arg1 = (int) SWIG_AsInt(obj0);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (wxCursor *)new wxCursor(arg1);
4819
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj;
4832 wxImage *arg1 = 0 ;
4833 wxCursor *result;
4834 PyObject * obj0 = 0 ;
4835 char *kwnames[] = {
4836 (char *) "image", NULL
4837 };
4838
4839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4841 SWIG_POINTER_EXCEPTION | 0)) == -1)
4842 SWIG_fail;
4843 if (arg1 == NULL) {
4844 PyErr_SetString(PyExc_TypeError,"null reference");
4845 SWIG_fail;
4846 }
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4850
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj;
4863 wxCursor *arg1 = (wxCursor *) 0 ;
4864 long result;
4865 PyObject * obj0 = 0 ;
4866 char *kwnames[] = {
4867 (char *) "self", NULL
4868 };
4869
4870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4873 {
4874 PyThreadState* __tstate = wxPyBeginAllowThreads();
4875 result = (long)(arg1)->GetHandle();
4876
4877 wxPyEndAllowThreads(__tstate);
4878 if (PyErr_Occurred()) SWIG_fail;
4879 }
4880 resultobj = SWIG_FromLong((long)result);
4881 return resultobj;
4882 fail:
4883 return NULL;
4884 }
4885
4886
4887 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj;
4889 wxCursor *arg1 = (wxCursor *) 0 ;
4890 long arg2 ;
4891 PyObject * obj0 = 0 ;
4892 PyObject * obj1 = 0 ;
4893 char *kwnames[] = {
4894 (char *) "self",(char *) "handle", NULL
4895 };
4896
4897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4900 arg2 = (long) SWIG_AsLong(obj1);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 wxCursor_SetHandle(arg1,arg2);
4905
4906 wxPyEndAllowThreads(__tstate);
4907 if (PyErr_Occurred()) SWIG_fail;
4908 }
4909 Py_INCREF(Py_None); resultobj = Py_None;
4910 return resultobj;
4911 fail:
4912 return NULL;
4913 }
4914
4915
4916 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4917 PyObject *resultobj;
4918 wxCursor *arg1 = (wxCursor *) 0 ;
4919 bool result;
4920 PyObject * obj0 = 0 ;
4921 char *kwnames[] = {
4922 (char *) "self", NULL
4923 };
4924
4925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 result = (bool)(arg1)->Ok();
4931
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 {
4936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4937 }
4938 return resultobj;
4939 fail:
4940 return NULL;
4941 }
4942
4943
4944 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4945 PyObject *resultobj;
4946 wxCursor *arg1 = (wxCursor *) 0 ;
4947 int result;
4948 PyObject * obj0 = 0 ;
4949 char *kwnames[] = {
4950 (char *) "self", NULL
4951 };
4952
4953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (int)(arg1)->GetWidth();
4959
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 resultobj = SWIG_FromInt((int)result);
4964 return resultobj;
4965 fail:
4966 return NULL;
4967 }
4968
4969
4970 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4971 PyObject *resultobj;
4972 wxCursor *arg1 = (wxCursor *) 0 ;
4973 int result;
4974 PyObject * obj0 = 0 ;
4975 char *kwnames[] = {
4976 (char *) "self", NULL
4977 };
4978
4979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 result = (int)(arg1)->GetHeight();
4985
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 resultobj = SWIG_FromInt((int)result);
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 wxCursor *arg1 = (wxCursor *) 0 ;
4999 int result;
5000 PyObject * obj0 = 0 ;
5001 char *kwnames[] = {
5002 (char *) "self", NULL
5003 };
5004
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = (int)(arg1)->GetDepth();
5011
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 resultobj = SWIG_FromInt((int)result);
5016 return resultobj;
5017 fail:
5018 return NULL;
5019 }
5020
5021
5022 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5023 PyObject *resultobj;
5024 wxCursor *arg1 = (wxCursor *) 0 ;
5025 int arg2 ;
5026 PyObject * obj0 = 0 ;
5027 PyObject * obj1 = 0 ;
5028 char *kwnames[] = {
5029 (char *) "self",(char *) "w", NULL
5030 };
5031
5032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5035 arg2 = (int) SWIG_AsInt(obj1);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 {
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 (arg1)->SetWidth(arg2);
5040
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 Py_INCREF(Py_None); resultobj = Py_None;
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5052 PyObject *resultobj;
5053 wxCursor *arg1 = (wxCursor *) 0 ;
5054 int arg2 ;
5055 PyObject * obj0 = 0 ;
5056 PyObject * obj1 = 0 ;
5057 char *kwnames[] = {
5058 (char *) "self",(char *) "h", NULL
5059 };
5060
5061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5064 arg2 = (int) SWIG_AsInt(obj1);
5065 if (PyErr_Occurred()) SWIG_fail;
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 (arg1)->SetHeight(arg2);
5069
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 Py_INCREF(Py_None); resultobj = Py_None;
5074 return resultobj;
5075 fail:
5076 return NULL;
5077 }
5078
5079
5080 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5081 PyObject *resultobj;
5082 wxCursor *arg1 = (wxCursor *) 0 ;
5083 int arg2 ;
5084 PyObject * obj0 = 0 ;
5085 PyObject * obj1 = 0 ;
5086 char *kwnames[] = {
5087 (char *) "self",(char *) "d", NULL
5088 };
5089
5090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5093 arg2 = (int) SWIG_AsInt(obj1);
5094 if (PyErr_Occurred()) SWIG_fail;
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 (arg1)->SetDepth(arg2);
5098
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 Py_INCREF(Py_None); resultobj = Py_None;
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj;
5111 wxCursor *arg1 = (wxCursor *) 0 ;
5112 wxSize *arg2 = 0 ;
5113 wxSize temp2 ;
5114 PyObject * obj0 = 0 ;
5115 PyObject * obj1 = 0 ;
5116 char *kwnames[] = {
5117 (char *) "self",(char *) "size", NULL
5118 };
5119
5120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5123 {
5124 arg2 = &temp2;
5125 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5126 }
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 (arg1)->SetSize((wxSize const &)*arg2);
5130
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) SWIG_fail;
5133 }
5134 Py_INCREF(Py_None); resultobj = Py_None;
5135 return resultobj;
5136 fail:
5137 return NULL;
5138 }
5139
5140
5141 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5142 PyObject *obj;
5143 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5144 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5145 Py_INCREF(obj);
5146 return Py_BuildValue((char *)"");
5147 }
5148 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5149 PyObject *resultobj;
5150 int arg1 = (int) 0 ;
5151 int arg2 = (int) 0 ;
5152 int arg3 = (int) 0 ;
5153 int arg4 = (int) 0 ;
5154 wxRegion *result;
5155 PyObject * obj0 = 0 ;
5156 PyObject * obj1 = 0 ;
5157 PyObject * obj2 = 0 ;
5158 PyObject * obj3 = 0 ;
5159 char *kwnames[] = {
5160 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5164 if (obj0) {
5165 arg1 = (int) SWIG_AsInt(obj0);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 if (obj1) {
5169 arg2 = (int) SWIG_AsInt(obj1);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 if (obj2) {
5173 arg3 = (int) SWIG_AsInt(obj2);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 }
5176 if (obj3) {
5177 arg4 = (int) SWIG_AsInt(obj3);
5178 if (PyErr_Occurred()) SWIG_fail;
5179 }
5180 {
5181 PyThreadState* __tstate = wxPyBeginAllowThreads();
5182 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5183
5184 wxPyEndAllowThreads(__tstate);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 }
5187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5188 return resultobj;
5189 fail:
5190 return NULL;
5191 }
5192
5193
5194 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5195 PyObject *resultobj;
5196 wxBitmap *arg1 = 0 ;
5197 wxColour const &arg2_defvalue = wxNullColour ;
5198 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5199 int arg3 = (int) 0 ;
5200 wxRegion *result;
5201 wxColour temp2 ;
5202 PyObject * obj0 = 0 ;
5203 PyObject * obj1 = 0 ;
5204 PyObject * obj2 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
5210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5211 SWIG_POINTER_EXCEPTION | 0)) == -1)
5212 SWIG_fail;
5213 if (arg1 == NULL) {
5214 PyErr_SetString(PyExc_TypeError,"null reference");
5215 SWIG_fail;
5216 }
5217 if (obj1) {
5218 {
5219 arg2 = &temp2;
5220 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5221 }
5222 }
5223 if (obj2) {
5224 arg3 = (int) SWIG_AsInt(obj2);
5225 if (PyErr_Occurred()) SWIG_fail;
5226 }
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5230
5231 wxPyEndAllowThreads(__tstate);
5232 if (PyErr_Occurred()) SWIG_fail;
5233 }
5234 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5235 return resultobj;
5236 fail:
5237 return NULL;
5238 }
5239
5240
5241 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5242 PyObject *resultobj;
5243 int arg1 ;
5244 wxPoint *arg2 = (wxPoint *) 0 ;
5245 int arg3 = (int) wxWINDING_RULE ;
5246 wxRegion *result;
5247 PyObject * obj0 = 0 ;
5248 PyObject * obj1 = 0 ;
5249 char *kwnames[] = {
5250 (char *) "points",(char *) "fillStyle", NULL
5251 };
5252
5253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5254 {
5255 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5256 if (arg2 == NULL) SWIG_fail;
5257 }
5258 if (obj1) {
5259 arg3 = (int) SWIG_AsInt(obj1);
5260 if (PyErr_Occurred()) SWIG_fail;
5261 }
5262 {
5263 PyThreadState* __tstate = wxPyBeginAllowThreads();
5264 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5265
5266 wxPyEndAllowThreads(__tstate);
5267 if (PyErr_Occurred()) SWIG_fail;
5268 }
5269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5270 {
5271 if (arg2) delete [] arg2;
5272 }
5273 return resultobj;
5274 fail:
5275 {
5276 if (arg2) delete [] arg2;
5277 }
5278 return NULL;
5279 }
5280
5281
5282 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5283 PyObject *resultobj;
5284 wxRegion *arg1 = (wxRegion *) 0 ;
5285 PyObject * obj0 = 0 ;
5286 char *kwnames[] = {
5287 (char *) "self", NULL
5288 };
5289
5290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
5295 delete arg1;
5296
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 Py_INCREF(Py_None); resultobj = Py_None;
5301 return resultobj;
5302 fail:
5303 return NULL;
5304 }
5305
5306
5307 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj;
5309 wxRegion *arg1 = (wxRegion *) 0 ;
5310 PyObject * obj0 = 0 ;
5311 char *kwnames[] = {
5312 (char *) "self", NULL
5313 };
5314
5315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5318 {
5319 PyThreadState* __tstate = wxPyBeginAllowThreads();
5320 (arg1)->Clear();
5321
5322 wxPyEndAllowThreads(__tstate);
5323 if (PyErr_Occurred()) SWIG_fail;
5324 }
5325 Py_INCREF(Py_None); resultobj = Py_None;
5326 return resultobj;
5327 fail:
5328 return NULL;
5329 }
5330
5331
5332 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5333 PyObject *resultobj;
5334 wxRegion *arg1 = (wxRegion *) 0 ;
5335 int arg2 ;
5336 int arg3 ;
5337 bool result;
5338 PyObject * obj0 = 0 ;
5339 PyObject * obj1 = 0 ;
5340 PyObject * obj2 = 0 ;
5341 char *kwnames[] = {
5342 (char *) "self",(char *) "x",(char *) "y", NULL
5343 };
5344
5345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5348 arg2 = (int) SWIG_AsInt(obj1);
5349 if (PyErr_Occurred()) SWIG_fail;
5350 arg3 = (int) SWIG_AsInt(obj2);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 {
5353 PyThreadState* __tstate = wxPyBeginAllowThreads();
5354 result = (bool)(arg1)->Offset(arg2,arg3);
5355
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 }
5359 {
5360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5361 }
5362 return resultobj;
5363 fail:
5364 return NULL;
5365 }
5366
5367
5368 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5369 PyObject *resultobj;
5370 wxRegion *arg1 = (wxRegion *) 0 ;
5371 int arg2 ;
5372 int arg3 ;
5373 int result;
5374 PyObject * obj0 = 0 ;
5375 PyObject * obj1 = 0 ;
5376 PyObject * obj2 = 0 ;
5377 char *kwnames[] = {
5378 (char *) "self",(char *) "x",(char *) "y", NULL
5379 };
5380
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5384 arg2 = (int) SWIG_AsInt(obj1);
5385 if (PyErr_Occurred()) SWIG_fail;
5386 arg3 = (int) SWIG_AsInt(obj2);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 result = (int)(arg1)->Contains(arg2,arg3);
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 resultobj = SWIG_FromInt((int)result);
5396 return resultobj;
5397 fail:
5398 return NULL;
5399 }
5400
5401
5402 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5403 PyObject *resultobj;
5404 wxRegion *arg1 = (wxRegion *) 0 ;
5405 wxPoint *arg2 = 0 ;
5406 int result;
5407 wxPoint temp2 ;
5408 PyObject * obj0 = 0 ;
5409 PyObject * obj1 = 0 ;
5410 char *kwnames[] = {
5411 (char *) "self",(char *) "pt", NULL
5412 };
5413
5414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5417 {
5418 arg2 = &temp2;
5419 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5420 }
5421 {
5422 PyThreadState* __tstate = wxPyBeginAllowThreads();
5423 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5424
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 resultobj = SWIG_FromInt((int)result);
5429 return resultobj;
5430 fail:
5431 return NULL;
5432 }
5433
5434
5435 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5436 PyObject *resultobj;
5437 wxRegion *arg1 = (wxRegion *) 0 ;
5438 wxRect *arg2 = 0 ;
5439 int result;
5440 wxRect temp2 ;
5441 PyObject * obj0 = 0 ;
5442 PyObject * obj1 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self",(char *) "rect", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5450 {
5451 arg2 = &temp2;
5452 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5453 }
5454 {
5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
5456 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5457
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 resultobj = SWIG_FromInt((int)result);
5462 return resultobj;
5463 fail:
5464 return NULL;
5465 }
5466
5467
5468 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5469 PyObject *resultobj;
5470 wxRegion *arg1 = (wxRegion *) 0 ;
5471 int arg2 ;
5472 int arg3 ;
5473 int arg4 ;
5474 int arg5 ;
5475 int result;
5476 PyObject * obj0 = 0 ;
5477 PyObject * obj1 = 0 ;
5478 PyObject * obj2 = 0 ;
5479 PyObject * obj3 = 0 ;
5480 PyObject * obj4 = 0 ;
5481 char *kwnames[] = {
5482 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5483 };
5484
5485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5488 arg2 = (int) SWIG_AsInt(obj1);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 arg3 = (int) SWIG_AsInt(obj2);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 arg4 = (int) SWIG_AsInt(obj3);
5493 if (PyErr_Occurred()) SWIG_fail;
5494 arg5 = (int) SWIG_AsInt(obj4);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 {
5497 PyThreadState* __tstate = wxPyBeginAllowThreads();
5498 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5499
5500 wxPyEndAllowThreads(__tstate);
5501 if (PyErr_Occurred()) SWIG_fail;
5502 }
5503 resultobj = SWIG_FromInt((int)result);
5504 return resultobj;
5505 fail:
5506 return NULL;
5507 }
5508
5509
5510 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5511 PyObject *resultobj;
5512 wxRegion *arg1 = (wxRegion *) 0 ;
5513 wxRect result;
5514 PyObject * obj0 = 0 ;
5515 char *kwnames[] = {
5516 (char *) "self", NULL
5517 };
5518
5519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5522 {
5523 PyThreadState* __tstate = wxPyBeginAllowThreads();
5524 result = (arg1)->GetBox();
5525
5526 wxPyEndAllowThreads(__tstate);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 {
5530 wxRect * resultptr;
5531 resultptr = new wxRect((wxRect &) result);
5532 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5533 }
5534 return resultobj;
5535 fail:
5536 return NULL;
5537 }
5538
5539
5540 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5541 PyObject *resultobj;
5542 wxRegion *arg1 = (wxRegion *) 0 ;
5543 int arg2 ;
5544 int arg3 ;
5545 int arg4 ;
5546 int arg5 ;
5547 bool result;
5548 PyObject * obj0 = 0 ;
5549 PyObject * obj1 = 0 ;
5550 PyObject * obj2 = 0 ;
5551 PyObject * obj3 = 0 ;
5552 PyObject * obj4 = 0 ;
5553 char *kwnames[] = {
5554 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5555 };
5556
5557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5560 arg2 = (int) SWIG_AsInt(obj1);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 arg3 = (int) SWIG_AsInt(obj2);
5563 if (PyErr_Occurred()) SWIG_fail;
5564 arg4 = (int) SWIG_AsInt(obj3);
5565 if (PyErr_Occurred()) SWIG_fail;
5566 arg5 = (int) SWIG_AsInt(obj4);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5571
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 {
5576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5577 }
5578 return resultobj;
5579 fail:
5580 return NULL;
5581 }
5582
5583
5584 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5585 PyObject *resultobj;
5586 wxRegion *arg1 = (wxRegion *) 0 ;
5587 wxRect *arg2 = 0 ;
5588 bool result;
5589 wxRect temp2 ;
5590 PyObject * obj0 = 0 ;
5591 PyObject * obj1 = 0 ;
5592 char *kwnames[] = {
5593 (char *) "self",(char *) "rect", NULL
5594 };
5595
5596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5599 {
5600 arg2 = &temp2;
5601 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5602 }
5603 {
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5606
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) SWIG_fail;
5609 }
5610 {
5611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5612 }
5613 return resultobj;
5614 fail:
5615 return NULL;
5616 }
5617
5618
5619 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5620 PyObject *resultobj;
5621 wxRegion *arg1 = (wxRegion *) 0 ;
5622 wxRegion *arg2 = 0 ;
5623 bool result;
5624 PyObject * obj0 = 0 ;
5625 PyObject * obj1 = 0 ;
5626 char *kwnames[] = {
5627 (char *) "self",(char *) "region", NULL
5628 };
5629
5630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5633 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5634 SWIG_POINTER_EXCEPTION | 0)) == -1)
5635 SWIG_fail;
5636 if (arg2 == NULL) {
5637 PyErr_SetString(PyExc_TypeError,"null reference");
5638 SWIG_fail;
5639 }
5640 {
5641 PyThreadState* __tstate = wxPyBeginAllowThreads();
5642 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5643
5644 wxPyEndAllowThreads(__tstate);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 }
5647 {
5648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5649 }
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj;
5658 wxRegion *arg1 = (wxRegion *) 0 ;
5659 bool result;
5660 PyObject * obj0 = 0 ;
5661 char *kwnames[] = {
5662 (char *) "self", NULL
5663 };
5664
5665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5668 {
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 result = (bool)(arg1)->IsEmpty();
5671
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) SWIG_fail;
5674 }
5675 {
5676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5677 }
5678 return resultobj;
5679 fail:
5680 return NULL;
5681 }
5682
5683
5684 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5685 PyObject *resultobj;
5686 wxRegion *arg1 = (wxRegion *) 0 ;
5687 int arg2 ;
5688 int arg3 ;
5689 int arg4 ;
5690 int arg5 ;
5691 bool result;
5692 PyObject * obj0 = 0 ;
5693 PyObject * obj1 = 0 ;
5694 PyObject * obj2 = 0 ;
5695 PyObject * obj3 = 0 ;
5696 PyObject * obj4 = 0 ;
5697 char *kwnames[] = {
5698 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5699 };
5700
5701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5704 arg2 = (int) SWIG_AsInt(obj1);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 arg3 = (int) SWIG_AsInt(obj2);
5707 if (PyErr_Occurred()) SWIG_fail;
5708 arg4 = (int) SWIG_AsInt(obj3);
5709 if (PyErr_Occurred()) SWIG_fail;
5710 arg5 = (int) SWIG_AsInt(obj4);
5711 if (PyErr_Occurred()) SWIG_fail;
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5715
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 {
5720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5721 }
5722 return resultobj;
5723 fail:
5724 return NULL;
5725 }
5726
5727
5728 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5729 PyObject *resultobj;
5730 wxRegion *arg1 = (wxRegion *) 0 ;
5731 wxRect *arg2 = 0 ;
5732 bool result;
5733 wxRect temp2 ;
5734 PyObject * obj0 = 0 ;
5735 PyObject * obj1 = 0 ;
5736 char *kwnames[] = {
5737 (char *) "self",(char *) "rect", NULL
5738 };
5739
5740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5743 {
5744 arg2 = &temp2;
5745 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5746 }
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5750
5751 wxPyEndAllowThreads(__tstate);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 }
5754 {
5755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5756 }
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxRegion *arg1 = (wxRegion *) 0 ;
5766 wxRegion *arg2 = 0 ;
5767 bool result;
5768 PyObject * obj0 = 0 ;
5769 PyObject * obj1 = 0 ;
5770 char *kwnames[] = {
5771 (char *) "self",(char *) "region", NULL
5772 };
5773
5774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5777 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5778 SWIG_POINTER_EXCEPTION | 0)) == -1)
5779 SWIG_fail;
5780 if (arg2 == NULL) {
5781 PyErr_SetString(PyExc_TypeError,"null reference");
5782 SWIG_fail;
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5787
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 {
5792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5793 }
5794 return resultobj;
5795 fail:
5796 return NULL;
5797 }
5798
5799
5800 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5801 PyObject *resultobj;
5802 wxRegion *arg1 = (wxRegion *) 0 ;
5803 int arg2 ;
5804 int arg3 ;
5805 int arg4 ;
5806 int arg5 ;
5807 bool result;
5808 PyObject * obj0 = 0 ;
5809 PyObject * obj1 = 0 ;
5810 PyObject * obj2 = 0 ;
5811 PyObject * obj3 = 0 ;
5812 PyObject * obj4 = 0 ;
5813 char *kwnames[] = {
5814 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5815 };
5816
5817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5820 arg2 = (int) SWIG_AsInt(obj1);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 arg3 = (int) SWIG_AsInt(obj2);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 arg4 = (int) SWIG_AsInt(obj3);
5825 if (PyErr_Occurred()) SWIG_fail;
5826 arg5 = (int) SWIG_AsInt(obj4);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 {
5836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5837 }
5838 return resultobj;
5839 fail:
5840 return NULL;
5841 }
5842
5843
5844 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5845 PyObject *resultobj;
5846 wxRegion *arg1 = (wxRegion *) 0 ;
5847 wxRect *arg2 = 0 ;
5848 bool result;
5849 wxRect temp2 ;
5850 PyObject * obj0 = 0 ;
5851 PyObject * obj1 = 0 ;
5852 char *kwnames[] = {
5853 (char *) "self",(char *) "rect", NULL
5854 };
5855
5856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5859 {
5860 arg2 = &temp2;
5861 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5862 }
5863 {
5864 PyThreadState* __tstate = wxPyBeginAllowThreads();
5865 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5866
5867 wxPyEndAllowThreads(__tstate);
5868 if (PyErr_Occurred()) SWIG_fail;
5869 }
5870 {
5871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5872 }
5873 return resultobj;
5874 fail:
5875 return NULL;
5876 }
5877
5878
5879 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5880 PyObject *resultobj;
5881 wxRegion *arg1 = (wxRegion *) 0 ;
5882 wxRegion *arg2 = 0 ;
5883 bool result;
5884 PyObject * obj0 = 0 ;
5885 PyObject * obj1 = 0 ;
5886 char *kwnames[] = {
5887 (char *) "self",(char *) "region", NULL
5888 };
5889
5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5893 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5894 SWIG_POINTER_EXCEPTION | 0)) == -1)
5895 SWIG_fail;
5896 if (arg2 == NULL) {
5897 PyErr_SetString(PyExc_TypeError,"null reference");
5898 SWIG_fail;
5899 }
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5903
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 {
5908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5909 }
5910 return resultobj;
5911 fail:
5912 return NULL;
5913 }
5914
5915
5916 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5917 PyObject *resultobj;
5918 wxRegion *arg1 = (wxRegion *) 0 ;
5919 int arg2 ;
5920 int arg3 ;
5921 int arg4 ;
5922 int arg5 ;
5923 bool result;
5924 PyObject * obj0 = 0 ;
5925 PyObject * obj1 = 0 ;
5926 PyObject * obj2 = 0 ;
5927 PyObject * obj3 = 0 ;
5928 PyObject * obj4 = 0 ;
5929 char *kwnames[] = {
5930 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5931 };
5932
5933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5936 arg2 = (int) SWIG_AsInt(obj1);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 arg3 = (int) SWIG_AsInt(obj2);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 arg4 = (int) SWIG_AsInt(obj3);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 arg5 = (int) SWIG_AsInt(obj4);
5943 if (PyErr_Occurred()) SWIG_fail;
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5947
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 {
5952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5953 }
5954 return resultobj;
5955 fail:
5956 return NULL;
5957 }
5958
5959
5960 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5961 PyObject *resultobj;
5962 wxRegion *arg1 = (wxRegion *) 0 ;
5963 wxRect *arg2 = 0 ;
5964 bool result;
5965 wxRect temp2 ;
5966 PyObject * obj0 = 0 ;
5967 PyObject * obj1 = 0 ;
5968 char *kwnames[] = {
5969 (char *) "self",(char *) "rect", NULL
5970 };
5971
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5975 {
5976 arg2 = &temp2;
5977 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5978 }
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5982
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 {
5987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5988 }
5989 return resultobj;
5990 fail:
5991 return NULL;
5992 }
5993
5994
5995 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5996 PyObject *resultobj;
5997 wxRegion *arg1 = (wxRegion *) 0 ;
5998 wxRegion *arg2 = 0 ;
5999 bool result;
6000 PyObject * obj0 = 0 ;
6001 PyObject * obj1 = 0 ;
6002 char *kwnames[] = {
6003 (char *) "self",(char *) "region", NULL
6004 };
6005
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6009 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6010 SWIG_POINTER_EXCEPTION | 0)) == -1)
6011 SWIG_fail;
6012 if (arg2 == NULL) {
6013 PyErr_SetString(PyExc_TypeError,"null reference");
6014 SWIG_fail;
6015 }
6016 {
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6019
6020 wxPyEndAllowThreads(__tstate);
6021 if (PyErr_Occurred()) SWIG_fail;
6022 }
6023 {
6024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6025 }
6026 return resultobj;
6027 fail:
6028 return NULL;
6029 }
6030
6031
6032 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6033 PyObject *resultobj;
6034 wxRegion *arg1 = (wxRegion *) 0 ;
6035 SwigValueWrapper< wxBitmap > result;
6036 PyObject * obj0 = 0 ;
6037 char *kwnames[] = {
6038 (char *) "self", NULL
6039 };
6040
6041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 result = (arg1)->ConvertToBitmap();
6047
6048 wxPyEndAllowThreads(__tstate);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
6051 {
6052 wxBitmap * resultptr;
6053 resultptr = new wxBitmap((wxBitmap &) result);
6054 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6055 }
6056 return resultobj;
6057 fail:
6058 return NULL;
6059 }
6060
6061
6062 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj;
6064 wxRegion *arg1 = (wxRegion *) 0 ;
6065 wxBitmap *arg2 = 0 ;
6066 wxColour const &arg3_defvalue = wxNullColour ;
6067 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6068 int arg4 = (int) 0 ;
6069 bool result;
6070 wxColour temp3 ;
6071 PyObject * obj0 = 0 ;
6072 PyObject * obj1 = 0 ;
6073 PyObject * obj2 = 0 ;
6074 PyObject * obj3 = 0 ;
6075 char *kwnames[] = {
6076 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6077 };
6078
6079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6083 SWIG_POINTER_EXCEPTION | 0)) == -1)
6084 SWIG_fail;
6085 if (arg2 == NULL) {
6086 PyErr_SetString(PyExc_TypeError,"null reference");
6087 SWIG_fail;
6088 }
6089 if (obj2) {
6090 {
6091 arg3 = &temp3;
6092 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6093 }
6094 }
6095 if (obj3) {
6096 arg4 = (int) SWIG_AsInt(obj3);
6097 if (PyErr_Occurred()) SWIG_fail;
6098 }
6099 {
6100 PyThreadState* __tstate = wxPyBeginAllowThreads();
6101 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6102
6103 wxPyEndAllowThreads(__tstate);
6104 if (PyErr_Occurred()) SWIG_fail;
6105 }
6106 {
6107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6108 }
6109 return resultobj;
6110 fail:
6111 return NULL;
6112 }
6113
6114
6115 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6116 PyObject *obj;
6117 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6118 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6119 Py_INCREF(obj);
6120 return Py_BuildValue((char *)"");
6121 }
6122 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6123 PyObject *resultobj;
6124 wxRegion *arg1 = 0 ;
6125 wxRegionIterator *result;
6126 PyObject * obj0 = 0 ;
6127 char *kwnames[] = {
6128 (char *) "region", NULL
6129 };
6130
6131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6133 SWIG_POINTER_EXCEPTION | 0)) == -1)
6134 SWIG_fail;
6135 if (arg1 == NULL) {
6136 PyErr_SetString(PyExc_TypeError,"null reference");
6137 SWIG_fail;
6138 }
6139 {
6140 PyThreadState* __tstate = wxPyBeginAllowThreads();
6141 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6142
6143 wxPyEndAllowThreads(__tstate);
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6147 return resultobj;
6148 fail:
6149 return NULL;
6150 }
6151
6152
6153 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6154 PyObject *resultobj;
6155 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6156 PyObject * obj0 = 0 ;
6157 char *kwnames[] = {
6158 (char *) "self", NULL
6159 };
6160
6161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6164 {
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 delete arg1;
6167
6168 wxPyEndAllowThreads(__tstate);
6169 if (PyErr_Occurred()) SWIG_fail;
6170 }
6171 Py_INCREF(Py_None); resultobj = Py_None;
6172 return resultobj;
6173 fail:
6174 return NULL;
6175 }
6176
6177
6178 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6179 PyObject *resultobj;
6180 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6181 int result;
6182 PyObject * obj0 = 0 ;
6183 char *kwnames[] = {
6184 (char *) "self", NULL
6185 };
6186
6187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6190 {
6191 PyThreadState* __tstate = wxPyBeginAllowThreads();
6192 result = (int)(arg1)->GetX();
6193
6194 wxPyEndAllowThreads(__tstate);
6195 if (PyErr_Occurred()) SWIG_fail;
6196 }
6197 resultobj = SWIG_FromInt((int)result);
6198 return resultobj;
6199 fail:
6200 return NULL;
6201 }
6202
6203
6204 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6205 PyObject *resultobj;
6206 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6207 int result;
6208 PyObject * obj0 = 0 ;
6209 char *kwnames[] = {
6210 (char *) "self", NULL
6211 };
6212
6213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 result = (int)(arg1)->GetY();
6219
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 resultobj = SWIG_FromInt((int)result);
6224 return resultobj;
6225 fail:
6226 return NULL;
6227 }
6228
6229
6230 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj;
6232 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6233 int result;
6234 PyObject * obj0 = 0 ;
6235 char *kwnames[] = {
6236 (char *) "self", NULL
6237 };
6238
6239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6242 {
6243 PyThreadState* __tstate = wxPyBeginAllowThreads();
6244 result = (int)(arg1)->GetW();
6245
6246 wxPyEndAllowThreads(__tstate);
6247 if (PyErr_Occurred()) SWIG_fail;
6248 }
6249 resultobj = SWIG_FromInt((int)result);
6250 return resultobj;
6251 fail:
6252 return NULL;
6253 }
6254
6255
6256 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6257 PyObject *resultobj;
6258 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6259 int result;
6260 PyObject * obj0 = 0 ;
6261 char *kwnames[] = {
6262 (char *) "self", NULL
6263 };
6264
6265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6268 {
6269 PyThreadState* __tstate = wxPyBeginAllowThreads();
6270 result = (int)(arg1)->GetWidth();
6271
6272 wxPyEndAllowThreads(__tstate);
6273 if (PyErr_Occurred()) SWIG_fail;
6274 }
6275 resultobj = SWIG_FromInt((int)result);
6276 return resultobj;
6277 fail:
6278 return NULL;
6279 }
6280
6281
6282 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6283 PyObject *resultobj;
6284 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6285 int result;
6286 PyObject * obj0 = 0 ;
6287 char *kwnames[] = {
6288 (char *) "self", NULL
6289 };
6290
6291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 result = (int)(arg1)->GetH();
6297
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 resultobj = SWIG_FromInt((int)result);
6302 return resultobj;
6303 fail:
6304 return NULL;
6305 }
6306
6307
6308 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj;
6310 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6311 int result;
6312 PyObject * obj0 = 0 ;
6313 char *kwnames[] = {
6314 (char *) "self", NULL
6315 };
6316
6317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6320 {
6321 PyThreadState* __tstate = wxPyBeginAllowThreads();
6322 result = (int)(arg1)->GetHeight();
6323
6324 wxPyEndAllowThreads(__tstate);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 }
6327 resultobj = SWIG_FromInt((int)result);
6328 return resultobj;
6329 fail:
6330 return NULL;
6331 }
6332
6333
6334 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6335 PyObject *resultobj;
6336 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6337 wxRect result;
6338 PyObject * obj0 = 0 ;
6339 char *kwnames[] = {
6340 (char *) "self", NULL
6341 };
6342
6343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6346 {
6347 PyThreadState* __tstate = wxPyBeginAllowThreads();
6348 result = (arg1)->GetRect();
6349
6350 wxPyEndAllowThreads(__tstate);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 {
6354 wxRect * resultptr;
6355 resultptr = new wxRect((wxRect &) result);
6356 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6357 }
6358 return resultobj;
6359 fail:
6360 return NULL;
6361 }
6362
6363
6364 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6365 PyObject *resultobj;
6366 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6367 bool result;
6368 PyObject * obj0 = 0 ;
6369 char *kwnames[] = {
6370 (char *) "self", NULL
6371 };
6372
6373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6376 {
6377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6378 result = (bool)(arg1)->HaveRects();
6379
6380 wxPyEndAllowThreads(__tstate);
6381 if (PyErr_Occurred()) SWIG_fail;
6382 }
6383 {
6384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6385 }
6386 return resultobj;
6387 fail:
6388 return NULL;
6389 }
6390
6391
6392 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6393 PyObject *resultobj;
6394 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6395 PyObject * obj0 = 0 ;
6396 char *kwnames[] = {
6397 (char *) "self", NULL
6398 };
6399
6400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6403 {
6404 PyThreadState* __tstate = wxPyBeginAllowThreads();
6405 (arg1)->Reset();
6406
6407 wxPyEndAllowThreads(__tstate);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 Py_INCREF(Py_None); resultobj = Py_None;
6411 return resultobj;
6412 fail:
6413 return NULL;
6414 }
6415
6416
6417 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6418 PyObject *resultobj;
6419 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6420 PyObject * obj0 = 0 ;
6421 char *kwnames[] = {
6422 (char *) "self", NULL
6423 };
6424
6425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6428 {
6429 PyThreadState* __tstate = wxPyBeginAllowThreads();
6430 wxRegionIterator_Next(arg1);
6431
6432 wxPyEndAllowThreads(__tstate);
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 Py_INCREF(Py_None); resultobj = Py_None;
6436 return resultobj;
6437 fail:
6438 return NULL;
6439 }
6440
6441
6442 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6443 PyObject *resultobj;
6444 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6445 bool result;
6446 PyObject * obj0 = 0 ;
6447 char *kwnames[] = {
6448 (char *) "self", NULL
6449 };
6450
6451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6454 {
6455 PyThreadState* __tstate = wxPyBeginAllowThreads();
6456 result = (bool)wxRegionIterator___nonzero__(arg1);
6457
6458 wxPyEndAllowThreads(__tstate);
6459 if (PyErr_Occurred()) SWIG_fail;
6460 }
6461 {
6462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6463 }
6464 return resultobj;
6465 fail:
6466 return NULL;
6467 }
6468
6469
6470 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6471 PyObject *obj;
6472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6473 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6474 Py_INCREF(obj);
6475 return Py_BuildValue((char *)"");
6476 }
6477 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject *resultobj;
6479 wxNativeFontInfo *result;
6480 char *kwnames[] = {
6481 NULL
6482 };
6483
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6488
6489 wxPyEndAllowThreads(__tstate);
6490 if (PyErr_Occurred()) SWIG_fail;
6491 }
6492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6493 return resultobj;
6494 fail:
6495 return NULL;
6496 }
6497
6498
6499 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6500 PyObject *resultobj;
6501 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6502 PyObject * obj0 = 0 ;
6503 char *kwnames[] = {
6504 (char *) "self", NULL
6505 };
6506
6507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6510 {
6511 PyThreadState* __tstate = wxPyBeginAllowThreads();
6512 delete arg1;
6513
6514 wxPyEndAllowThreads(__tstate);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 Py_INCREF(Py_None); resultobj = Py_None;
6518 return resultobj;
6519 fail:
6520 return NULL;
6521 }
6522
6523
6524 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6525 PyObject *resultobj;
6526 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6527 PyObject * obj0 = 0 ;
6528 char *kwnames[] = {
6529 (char *) "self", NULL
6530 };
6531
6532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6535 {
6536 PyThreadState* __tstate = wxPyBeginAllowThreads();
6537 (arg1)->Init();
6538
6539 wxPyEndAllowThreads(__tstate);
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 Py_INCREF(Py_None); resultobj = Py_None;
6543 return resultobj;
6544 fail:
6545 return NULL;
6546 }
6547
6548
6549 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6550 PyObject *resultobj;
6551 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6552 wxFont *arg2 = 0 ;
6553 PyObject * obj0 = 0 ;
6554 PyObject * obj1 = 0 ;
6555 char *kwnames[] = {
6556 (char *) "self",(char *) "font", NULL
6557 };
6558
6559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6563 SWIG_POINTER_EXCEPTION | 0)) == -1)
6564 SWIG_fail;
6565 if (arg2 == NULL) {
6566 PyErr_SetString(PyExc_TypeError,"null reference");
6567 SWIG_fail;
6568 }
6569 {
6570 PyThreadState* __tstate = wxPyBeginAllowThreads();
6571 (arg1)->InitFromFont((wxFont const &)*arg2);
6572
6573 wxPyEndAllowThreads(__tstate);
6574 if (PyErr_Occurred()) SWIG_fail;
6575 }
6576 Py_INCREF(Py_None); resultobj = Py_None;
6577 return resultobj;
6578 fail:
6579 return NULL;
6580 }
6581
6582
6583 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6584 PyObject *resultobj;
6585 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6586 int result;
6587 PyObject * obj0 = 0 ;
6588 char *kwnames[] = {
6589 (char *) "self", NULL
6590 };
6591
6592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6595 {
6596 PyThreadState* __tstate = wxPyBeginAllowThreads();
6597 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6598
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 resultobj = SWIG_FromInt((int)result);
6603 return resultobj;
6604 fail:
6605 return NULL;
6606 }
6607
6608
6609 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6610 PyObject *resultobj;
6611 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6612 int result;
6613 PyObject * obj0 = 0 ;
6614 char *kwnames[] = {
6615 (char *) "self", NULL
6616 };
6617
6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6621 {
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6624
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 resultobj = SWIG_FromInt((int)result);
6629 return resultobj;
6630 fail:
6631 return NULL;
6632 }
6633
6634
6635 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6636 PyObject *resultobj;
6637 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6638 int result;
6639 PyObject * obj0 = 0 ;
6640 char *kwnames[] = {
6641 (char *) "self", NULL
6642 };
6643
6644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6647 {
6648 PyThreadState* __tstate = wxPyBeginAllowThreads();
6649 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6650
6651 wxPyEndAllowThreads(__tstate);
6652 if (PyErr_Occurred()) SWIG_fail;
6653 }
6654 resultobj = SWIG_FromInt((int)result);
6655 return resultobj;
6656 fail:
6657 return NULL;
6658 }
6659
6660
6661 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6662 PyObject *resultobj;
6663 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6664 bool result;
6665 PyObject * obj0 = 0 ;
6666 char *kwnames[] = {
6667 (char *) "self", NULL
6668 };
6669
6670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6676
6677 wxPyEndAllowThreads(__tstate);
6678 if (PyErr_Occurred()) SWIG_fail;
6679 }
6680 {
6681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6682 }
6683 return resultobj;
6684 fail:
6685 return NULL;
6686 }
6687
6688
6689 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6690 PyObject *resultobj;
6691 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6692 wxString result;
6693 PyObject * obj0 = 0 ;
6694 char *kwnames[] = {
6695 (char *) "self", NULL
6696 };
6697
6698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6701 {
6702 PyThreadState* __tstate = wxPyBeginAllowThreads();
6703 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6704
6705 wxPyEndAllowThreads(__tstate);
6706 if (PyErr_Occurred()) SWIG_fail;
6707 }
6708 {
6709 #if wxUSE_UNICODE
6710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6711 #else
6712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6713 #endif
6714 }
6715 return resultobj;
6716 fail:
6717 return NULL;
6718 }
6719
6720
6721 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6724 int result;
6725 PyObject * obj0 = 0 ;
6726 char *kwnames[] = {
6727 (char *) "self", NULL
6728 };
6729
6730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6733 {
6734 PyThreadState* __tstate = wxPyBeginAllowThreads();
6735 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6736
6737 wxPyEndAllowThreads(__tstate);
6738 if (PyErr_Occurred()) SWIG_fail;
6739 }
6740 resultobj = SWIG_FromInt((int)result);
6741 return resultobj;
6742 fail:
6743 return NULL;
6744 }
6745
6746
6747 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6748 PyObject *resultobj;
6749 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6750 int result;
6751 PyObject * obj0 = 0 ;
6752 char *kwnames[] = {
6753 (char *) "self", NULL
6754 };
6755
6756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6759 {
6760 PyThreadState* __tstate = wxPyBeginAllowThreads();
6761 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6762
6763 wxPyEndAllowThreads(__tstate);
6764 if (PyErr_Occurred()) SWIG_fail;
6765 }
6766 resultobj = SWIG_FromInt((int)result);
6767 return resultobj;
6768 fail:
6769 return NULL;
6770 }
6771
6772
6773 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6776 int arg2 ;
6777 PyObject * obj0 = 0 ;
6778 PyObject * obj1 = 0 ;
6779 char *kwnames[] = {
6780 (char *) "self",(char *) "pointsize", NULL
6781 };
6782
6783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6786 arg2 = (int) SWIG_AsInt(obj1);
6787 if (PyErr_Occurred()) SWIG_fail;
6788 {
6789 PyThreadState* __tstate = wxPyBeginAllowThreads();
6790 (arg1)->SetPointSize(arg2);
6791
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 Py_INCREF(Py_None); resultobj = Py_None;
6796 return resultobj;
6797 fail:
6798 return NULL;
6799 }
6800
6801
6802 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj;
6804 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6805 int arg2 ;
6806 PyObject * obj0 = 0 ;
6807 PyObject * obj1 = 0 ;
6808 char *kwnames[] = {
6809 (char *) "self",(char *) "style", NULL
6810 };
6811
6812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6815 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 {
6818 PyThreadState* __tstate = wxPyBeginAllowThreads();
6819 (arg1)->SetStyle((wxFontStyle )arg2);
6820
6821 wxPyEndAllowThreads(__tstate);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 Py_INCREF(Py_None); resultobj = Py_None;
6825 return resultobj;
6826 fail:
6827 return NULL;
6828 }
6829
6830
6831 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6832 PyObject *resultobj;
6833 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6834 int arg2 ;
6835 PyObject * obj0 = 0 ;
6836 PyObject * obj1 = 0 ;
6837 char *kwnames[] = {
6838 (char *) "self",(char *) "weight", NULL
6839 };
6840
6841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6844 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 {
6847 PyThreadState* __tstate = wxPyBeginAllowThreads();
6848 (arg1)->SetWeight((wxFontWeight )arg2);
6849
6850 wxPyEndAllowThreads(__tstate);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 Py_INCREF(Py_None); resultobj = Py_None;
6854 return resultobj;
6855 fail:
6856 return NULL;
6857 }
6858
6859
6860 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj;
6862 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6863 bool arg2 ;
6864 PyObject * obj0 = 0 ;
6865 PyObject * obj1 = 0 ;
6866 char *kwnames[] = {
6867 (char *) "self",(char *) "underlined", NULL
6868 };
6869
6870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6873 arg2 = (bool) SWIG_AsBool(obj1);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 {
6876 PyThreadState* __tstate = wxPyBeginAllowThreads();
6877 (arg1)->SetUnderlined(arg2);
6878
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 Py_INCREF(Py_None); resultobj = Py_None;
6883 return resultobj;
6884 fail:
6885 return NULL;
6886 }
6887
6888
6889 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj;
6891 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6892 wxString arg2 ;
6893 PyObject * obj0 = 0 ;
6894 PyObject * obj1 = 0 ;
6895 char *kwnames[] = {
6896 (char *) "self",(char *) "facename", NULL
6897 };
6898
6899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6902 {
6903 wxString* sptr = wxString_in_helper(obj1);
6904 if (sptr == NULL) SWIG_fail;
6905 arg2 = *sptr;
6906 delete sptr;
6907 }
6908 {
6909 PyThreadState* __tstate = wxPyBeginAllowThreads();
6910 (arg1)->SetFaceName(arg2);
6911
6912 wxPyEndAllowThreads(__tstate);
6913 if (PyErr_Occurred()) SWIG_fail;
6914 }
6915 Py_INCREF(Py_None); resultobj = Py_None;
6916 return resultobj;
6917 fail:
6918 return NULL;
6919 }
6920
6921
6922 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6923 PyObject *resultobj;
6924 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6925 int arg2 ;
6926 PyObject * obj0 = 0 ;
6927 PyObject * obj1 = 0 ;
6928 char *kwnames[] = {
6929 (char *) "self",(char *) "family", NULL
6930 };
6931
6932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6935 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 {
6938 PyThreadState* __tstate = wxPyBeginAllowThreads();
6939 (arg1)->SetFamily((wxFontFamily )arg2);
6940
6941 wxPyEndAllowThreads(__tstate);
6942 if (PyErr_Occurred()) SWIG_fail;
6943 }
6944 Py_INCREF(Py_None); resultobj = Py_None;
6945 return resultobj;
6946 fail:
6947 return NULL;
6948 }
6949
6950
6951 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6952 PyObject *resultobj;
6953 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6954 int arg2 ;
6955 PyObject * obj0 = 0 ;
6956 PyObject * obj1 = 0 ;
6957 char *kwnames[] = {
6958 (char *) "self",(char *) "encoding", NULL
6959 };
6960
6961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6964 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 {
6967 PyThreadState* __tstate = wxPyBeginAllowThreads();
6968 (arg1)->SetEncoding((wxFontEncoding )arg2);
6969
6970 wxPyEndAllowThreads(__tstate);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 Py_INCREF(Py_None); resultobj = Py_None;
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6981 PyObject *resultobj;
6982 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6983 wxString *arg2 = 0 ;
6984 bool result;
6985 bool temp2 = False ;
6986 PyObject * obj0 = 0 ;
6987 PyObject * obj1 = 0 ;
6988 char *kwnames[] = {
6989 (char *) "self",(char *) "s", NULL
6990 };
6991
6992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6995 {
6996 arg2 = wxString_in_helper(obj1);
6997 if (arg2 == NULL) SWIG_fail;
6998 temp2 = True;
6999 }
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7003
7004 wxPyEndAllowThreads(__tstate);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 }
7007 {
7008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7009 }
7010 {
7011 if (temp2)
7012 delete arg2;
7013 }
7014 return resultobj;
7015 fail:
7016 {
7017 if (temp2)
7018 delete arg2;
7019 }
7020 return NULL;
7021 }
7022
7023
7024 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7025 PyObject *resultobj;
7026 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7027 wxString result;
7028 PyObject * obj0 = 0 ;
7029 char *kwnames[] = {
7030 (char *) "self", NULL
7031 };
7032
7033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7036 {
7037 PyThreadState* __tstate = wxPyBeginAllowThreads();
7038 result = ((wxNativeFontInfo const *)arg1)->ToString();
7039
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 {
7044 #if wxUSE_UNICODE
7045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7046 #else
7047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7048 #endif
7049 }
7050 return resultobj;
7051 fail:
7052 return NULL;
7053 }
7054
7055
7056 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7057 PyObject *resultobj;
7058 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7059 wxString result;
7060 PyObject * obj0 = 0 ;
7061 char *kwnames[] = {
7062 (char *) "self", NULL
7063 };
7064
7065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 result = wxNativeFontInfo___str__(arg1);
7071
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 {
7076 #if wxUSE_UNICODE
7077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7078 #else
7079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7080 #endif
7081 }
7082 return resultobj;
7083 fail:
7084 return NULL;
7085 }
7086
7087
7088 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7089 PyObject *resultobj;
7090 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7091 wxString *arg2 = 0 ;
7092 bool result;
7093 bool temp2 = False ;
7094 PyObject * obj0 = 0 ;
7095 PyObject * obj1 = 0 ;
7096 char *kwnames[] = {
7097 (char *) "self",(char *) "s", NULL
7098 };
7099
7100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7103 {
7104 arg2 = wxString_in_helper(obj1);
7105 if (arg2 == NULL) SWIG_fail;
7106 temp2 = True;
7107 }
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7111
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 {
7116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7117 }
7118 {
7119 if (temp2)
7120 delete arg2;
7121 }
7122 return resultobj;
7123 fail:
7124 {
7125 if (temp2)
7126 delete arg2;
7127 }
7128 return NULL;
7129 }
7130
7131
7132 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7133 PyObject *resultobj;
7134 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7135 wxString result;
7136 PyObject * obj0 = 0 ;
7137 char *kwnames[] = {
7138 (char *) "self", NULL
7139 };
7140
7141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7147
7148 wxPyEndAllowThreads(__tstate);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 {
7152 #if wxUSE_UNICODE
7153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7154 #else
7155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7156 #endif
7157 }
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7165 PyObject *obj;
7166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7167 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7168 Py_INCREF(obj);
7169 return Py_BuildValue((char *)"");
7170 }
7171 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7172 PyObject *resultobj;
7173 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7174 wxString *arg2 = (wxString *) 0 ;
7175 bool temp2 = False ;
7176 PyObject * obj0 = 0 ;
7177 PyObject * obj1 = 0 ;
7178 char *kwnames[] = {
7179 (char *) "self",(char *) "facename", NULL
7180 };
7181
7182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7185 {
7186 arg2 = wxString_in_helper(obj1);
7187 if (arg2 == NULL) SWIG_fail;
7188 temp2 = True;
7189 }
7190 if (arg1) (arg1)->facename = *arg2;
7191
7192 Py_INCREF(Py_None); resultobj = Py_None;
7193 {
7194 if (temp2)
7195 delete arg2;
7196 }
7197 return resultobj;
7198 fail:
7199 {
7200 if (temp2)
7201 delete arg2;
7202 }
7203 return NULL;
7204 }
7205
7206
7207 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7208 PyObject *resultobj;
7209 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7210 wxString *result;
7211 PyObject * obj0 = 0 ;
7212 char *kwnames[] = {
7213 (char *) "self", NULL
7214 };
7215
7216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7219 result = (wxString *)& ((arg1)->facename);
7220
7221 {
7222 #if wxUSE_UNICODE
7223 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7224 #else
7225 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7226 #endif
7227 }
7228 return resultobj;
7229 fail:
7230 return NULL;
7231 }
7232
7233
7234 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject *resultobj;
7236 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7237 int arg2 ;
7238 PyObject * obj0 = 0 ;
7239 PyObject * obj1 = 0 ;
7240 char *kwnames[] = {
7241 (char *) "self",(char *) "encoding", NULL
7242 };
7243
7244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7247 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7250
7251 Py_INCREF(Py_None); resultobj = Py_None;
7252 return resultobj;
7253 fail:
7254 return NULL;
7255 }
7256
7257
7258 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj;
7260 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7261 int result;
7262 PyObject * obj0 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "self", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7270 result = (int) ((arg1)->encoding);
7271
7272 resultobj = SWIG_FromInt((int)result);
7273 return resultobj;
7274 fail:
7275 return NULL;
7276 }
7277
7278
7279 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7280 PyObject *resultobj;
7281 wxNativeEncodingInfo *result;
7282 char *kwnames[] = {
7283 NULL
7284 };
7285
7286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7295 return resultobj;
7296 fail:
7297 return NULL;
7298 }
7299
7300
7301 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7302 PyObject *resultobj;
7303 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7304 PyObject * obj0 = 0 ;
7305 char *kwnames[] = {
7306 (char *) "self", NULL
7307 };
7308
7309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7312 {
7313 PyThreadState* __tstate = wxPyBeginAllowThreads();
7314 delete arg1;
7315
7316 wxPyEndAllowThreads(__tstate);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 Py_INCREF(Py_None); resultobj = Py_None;
7320 return resultobj;
7321 fail:
7322 return NULL;
7323 }
7324
7325
7326 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7327 PyObject *resultobj;
7328 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7329 wxString *arg2 = 0 ;
7330 bool result;
7331 bool temp2 = False ;
7332 PyObject * obj0 = 0 ;
7333 PyObject * obj1 = 0 ;
7334 char *kwnames[] = {
7335 (char *) "self",(char *) "s", NULL
7336 };
7337
7338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7341 {
7342 arg2 = wxString_in_helper(obj1);
7343 if (arg2 == NULL) SWIG_fail;
7344 temp2 = True;
7345 }
7346 {
7347 PyThreadState* __tstate = wxPyBeginAllowThreads();
7348 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7349
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 {
7354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7355 }
7356 {
7357 if (temp2)
7358 delete arg2;
7359 }
7360 return resultobj;
7361 fail:
7362 {
7363 if (temp2)
7364 delete arg2;
7365 }
7366 return NULL;
7367 }
7368
7369
7370 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7371 PyObject *resultobj;
7372 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7373 wxString result;
7374 PyObject * obj0 = 0 ;
7375 char *kwnames[] = {
7376 (char *) "self", NULL
7377 };
7378
7379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7382 {
7383 PyThreadState* __tstate = wxPyBeginAllowThreads();
7384 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7385
7386 wxPyEndAllowThreads(__tstate);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 {
7390 #if wxUSE_UNICODE
7391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7392 #else
7393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7394 #endif
7395 }
7396 return resultobj;
7397 fail:
7398 return NULL;
7399 }
7400
7401
7402 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7403 PyObject *obj;
7404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7405 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7406 Py_INCREF(obj);
7407 return Py_BuildValue((char *)"");
7408 }
7409 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7410 PyObject *resultobj;
7411 int arg1 ;
7412 wxNativeEncodingInfo *result;
7413 PyObject * obj0 = 0 ;
7414 char *kwnames[] = {
7415 (char *) "encoding", NULL
7416 };
7417
7418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7419 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7420 if (PyErr_Occurred()) SWIG_fail;
7421 {
7422 PyThreadState* __tstate = wxPyBeginAllowThreads();
7423 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7424
7425 wxPyEndAllowThreads(__tstate);
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7429 return resultobj;
7430 fail:
7431 return NULL;
7432 }
7433
7434
7435 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj;
7437 wxNativeEncodingInfo *arg1 = 0 ;
7438 bool result;
7439 PyObject * obj0 = 0 ;
7440 char *kwnames[] = {
7441 (char *) "info", NULL
7442 };
7443
7444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7446 SWIG_POINTER_EXCEPTION | 0)) == -1)
7447 SWIG_fail;
7448 if (arg1 == NULL) {
7449 PyErr_SetString(PyExc_TypeError,"null reference");
7450 SWIG_fail;
7451 }
7452 {
7453 PyThreadState* __tstate = wxPyBeginAllowThreads();
7454 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7455
7456 wxPyEndAllowThreads(__tstate);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 {
7460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7461 }
7462 return resultobj;
7463 fail:
7464 return NULL;
7465 }
7466
7467
7468 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7469 PyObject *resultobj;
7470 wxFontMapper *result;
7471 char *kwnames[] = {
7472 NULL
7473 };
7474
7475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7476 {
7477 PyThreadState* __tstate = wxPyBeginAllowThreads();
7478 result = (wxFontMapper *)new wxFontMapper();
7479
7480 wxPyEndAllowThreads(__tstate);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7484 return resultobj;
7485 fail:
7486 return NULL;
7487 }
7488
7489
7490 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7491 PyObject *resultobj;
7492 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7493 PyObject * obj0 = 0 ;
7494 char *kwnames[] = {
7495 (char *) "self", NULL
7496 };
7497
7498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7501 {
7502 PyThreadState* __tstate = wxPyBeginAllowThreads();
7503 delete arg1;
7504
7505 wxPyEndAllowThreads(__tstate);
7506 if (PyErr_Occurred()) SWIG_fail;
7507 }
7508 Py_INCREF(Py_None); resultobj = Py_None;
7509 return resultobj;
7510 fail:
7511 return NULL;
7512 }
7513
7514
7515 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7516 PyObject *resultobj;
7517 wxFontMapper *result;
7518 char *kwnames[] = {
7519 NULL
7520 };
7521
7522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7523 {
7524 PyThreadState* __tstate = wxPyBeginAllowThreads();
7525 result = (wxFontMapper *)wxFontMapper::Get();
7526
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj;
7539 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7540 wxFontMapper *result;
7541 PyObject * obj0 = 0 ;
7542 char *kwnames[] = {
7543 (char *) "mapper", NULL
7544 };
7545
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7549 {
7550 PyThreadState* __tstate = wxPyBeginAllowThreads();
7551 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7552
7553 wxPyEndAllowThreads(__tstate);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 }
7556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7557 return resultobj;
7558 fail:
7559 return NULL;
7560 }
7561
7562
7563 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7564 PyObject *resultobj;
7565 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7566 wxString *arg2 = 0 ;
7567 bool arg3 = (bool) True ;
7568 int result;
7569 bool temp2 = False ;
7570 PyObject * obj0 = 0 ;
7571 PyObject * obj1 = 0 ;
7572 PyObject * obj2 = 0 ;
7573 char *kwnames[] = {
7574 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7575 };
7576
7577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7580 {
7581 arg2 = wxString_in_helper(obj1);
7582 if (arg2 == NULL) SWIG_fail;
7583 temp2 = True;
7584 }
7585 if (obj2) {
7586 arg3 = (bool) SWIG_AsBool(obj2);
7587 if (PyErr_Occurred()) SWIG_fail;
7588 }
7589 {
7590 PyThreadState* __tstate = wxPyBeginAllowThreads();
7591 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7592
7593 wxPyEndAllowThreads(__tstate);
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 resultobj = SWIG_FromInt((int)result);
7597 {
7598 if (temp2)
7599 delete arg2;
7600 }
7601 return resultobj;
7602 fail:
7603 {
7604 if (temp2)
7605 delete arg2;
7606 }
7607 return NULL;
7608 }
7609
7610
7611 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7612 PyObject *resultobj;
7613 size_t result;
7614 char *kwnames[] = {
7615 NULL
7616 };
7617
7618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7619 {
7620 PyThreadState* __tstate = wxPyBeginAllowThreads();
7621 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7622
7623 wxPyEndAllowThreads(__tstate);
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7627 return resultobj;
7628 fail:
7629 return NULL;
7630 }
7631
7632
7633 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7634 PyObject *resultobj;
7635 size_t arg1 ;
7636 int result;
7637 PyObject * obj0 = 0 ;
7638 char *kwnames[] = {
7639 (char *) "n", NULL
7640 };
7641
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7643 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7644 if (PyErr_Occurred()) SWIG_fail;
7645 {
7646 PyThreadState* __tstate = wxPyBeginAllowThreads();
7647 result = (int)wxFontMapper::GetEncoding(arg1);
7648
7649 wxPyEndAllowThreads(__tstate);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 }
7652 resultobj = SWIG_FromInt((int)result);
7653 return resultobj;
7654 fail:
7655 return NULL;
7656 }
7657
7658
7659 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7660 PyObject *resultobj;
7661 int arg1 ;
7662 wxString result;
7663 PyObject * obj0 = 0 ;
7664 char *kwnames[] = {
7665 (char *) "encoding", NULL
7666 };
7667
7668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7669 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 {
7672 PyThreadState* __tstate = wxPyBeginAllowThreads();
7673 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7674
7675 wxPyEndAllowThreads(__tstate);
7676 if (PyErr_Occurred()) SWIG_fail;
7677 }
7678 {
7679 #if wxUSE_UNICODE
7680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7681 #else
7682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7683 #endif
7684 }
7685 return resultobj;
7686 fail:
7687 return NULL;
7688 }
7689
7690
7691 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj;
7693 int arg1 ;
7694 wxString result;
7695 PyObject * obj0 = 0 ;
7696 char *kwnames[] = {
7697 (char *) "encoding", NULL
7698 };
7699
7700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7701 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7702 if (PyErr_Occurred()) SWIG_fail;
7703 {
7704 PyThreadState* __tstate = wxPyBeginAllowThreads();
7705 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7706
7707 wxPyEndAllowThreads(__tstate);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 }
7710 {
7711 #if wxUSE_UNICODE
7712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7713 #else
7714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7715 #endif
7716 }
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7724 PyObject *resultobj;
7725 wxString *arg1 = 0 ;
7726 int result;
7727 bool temp1 = False ;
7728 PyObject * obj0 = 0 ;
7729 char *kwnames[] = {
7730 (char *) "name", NULL
7731 };
7732
7733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7734 {
7735 arg1 = wxString_in_helper(obj0);
7736 if (arg1 == NULL) SWIG_fail;
7737 temp1 = True;
7738 }
7739 {
7740 PyThreadState* __tstate = wxPyBeginAllowThreads();
7741 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7742
7743 wxPyEndAllowThreads(__tstate);
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 resultobj = SWIG_FromInt((int)result);
7747 {
7748 if (temp1)
7749 delete arg1;
7750 }
7751 return resultobj;
7752 fail:
7753 {
7754 if (temp1)
7755 delete arg1;
7756 }
7757 return NULL;
7758 }
7759
7760
7761 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7762 PyObject *resultobj;
7763 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7764 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7765 PyObject * obj0 = 0 ;
7766 PyObject * obj1 = 0 ;
7767 char *kwnames[] = {
7768 (char *) "self",(char *) "config", NULL
7769 };
7770
7771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7776 {
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 (arg1)->SetConfig(arg2);
7779
7780 wxPyEndAllowThreads(__tstate);
7781 if (PyErr_Occurred()) SWIG_fail;
7782 }
7783 Py_INCREF(Py_None); resultobj = Py_None;
7784 return resultobj;
7785 fail:
7786 return NULL;
7787 }
7788
7789
7790 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7791 PyObject *resultobj;
7792 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7793 wxString *arg2 = 0 ;
7794 bool temp2 = False ;
7795 PyObject * obj0 = 0 ;
7796 PyObject * obj1 = 0 ;
7797 char *kwnames[] = {
7798 (char *) "self",(char *) "prefix", NULL
7799 };
7800
7801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7804 {
7805 arg2 = wxString_in_helper(obj1);
7806 if (arg2 == NULL) SWIG_fail;
7807 temp2 = True;
7808 }
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 (arg1)->SetConfigPath((wxString const &)*arg2);
7812
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
7816 Py_INCREF(Py_None); resultobj = Py_None;
7817 {
7818 if (temp2)
7819 delete arg2;
7820 }
7821 return resultobj;
7822 fail:
7823 {
7824 if (temp2)
7825 delete arg2;
7826 }
7827 return NULL;
7828 }
7829
7830
7831 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj;
7833 wxString result;
7834 char *kwnames[] = {
7835 NULL
7836 };
7837
7838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7839 {
7840 PyThreadState* __tstate = wxPyBeginAllowThreads();
7841 result = wxFontMapper::GetDefaultConfigPath();
7842
7843 wxPyEndAllowThreads(__tstate);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 {
7847 #if wxUSE_UNICODE
7848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7849 #else
7850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7851 #endif
7852 }
7853 return resultobj;
7854 fail:
7855 return NULL;
7856 }
7857
7858
7859 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7860 PyObject *resultobj;
7861 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7862 int arg2 ;
7863 wxString const &arg3_defvalue = wxPyEmptyString ;
7864 wxString *arg3 = (wxString *) &arg3_defvalue ;
7865 bool arg4 = (bool) True ;
7866 PyObject *result;
7867 bool temp3 = False ;
7868 PyObject * obj0 = 0 ;
7869 PyObject * obj1 = 0 ;
7870 PyObject * obj2 = 0 ;
7871 PyObject * obj3 = 0 ;
7872 char *kwnames[] = {
7873 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7874 };
7875
7876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7879 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7880 if (PyErr_Occurred()) SWIG_fail;
7881 if (obj2) {
7882 {
7883 arg3 = wxString_in_helper(obj2);
7884 if (arg3 == NULL) SWIG_fail;
7885 temp3 = True;
7886 }
7887 }
7888 if (obj3) {
7889 arg4 = (bool) SWIG_AsBool(obj3);
7890 if (PyErr_Occurred()) SWIG_fail;
7891 }
7892 {
7893 PyThreadState* __tstate = wxPyBeginAllowThreads();
7894 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7895
7896 wxPyEndAllowThreads(__tstate);
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
7899 resultobj = result;
7900 {
7901 if (temp3)
7902 delete arg3;
7903 }
7904 return resultobj;
7905 fail:
7906 {
7907 if (temp3)
7908 delete arg3;
7909 }
7910 return NULL;
7911 }
7912
7913
7914 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7915 PyObject *resultobj;
7916 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7917 int arg2 ;
7918 wxString const &arg3_defvalue = wxPyEmptyString ;
7919 wxString *arg3 = (wxString *) &arg3_defvalue ;
7920 bool result;
7921 bool temp3 = False ;
7922 PyObject * obj0 = 0 ;
7923 PyObject * obj1 = 0 ;
7924 PyObject * obj2 = 0 ;
7925 char *kwnames[] = {
7926 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7927 };
7928
7929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7932 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7933 if (PyErr_Occurred()) SWIG_fail;
7934 if (obj2) {
7935 {
7936 arg3 = wxString_in_helper(obj2);
7937 if (arg3 == NULL) SWIG_fail;
7938 temp3 = True;
7939 }
7940 }
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 {
7949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7950 }
7951 {
7952 if (temp3)
7953 delete arg3;
7954 }
7955 return resultobj;
7956 fail:
7957 {
7958 if (temp3)
7959 delete arg3;
7960 }
7961 return NULL;
7962 }
7963
7964
7965 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7966 PyObject *resultobj;
7967 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7968 wxWindow *arg2 = (wxWindow *) 0 ;
7969 PyObject * obj0 = 0 ;
7970 PyObject * obj1 = 0 ;
7971 char *kwnames[] = {
7972 (char *) "self",(char *) "parent", NULL
7973 };
7974
7975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7980 {
7981 PyThreadState* __tstate = wxPyBeginAllowThreads();
7982 (arg1)->SetDialogParent(arg2);
7983
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 Py_INCREF(Py_None); resultobj = Py_None;
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj;
7996 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7997 wxString *arg2 = 0 ;
7998 bool temp2 = False ;
7999 PyObject * obj0 = 0 ;
8000 PyObject * obj1 = 0 ;
8001 char *kwnames[] = {
8002 (char *) "self",(char *) "title", NULL
8003 };
8004
8005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8007 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)->SetDialogTitle((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 * FontMapper_swigregister(PyObject *self, PyObject *args) {
8036 PyObject *obj;
8037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8038 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8039 Py_INCREF(obj);
8040 return Py_BuildValue((char *)"");
8041 }
8042 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj;
8044 int arg1 ;
8045 int arg2 ;
8046 int arg3 ;
8047 int arg4 ;
8048 bool arg5 = (bool) False ;
8049 wxString const &arg6_defvalue = wxPyEmptyString ;
8050 wxString *arg6 = (wxString *) &arg6_defvalue ;
8051 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8052 wxFont *result;
8053 bool temp6 = False ;
8054 PyObject * obj0 = 0 ;
8055 PyObject * obj1 = 0 ;
8056 PyObject * obj2 = 0 ;
8057 PyObject * obj3 = 0 ;
8058 PyObject * obj4 = 0 ;
8059 PyObject * obj5 = 0 ;
8060 PyObject * obj6 = 0 ;
8061 char *kwnames[] = {
8062 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8063 };
8064
8065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8066 arg1 = (int) SWIG_AsInt(obj0);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 arg2 = (int) SWIG_AsInt(obj1);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 arg3 = (int) SWIG_AsInt(obj2);
8071 if (PyErr_Occurred()) SWIG_fail;
8072 arg4 = (int) SWIG_AsInt(obj3);
8073 if (PyErr_Occurred()) SWIG_fail;
8074 if (obj4) {
8075 arg5 = (bool) SWIG_AsBool(obj4);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 if (obj5) {
8079 {
8080 arg6 = wxString_in_helper(obj5);
8081 if (arg6 == NULL) SWIG_fail;
8082 temp6 = True;
8083 }
8084 }
8085 if (obj6) {
8086 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8087 if (PyErr_Occurred()) SWIG_fail;
8088 }
8089 {
8090 PyThreadState* __tstate = wxPyBeginAllowThreads();
8091 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8092
8093 wxPyEndAllowThreads(__tstate);
8094 if (PyErr_Occurred()) SWIG_fail;
8095 }
8096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8097 {
8098 if (temp6)
8099 delete arg6;
8100 }
8101 return resultobj;
8102 fail:
8103 {
8104 if (temp6)
8105 delete arg6;
8106 }
8107 return NULL;
8108 }
8109
8110
8111 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8112 PyObject *resultobj;
8113 wxFont *arg1 = (wxFont *) 0 ;
8114 PyObject * obj0 = 0 ;
8115 char *kwnames[] = {
8116 (char *) "self", NULL
8117 };
8118
8119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8122 {
8123 PyThreadState* __tstate = wxPyBeginAllowThreads();
8124 delete arg1;
8125
8126 wxPyEndAllowThreads(__tstate);
8127 if (PyErr_Occurred()) SWIG_fail;
8128 }
8129 Py_INCREF(Py_None); resultobj = Py_None;
8130 return resultobj;
8131 fail:
8132 return NULL;
8133 }
8134
8135
8136 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8137 PyObject *resultobj;
8138 wxNativeFontInfo *arg1 = 0 ;
8139 wxFont *result;
8140 PyObject * obj0 = 0 ;
8141 char *kwnames[] = {
8142 (char *) "info", NULL
8143 };
8144
8145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8147 SWIG_POINTER_EXCEPTION | 0)) == -1)
8148 SWIG_fail;
8149 if (arg1 == NULL) {
8150 PyErr_SetString(PyExc_TypeError,"null reference");
8151 SWIG_fail;
8152 }
8153 {
8154 PyThreadState* __tstate = wxPyBeginAllowThreads();
8155 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8156
8157 wxPyEndAllowThreads(__tstate);
8158 if (PyErr_Occurred()) SWIG_fail;
8159 }
8160 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8161 return resultobj;
8162 fail:
8163 return NULL;
8164 }
8165
8166
8167 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8168 PyObject *resultobj;
8169 wxString *arg1 = 0 ;
8170 wxFont *result;
8171 bool temp1 = False ;
8172 PyObject * obj0 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "info", NULL
8175 };
8176
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8178 {
8179 arg1 = wxString_in_helper(obj0);
8180 if (arg1 == NULL) SWIG_fail;
8181 temp1 = True;
8182 }
8183 {
8184 PyThreadState* __tstate = wxPyBeginAllowThreads();
8185 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8186
8187 wxPyEndAllowThreads(__tstate);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8191 {
8192 if (temp1)
8193 delete arg1;
8194 }
8195 return resultobj;
8196 fail:
8197 {
8198 if (temp1)
8199 delete arg1;
8200 }
8201 return NULL;
8202 }
8203
8204
8205 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8206 PyObject *resultobj;
8207 int arg1 ;
8208 int arg2 ;
8209 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8210 wxString const &arg4_defvalue = wxPyEmptyString ;
8211 wxString *arg4 = (wxString *) &arg4_defvalue ;
8212 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8213 wxFont *result;
8214 bool temp4 = False ;
8215 PyObject * obj0 = 0 ;
8216 PyObject * obj1 = 0 ;
8217 PyObject * obj2 = 0 ;
8218 PyObject * obj3 = 0 ;
8219 PyObject * obj4 = 0 ;
8220 char *kwnames[] = {
8221 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8222 };
8223
8224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8225 arg1 = (int) SWIG_AsInt(obj0);
8226 if (PyErr_Occurred()) SWIG_fail;
8227 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 if (obj2) {
8230 arg3 = (int) SWIG_AsInt(obj2);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 if (obj3) {
8234 {
8235 arg4 = wxString_in_helper(obj3);
8236 if (arg4 == NULL) SWIG_fail;
8237 temp4 = True;
8238 }
8239 }
8240 if (obj4) {
8241 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8242 if (PyErr_Occurred()) SWIG_fail;
8243 }
8244 {
8245 PyThreadState* __tstate = wxPyBeginAllowThreads();
8246 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8247
8248 wxPyEndAllowThreads(__tstate);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8252 {
8253 if (temp4)
8254 delete arg4;
8255 }
8256 return resultobj;
8257 fail:
8258 {
8259 if (temp4)
8260 delete arg4;
8261 }
8262 return NULL;
8263 }
8264
8265
8266 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8267 PyObject *resultobj;
8268 wxFont *arg1 = (wxFont *) 0 ;
8269 bool result;
8270 PyObject * obj0 = 0 ;
8271 char *kwnames[] = {
8272 (char *) "self", NULL
8273 };
8274
8275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 result = (bool)((wxFont const *)arg1)->Ok();
8281
8282 wxPyEndAllowThreads(__tstate);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 {
8286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8287 }
8288 return resultobj;
8289 fail:
8290 return NULL;
8291 }
8292
8293
8294 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8295 PyObject *resultobj;
8296 wxFont *arg1 = (wxFont *) 0 ;
8297 wxFont *arg2 = (wxFont *) 0 ;
8298 bool result;
8299 PyObject * obj0 = 0 ;
8300 PyObject * obj1 = 0 ;
8301 char *kwnames[] = {
8302 (char *) "self",(char *) "other", NULL
8303 };
8304
8305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8310 {
8311 PyThreadState* __tstate = wxPyBeginAllowThreads();
8312 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8313
8314 wxPyEndAllowThreads(__tstate);
8315 if (PyErr_Occurred()) SWIG_fail;
8316 }
8317 {
8318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8319 }
8320 return resultobj;
8321 fail:
8322 return NULL;
8323 }
8324
8325
8326 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8327 PyObject *resultobj;
8328 wxFont *arg1 = (wxFont *) 0 ;
8329 wxFont *arg2 = (wxFont *) 0 ;
8330 bool result;
8331 PyObject * obj0 = 0 ;
8332 PyObject * obj1 = 0 ;
8333 char *kwnames[] = {
8334 (char *) "self",(char *) "other", NULL
8335 };
8336
8337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8340 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8342 {
8343 PyThreadState* __tstate = wxPyBeginAllowThreads();
8344 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8345
8346 wxPyEndAllowThreads(__tstate);
8347 if (PyErr_Occurred()) SWIG_fail;
8348 }
8349 {
8350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8351 }
8352 return resultobj;
8353 fail:
8354 return NULL;
8355 }
8356
8357
8358 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8359 PyObject *resultobj;
8360 wxFont *arg1 = (wxFont *) 0 ;
8361 int result;
8362 PyObject * obj0 = 0 ;
8363 char *kwnames[] = {
8364 (char *) "self", NULL
8365 };
8366
8367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8370 {
8371 PyThreadState* __tstate = wxPyBeginAllowThreads();
8372 result = (int)((wxFont const *)arg1)->GetPointSize();
8373
8374 wxPyEndAllowThreads(__tstate);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 resultobj = SWIG_FromInt((int)result);
8378 return resultobj;
8379 fail:
8380 return NULL;
8381 }
8382
8383
8384 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8385 PyObject *resultobj;
8386 wxFont *arg1 = (wxFont *) 0 ;
8387 int result;
8388 PyObject * obj0 = 0 ;
8389 char *kwnames[] = {
8390 (char *) "self", NULL
8391 };
8392
8393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8396 {
8397 PyThreadState* __tstate = wxPyBeginAllowThreads();
8398 result = (int)((wxFont const *)arg1)->GetFamily();
8399
8400 wxPyEndAllowThreads(__tstate);
8401 if (PyErr_Occurred()) SWIG_fail;
8402 }
8403 resultobj = SWIG_FromInt((int)result);
8404 return resultobj;
8405 fail:
8406 return NULL;
8407 }
8408
8409
8410 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8411 PyObject *resultobj;
8412 wxFont *arg1 = (wxFont *) 0 ;
8413 int result;
8414 PyObject * obj0 = 0 ;
8415 char *kwnames[] = {
8416 (char *) "self", NULL
8417 };
8418
8419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8422 {
8423 PyThreadState* __tstate = wxPyBeginAllowThreads();
8424 result = (int)((wxFont const *)arg1)->GetStyle();
8425
8426 wxPyEndAllowThreads(__tstate);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 resultobj = SWIG_FromInt((int)result);
8430 return resultobj;
8431 fail:
8432 return NULL;
8433 }
8434
8435
8436 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8437 PyObject *resultobj;
8438 wxFont *arg1 = (wxFont *) 0 ;
8439 int result;
8440 PyObject * obj0 = 0 ;
8441 char *kwnames[] = {
8442 (char *) "self", NULL
8443 };
8444
8445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8448 {
8449 PyThreadState* __tstate = wxPyBeginAllowThreads();
8450 result = (int)((wxFont const *)arg1)->GetWeight();
8451
8452 wxPyEndAllowThreads(__tstate);
8453 if (PyErr_Occurred()) SWIG_fail;
8454 }
8455 resultobj = SWIG_FromInt((int)result);
8456 return resultobj;
8457 fail:
8458 return NULL;
8459 }
8460
8461
8462 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8463 PyObject *resultobj;
8464 wxFont *arg1 = (wxFont *) 0 ;
8465 bool result;
8466 PyObject * obj0 = 0 ;
8467 char *kwnames[] = {
8468 (char *) "self", NULL
8469 };
8470
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8474 {
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8477
8478 wxPyEndAllowThreads(__tstate);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 {
8482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8483 }
8484 return resultobj;
8485 fail:
8486 return NULL;
8487 }
8488
8489
8490 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj;
8492 wxFont *arg1 = (wxFont *) 0 ;
8493 wxString result;
8494 PyObject * obj0 = 0 ;
8495 char *kwnames[] = {
8496 (char *) "self", NULL
8497 };
8498
8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8502 {
8503 PyThreadState* __tstate = wxPyBeginAllowThreads();
8504 result = ((wxFont const *)arg1)->GetFaceName();
8505
8506 wxPyEndAllowThreads(__tstate);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 }
8509 {
8510 #if wxUSE_UNICODE
8511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8512 #else
8513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8514 #endif
8515 }
8516 return resultobj;
8517 fail:
8518 return NULL;
8519 }
8520
8521
8522 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8523 PyObject *resultobj;
8524 wxFont *arg1 = (wxFont *) 0 ;
8525 int result;
8526 PyObject * obj0 = 0 ;
8527 char *kwnames[] = {
8528 (char *) "self", NULL
8529 };
8530
8531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8534 {
8535 PyThreadState* __tstate = wxPyBeginAllowThreads();
8536 result = (int)((wxFont const *)arg1)->GetEncoding();
8537
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 resultobj = SWIG_FromInt((int)result);
8542 return resultobj;
8543 fail:
8544 return NULL;
8545 }
8546
8547
8548 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj;
8550 wxFont *arg1 = (wxFont *) 0 ;
8551 wxNativeFontInfo *result;
8552 PyObject * obj0 = 0 ;
8553 char *kwnames[] = {
8554 (char *) "self", NULL
8555 };
8556
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8560 {
8561 PyThreadState* __tstate = wxPyBeginAllowThreads();
8562 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8563
8564 wxPyEndAllowThreads(__tstate);
8565 if (PyErr_Occurred()) SWIG_fail;
8566 }
8567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8568 return resultobj;
8569 fail:
8570 return NULL;
8571 }
8572
8573
8574 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8575 PyObject *resultobj;
8576 wxFont *arg1 = (wxFont *) 0 ;
8577 bool result;
8578 PyObject * obj0 = 0 ;
8579 char *kwnames[] = {
8580 (char *) "self", NULL
8581 };
8582
8583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8586 {
8587 PyThreadState* __tstate = wxPyBeginAllowThreads();
8588 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8589
8590 wxPyEndAllowThreads(__tstate);
8591 if (PyErr_Occurred()) SWIG_fail;
8592 }
8593 {
8594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8595 }
8596 return resultobj;
8597 fail:
8598 return NULL;
8599 }
8600
8601
8602 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8603 PyObject *resultobj;
8604 wxFont *arg1 = (wxFont *) 0 ;
8605 wxString result;
8606 PyObject * obj0 = 0 ;
8607 char *kwnames[] = {
8608 (char *) "self", NULL
8609 };
8610
8611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8614 {
8615 PyThreadState* __tstate = wxPyBeginAllowThreads();
8616 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8617
8618 wxPyEndAllowThreads(__tstate);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 {
8622 #if wxUSE_UNICODE
8623 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8624 #else
8625 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8626 #endif
8627 }
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj;
8636 wxFont *arg1 = (wxFont *) 0 ;
8637 wxString result;
8638 PyObject * obj0 = 0 ;
8639 char *kwnames[] = {
8640 (char *) "self", NULL
8641 };
8642
8643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8646 {
8647 PyThreadState* __tstate = wxPyBeginAllowThreads();
8648 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8649
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 {
8654 #if wxUSE_UNICODE
8655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8656 #else
8657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8658 #endif
8659 }
8660 return resultobj;
8661 fail:
8662 return NULL;
8663 }
8664
8665
8666 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8667 PyObject *resultobj;
8668 wxFont *arg1 = (wxFont *) 0 ;
8669 int arg2 ;
8670 PyObject * obj0 = 0 ;
8671 PyObject * obj1 = 0 ;
8672 char *kwnames[] = {
8673 (char *) "self",(char *) "pointSize", NULL
8674 };
8675
8676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8679 arg2 = (int) SWIG_AsInt(obj1);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 {
8682 PyThreadState* __tstate = wxPyBeginAllowThreads();
8683 (arg1)->SetPointSize(arg2);
8684
8685 wxPyEndAllowThreads(__tstate);
8686 if (PyErr_Occurred()) SWIG_fail;
8687 }
8688 Py_INCREF(Py_None); resultobj = Py_None;
8689 return resultobj;
8690 fail:
8691 return NULL;
8692 }
8693
8694
8695 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8696 PyObject *resultobj;
8697 wxFont *arg1 = (wxFont *) 0 ;
8698 int arg2 ;
8699 PyObject * obj0 = 0 ;
8700 PyObject * obj1 = 0 ;
8701 char *kwnames[] = {
8702 (char *) "self",(char *) "family", NULL
8703 };
8704
8705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8708 arg2 = (int) SWIG_AsInt(obj1);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 {
8711 PyThreadState* __tstate = wxPyBeginAllowThreads();
8712 (arg1)->SetFamily(arg2);
8713
8714 wxPyEndAllowThreads(__tstate);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 Py_INCREF(Py_None); resultobj = Py_None;
8718 return resultobj;
8719 fail:
8720 return NULL;
8721 }
8722
8723
8724 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj;
8726 wxFont *arg1 = (wxFont *) 0 ;
8727 int arg2 ;
8728 PyObject * obj0 = 0 ;
8729 PyObject * obj1 = 0 ;
8730 char *kwnames[] = {
8731 (char *) "self",(char *) "style", NULL
8732 };
8733
8734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8737 arg2 = (int) SWIG_AsInt(obj1);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 {
8740 PyThreadState* __tstate = wxPyBeginAllowThreads();
8741 (arg1)->SetStyle(arg2);
8742
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 Py_INCREF(Py_None); resultobj = Py_None;
8747 return resultobj;
8748 fail:
8749 return NULL;
8750 }
8751
8752
8753 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj;
8755 wxFont *arg1 = (wxFont *) 0 ;
8756 int arg2 ;
8757 PyObject * obj0 = 0 ;
8758 PyObject * obj1 = 0 ;
8759 char *kwnames[] = {
8760 (char *) "self",(char *) "weight", NULL
8761 };
8762
8763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8766 arg2 = (int) SWIG_AsInt(obj1);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 (arg1)->SetWeight(arg2);
8771
8772 wxPyEndAllowThreads(__tstate);
8773 if (PyErr_Occurred()) SWIG_fail;
8774 }
8775 Py_INCREF(Py_None); resultobj = Py_None;
8776 return resultobj;
8777 fail:
8778 return NULL;
8779 }
8780
8781
8782 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj;
8784 wxFont *arg1 = (wxFont *) 0 ;
8785 wxString *arg2 = 0 ;
8786 bool temp2 = False ;
8787 PyObject * obj0 = 0 ;
8788 PyObject * obj1 = 0 ;
8789 char *kwnames[] = {
8790 (char *) "self",(char *) "faceName", NULL
8791 };
8792
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8796 {
8797 arg2 = wxString_in_helper(obj1);
8798 if (arg2 == NULL) SWIG_fail;
8799 temp2 = True;
8800 }
8801 {
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 (arg1)->SetFaceName((wxString const &)*arg2);
8804
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 Py_INCREF(Py_None); resultobj = Py_None;
8809 {
8810 if (temp2)
8811 delete arg2;
8812 }
8813 return resultobj;
8814 fail:
8815 {
8816 if (temp2)
8817 delete arg2;
8818 }
8819 return NULL;
8820 }
8821
8822
8823 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 wxFont *arg1 = (wxFont *) 0 ;
8826 bool arg2 ;
8827 PyObject * obj0 = 0 ;
8828 PyObject * obj1 = 0 ;
8829 char *kwnames[] = {
8830 (char *) "self",(char *) "underlined", NULL
8831 };
8832
8833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8836 arg2 = (bool) SWIG_AsBool(obj1);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 {
8839 PyThreadState* __tstate = wxPyBeginAllowThreads();
8840 (arg1)->SetUnderlined(arg2);
8841
8842 wxPyEndAllowThreads(__tstate);
8843 if (PyErr_Occurred()) SWIG_fail;
8844 }
8845 Py_INCREF(Py_None); resultobj = Py_None;
8846 return resultobj;
8847 fail:
8848 return NULL;
8849 }
8850
8851
8852 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8853 PyObject *resultobj;
8854 wxFont *arg1 = (wxFont *) 0 ;
8855 int arg2 ;
8856 PyObject * obj0 = 0 ;
8857 PyObject * obj1 = 0 ;
8858 char *kwnames[] = {
8859 (char *) "self",(char *) "encoding", NULL
8860 };
8861
8862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8865 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8866 if (PyErr_Occurred()) SWIG_fail;
8867 {
8868 PyThreadState* __tstate = wxPyBeginAllowThreads();
8869 (arg1)->SetEncoding((wxFontEncoding )arg2);
8870
8871 wxPyEndAllowThreads(__tstate);
8872 if (PyErr_Occurred()) SWIG_fail;
8873 }
8874 Py_INCREF(Py_None); resultobj = Py_None;
8875 return resultobj;
8876 fail:
8877 return NULL;
8878 }
8879
8880
8881 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8882 PyObject *resultobj;
8883 wxFont *arg1 = (wxFont *) 0 ;
8884 wxNativeFontInfo *arg2 = 0 ;
8885 PyObject * obj0 = 0 ;
8886 PyObject * obj1 = 0 ;
8887 char *kwnames[] = {
8888 (char *) "self",(char *) "info", NULL
8889 };
8890
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8895 SWIG_POINTER_EXCEPTION | 0)) == -1)
8896 SWIG_fail;
8897 if (arg2 == NULL) {
8898 PyErr_SetString(PyExc_TypeError,"null reference");
8899 SWIG_fail;
8900 }
8901 {
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8904
8905 wxPyEndAllowThreads(__tstate);
8906 if (PyErr_Occurred()) SWIG_fail;
8907 }
8908 Py_INCREF(Py_None); resultobj = Py_None;
8909 return resultobj;
8910 fail:
8911 return NULL;
8912 }
8913
8914
8915 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj;
8917 wxFont *arg1 = (wxFont *) 0 ;
8918 wxString *arg2 = 0 ;
8919 bool temp2 = False ;
8920 PyObject * obj0 = 0 ;
8921 PyObject * obj1 = 0 ;
8922 char *kwnames[] = {
8923 (char *) "self",(char *) "info", NULL
8924 };
8925
8926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8929 {
8930 arg2 = wxString_in_helper(obj1);
8931 if (arg2 == NULL) SWIG_fail;
8932 temp2 = True;
8933 }
8934 {
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8937
8938 wxPyEndAllowThreads(__tstate);
8939 if (PyErr_Occurred()) SWIG_fail;
8940 }
8941 Py_INCREF(Py_None); resultobj = Py_None;
8942 {
8943 if (temp2)
8944 delete arg2;
8945 }
8946 return resultobj;
8947 fail:
8948 {
8949 if (temp2)
8950 delete arg2;
8951 }
8952 return NULL;
8953 }
8954
8955
8956 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8957 PyObject *resultobj;
8958 wxFont *arg1 = (wxFont *) 0 ;
8959 wxString *arg2 = 0 ;
8960 bool temp2 = False ;
8961 PyObject * obj0 = 0 ;
8962 PyObject * obj1 = 0 ;
8963 char *kwnames[] = {
8964 (char *) "self",(char *) "info", NULL
8965 };
8966
8967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8970 {
8971 arg2 = wxString_in_helper(obj1);
8972 if (arg2 == NULL) SWIG_fail;
8973 temp2 = True;
8974 }
8975 {
8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
8977 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8978
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 Py_INCREF(Py_None); resultobj = Py_None;
8983 {
8984 if (temp2)
8985 delete arg2;
8986 }
8987 return resultobj;
8988 fail:
8989 {
8990 if (temp2)
8991 delete arg2;
8992 }
8993 return NULL;
8994 }
8995
8996
8997 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj;
8999 wxFont *arg1 = (wxFont *) 0 ;
9000 wxString result;
9001 PyObject * obj0 = 0 ;
9002 char *kwnames[] = {
9003 (char *) "self", NULL
9004 };
9005
9006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9009 {
9010 PyThreadState* __tstate = wxPyBeginAllowThreads();
9011 result = ((wxFont const *)arg1)->GetFamilyString();
9012
9013 wxPyEndAllowThreads(__tstate);
9014 if (PyErr_Occurred()) SWIG_fail;
9015 }
9016 {
9017 #if wxUSE_UNICODE
9018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9019 #else
9020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9021 #endif
9022 }
9023 return resultobj;
9024 fail:
9025 return NULL;
9026 }
9027
9028
9029 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9030 PyObject *resultobj;
9031 wxFont *arg1 = (wxFont *) 0 ;
9032 wxString result;
9033 PyObject * obj0 = 0 ;
9034 char *kwnames[] = {
9035 (char *) "self", NULL
9036 };
9037
9038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9041 {
9042 PyThreadState* __tstate = wxPyBeginAllowThreads();
9043 result = ((wxFont const *)arg1)->GetStyleString();
9044
9045 wxPyEndAllowThreads(__tstate);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 }
9048 {
9049 #if wxUSE_UNICODE
9050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9051 #else
9052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9053 #endif
9054 }
9055 return resultobj;
9056 fail:
9057 return NULL;
9058 }
9059
9060
9061 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9062 PyObject *resultobj;
9063 wxFont *arg1 = (wxFont *) 0 ;
9064 wxString result;
9065 PyObject * obj0 = 0 ;
9066 char *kwnames[] = {
9067 (char *) "self", NULL
9068 };
9069
9070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 result = ((wxFont const *)arg1)->GetWeightString();
9076
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) SWIG_fail;
9079 }
9080 {
9081 #if wxUSE_UNICODE
9082 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9083 #else
9084 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9085 #endif
9086 }
9087 return resultobj;
9088 fail:
9089 return NULL;
9090 }
9091
9092
9093 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 wxFont *arg1 = (wxFont *) 0 ;
9096 bool arg2 = (bool) True ;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 char *kwnames[] = {
9100 (char *) "self",(char *) "no", NULL
9101 };
9102
9103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9106 if (obj1) {
9107 arg2 = (bool) SWIG_AsBool(obj1);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 (arg1)->SetNoAntiAliasing(arg2);
9113
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 Py_INCREF(Py_None); resultobj = Py_None;
9118 return resultobj;
9119 fail:
9120 return NULL;
9121 }
9122
9123
9124 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9125 PyObject *resultobj;
9126 wxFont *arg1 = (wxFont *) 0 ;
9127 bool result;
9128 PyObject * obj0 = 0 ;
9129 char *kwnames[] = {
9130 (char *) "self", NULL
9131 };
9132
9133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9136 {
9137 PyThreadState* __tstate = wxPyBeginAllowThreads();
9138 result = (bool)(arg1)->GetNoAntiAliasing();
9139
9140 wxPyEndAllowThreads(__tstate);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 }
9143 {
9144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9145 }
9146 return resultobj;
9147 fail:
9148 return NULL;
9149 }
9150
9151
9152 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj;
9154 int result;
9155 char *kwnames[] = {
9156 NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9160 {
9161 PyThreadState* __tstate = wxPyBeginAllowThreads();
9162 result = (int)wxFont::GetDefaultEncoding();
9163
9164 wxPyEndAllowThreads(__tstate);
9165 if (PyErr_Occurred()) SWIG_fail;
9166 }
9167 resultobj = SWIG_FromInt((int)result);
9168 return resultobj;
9169 fail:
9170 return NULL;
9171 }
9172
9173
9174 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9175 PyObject *resultobj;
9176 int arg1 ;
9177 PyObject * obj0 = 0 ;
9178 char *kwnames[] = {
9179 (char *) "encoding", NULL
9180 };
9181
9182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9183 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9184 if (PyErr_Occurred()) SWIG_fail;
9185 {
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9188
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 Py_INCREF(Py_None); resultobj = Py_None;
9193 return resultobj;
9194 fail:
9195 return NULL;
9196 }
9197
9198
9199 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9200 PyObject *obj;
9201 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9202 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9203 Py_INCREF(obj);
9204 return Py_BuildValue((char *)"");
9205 }
9206 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9207 PyObject *resultobj;
9208 wxPyFontEnumerator *result;
9209 char *kwnames[] = {
9210 NULL
9211 };
9212
9213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9214 {
9215 PyThreadState* __tstate = wxPyBeginAllowThreads();
9216 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9217
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9222 return resultobj;
9223 fail:
9224 return NULL;
9225 }
9226
9227
9228 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9229 PyObject *resultobj;
9230 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9231 PyObject * obj0 = 0 ;
9232 char *kwnames[] = {
9233 (char *) "self", NULL
9234 };
9235
9236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9239 {
9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9241 delete arg1;
9242
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 }
9246 Py_INCREF(Py_None); resultobj = Py_None;
9247 return resultobj;
9248 fail:
9249 return NULL;
9250 }
9251
9252
9253 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9254 PyObject *resultobj;
9255 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9256 PyObject *arg2 = (PyObject *) 0 ;
9257 PyObject *arg3 = (PyObject *) 0 ;
9258 bool arg4 ;
9259 PyObject * obj0 = 0 ;
9260 PyObject * obj1 = 0 ;
9261 PyObject * obj2 = 0 ;
9262 PyObject * obj3 = 0 ;
9263 char *kwnames[] = {
9264 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9265 };
9266
9267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9270 arg2 = obj1;
9271 arg3 = obj2;
9272 arg4 = (bool) SWIG_AsBool(obj3);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 {
9275 PyThreadState* __tstate = wxPyBeginAllowThreads();
9276 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9277
9278 wxPyEndAllowThreads(__tstate);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 }
9281 Py_INCREF(Py_None); resultobj = Py_None;
9282 return resultobj;
9283 fail:
9284 return NULL;
9285 }
9286
9287
9288 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9291 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9292 bool arg3 = (bool) False ;
9293 bool result;
9294 PyObject * obj0 = 0 ;
9295 PyObject * obj1 = 0 ;
9296 PyObject * obj2 = 0 ;
9297 char *kwnames[] = {
9298 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9299 };
9300
9301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9304 if (obj1) {
9305 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 if (obj2) {
9309 arg3 = (bool) SWIG_AsBool(obj2);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9315
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 {
9320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9321 }
9322 return resultobj;
9323 fail:
9324 return NULL;
9325 }
9326
9327
9328 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9329 PyObject *resultobj;
9330 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9331 wxString const &arg2_defvalue = wxPyEmptyString ;
9332 wxString *arg2 = (wxString *) &arg2_defvalue ;
9333 bool result;
9334 bool temp2 = False ;
9335 PyObject * obj0 = 0 ;
9336 PyObject * obj1 = 0 ;
9337 char *kwnames[] = {
9338 (char *) "self",(char *) "facename", NULL
9339 };
9340
9341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9344 if (obj1) {
9345 {
9346 arg2 = wxString_in_helper(obj1);
9347 if (arg2 == NULL) SWIG_fail;
9348 temp2 = True;
9349 }
9350 }
9351 {
9352 PyThreadState* __tstate = wxPyBeginAllowThreads();
9353 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9354
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 {
9359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9360 }
9361 {
9362 if (temp2)
9363 delete arg2;
9364 }
9365 return resultobj;
9366 fail:
9367 {
9368 if (temp2)
9369 delete arg2;
9370 }
9371 return NULL;
9372 }
9373
9374
9375 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9376 PyObject *resultobj;
9377 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9378 PyObject *result;
9379 PyObject * obj0 = 0 ;
9380 char *kwnames[] = {
9381 (char *) "self", NULL
9382 };
9383
9384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9390
9391 wxPyEndAllowThreads(__tstate);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 }
9394 resultobj = result;
9395 return resultobj;
9396 fail:
9397 return NULL;
9398 }
9399
9400
9401 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9402 PyObject *resultobj;
9403 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9404 PyObject *result;
9405 PyObject * obj0 = 0 ;
9406 char *kwnames[] = {
9407 (char *) "self", NULL
9408 };
9409
9410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9416
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 resultobj = result;
9421 return resultobj;
9422 fail:
9423 return NULL;
9424 }
9425
9426
9427 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9428 PyObject *obj;
9429 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9430 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9431 Py_INCREF(obj);
9432 return Py_BuildValue((char *)"");
9433 }
9434 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9435 PyObject *resultobj;
9436 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9437 int arg2 ;
9438 PyObject * obj0 = 0 ;
9439 PyObject * obj1 = 0 ;
9440 char *kwnames[] = {
9441 (char *) "self",(char *) "Language", NULL
9442 };
9443
9444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9447 arg2 = (int) SWIG_AsInt(obj1);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 if (arg1) (arg1)->Language = arg2;
9450
9451 Py_INCREF(Py_None); resultobj = Py_None;
9452 return resultobj;
9453 fail:
9454 return NULL;
9455 }
9456
9457
9458 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj;
9460 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9461 int result;
9462 PyObject * obj0 = 0 ;
9463 char *kwnames[] = {
9464 (char *) "self", NULL
9465 };
9466
9467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9470 result = (int) ((arg1)->Language);
9471
9472 resultobj = SWIG_FromInt((int)result);
9473 return resultobj;
9474 fail:
9475 return NULL;
9476 }
9477
9478
9479 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9480 PyObject *resultobj;
9481 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9482 wxString *arg2 = (wxString *) 0 ;
9483 bool temp2 = False ;
9484 PyObject * obj0 = 0 ;
9485 PyObject * obj1 = 0 ;
9486 char *kwnames[] = {
9487 (char *) "self",(char *) "CanonicalName", NULL
9488 };
9489
9490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9493 {
9494 arg2 = wxString_in_helper(obj1);
9495 if (arg2 == NULL) SWIG_fail;
9496 temp2 = True;
9497 }
9498 if (arg1) (arg1)->CanonicalName = *arg2;
9499
9500 Py_INCREF(Py_None); resultobj = Py_None;
9501 {
9502 if (temp2)
9503 delete arg2;
9504 }
9505 return resultobj;
9506 fail:
9507 {
9508 if (temp2)
9509 delete arg2;
9510 }
9511 return NULL;
9512 }
9513
9514
9515 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9516 PyObject *resultobj;
9517 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9518 wxString *result;
9519 PyObject * obj0 = 0 ;
9520 char *kwnames[] = {
9521 (char *) "self", NULL
9522 };
9523
9524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9527 result = (wxString *)& ((arg1)->CanonicalName);
9528
9529 {
9530 #if wxUSE_UNICODE
9531 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9532 #else
9533 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9534 #endif
9535 }
9536 return resultobj;
9537 fail:
9538 return NULL;
9539 }
9540
9541
9542 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9543 PyObject *resultobj;
9544 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9545 wxString *arg2 = (wxString *) 0 ;
9546 bool temp2 = False ;
9547 PyObject * obj0 = 0 ;
9548 PyObject * obj1 = 0 ;
9549 char *kwnames[] = {
9550 (char *) "self",(char *) "Description", NULL
9551 };
9552
9553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9556 {
9557 arg2 = wxString_in_helper(obj1);
9558 if (arg2 == NULL) SWIG_fail;
9559 temp2 = True;
9560 }
9561 if (arg1) (arg1)->Description = *arg2;
9562
9563 Py_INCREF(Py_None); resultobj = Py_None;
9564 {
9565 if (temp2)
9566 delete arg2;
9567 }
9568 return resultobj;
9569 fail:
9570 {
9571 if (temp2)
9572 delete arg2;
9573 }
9574 return NULL;
9575 }
9576
9577
9578 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9579 PyObject *resultobj;
9580 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9581 wxString *result;
9582 PyObject * obj0 = 0 ;
9583 char *kwnames[] = {
9584 (char *) "self", NULL
9585 };
9586
9587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9590 result = (wxString *)& ((arg1)->Description);
9591
9592 {
9593 #if wxUSE_UNICODE
9594 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9595 #else
9596 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9597 #endif
9598 }
9599 return resultobj;
9600 fail:
9601 return NULL;
9602 }
9603
9604
9605 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9606 PyObject *obj;
9607 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9608 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9609 Py_INCREF(obj);
9610 return Py_BuildValue((char *)"");
9611 }
9612 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9613 PyObject *resultobj;
9614 int arg1 = (int) -1 ;
9615 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9616 wxLocale *result;
9617 PyObject * obj0 = 0 ;
9618 PyObject * obj1 = 0 ;
9619 char *kwnames[] = {
9620 (char *) "language",(char *) "flags", NULL
9621 };
9622
9623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9624 if (obj0) {
9625 arg1 = (int) SWIG_AsInt(obj0);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 if (obj1) {
9629 arg2 = (int) SWIG_AsInt(obj1);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 {
9633 PyThreadState* __tstate = wxPyBeginAllowThreads();
9634 result = (wxLocale *)new_wxLocale(arg1,arg2);
9635
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9640 return resultobj;
9641 fail:
9642 return NULL;
9643 }
9644
9645
9646 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9647 PyObject *resultobj;
9648 wxLocale *arg1 = (wxLocale *) 0 ;
9649 PyObject * obj0 = 0 ;
9650 char *kwnames[] = {
9651 (char *) "self", NULL
9652 };
9653
9654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9657 {
9658 PyThreadState* __tstate = wxPyBeginAllowThreads();
9659 delete arg1;
9660
9661 wxPyEndAllowThreads(__tstate);
9662 if (PyErr_Occurred()) SWIG_fail;
9663 }
9664 Py_INCREF(Py_None); resultobj = Py_None;
9665 return resultobj;
9666 fail:
9667 return NULL;
9668 }
9669
9670
9671 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9672 PyObject *resultobj;
9673 wxLocale *arg1 = (wxLocale *) 0 ;
9674 wxString *arg2 = 0 ;
9675 wxString const &arg3_defvalue = wxPyEmptyString ;
9676 wxString *arg3 = (wxString *) &arg3_defvalue ;
9677 wxString const &arg4_defvalue = wxPyEmptyString ;
9678 wxString *arg4 = (wxString *) &arg4_defvalue ;
9679 bool arg5 = (bool) True ;
9680 bool arg6 = (bool) False ;
9681 bool result;
9682 bool temp2 = False ;
9683 bool temp3 = False ;
9684 bool temp4 = False ;
9685 PyObject * obj0 = 0 ;
9686 PyObject * obj1 = 0 ;
9687 PyObject * obj2 = 0 ;
9688 PyObject * obj3 = 0 ;
9689 PyObject * obj4 = 0 ;
9690 PyObject * obj5 = 0 ;
9691 char *kwnames[] = {
9692 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9698 {
9699 arg2 = wxString_in_helper(obj1);
9700 if (arg2 == NULL) SWIG_fail;
9701 temp2 = True;
9702 }
9703 if (obj2) {
9704 {
9705 arg3 = wxString_in_helper(obj2);
9706 if (arg3 == NULL) SWIG_fail;
9707 temp3 = True;
9708 }
9709 }
9710 if (obj3) {
9711 {
9712 arg4 = wxString_in_helper(obj3);
9713 if (arg4 == NULL) SWIG_fail;
9714 temp4 = True;
9715 }
9716 }
9717 if (obj4) {
9718 arg5 = (bool) SWIG_AsBool(obj4);
9719 if (PyErr_Occurred()) SWIG_fail;
9720 }
9721 if (obj5) {
9722 arg6 = (bool) SWIG_AsBool(obj5);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9728
9729 wxPyEndAllowThreads(__tstate);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 {
9733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9734 }
9735 {
9736 if (temp2)
9737 delete arg2;
9738 }
9739 {
9740 if (temp3)
9741 delete arg3;
9742 }
9743 {
9744 if (temp4)
9745 delete arg4;
9746 }
9747 return resultobj;
9748 fail:
9749 {
9750 if (temp2)
9751 delete arg2;
9752 }
9753 {
9754 if (temp3)
9755 delete arg3;
9756 }
9757 {
9758 if (temp4)
9759 delete arg4;
9760 }
9761 return NULL;
9762 }
9763
9764
9765 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9766 PyObject *resultobj;
9767 wxLocale *arg1 = (wxLocale *) 0 ;
9768 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9769 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9770 bool result;
9771 PyObject * obj0 = 0 ;
9772 PyObject * obj1 = 0 ;
9773 PyObject * obj2 = 0 ;
9774 char *kwnames[] = {
9775 (char *) "self",(char *) "language",(char *) "flags", NULL
9776 };
9777
9778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9781 if (obj1) {
9782 arg2 = (int) SWIG_AsInt(obj1);
9783 if (PyErr_Occurred()) SWIG_fail;
9784 }
9785 if (obj2) {
9786 arg3 = (int) SWIG_AsInt(obj2);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 result = (bool)(arg1)->Init(arg2,arg3);
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 {
9797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9798 }
9799 return resultobj;
9800 fail:
9801 return NULL;
9802 }
9803
9804
9805 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9806 PyObject *resultobj;
9807 int result;
9808 char *kwnames[] = {
9809 NULL
9810 };
9811
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9813 {
9814 PyThreadState* __tstate = wxPyBeginAllowThreads();
9815 result = (int)wxLocale::GetSystemLanguage();
9816
9817 wxPyEndAllowThreads(__tstate);
9818 if (PyErr_Occurred()) SWIG_fail;
9819 }
9820 resultobj = SWIG_FromInt((int)result);
9821 return resultobj;
9822 fail:
9823 return NULL;
9824 }
9825
9826
9827 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj;
9829 int result;
9830 char *kwnames[] = {
9831 NULL
9832 };
9833
9834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9835 {
9836 PyThreadState* __tstate = wxPyBeginAllowThreads();
9837 result = (int)wxLocale::GetSystemEncoding();
9838
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 resultobj = SWIG_FromInt((int)result);
9843 return resultobj;
9844 fail:
9845 return NULL;
9846 }
9847
9848
9849 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9850 PyObject *resultobj;
9851 wxString result;
9852 char *kwnames[] = {
9853 NULL
9854 };
9855
9856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9857 {
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 result = wxLocale::GetSystemEncodingName();
9860
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 {
9865 #if wxUSE_UNICODE
9866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9867 #else
9868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9869 #endif
9870 }
9871 return resultobj;
9872 fail:
9873 return NULL;
9874 }
9875
9876
9877 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9878 PyObject *resultobj;
9879 wxLocale *arg1 = (wxLocale *) 0 ;
9880 bool result;
9881 PyObject * obj0 = 0 ;
9882 char *kwnames[] = {
9883 (char *) "self", NULL
9884 };
9885
9886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 result = (bool)((wxLocale const *)arg1)->IsOk();
9892
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 {
9897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9898 }
9899 return resultobj;
9900 fail:
9901 return NULL;
9902 }
9903
9904
9905 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9906 PyObject *resultobj;
9907 wxLocale *arg1 = (wxLocale *) 0 ;
9908 wxString result;
9909 PyObject * obj0 = 0 ;
9910 char *kwnames[] = {
9911 (char *) "self", NULL
9912 };
9913
9914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 result = ((wxLocale const *)arg1)->GetLocale();
9920
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 {
9925 #if wxUSE_UNICODE
9926 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9927 #else
9928 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9929 #endif
9930 }
9931 return resultobj;
9932 fail:
9933 return NULL;
9934 }
9935
9936
9937 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj;
9939 wxLocale *arg1 = (wxLocale *) 0 ;
9940 int result;
9941 PyObject * obj0 = 0 ;
9942 char *kwnames[] = {
9943 (char *) "self", NULL
9944 };
9945
9946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9949 {
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 result = (int)((wxLocale const *)arg1)->GetLanguage();
9952
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 resultobj = SWIG_FromInt((int)result);
9957 return resultobj;
9958 fail:
9959 return NULL;
9960 }
9961
9962
9963 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9964 PyObject *resultobj;
9965 wxLocale *arg1 = (wxLocale *) 0 ;
9966 wxString result;
9967 PyObject * obj0 = 0 ;
9968 char *kwnames[] = {
9969 (char *) "self", NULL
9970 };
9971
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9975 {
9976 PyThreadState* __tstate = wxPyBeginAllowThreads();
9977 result = ((wxLocale const *)arg1)->GetSysName();
9978
9979 wxPyEndAllowThreads(__tstate);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 {
9983 #if wxUSE_UNICODE
9984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9985 #else
9986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9987 #endif
9988 }
9989 return resultobj;
9990 fail:
9991 return NULL;
9992 }
9993
9994
9995 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9996 PyObject *resultobj;
9997 wxLocale *arg1 = (wxLocale *) 0 ;
9998 wxString result;
9999 PyObject * obj0 = 0 ;
10000 char *kwnames[] = {
10001 (char *) "self", NULL
10002 };
10003
10004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 result = ((wxLocale const *)arg1)->GetCanonicalName();
10010
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 {
10015 #if wxUSE_UNICODE
10016 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10017 #else
10018 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10019 #endif
10020 }
10021 return resultobj;
10022 fail:
10023 return NULL;
10024 }
10025
10026
10027 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10028 PyObject *resultobj;
10029 wxString *arg1 = 0 ;
10030 bool temp1 = False ;
10031 PyObject * obj0 = 0 ;
10032 char *kwnames[] = {
10033 (char *) "prefix", NULL
10034 };
10035
10036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10037 {
10038 arg1 = wxString_in_helper(obj0);
10039 if (arg1 == NULL) SWIG_fail;
10040 temp1 = True;
10041 }
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 Py_INCREF(Py_None); resultobj = Py_None;
10050 {
10051 if (temp1)
10052 delete arg1;
10053 }
10054 return resultobj;
10055 fail:
10056 {
10057 if (temp1)
10058 delete arg1;
10059 }
10060 return NULL;
10061 }
10062
10063
10064 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10065 PyObject *resultobj;
10066 wxLocale *arg1 = (wxLocale *) 0 ;
10067 wxString *arg2 = 0 ;
10068 bool result;
10069 bool temp2 = False ;
10070 PyObject * obj0 = 0 ;
10071 PyObject * obj1 = 0 ;
10072 char *kwnames[] = {
10073 (char *) "self",(char *) "szDomain", NULL
10074 };
10075
10076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10079 {
10080 arg2 = wxString_in_helper(obj1);
10081 if (arg2 == NULL) SWIG_fail;
10082 temp2 = True;
10083 }
10084 {
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10087
10088 wxPyEndAllowThreads(__tstate);
10089 if (PyErr_Occurred()) SWIG_fail;
10090 }
10091 {
10092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10093 }
10094 {
10095 if (temp2)
10096 delete arg2;
10097 }
10098 return resultobj;
10099 fail:
10100 {
10101 if (temp2)
10102 delete arg2;
10103 }
10104 return NULL;
10105 }
10106
10107
10108 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj;
10110 wxLocale *arg1 = (wxLocale *) 0 ;
10111 wxString *arg2 = 0 ;
10112 bool result;
10113 bool temp2 = False ;
10114 PyObject * obj0 = 0 ;
10115 PyObject * obj1 = 0 ;
10116 char *kwnames[] = {
10117 (char *) "self",(char *) "szDomain", NULL
10118 };
10119
10120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10123 {
10124 arg2 = wxString_in_helper(obj1);
10125 if (arg2 == NULL) SWIG_fail;
10126 temp2 = True;
10127 }
10128 {
10129 PyThreadState* __tstate = wxPyBeginAllowThreads();
10130 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10131
10132 wxPyEndAllowThreads(__tstate);
10133 if (PyErr_Occurred()) SWIG_fail;
10134 }
10135 {
10136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10137 }
10138 {
10139 if (temp2)
10140 delete arg2;
10141 }
10142 return resultobj;
10143 fail:
10144 {
10145 if (temp2)
10146 delete arg2;
10147 }
10148 return NULL;
10149 }
10150
10151
10152 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10153 PyObject *resultobj;
10154 int arg1 ;
10155 wxLanguageInfo *result;
10156 PyObject * obj0 = 0 ;
10157 char *kwnames[] = {
10158 (char *) "lang", NULL
10159 };
10160
10161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10162 arg1 = (int) SWIG_AsInt(obj0);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 {
10165 PyThreadState* __tstate = wxPyBeginAllowThreads();
10166 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10167
10168 wxPyEndAllowThreads(__tstate);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 }
10171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10172 return resultobj;
10173 fail:
10174 return NULL;
10175 }
10176
10177
10178 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10179 PyObject *resultobj;
10180 int arg1 ;
10181 wxString result;
10182 PyObject * obj0 = 0 ;
10183 char *kwnames[] = {
10184 (char *) "lang", NULL
10185 };
10186
10187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10188 arg1 = (int) SWIG_AsInt(obj0);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 {
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 result = wxLocale::GetLanguageName(arg1);
10193
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 {
10198 #if wxUSE_UNICODE
10199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10200 #else
10201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10202 #endif
10203 }
10204 return resultobj;
10205 fail:
10206 return NULL;
10207 }
10208
10209
10210 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj;
10212 wxString *arg1 = 0 ;
10213 wxLanguageInfo *result;
10214 bool temp1 = False ;
10215 PyObject * obj0 = 0 ;
10216 char *kwnames[] = {
10217 (char *) "locale", NULL
10218 };
10219
10220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10221 {
10222 arg1 = wxString_in_helper(obj0);
10223 if (arg1 == NULL) SWIG_fail;
10224 temp1 = True;
10225 }
10226 {
10227 PyThreadState* __tstate = wxPyBeginAllowThreads();
10228 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10229
10230 wxPyEndAllowThreads(__tstate);
10231 if (PyErr_Occurred()) SWIG_fail;
10232 }
10233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10234 {
10235 if (temp1)
10236 delete arg1;
10237 }
10238 return resultobj;
10239 fail:
10240 {
10241 if (temp1)
10242 delete arg1;
10243 }
10244 return NULL;
10245 }
10246
10247
10248 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10249 PyObject *resultobj;
10250 wxLanguageInfo *arg1 = 0 ;
10251 PyObject * obj0 = 0 ;
10252 char *kwnames[] = {
10253 (char *) "info", NULL
10254 };
10255
10256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10258 SWIG_POINTER_EXCEPTION | 0)) == -1)
10259 SWIG_fail;
10260 if (arg1 == NULL) {
10261 PyErr_SetString(PyExc_TypeError,"null reference");
10262 SWIG_fail;
10263 }
10264 {
10265 PyThreadState* __tstate = wxPyBeginAllowThreads();
10266 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10267
10268 wxPyEndAllowThreads(__tstate);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 }
10271 Py_INCREF(Py_None); resultobj = Py_None;
10272 return resultobj;
10273 fail:
10274 return NULL;
10275 }
10276
10277
10278 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10279 PyObject *resultobj;
10280 wxLocale *arg1 = (wxLocale *) 0 ;
10281 wxString *arg2 = 0 ;
10282 wxString const &arg3_defvalue = wxPyEmptyString ;
10283 wxString *arg3 = (wxString *) &arg3_defvalue ;
10284 wxString result;
10285 bool temp2 = False ;
10286 bool temp3 = False ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 PyObject * obj2 = 0 ;
10290 char *kwnames[] = {
10291 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10292 };
10293
10294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10297 {
10298 arg2 = wxString_in_helper(obj1);
10299 if (arg2 == NULL) SWIG_fail;
10300 temp2 = True;
10301 }
10302 if (obj2) {
10303 {
10304 arg3 = wxString_in_helper(obj2);
10305 if (arg3 == NULL) SWIG_fail;
10306 temp3 = True;
10307 }
10308 }
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10312
10313 wxPyEndAllowThreads(__tstate);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 }
10316 {
10317 #if wxUSE_UNICODE
10318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10319 #else
10320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10321 #endif
10322 }
10323 {
10324 if (temp2)
10325 delete arg2;
10326 }
10327 {
10328 if (temp3)
10329 delete arg3;
10330 }
10331 return resultobj;
10332 fail:
10333 {
10334 if (temp2)
10335 delete arg2;
10336 }
10337 {
10338 if (temp3)
10339 delete arg3;
10340 }
10341 return NULL;
10342 }
10343
10344
10345 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj;
10347 wxLocale *arg1 = (wxLocale *) 0 ;
10348 wxString *result;
10349 PyObject * obj0 = 0 ;
10350 char *kwnames[] = {
10351 (char *) "self", NULL
10352 };
10353
10354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
10359 {
10360 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10361 result = (wxString *) &_result_ref;
10362 }
10363
10364 wxPyEndAllowThreads(__tstate);
10365 if (PyErr_Occurred()) SWIG_fail;
10366 }
10367 {
10368 #if wxUSE_UNICODE
10369 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10370 #else
10371 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10372 #endif
10373 }
10374 return resultobj;
10375 fail:
10376 return NULL;
10377 }
10378
10379
10380 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10381 PyObject *obj;
10382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10383 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10384 Py_INCREF(obj);
10385 return Py_BuildValue((char *)"");
10386 }
10387 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10388 PyObject *resultobj;
10389 wxLocale *result;
10390 char *kwnames[] = {
10391 NULL
10392 };
10393
10394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 result = (wxLocale *)wxGetLocale();
10398
10399 wxPyEndAllowThreads(__tstate);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10403 return resultobj;
10404 fail:
10405 return NULL;
10406 }
10407
10408
10409 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10410 PyObject *resultobj;
10411 wxString *arg1 = 0 ;
10412 wxString result;
10413 bool temp1 = False ;
10414 PyObject * obj0 = 0 ;
10415
10416 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10417 {
10418 arg1 = wxString_in_helper(obj0);
10419 if (arg1 == NULL) SWIG_fail;
10420 temp1 = True;
10421 }
10422 {
10423 PyThreadState* __tstate = wxPyBeginAllowThreads();
10424 result = wxGetTranslation((wxString const &)*arg1);
10425
10426 wxPyEndAllowThreads(__tstate);
10427 if (PyErr_Occurred()) SWIG_fail;
10428 }
10429 {
10430 #if wxUSE_UNICODE
10431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10432 #else
10433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10434 #endif
10435 }
10436 {
10437 if (temp1)
10438 delete arg1;
10439 }
10440 return resultobj;
10441 fail:
10442 {
10443 if (temp1)
10444 delete arg1;
10445 }
10446 return NULL;
10447 }
10448
10449
10450 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10451 PyObject *resultobj;
10452 wxString *arg1 = 0 ;
10453 wxString *arg2 = 0 ;
10454 size_t arg3 ;
10455 wxString result;
10456 bool temp1 = False ;
10457 bool temp2 = False ;
10458 PyObject * obj0 = 0 ;
10459 PyObject * obj1 = 0 ;
10460 PyObject * obj2 = 0 ;
10461
10462 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10463 {
10464 arg1 = wxString_in_helper(obj0);
10465 if (arg1 == NULL) SWIG_fail;
10466 temp1 = True;
10467 }
10468 {
10469 arg2 = wxString_in_helper(obj1);
10470 if (arg2 == NULL) SWIG_fail;
10471 temp2 = True;
10472 }
10473 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10478
10479 wxPyEndAllowThreads(__tstate);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 {
10483 #if wxUSE_UNICODE
10484 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10485 #else
10486 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10487 #endif
10488 }
10489 {
10490 if (temp1)
10491 delete arg1;
10492 }
10493 {
10494 if (temp2)
10495 delete arg2;
10496 }
10497 return resultobj;
10498 fail:
10499 {
10500 if (temp1)
10501 delete arg1;
10502 }
10503 {
10504 if (temp2)
10505 delete arg2;
10506 }
10507 return NULL;
10508 }
10509
10510
10511 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10512 int argc;
10513 PyObject *argv[4];
10514 int ii;
10515
10516 argc = PyObject_Length(args);
10517 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10518 argv[ii] = PyTuple_GetItem(args,ii);
10519 }
10520 if (argc == 1) {
10521 int _v;
10522 {
10523 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10524 }
10525 if (_v) {
10526 return _wrap_GetTranslation__SWIG_0(self,args);
10527 }
10528 }
10529 if (argc == 3) {
10530 int _v;
10531 {
10532 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10533 }
10534 if (_v) {
10535 {
10536 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10537 }
10538 if (_v) {
10539 _v = SWIG_CheckUnsignedLong(argv[2]);
10540 if (_v) {
10541 return _wrap_GetTranslation__SWIG_1(self,args);
10542 }
10543 }
10544 }
10545 }
10546
10547 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10548 return NULL;
10549 }
10550
10551
10552 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10553 PyObject *resultobj;
10554 wxEncodingConverter *result;
10555 char *kwnames[] = {
10556 NULL
10557 };
10558
10559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 result = (wxEncodingConverter *)new wxEncodingConverter();
10563
10564 wxPyEndAllowThreads(__tstate);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
10567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10568 return resultobj;
10569 fail:
10570 return NULL;
10571 }
10572
10573
10574 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10575 PyObject *resultobj;
10576 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10577 PyObject * obj0 = 0 ;
10578 char *kwnames[] = {
10579 (char *) "self", NULL
10580 };
10581
10582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 delete arg1;
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_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj;
10601 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10602 int arg2 ;
10603 int arg3 ;
10604 int arg4 = (int) wxCONVERT_STRICT ;
10605 bool result;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 PyObject * obj2 = 0 ;
10609 PyObject * obj3 = 0 ;
10610 char *kwnames[] = {
10611 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10612 };
10613
10614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10617 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10620 if (PyErr_Occurred()) SWIG_fail;
10621 if (obj3) {
10622 arg4 = (int) SWIG_AsInt(obj3);
10623 if (PyErr_Occurred()) SWIG_fail;
10624 }
10625 {
10626 PyThreadState* __tstate = wxPyBeginAllowThreads();
10627 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10628
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 {
10633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10634 }
10635 return resultobj;
10636 fail:
10637 return NULL;
10638 }
10639
10640
10641 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10642 PyObject *resultobj;
10643 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10644 wxString *arg2 = 0 ;
10645 wxString result;
10646 bool temp2 = False ;
10647 PyObject * obj0 = 0 ;
10648 PyObject * obj1 = 0 ;
10649 char *kwnames[] = {
10650 (char *) "self",(char *) "input", NULL
10651 };
10652
10653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10656 {
10657 arg2 = wxString_in_helper(obj1);
10658 if (arg2 == NULL) SWIG_fail;
10659 temp2 = True;
10660 }
10661 {
10662 PyThreadState* __tstate = wxPyBeginAllowThreads();
10663 result = (arg1)->Convert((wxString const &)*arg2);
10664
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 {
10669 #if wxUSE_UNICODE
10670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10671 #else
10672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10673 #endif
10674 }
10675 {
10676 if (temp2)
10677 delete arg2;
10678 }
10679 return resultobj;
10680 fail:
10681 {
10682 if (temp2)
10683 delete arg2;
10684 }
10685 return NULL;
10686 }
10687
10688
10689 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj;
10691 int arg1 ;
10692 int arg2 = (int) wxPLATFORM_CURRENT ;
10693 wxFontEncodingArray result;
10694 PyObject * obj0 = 0 ;
10695 PyObject * obj1 = 0 ;
10696 char *kwnames[] = {
10697 (char *) "enc",(char *) "platform", NULL
10698 };
10699
10700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10701 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 if (obj1) {
10704 arg2 = (int) SWIG_AsInt(obj1);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 {
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10710
10711 wxPyEndAllowThreads(__tstate);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 }
10714 {
10715 resultobj = PyList_New(0);
10716 for (size_t i=0; i < (&result)->GetCount(); i++) {
10717 PyObject* number = PyInt_FromLong((&result)->Item(i));
10718 PyList_Append(resultobj, number);
10719 Py_DECREF(number);
10720 }
10721 }
10722 return resultobj;
10723 fail:
10724 return NULL;
10725 }
10726
10727
10728 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10729 PyObject *resultobj;
10730 int arg1 ;
10731 wxFontEncodingArray result;
10732 PyObject * obj0 = 0 ;
10733 char *kwnames[] = {
10734 (char *) "enc", NULL
10735 };
10736
10737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10738 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10743
10744 wxPyEndAllowThreads(__tstate);
10745 if (PyErr_Occurred()) SWIG_fail;
10746 }
10747 {
10748 resultobj = PyList_New(0);
10749 for (size_t i=0; i < (&result)->GetCount(); i++) {
10750 PyObject* number = PyInt_FromLong((&result)->Item(i));
10751 PyList_Append(resultobj, number);
10752 Py_DECREF(number);
10753 }
10754 }
10755 return resultobj;
10756 fail:
10757 return NULL;
10758 }
10759
10760
10761 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10762 PyObject *resultobj;
10763 int arg1 ;
10764 int arg2 ;
10765 bool result;
10766 PyObject * obj0 = 0 ;
10767 PyObject * obj1 = 0 ;
10768 char *kwnames[] = {
10769 (char *) "encIn",(char *) "encOut", NULL
10770 };
10771
10772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10773 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 {
10778 PyThreadState* __tstate = wxPyBeginAllowThreads();
10779 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10780
10781 wxPyEndAllowThreads(__tstate);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 }
10784 {
10785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10786 }
10787 return resultobj;
10788 fail:
10789 return NULL;
10790 }
10791
10792
10793 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10794 PyObject *obj;
10795 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10796 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10797 Py_INCREF(obj);
10798 return Py_BuildValue((char *)"");
10799 }
10800 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10801 PyObject *resultobj;
10802 wxDC *arg1 = (wxDC *) 0 ;
10803 PyObject * obj0 = 0 ;
10804 char *kwnames[] = {
10805 (char *) "self", NULL
10806 };
10807
10808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 delete arg1;
10814
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 }
10818 Py_INCREF(Py_None); resultobj = Py_None;
10819 return resultobj;
10820 fail:
10821 return NULL;
10822 }
10823
10824
10825 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10826 PyObject *resultobj;
10827 wxDC *arg1 = (wxDC *) 0 ;
10828 PyObject * obj0 = 0 ;
10829 char *kwnames[] = {
10830 (char *) "self", NULL
10831 };
10832
10833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 (arg1)->BeginDrawing();
10839
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 Py_INCREF(Py_None); resultobj = Py_None;
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj;
10852 wxDC *arg1 = (wxDC *) 0 ;
10853 PyObject * obj0 = 0 ;
10854 char *kwnames[] = {
10855 (char *) "self", NULL
10856 };
10857
10858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10861 {
10862 PyThreadState* __tstate = wxPyBeginAllowThreads();
10863 (arg1)->EndDrawing();
10864
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 Py_INCREF(Py_None); resultobj = Py_None;
10869 return resultobj;
10870 fail:
10871 return NULL;
10872 }
10873
10874
10875 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10876 PyObject *resultobj;
10877 wxDC *arg1 = (wxDC *) 0 ;
10878 int arg2 ;
10879 int arg3 ;
10880 wxColour *arg4 = 0 ;
10881 int arg5 = (int) wxFLOOD_SURFACE ;
10882 bool result;
10883 wxColour temp4 ;
10884 PyObject * obj0 = 0 ;
10885 PyObject * obj1 = 0 ;
10886 PyObject * obj2 = 0 ;
10887 PyObject * obj3 = 0 ;
10888 PyObject * obj4 = 0 ;
10889 char *kwnames[] = {
10890 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10891 };
10892
10893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10896 arg2 = (int) SWIG_AsInt(obj1);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 arg3 = (int) SWIG_AsInt(obj2);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 {
10901 arg4 = &temp4;
10902 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10903 }
10904 if (obj4) {
10905 arg5 = (int) SWIG_AsInt(obj4);
10906 if (PyErr_Occurred()) SWIG_fail;
10907 }
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10911
10912 wxPyEndAllowThreads(__tstate);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 }
10915 {
10916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10917 }
10918 return resultobj;
10919 fail:
10920 return NULL;
10921 }
10922
10923
10924 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10925 PyObject *resultobj;
10926 wxDC *arg1 = (wxDC *) 0 ;
10927 wxPoint *arg2 = 0 ;
10928 wxColour *arg3 = 0 ;
10929 int arg4 = (int) wxFLOOD_SURFACE ;
10930 bool result;
10931 wxPoint temp2 ;
10932 wxColour temp3 ;
10933 PyObject * obj0 = 0 ;
10934 PyObject * obj1 = 0 ;
10935 PyObject * obj2 = 0 ;
10936 PyObject * obj3 = 0 ;
10937 char *kwnames[] = {
10938 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10939 };
10940
10941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10944 {
10945 arg2 = &temp2;
10946 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10947 }
10948 {
10949 arg3 = &temp3;
10950 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10951 }
10952 if (obj3) {
10953 arg4 = (int) SWIG_AsInt(obj3);
10954 if (PyErr_Occurred()) SWIG_fail;
10955 }
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10959
10960 wxPyEndAllowThreads(__tstate);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 }
10963 {
10964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10965 }
10966 return resultobj;
10967 fail:
10968 return NULL;
10969 }
10970
10971
10972 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj;
10974 wxDC *arg1 = (wxDC *) 0 ;
10975 int arg2 ;
10976 int arg3 ;
10977 wxColour result;
10978 PyObject * obj0 = 0 ;
10979 PyObject * obj1 = 0 ;
10980 PyObject * obj2 = 0 ;
10981 char *kwnames[] = {
10982 (char *) "self",(char *) "x",(char *) "y", NULL
10983 };
10984
10985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10988 arg2 = (int) SWIG_AsInt(obj1);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 arg3 = (int) SWIG_AsInt(obj2);
10991 if (PyErr_Occurred()) SWIG_fail;
10992 {
10993 PyThreadState* __tstate = wxPyBeginAllowThreads();
10994 result = wxDC_GetPixel(arg1,arg2,arg3);
10995
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) SWIG_fail;
10998 }
10999 {
11000 wxColour * resultptr;
11001 resultptr = new wxColour((wxColour &) result);
11002 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11003 }
11004 return resultobj;
11005 fail:
11006 return NULL;
11007 }
11008
11009
11010 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj;
11012 wxDC *arg1 = (wxDC *) 0 ;
11013 wxPoint *arg2 = 0 ;
11014 wxColour result;
11015 wxPoint temp2 ;
11016 PyObject * obj0 = 0 ;
11017 PyObject * obj1 = 0 ;
11018 char *kwnames[] = {
11019 (char *) "self",(char *) "pt", NULL
11020 };
11021
11022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
11023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11025 {
11026 arg2 = &temp2;
11027 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11028 }
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
11032
11033 wxPyEndAllowThreads(__tstate);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 {
11037 wxColour * resultptr;
11038 resultptr = new wxColour((wxColour &) result);
11039 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11040 }
11041 return resultobj;
11042 fail:
11043 return NULL;
11044 }
11045
11046
11047 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11048 PyObject *resultobj;
11049 wxDC *arg1 = (wxDC *) 0 ;
11050 int arg2 ;
11051 int arg3 ;
11052 int arg4 ;
11053 int arg5 ;
11054 PyObject * obj0 = 0 ;
11055 PyObject * obj1 = 0 ;
11056 PyObject * obj2 = 0 ;
11057 PyObject * obj3 = 0 ;
11058 PyObject * obj4 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 arg2 = (int) SWIG_AsInt(obj1);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 arg3 = (int) SWIG_AsInt(obj2);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 arg4 = (int) SWIG_AsInt(obj3);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 arg5 = (int) SWIG_AsInt(obj4);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 {
11075 PyThreadState* __tstate = wxPyBeginAllowThreads();
11076 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11077
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 Py_INCREF(Py_None); resultobj = Py_None;
11082 return resultobj;
11083 fail:
11084 return NULL;
11085 }
11086
11087
11088 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj;
11090 wxDC *arg1 = (wxDC *) 0 ;
11091 wxPoint *arg2 = 0 ;
11092 wxPoint *arg3 = 0 ;
11093 wxPoint temp2 ;
11094 wxPoint temp3 ;
11095 PyObject * obj0 = 0 ;
11096 PyObject * obj1 = 0 ;
11097 PyObject * obj2 = 0 ;
11098 char *kwnames[] = {
11099 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11100 };
11101
11102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11105 {
11106 arg2 = &temp2;
11107 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11108 }
11109 {
11110 arg3 = &temp3;
11111 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11112 }
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11116
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 Py_INCREF(Py_None); resultobj = Py_None;
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj;
11129 wxDC *arg1 = (wxDC *) 0 ;
11130 int arg2 ;
11131 int arg3 ;
11132 PyObject * obj0 = 0 ;
11133 PyObject * obj1 = 0 ;
11134 PyObject * obj2 = 0 ;
11135 char *kwnames[] = {
11136 (char *) "self",(char *) "x",(char *) "y", NULL
11137 };
11138
11139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
11140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11142 arg2 = (int) SWIG_AsInt(obj1);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 arg3 = (int) SWIG_AsInt(obj2);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 {
11147 PyThreadState* __tstate = wxPyBeginAllowThreads();
11148 (arg1)->CrossHair(arg2,arg3);
11149
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 }
11153 Py_INCREF(Py_None); resultobj = Py_None;
11154 return resultobj;
11155 fail:
11156 return NULL;
11157 }
11158
11159
11160 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11161 PyObject *resultobj;
11162 wxDC *arg1 = (wxDC *) 0 ;
11163 wxPoint *arg2 = 0 ;
11164 wxPoint temp2 ;
11165 PyObject * obj0 = 0 ;
11166 PyObject * obj1 = 0 ;
11167 char *kwnames[] = {
11168 (char *) "self",(char *) "pt", NULL
11169 };
11170
11171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
11172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11174 {
11175 arg2 = &temp2;
11176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11177 }
11178 {
11179 PyThreadState* __tstate = wxPyBeginAllowThreads();
11180 (arg1)->CrossHair((wxPoint const &)*arg2);
11181
11182 wxPyEndAllowThreads(__tstate);
11183 if (PyErr_Occurred()) SWIG_fail;
11184 }
11185 Py_INCREF(Py_None); resultobj = Py_None;
11186 return resultobj;
11187 fail:
11188 return NULL;
11189 }
11190
11191
11192 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11193 PyObject *resultobj;
11194 wxDC *arg1 = (wxDC *) 0 ;
11195 int arg2 ;
11196 int arg3 ;
11197 int arg4 ;
11198 int arg5 ;
11199 int arg6 ;
11200 int arg7 ;
11201 PyObject * obj0 = 0 ;
11202 PyObject * obj1 = 0 ;
11203 PyObject * obj2 = 0 ;
11204 PyObject * obj3 = 0 ;
11205 PyObject * obj4 = 0 ;
11206 PyObject * obj5 = 0 ;
11207 PyObject * obj6 = 0 ;
11208 char *kwnames[] = {
11209 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11210 };
11211
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11215 arg2 = (int) SWIG_AsInt(obj1);
11216 if (PyErr_Occurred()) SWIG_fail;
11217 arg3 = (int) SWIG_AsInt(obj2);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 arg4 = (int) SWIG_AsInt(obj3);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 arg5 = (int) SWIG_AsInt(obj4);
11222 if (PyErr_Occurred()) SWIG_fail;
11223 arg6 = (int) SWIG_AsInt(obj5);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 arg7 = (int) SWIG_AsInt(obj6);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11230
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 Py_INCREF(Py_None); resultobj = Py_None;
11235 return resultobj;
11236 fail:
11237 return NULL;
11238 }
11239
11240
11241 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj;
11243 wxDC *arg1 = (wxDC *) 0 ;
11244 wxPoint *arg2 = 0 ;
11245 wxPoint *arg3 = 0 ;
11246 wxPoint *arg4 = 0 ;
11247 wxPoint temp2 ;
11248 wxPoint temp3 ;
11249 wxPoint temp4 ;
11250 PyObject * obj0 = 0 ;
11251 PyObject * obj1 = 0 ;
11252 PyObject * obj2 = 0 ;
11253 PyObject * obj3 = 0 ;
11254 char *kwnames[] = {
11255 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11256 };
11257
11258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11261 {
11262 arg2 = &temp2;
11263 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11264 }
11265 {
11266 arg3 = &temp3;
11267 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11268 }
11269 {
11270 arg4 = &temp4;
11271 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11272 }
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11276
11277 wxPyEndAllowThreads(__tstate);
11278 if (PyErr_Occurred()) SWIG_fail;
11279 }
11280 Py_INCREF(Py_None); resultobj = Py_None;
11281 return resultobj;
11282 fail:
11283 return NULL;
11284 }
11285
11286
11287 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11288 PyObject *resultobj;
11289 wxDC *arg1 = (wxDC *) 0 ;
11290 int arg2 ;
11291 int arg3 ;
11292 int arg4 ;
11293 int arg5 ;
11294 PyObject * obj0 = 0 ;
11295 PyObject * obj1 = 0 ;
11296 PyObject * obj2 = 0 ;
11297 PyObject * obj3 = 0 ;
11298 PyObject * obj4 = 0 ;
11299 char *kwnames[] = {
11300 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11301 };
11302
11303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11306 arg2 = (int) SWIG_AsInt(obj1);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 arg3 = (int) SWIG_AsInt(obj2);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 arg4 = (int) SWIG_AsInt(obj3);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 arg5 = (int) SWIG_AsInt(obj4);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 Py_INCREF(Py_None); resultobj = Py_None;
11322 return resultobj;
11323 fail:
11324 return NULL;
11325 }
11326
11327
11328 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11329 PyObject *resultobj;
11330 wxDC *arg1 = (wxDC *) 0 ;
11331 wxRect *arg2 = 0 ;
11332 wxRect temp2 ;
11333 PyObject * obj0 = 0 ;
11334 PyObject * obj1 = 0 ;
11335 char *kwnames[] = {
11336 (char *) "self",(char *) "rect", NULL
11337 };
11338
11339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11342 {
11343 arg2 = &temp2;
11344 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11345 }
11346 {
11347 PyThreadState* __tstate = wxPyBeginAllowThreads();
11348 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11349
11350 wxPyEndAllowThreads(__tstate);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 }
11353 Py_INCREF(Py_None); resultobj = Py_None;
11354 return resultobj;
11355 fail:
11356 return NULL;
11357 }
11358
11359
11360 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11361 PyObject *resultobj;
11362 wxDC *arg1 = (wxDC *) 0 ;
11363 int arg2 ;
11364 int arg3 ;
11365 int arg4 ;
11366 int arg5 ;
11367 double arg6 ;
11368 double arg7 ;
11369 PyObject * obj0 = 0 ;
11370 PyObject * obj1 = 0 ;
11371 PyObject * obj2 = 0 ;
11372 PyObject * obj3 = 0 ;
11373 PyObject * obj4 = 0 ;
11374 PyObject * obj5 = 0 ;
11375 PyObject * obj6 = 0 ;
11376 char *kwnames[] = {
11377 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11378 };
11379
11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11383 arg2 = (int) SWIG_AsInt(obj1);
11384 if (PyErr_Occurred()) SWIG_fail;
11385 arg3 = (int) SWIG_AsInt(obj2);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 arg4 = (int) SWIG_AsInt(obj3);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 arg5 = (int) SWIG_AsInt(obj4);
11390 if (PyErr_Occurred()) SWIG_fail;
11391 arg6 = (double) SWIG_AsDouble(obj5);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 arg7 = (double) SWIG_AsDouble(obj6);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 {
11396 PyThreadState* __tstate = wxPyBeginAllowThreads();
11397 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11398
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 Py_INCREF(Py_None); resultobj = Py_None;
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11410 PyObject *resultobj;
11411 wxDC *arg1 = (wxDC *) 0 ;
11412 wxPoint *arg2 = 0 ;
11413 wxSize *arg3 = 0 ;
11414 double arg4 ;
11415 double arg5 ;
11416 wxPoint temp2 ;
11417 wxSize temp3 ;
11418 PyObject * obj0 = 0 ;
11419 PyObject * obj1 = 0 ;
11420 PyObject * obj2 = 0 ;
11421 PyObject * obj3 = 0 ;
11422 PyObject * obj4 = 0 ;
11423 char *kwnames[] = {
11424 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11425 };
11426
11427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11430 {
11431 arg2 = &temp2;
11432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11433 }
11434 {
11435 arg3 = &temp3;
11436 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11437 }
11438 arg4 = (double) SWIG_AsDouble(obj3);
11439 if (PyErr_Occurred()) SWIG_fail;
11440 arg5 = (double) SWIG_AsDouble(obj4);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 {
11443 PyThreadState* __tstate = wxPyBeginAllowThreads();
11444 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11445
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 Py_INCREF(Py_None); resultobj = Py_None;
11450 return resultobj;
11451 fail:
11452 return NULL;
11453 }
11454
11455
11456 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11457 PyObject *resultobj;
11458 wxDC *arg1 = (wxDC *) 0 ;
11459 int arg2 ;
11460 int arg3 ;
11461 PyObject * obj0 = 0 ;
11462 PyObject * obj1 = 0 ;
11463 PyObject * obj2 = 0 ;
11464 char *kwnames[] = {
11465 (char *) "self",(char *) "x",(char *) "y", NULL
11466 };
11467
11468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11471 arg2 = (int) SWIG_AsInt(obj1);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 arg3 = (int) SWIG_AsInt(obj2);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 (arg1)->DrawPoint(arg2,arg3);
11478
11479 wxPyEndAllowThreads(__tstate);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 }
11482 Py_INCREF(Py_None); resultobj = Py_None;
11483 return resultobj;
11484 fail:
11485 return NULL;
11486 }
11487
11488
11489 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11490 PyObject *resultobj;
11491 wxDC *arg1 = (wxDC *) 0 ;
11492 wxPoint *arg2 = 0 ;
11493 wxPoint temp2 ;
11494 PyObject * obj0 = 0 ;
11495 PyObject * obj1 = 0 ;
11496 char *kwnames[] = {
11497 (char *) "self",(char *) "pt", NULL
11498 };
11499
11500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11503 {
11504 arg2 = &temp2;
11505 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11506 }
11507 {
11508 PyThreadState* __tstate = wxPyBeginAllowThreads();
11509 (arg1)->DrawPoint((wxPoint const &)*arg2);
11510
11511 wxPyEndAllowThreads(__tstate);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 Py_INCREF(Py_None); resultobj = Py_None;
11515 return resultobj;
11516 fail:
11517 return NULL;
11518 }
11519
11520
11521 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11522 PyObject *resultobj;
11523 wxDC *arg1 = (wxDC *) 0 ;
11524 int arg2 ;
11525 int arg3 ;
11526 int arg4 ;
11527 int arg5 ;
11528 PyObject * obj0 = 0 ;
11529 PyObject * obj1 = 0 ;
11530 PyObject * obj2 = 0 ;
11531 PyObject * obj3 = 0 ;
11532 PyObject * obj4 = 0 ;
11533 char *kwnames[] = {
11534 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11535 };
11536
11537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11540 arg2 = (int) SWIG_AsInt(obj1);
11541 if (PyErr_Occurred()) SWIG_fail;
11542 arg3 = (int) SWIG_AsInt(obj2);
11543 if (PyErr_Occurred()) SWIG_fail;
11544 arg4 = (int) SWIG_AsInt(obj3);
11545 if (PyErr_Occurred()) SWIG_fail;
11546 arg5 = (int) SWIG_AsInt(obj4);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11551
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 Py_INCREF(Py_None); resultobj = Py_None;
11556 return resultobj;
11557 fail:
11558 return NULL;
11559 }
11560
11561
11562 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11563 PyObject *resultobj;
11564 wxDC *arg1 = (wxDC *) 0 ;
11565 wxRect *arg2 = 0 ;
11566 wxRect temp2 ;
11567 PyObject * obj0 = 0 ;
11568 PyObject * obj1 = 0 ;
11569 char *kwnames[] = {
11570 (char *) "self",(char *) "rect", NULL
11571 };
11572
11573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11576 {
11577 arg2 = &temp2;
11578 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11579 }
11580 {
11581 PyThreadState* __tstate = wxPyBeginAllowThreads();
11582 (arg1)->DrawRectangle((wxRect const &)*arg2);
11583
11584 wxPyEndAllowThreads(__tstate);
11585 if (PyErr_Occurred()) SWIG_fail;
11586 }
11587 Py_INCREF(Py_None); resultobj = Py_None;
11588 return resultobj;
11589 fail:
11590 return NULL;
11591 }
11592
11593
11594 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11595 PyObject *resultobj;
11596 wxDC *arg1 = (wxDC *) 0 ;
11597 wxPoint *arg2 = 0 ;
11598 wxSize *arg3 = 0 ;
11599 wxPoint temp2 ;
11600 wxSize temp3 ;
11601 PyObject * obj0 = 0 ;
11602 PyObject * obj1 = 0 ;
11603 PyObject * obj2 = 0 ;
11604 char *kwnames[] = {
11605 (char *) "self",(char *) "pt",(char *) "sz", NULL
11606 };
11607
11608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11611 {
11612 arg2 = &temp2;
11613 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11614 }
11615 {
11616 arg3 = &temp3;
11617 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11618 }
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11622
11623 wxPyEndAllowThreads(__tstate);
11624 if (PyErr_Occurred()) SWIG_fail;
11625 }
11626 Py_INCREF(Py_None); resultobj = Py_None;
11627 return resultobj;
11628 fail:
11629 return NULL;
11630 }
11631
11632
11633 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj;
11635 wxDC *arg1 = (wxDC *) 0 ;
11636 int arg2 ;
11637 int arg3 ;
11638 int arg4 ;
11639 int arg5 ;
11640 double arg6 ;
11641 PyObject * obj0 = 0 ;
11642 PyObject * obj1 = 0 ;
11643 PyObject * obj2 = 0 ;
11644 PyObject * obj3 = 0 ;
11645 PyObject * obj4 = 0 ;
11646 PyObject * obj5 = 0 ;
11647 char *kwnames[] = {
11648 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11649 };
11650
11651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11654 arg2 = (int) SWIG_AsInt(obj1);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 arg3 = (int) SWIG_AsInt(obj2);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 arg4 = (int) SWIG_AsInt(obj3);
11659 if (PyErr_Occurred()) SWIG_fail;
11660 arg5 = (int) SWIG_AsInt(obj4);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 arg6 = (double) SWIG_AsDouble(obj5);
11663 if (PyErr_Occurred()) SWIG_fail;
11664 {
11665 PyThreadState* __tstate = wxPyBeginAllowThreads();
11666 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11667
11668 wxPyEndAllowThreads(__tstate);
11669 if (PyErr_Occurred()) SWIG_fail;
11670 }
11671 Py_INCREF(Py_None); resultobj = Py_None;
11672 return resultobj;
11673 fail:
11674 return NULL;
11675 }
11676
11677
11678 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11679 PyObject *resultobj;
11680 wxDC *arg1 = (wxDC *) 0 ;
11681 wxRect *arg2 = 0 ;
11682 double arg3 ;
11683 wxRect temp2 ;
11684 PyObject * obj0 = 0 ;
11685 PyObject * obj1 = 0 ;
11686 PyObject * obj2 = 0 ;
11687 char *kwnames[] = {
11688 (char *) "self",(char *) "r",(char *) "radius", NULL
11689 };
11690
11691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11694 {
11695 arg2 = &temp2;
11696 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11697 }
11698 arg3 = (double) SWIG_AsDouble(obj2);
11699 if (PyErr_Occurred()) SWIG_fail;
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11703
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 Py_INCREF(Py_None); resultobj = Py_None;
11708 return resultobj;
11709 fail:
11710 return NULL;
11711 }
11712
11713
11714 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11715 PyObject *resultobj;
11716 wxDC *arg1 = (wxDC *) 0 ;
11717 wxPoint *arg2 = 0 ;
11718 wxSize *arg3 = 0 ;
11719 double arg4 ;
11720 wxPoint temp2 ;
11721 wxSize temp3 ;
11722 PyObject * obj0 = 0 ;
11723 PyObject * obj1 = 0 ;
11724 PyObject * obj2 = 0 ;
11725 PyObject * obj3 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11728 };
11729
11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11733 {
11734 arg2 = &temp2;
11735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11736 }
11737 {
11738 arg3 = &temp3;
11739 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11740 }
11741 arg4 = (double) SWIG_AsDouble(obj3);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 {
11744 PyThreadState* __tstate = wxPyBeginAllowThreads();
11745 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11746
11747 wxPyEndAllowThreads(__tstate);
11748 if (PyErr_Occurred()) SWIG_fail;
11749 }
11750 Py_INCREF(Py_None); resultobj = Py_None;
11751 return resultobj;
11752 fail:
11753 return NULL;
11754 }
11755
11756
11757 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11758 PyObject *resultobj;
11759 wxDC *arg1 = (wxDC *) 0 ;
11760 int arg2 ;
11761 int arg3 ;
11762 int arg4 ;
11763 PyObject * obj0 = 0 ;
11764 PyObject * obj1 = 0 ;
11765 PyObject * obj2 = 0 ;
11766 PyObject * obj3 = 0 ;
11767 char *kwnames[] = {
11768 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11769 };
11770
11771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11774 arg2 = (int) SWIG_AsInt(obj1);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 arg3 = (int) SWIG_AsInt(obj2);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 arg4 = (int) SWIG_AsInt(obj3);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 (arg1)->DrawCircle(arg2,arg3,arg4);
11783
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 Py_INCREF(Py_None); resultobj = Py_None;
11788 return resultobj;
11789 fail:
11790 return NULL;
11791 }
11792
11793
11794 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11795 PyObject *resultobj;
11796 wxDC *arg1 = (wxDC *) 0 ;
11797 wxPoint *arg2 = 0 ;
11798 int arg3 ;
11799 wxPoint temp2 ;
11800 PyObject * obj0 = 0 ;
11801 PyObject * obj1 = 0 ;
11802 PyObject * obj2 = 0 ;
11803 char *kwnames[] = {
11804 (char *) "self",(char *) "pt",(char *) "radius", NULL
11805 };
11806
11807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11810 {
11811 arg2 = &temp2;
11812 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11813 }
11814 arg3 = (int) SWIG_AsInt(obj2);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 Py_INCREF(Py_None); resultobj = Py_None;
11824 return resultobj;
11825 fail:
11826 return NULL;
11827 }
11828
11829
11830 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj;
11832 wxDC *arg1 = (wxDC *) 0 ;
11833 int arg2 ;
11834 int arg3 ;
11835 int arg4 ;
11836 int arg5 ;
11837 PyObject * obj0 = 0 ;
11838 PyObject * obj1 = 0 ;
11839 PyObject * obj2 = 0 ;
11840 PyObject * obj3 = 0 ;
11841 PyObject * obj4 = 0 ;
11842 char *kwnames[] = {
11843 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11844 };
11845
11846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11849 arg2 = (int) SWIG_AsInt(obj1);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 arg3 = (int) SWIG_AsInt(obj2);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 arg4 = (int) SWIG_AsInt(obj3);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 arg5 = (int) SWIG_AsInt(obj4);
11856 if (PyErr_Occurred()) SWIG_fail;
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11860
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 Py_INCREF(Py_None); resultobj = Py_None;
11865 return resultobj;
11866 fail:
11867 return NULL;
11868 }
11869
11870
11871 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11872 PyObject *resultobj;
11873 wxDC *arg1 = (wxDC *) 0 ;
11874 wxRect *arg2 = 0 ;
11875 wxRect temp2 ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 char *kwnames[] = {
11879 (char *) "self",(char *) "rect", NULL
11880 };
11881
11882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11885 {
11886 arg2 = &temp2;
11887 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11888 }
11889 {
11890 PyThreadState* __tstate = wxPyBeginAllowThreads();
11891 (arg1)->DrawEllipse((wxRect const &)*arg2);
11892
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 Py_INCREF(Py_None); resultobj = Py_None;
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 wxDC *arg1 = (wxDC *) 0 ;
11906 wxPoint *arg2 = 0 ;
11907 wxSize *arg3 = 0 ;
11908 wxPoint temp2 ;
11909 wxSize temp3 ;
11910 PyObject * obj0 = 0 ;
11911 PyObject * obj1 = 0 ;
11912 PyObject * obj2 = 0 ;
11913 char *kwnames[] = {
11914 (char *) "self",(char *) "pt",(char *) "sz", NULL
11915 };
11916
11917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11920 {
11921 arg2 = &temp2;
11922 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11923 }
11924 {
11925 arg3 = &temp3;
11926 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11927 }
11928 {
11929 PyThreadState* __tstate = wxPyBeginAllowThreads();
11930 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11931
11932 wxPyEndAllowThreads(__tstate);
11933 if (PyErr_Occurred()) SWIG_fail;
11934 }
11935 Py_INCREF(Py_None); resultobj = Py_None;
11936 return resultobj;
11937 fail:
11938 return NULL;
11939 }
11940
11941
11942 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11943 PyObject *resultobj;
11944 wxDC *arg1 = (wxDC *) 0 ;
11945 wxIcon *arg2 = 0 ;
11946 int arg3 ;
11947 int arg4 ;
11948 PyObject * obj0 = 0 ;
11949 PyObject * obj1 = 0 ;
11950 PyObject * obj2 = 0 ;
11951 PyObject * obj3 = 0 ;
11952 char *kwnames[] = {
11953 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11954 };
11955
11956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11959 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11960 SWIG_POINTER_EXCEPTION | 0)) == -1)
11961 SWIG_fail;
11962 if (arg2 == NULL) {
11963 PyErr_SetString(PyExc_TypeError,"null reference");
11964 SWIG_fail;
11965 }
11966 arg3 = (int) SWIG_AsInt(obj2);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 arg4 = (int) SWIG_AsInt(obj3);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 {
11971 PyThreadState* __tstate = wxPyBeginAllowThreads();
11972 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11973
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 Py_INCREF(Py_None); resultobj = Py_None;
11978 return resultobj;
11979 fail:
11980 return NULL;
11981 }
11982
11983
11984 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11985 PyObject *resultobj;
11986 wxDC *arg1 = (wxDC *) 0 ;
11987 wxIcon *arg2 = 0 ;
11988 wxPoint *arg3 = 0 ;
11989 wxPoint temp3 ;
11990 PyObject * obj0 = 0 ;
11991 PyObject * obj1 = 0 ;
11992 PyObject * obj2 = 0 ;
11993 char *kwnames[] = {
11994 (char *) "self",(char *) "icon",(char *) "pt", NULL
11995 };
11996
11997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12001 SWIG_POINTER_EXCEPTION | 0)) == -1)
12002 SWIG_fail;
12003 if (arg2 == NULL) {
12004 PyErr_SetString(PyExc_TypeError,"null reference");
12005 SWIG_fail;
12006 }
12007 {
12008 arg3 = &temp3;
12009 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12010 }
12011 {
12012 PyThreadState* __tstate = wxPyBeginAllowThreads();
12013 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12014
12015 wxPyEndAllowThreads(__tstate);
12016 if (PyErr_Occurred()) SWIG_fail;
12017 }
12018 Py_INCREF(Py_None); resultobj = Py_None;
12019 return resultobj;
12020 fail:
12021 return NULL;
12022 }
12023
12024
12025 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12026 PyObject *resultobj;
12027 wxDC *arg1 = (wxDC *) 0 ;
12028 wxBitmap *arg2 = 0 ;
12029 int arg3 ;
12030 int arg4 ;
12031 bool arg5 = (bool) False ;
12032 PyObject * obj0 = 0 ;
12033 PyObject * obj1 = 0 ;
12034 PyObject * obj2 = 0 ;
12035 PyObject * obj3 = 0 ;
12036 PyObject * obj4 = 0 ;
12037 char *kwnames[] = {
12038 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12039 };
12040
12041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12044 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12045 SWIG_POINTER_EXCEPTION | 0)) == -1)
12046 SWIG_fail;
12047 if (arg2 == NULL) {
12048 PyErr_SetString(PyExc_TypeError,"null reference");
12049 SWIG_fail;
12050 }
12051 arg3 = (int) SWIG_AsInt(obj2);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 arg4 = (int) SWIG_AsInt(obj3);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 if (obj4) {
12056 arg5 = (bool) SWIG_AsBool(obj4);
12057 if (PyErr_Occurred()) SWIG_fail;
12058 }
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12062
12063 wxPyEndAllowThreads(__tstate);
12064 if (PyErr_Occurred()) SWIG_fail;
12065 }
12066 Py_INCREF(Py_None); resultobj = Py_None;
12067 return resultobj;
12068 fail:
12069 return NULL;
12070 }
12071
12072
12073 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12074 PyObject *resultobj;
12075 wxDC *arg1 = (wxDC *) 0 ;
12076 wxBitmap *arg2 = 0 ;
12077 wxPoint *arg3 = 0 ;
12078 bool arg4 = (bool) False ;
12079 wxPoint temp3 ;
12080 PyObject * obj0 = 0 ;
12081 PyObject * obj1 = 0 ;
12082 PyObject * obj2 = 0 ;
12083 PyObject * obj3 = 0 ;
12084 char *kwnames[] = {
12085 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12086 };
12087
12088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12091 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12092 SWIG_POINTER_EXCEPTION | 0)) == -1)
12093 SWIG_fail;
12094 if (arg2 == NULL) {
12095 PyErr_SetString(PyExc_TypeError,"null reference");
12096 SWIG_fail;
12097 }
12098 {
12099 arg3 = &temp3;
12100 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12101 }
12102 if (obj3) {
12103 arg4 = (bool) SWIG_AsBool(obj3);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
12106 {
12107 PyThreadState* __tstate = wxPyBeginAllowThreads();
12108 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12109
12110 wxPyEndAllowThreads(__tstate);
12111 if (PyErr_Occurred()) SWIG_fail;
12112 }
12113 Py_INCREF(Py_None); resultobj = Py_None;
12114 return resultobj;
12115 fail:
12116 return NULL;
12117 }
12118
12119
12120 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12121 PyObject *resultobj;
12122 wxDC *arg1 = (wxDC *) 0 ;
12123 wxString *arg2 = 0 ;
12124 int arg3 ;
12125 int arg4 ;
12126 bool temp2 = False ;
12127 PyObject * obj0 = 0 ;
12128 PyObject * obj1 = 0 ;
12129 PyObject * obj2 = 0 ;
12130 PyObject * obj3 = 0 ;
12131 char *kwnames[] = {
12132 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12133 };
12134
12135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12138 {
12139 arg2 = wxString_in_helper(obj1);
12140 if (arg2 == NULL) SWIG_fail;
12141 temp2 = True;
12142 }
12143 arg3 = (int) SWIG_AsInt(obj2);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 arg4 = (int) SWIG_AsInt(obj3);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12150
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 Py_INCREF(Py_None); resultobj = Py_None;
12155 {
12156 if (temp2)
12157 delete arg2;
12158 }
12159 return resultobj;
12160 fail:
12161 {
12162 if (temp2)
12163 delete arg2;
12164 }
12165 return NULL;
12166 }
12167
12168
12169 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12170 PyObject *resultobj;
12171 wxDC *arg1 = (wxDC *) 0 ;
12172 wxString *arg2 = 0 ;
12173 wxPoint *arg3 = 0 ;
12174 bool temp2 = False ;
12175 wxPoint temp3 ;
12176 PyObject * obj0 = 0 ;
12177 PyObject * obj1 = 0 ;
12178 PyObject * obj2 = 0 ;
12179 char *kwnames[] = {
12180 (char *) "self",(char *) "text",(char *) "pt", NULL
12181 };
12182
12183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12186 {
12187 arg2 = wxString_in_helper(obj1);
12188 if (arg2 == NULL) SWIG_fail;
12189 temp2 = True;
12190 }
12191 {
12192 arg3 = &temp3;
12193 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12194 }
12195 {
12196 PyThreadState* __tstate = wxPyBeginAllowThreads();
12197 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12198
12199 wxPyEndAllowThreads(__tstate);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 Py_INCREF(Py_None); resultobj = Py_None;
12203 {
12204 if (temp2)
12205 delete arg2;
12206 }
12207 return resultobj;
12208 fail:
12209 {
12210 if (temp2)
12211 delete arg2;
12212 }
12213 return NULL;
12214 }
12215
12216
12217 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12218 PyObject *resultobj;
12219 wxDC *arg1 = (wxDC *) 0 ;
12220 wxString *arg2 = 0 ;
12221 int arg3 ;
12222 int arg4 ;
12223 double arg5 ;
12224 bool temp2 = False ;
12225 PyObject * obj0 = 0 ;
12226 PyObject * obj1 = 0 ;
12227 PyObject * obj2 = 0 ;
12228 PyObject * obj3 = 0 ;
12229 PyObject * obj4 = 0 ;
12230 char *kwnames[] = {
12231 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12232 };
12233
12234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12237 {
12238 arg2 = wxString_in_helper(obj1);
12239 if (arg2 == NULL) SWIG_fail;
12240 temp2 = True;
12241 }
12242 arg3 = (int) SWIG_AsInt(obj2);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 arg4 = (int) SWIG_AsInt(obj3);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 arg5 = (double) SWIG_AsDouble(obj4);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12251
12252 wxPyEndAllowThreads(__tstate);
12253 if (PyErr_Occurred()) SWIG_fail;
12254 }
12255 Py_INCREF(Py_None); resultobj = Py_None;
12256 {
12257 if (temp2)
12258 delete arg2;
12259 }
12260 return resultobj;
12261 fail:
12262 {
12263 if (temp2)
12264 delete arg2;
12265 }
12266 return NULL;
12267 }
12268
12269
12270 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12271 PyObject *resultobj;
12272 wxDC *arg1 = (wxDC *) 0 ;
12273 wxString *arg2 = 0 ;
12274 wxPoint *arg3 = 0 ;
12275 double arg4 ;
12276 bool temp2 = False ;
12277 wxPoint temp3 ;
12278 PyObject * obj0 = 0 ;
12279 PyObject * obj1 = 0 ;
12280 PyObject * obj2 = 0 ;
12281 PyObject * obj3 = 0 ;
12282 char *kwnames[] = {
12283 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12284 };
12285
12286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12289 {
12290 arg2 = wxString_in_helper(obj1);
12291 if (arg2 == NULL) SWIG_fail;
12292 temp2 = True;
12293 }
12294 {
12295 arg3 = &temp3;
12296 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12297 }
12298 arg4 = (double) SWIG_AsDouble(obj3);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12303
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 Py_INCREF(Py_None); resultobj = Py_None;
12308 {
12309 if (temp2)
12310 delete arg2;
12311 }
12312 return resultobj;
12313 fail:
12314 {
12315 if (temp2)
12316 delete arg2;
12317 }
12318 return NULL;
12319 }
12320
12321
12322 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj;
12324 wxDC *arg1 = (wxDC *) 0 ;
12325 int arg2 ;
12326 int arg3 ;
12327 int arg4 ;
12328 int arg5 ;
12329 wxDC *arg6 = (wxDC *) 0 ;
12330 int arg7 ;
12331 int arg8 ;
12332 int arg9 = (int) wxCOPY ;
12333 bool arg10 = (bool) False ;
12334 int arg11 = (int) -1 ;
12335 int arg12 = (int) -1 ;
12336 bool result;
12337 PyObject * obj0 = 0 ;
12338 PyObject * obj1 = 0 ;
12339 PyObject * obj2 = 0 ;
12340 PyObject * obj3 = 0 ;
12341 PyObject * obj4 = 0 ;
12342 PyObject * obj5 = 0 ;
12343 PyObject * obj6 = 0 ;
12344 PyObject * obj7 = 0 ;
12345 PyObject * obj8 = 0 ;
12346 PyObject * obj9 = 0 ;
12347 PyObject * obj10 = 0 ;
12348 PyObject * obj11 = 0 ;
12349 char *kwnames[] = {
12350 (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
12351 };
12352
12353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
12354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12356 arg2 = (int) SWIG_AsInt(obj1);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 arg3 = (int) SWIG_AsInt(obj2);
12359 if (PyErr_Occurred()) SWIG_fail;
12360 arg4 = (int) SWIG_AsInt(obj3);
12361 if (PyErr_Occurred()) SWIG_fail;
12362 arg5 = (int) SWIG_AsInt(obj4);
12363 if (PyErr_Occurred()) SWIG_fail;
12364 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12366 arg7 = (int) SWIG_AsInt(obj6);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 arg8 = (int) SWIG_AsInt(obj7);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 if (obj8) {
12371 arg9 = (int) SWIG_AsInt(obj8);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 if (obj9) {
12375 arg10 = (bool) SWIG_AsBool(obj9);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 if (obj10) {
12379 arg11 = (int) SWIG_AsInt(obj10);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 if (obj11) {
12383 arg12 = (int) SWIG_AsInt(obj11);
12384 if (PyErr_Occurred()) SWIG_fail;
12385 }
12386 {
12387 PyThreadState* __tstate = wxPyBeginAllowThreads();
12388 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12389
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 {
12394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12395 }
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12403 PyObject *resultobj;
12404 wxDC *arg1 = (wxDC *) 0 ;
12405 wxPoint *arg2 = 0 ;
12406 wxSize *arg3 = 0 ;
12407 wxDC *arg4 = (wxDC *) 0 ;
12408 wxPoint *arg5 = 0 ;
12409 int arg6 = (int) wxCOPY ;
12410 bool arg7 = (bool) False ;
12411 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12412 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12413 bool result;
12414 wxPoint temp2 ;
12415 wxSize temp3 ;
12416 wxPoint temp5 ;
12417 wxPoint temp8 ;
12418 PyObject * obj0 = 0 ;
12419 PyObject * obj1 = 0 ;
12420 PyObject * obj2 = 0 ;
12421 PyObject * obj3 = 0 ;
12422 PyObject * obj4 = 0 ;
12423 PyObject * obj5 = 0 ;
12424 PyObject * obj6 = 0 ;
12425 PyObject * obj7 = 0 ;
12426 char *kwnames[] = {
12427 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12428 };
12429
12430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12433 {
12434 arg2 = &temp2;
12435 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12436 }
12437 {
12438 arg3 = &temp3;
12439 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12440 }
12441 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12443 {
12444 arg5 = &temp5;
12445 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12446 }
12447 if (obj5) {
12448 arg6 = (int) SWIG_AsInt(obj5);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 if (obj6) {
12452 arg7 = (bool) SWIG_AsBool(obj6);
12453 if (PyErr_Occurred()) SWIG_fail;
12454 }
12455 if (obj7) {
12456 {
12457 arg8 = &temp8;
12458 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12459 }
12460 }
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 {
12469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12470 }
12471 return resultobj;
12472 fail:
12473 return NULL;
12474 }
12475
12476
12477 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12478 PyObject *resultobj;
12479 wxDC *arg1 = (wxDC *) 0 ;
12480 int arg2 ;
12481 int arg3 ;
12482 int arg4 ;
12483 int arg5 ;
12484 PyObject * obj0 = 0 ;
12485 PyObject * obj1 = 0 ;
12486 PyObject * obj2 = 0 ;
12487 PyObject * obj3 = 0 ;
12488 PyObject * obj4 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12496 arg2 = (int) SWIG_AsInt(obj1);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 arg3 = (int) SWIG_AsInt(obj2);
12499 if (PyErr_Occurred()) SWIG_fail;
12500 arg4 = (int) SWIG_AsInt(obj3);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 arg5 = (int) SWIG_AsInt(obj4);
12503 if (PyErr_Occurred()) SWIG_fail;
12504 {
12505 PyThreadState* __tstate = wxPyBeginAllowThreads();
12506 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12507
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 Py_INCREF(Py_None); resultobj = Py_None;
12512 return resultobj;
12513 fail:
12514 return NULL;
12515 }
12516
12517
12518 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12519 PyObject *resultobj;
12520 wxDC *arg1 = (wxDC *) 0 ;
12521 wxPoint *arg2 = 0 ;
12522 wxSize *arg3 = 0 ;
12523 wxPoint temp2 ;
12524 wxSize temp3 ;
12525 PyObject * obj0 = 0 ;
12526 PyObject * obj1 = 0 ;
12527 PyObject * obj2 = 0 ;
12528 char *kwnames[] = {
12529 (char *) "self",(char *) "pt",(char *) "sz", NULL
12530 };
12531
12532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12535 {
12536 arg2 = &temp2;
12537 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12538 }
12539 {
12540 arg3 = &temp3;
12541 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12542 }
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 Py_INCREF(Py_None); resultobj = Py_None;
12551 return resultobj;
12552 fail:
12553 return NULL;
12554 }
12555
12556
12557 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12558 PyObject *resultobj;
12559 wxDC *arg1 = (wxDC *) 0 ;
12560 wxRegion *arg2 = 0 ;
12561 PyObject * obj0 = 0 ;
12562 PyObject * obj1 = 0 ;
12563 char *kwnames[] = {
12564 (char *) "self",(char *) "region", NULL
12565 };
12566
12567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12571 SWIG_POINTER_EXCEPTION | 0)) == -1)
12572 SWIG_fail;
12573 if (arg2 == NULL) {
12574 PyErr_SetString(PyExc_TypeError,"null reference");
12575 SWIG_fail;
12576 }
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12580
12581 wxPyEndAllowThreads(__tstate);
12582 if (PyErr_Occurred()) SWIG_fail;
12583 }
12584 Py_INCREF(Py_None); resultobj = Py_None;
12585 return resultobj;
12586 fail:
12587 return NULL;
12588 }
12589
12590
12591 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12592 PyObject *resultobj;
12593 wxDC *arg1 = (wxDC *) 0 ;
12594 wxRect *arg2 = 0 ;
12595 wxRect temp2 ;
12596 PyObject * obj0 = 0 ;
12597 PyObject * obj1 = 0 ;
12598 char *kwnames[] = {
12599 (char *) "self",(char *) "rect", NULL
12600 };
12601
12602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12605 {
12606 arg2 = &temp2;
12607 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12608 }
12609 {
12610 PyThreadState* __tstate = wxPyBeginAllowThreads();
12611 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12612
12613 wxPyEndAllowThreads(__tstate);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 Py_INCREF(Py_None); resultobj = Py_None;
12617 return resultobj;
12618 fail:
12619 return NULL;
12620 }
12621
12622
12623 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12624 PyObject *resultobj;
12625 wxDC *arg1 = (wxDC *) 0 ;
12626 int arg2 ;
12627 wxPoint *arg3 = (wxPoint *) 0 ;
12628 int arg4 = (int) 0 ;
12629 int arg5 = (int) 0 ;
12630 PyObject * obj0 = 0 ;
12631 PyObject * obj1 = 0 ;
12632 PyObject * obj2 = 0 ;
12633 PyObject * obj3 = 0 ;
12634 char *kwnames[] = {
12635 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12636 };
12637
12638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12641 {
12642 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12643 if (arg3 == NULL) SWIG_fail;
12644 }
12645 if (obj2) {
12646 arg4 = (int) SWIG_AsInt(obj2);
12647 if (PyErr_Occurred()) SWIG_fail;
12648 }
12649 if (obj3) {
12650 arg5 = (int) SWIG_AsInt(obj3);
12651 if (PyErr_Occurred()) SWIG_fail;
12652 }
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12656
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 Py_INCREF(Py_None); resultobj = Py_None;
12661 {
12662 if (arg3) delete [] arg3;
12663 }
12664 return resultobj;
12665 fail:
12666 {
12667 if (arg3) delete [] arg3;
12668 }
12669 return NULL;
12670 }
12671
12672
12673 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj;
12675 wxDC *arg1 = (wxDC *) 0 ;
12676 int arg2 ;
12677 wxPoint *arg3 = (wxPoint *) 0 ;
12678 int arg4 = (int) 0 ;
12679 int arg5 = (int) 0 ;
12680 int arg6 = (int) wxODDEVEN_RULE ;
12681 PyObject * obj0 = 0 ;
12682 PyObject * obj1 = 0 ;
12683 PyObject * obj2 = 0 ;
12684 PyObject * obj3 = 0 ;
12685 PyObject * obj4 = 0 ;
12686 char *kwnames[] = {
12687 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12688 };
12689
12690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12693 {
12694 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12695 if (arg3 == NULL) SWIG_fail;
12696 }
12697 if (obj2) {
12698 arg4 = (int) SWIG_AsInt(obj2);
12699 if (PyErr_Occurred()) SWIG_fail;
12700 }
12701 if (obj3) {
12702 arg5 = (int) SWIG_AsInt(obj3);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 if (obj4) {
12706 arg6 = (int) SWIG_AsInt(obj4);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12712
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 Py_INCREF(Py_None); resultobj = Py_None;
12717 {
12718 if (arg3) delete [] arg3;
12719 }
12720 return resultobj;
12721 fail:
12722 {
12723 if (arg3) delete [] arg3;
12724 }
12725 return NULL;
12726 }
12727
12728
12729 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12730 PyObject *resultobj;
12731 wxDC *arg1 = (wxDC *) 0 ;
12732 wxString *arg2 = 0 ;
12733 wxRect *arg3 = 0 ;
12734 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12735 int arg5 = (int) -1 ;
12736 bool temp2 = False ;
12737 wxRect temp3 ;
12738 PyObject * obj0 = 0 ;
12739 PyObject * obj1 = 0 ;
12740 PyObject * obj2 = 0 ;
12741 PyObject * obj3 = 0 ;
12742 PyObject * obj4 = 0 ;
12743 char *kwnames[] = {
12744 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12745 };
12746
12747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12750 {
12751 arg2 = wxString_in_helper(obj1);
12752 if (arg2 == NULL) SWIG_fail;
12753 temp2 = True;
12754 }
12755 {
12756 arg3 = &temp3;
12757 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12758 }
12759 if (obj3) {
12760 arg4 = (int) SWIG_AsInt(obj3);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 if (obj4) {
12764 arg5 = (int) SWIG_AsInt(obj4);
12765 if (PyErr_Occurred()) SWIG_fail;
12766 }
12767 {
12768 PyThreadState* __tstate = wxPyBeginAllowThreads();
12769 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12770
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 Py_INCREF(Py_None); resultobj = Py_None;
12775 {
12776 if (temp2)
12777 delete arg2;
12778 }
12779 return resultobj;
12780 fail:
12781 {
12782 if (temp2)
12783 delete arg2;
12784 }
12785 return NULL;
12786 }
12787
12788
12789 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj;
12791 wxDC *arg1 = (wxDC *) 0 ;
12792 wxString *arg2 = 0 ;
12793 wxBitmap *arg3 = 0 ;
12794 wxRect *arg4 = 0 ;
12795 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12796 int arg6 = (int) -1 ;
12797 wxRect result;
12798 bool temp2 = False ;
12799 wxRect temp4 ;
12800 PyObject * obj0 = 0 ;
12801 PyObject * obj1 = 0 ;
12802 PyObject * obj2 = 0 ;
12803 PyObject * obj3 = 0 ;
12804 PyObject * obj4 = 0 ;
12805 PyObject * obj5 = 0 ;
12806 char *kwnames[] = {
12807 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12808 };
12809
12810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12813 {
12814 arg2 = wxString_in_helper(obj1);
12815 if (arg2 == NULL) SWIG_fail;
12816 temp2 = True;
12817 }
12818 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12819 SWIG_POINTER_EXCEPTION | 0)) == -1)
12820 SWIG_fail;
12821 if (arg3 == NULL) {
12822 PyErr_SetString(PyExc_TypeError,"null reference");
12823 SWIG_fail;
12824 }
12825 {
12826 arg4 = &temp4;
12827 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12828 }
12829 if (obj4) {
12830 arg5 = (int) SWIG_AsInt(obj4);
12831 if (PyErr_Occurred()) SWIG_fail;
12832 }
12833 if (obj5) {
12834 arg6 = (int) SWIG_AsInt(obj5);
12835 if (PyErr_Occurred()) SWIG_fail;
12836 }
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12840
12841 wxPyEndAllowThreads(__tstate);
12842 if (PyErr_Occurred()) SWIG_fail;
12843 }
12844 {
12845 wxRect * resultptr;
12846 resultptr = new wxRect((wxRect &) result);
12847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12848 }
12849 {
12850 if (temp2)
12851 delete arg2;
12852 }
12853 return resultobj;
12854 fail:
12855 {
12856 if (temp2)
12857 delete arg2;
12858 }
12859 return NULL;
12860 }
12861
12862
12863 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12864 PyObject *resultobj;
12865 wxDC *arg1 = (wxDC *) 0 ;
12866 int arg2 ;
12867 wxPoint *arg3 = (wxPoint *) 0 ;
12868 PyObject * obj0 = 0 ;
12869 PyObject * obj1 = 0 ;
12870 char *kwnames[] = {
12871 (char *) "self",(char *) "points", NULL
12872 };
12873
12874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12877 {
12878 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12879 if (arg3 == NULL) SWIG_fail;
12880 }
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 (arg1)->DrawSpline(arg2,arg3);
12884
12885 wxPyEndAllowThreads(__tstate);
12886 if (PyErr_Occurred()) SWIG_fail;
12887 }
12888 Py_INCREF(Py_None); resultobj = Py_None;
12889 {
12890 if (arg3) delete [] arg3;
12891 }
12892 return resultobj;
12893 fail:
12894 {
12895 if (arg3) delete [] arg3;
12896 }
12897 return NULL;
12898 }
12899
12900
12901 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12902 PyObject *resultobj;
12903 wxDC *arg1 = (wxDC *) 0 ;
12904 PyObject * obj0 = 0 ;
12905 char *kwnames[] = {
12906 (char *) "self", NULL
12907 };
12908
12909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12912 {
12913 PyThreadState* __tstate = wxPyBeginAllowThreads();
12914 (arg1)->Clear();
12915
12916 wxPyEndAllowThreads(__tstate);
12917 if (PyErr_Occurred()) SWIG_fail;
12918 }
12919 Py_INCREF(Py_None); resultobj = Py_None;
12920 return resultobj;
12921 fail:
12922 return NULL;
12923 }
12924
12925
12926 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12927 PyObject *resultobj;
12928 wxDC *arg1 = (wxDC *) 0 ;
12929 wxString *arg2 = 0 ;
12930 bool result;
12931 bool temp2 = False ;
12932 PyObject * obj0 = 0 ;
12933 PyObject * obj1 = 0 ;
12934 char *kwnames[] = {
12935 (char *) "self",(char *) "message", NULL
12936 };
12937
12938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12941 {
12942 arg2 = wxString_in_helper(obj1);
12943 if (arg2 == NULL) SWIG_fail;
12944 temp2 = True;
12945 }
12946 {
12947 PyThreadState* __tstate = wxPyBeginAllowThreads();
12948 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12949
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 {
12954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12955 }
12956 {
12957 if (temp2)
12958 delete arg2;
12959 }
12960 return resultobj;
12961 fail:
12962 {
12963 if (temp2)
12964 delete arg2;
12965 }
12966 return NULL;
12967 }
12968
12969
12970 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj;
12972 wxDC *arg1 = (wxDC *) 0 ;
12973 PyObject * obj0 = 0 ;
12974 char *kwnames[] = {
12975 (char *) "self", NULL
12976 };
12977
12978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 (arg1)->EndDoc();
12984
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 Py_INCREF(Py_None); resultobj = Py_None;
12989 return resultobj;
12990 fail:
12991 return NULL;
12992 }
12993
12994
12995 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12996 PyObject *resultobj;
12997 wxDC *arg1 = (wxDC *) 0 ;
12998 PyObject * obj0 = 0 ;
12999 char *kwnames[] = {
13000 (char *) "self", NULL
13001 };
13002
13003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 (arg1)->StartPage();
13009
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 Py_INCREF(Py_None); resultobj = Py_None;
13014 return resultobj;
13015 fail:
13016 return NULL;
13017 }
13018
13019
13020 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13021 PyObject *resultobj;
13022 wxDC *arg1 = (wxDC *) 0 ;
13023 PyObject * obj0 = 0 ;
13024 char *kwnames[] = {
13025 (char *) "self", NULL
13026 };
13027
13028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 (arg1)->EndPage();
13034
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 Py_INCREF(Py_None); resultobj = Py_None;
13039 return resultobj;
13040 fail:
13041 return NULL;
13042 }
13043
13044
13045 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj;
13047 wxDC *arg1 = (wxDC *) 0 ;
13048 wxFont *arg2 = 0 ;
13049 PyObject * obj0 = 0 ;
13050 PyObject * obj1 = 0 ;
13051 char *kwnames[] = {
13052 (char *) "self",(char *) "font", NULL
13053 };
13054
13055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13059 SWIG_POINTER_EXCEPTION | 0)) == -1)
13060 SWIG_fail;
13061 if (arg2 == NULL) {
13062 PyErr_SetString(PyExc_TypeError,"null reference");
13063 SWIG_fail;
13064 }
13065 {
13066 PyThreadState* __tstate = wxPyBeginAllowThreads();
13067 (arg1)->SetFont((wxFont const &)*arg2);
13068
13069 wxPyEndAllowThreads(__tstate);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 }
13072 Py_INCREF(Py_None); resultobj = Py_None;
13073 return resultobj;
13074 fail:
13075 return NULL;
13076 }
13077
13078
13079 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13080 PyObject *resultobj;
13081 wxDC *arg1 = (wxDC *) 0 ;
13082 wxPen *arg2 = 0 ;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13085 char *kwnames[] = {
13086 (char *) "self",(char *) "pen", NULL
13087 };
13088
13089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13092 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13093 SWIG_POINTER_EXCEPTION | 0)) == -1)
13094 SWIG_fail;
13095 if (arg2 == NULL) {
13096 PyErr_SetString(PyExc_TypeError,"null reference");
13097 SWIG_fail;
13098 }
13099 {
13100 PyThreadState* __tstate = wxPyBeginAllowThreads();
13101 (arg1)->SetPen((wxPen const &)*arg2);
13102
13103 wxPyEndAllowThreads(__tstate);
13104 if (PyErr_Occurred()) SWIG_fail;
13105 }
13106 Py_INCREF(Py_None); resultobj = Py_None;
13107 return resultobj;
13108 fail:
13109 return NULL;
13110 }
13111
13112
13113 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13114 PyObject *resultobj;
13115 wxDC *arg1 = (wxDC *) 0 ;
13116 wxBrush *arg2 = 0 ;
13117 PyObject * obj0 = 0 ;
13118 PyObject * obj1 = 0 ;
13119 char *kwnames[] = {
13120 (char *) "self",(char *) "brush", NULL
13121 };
13122
13123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13127 SWIG_POINTER_EXCEPTION | 0)) == -1)
13128 SWIG_fail;
13129 if (arg2 == NULL) {
13130 PyErr_SetString(PyExc_TypeError,"null reference");
13131 SWIG_fail;
13132 }
13133 {
13134 PyThreadState* __tstate = wxPyBeginAllowThreads();
13135 (arg1)->SetBrush((wxBrush const &)*arg2);
13136
13137 wxPyEndAllowThreads(__tstate);
13138 if (PyErr_Occurred()) SWIG_fail;
13139 }
13140 Py_INCREF(Py_None); resultobj = Py_None;
13141 return resultobj;
13142 fail:
13143 return NULL;
13144 }
13145
13146
13147 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13148 PyObject *resultobj;
13149 wxDC *arg1 = (wxDC *) 0 ;
13150 wxBrush *arg2 = 0 ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 char *kwnames[] = {
13154 (char *) "self",(char *) "brush", NULL
13155 };
13156
13157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13160 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13161 SWIG_POINTER_EXCEPTION | 0)) == -1)
13162 SWIG_fail;
13163 if (arg2 == NULL) {
13164 PyErr_SetString(PyExc_TypeError,"null reference");
13165 SWIG_fail;
13166 }
13167 {
13168 PyThreadState* __tstate = wxPyBeginAllowThreads();
13169 (arg1)->SetBackground((wxBrush const &)*arg2);
13170
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 Py_INCREF(Py_None); resultobj = Py_None;
13175 return resultobj;
13176 fail:
13177 return NULL;
13178 }
13179
13180
13181 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13182 PyObject *resultobj;
13183 wxDC *arg1 = (wxDC *) 0 ;
13184 int arg2 ;
13185 PyObject * obj0 = 0 ;
13186 PyObject * obj1 = 0 ;
13187 char *kwnames[] = {
13188 (char *) "self",(char *) "mode", NULL
13189 };
13190
13191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13194 arg2 = (int) SWIG_AsInt(obj1);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 {
13197 PyThreadState* __tstate = wxPyBeginAllowThreads();
13198 (arg1)->SetBackgroundMode(arg2);
13199
13200 wxPyEndAllowThreads(__tstate);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 }
13203 Py_INCREF(Py_None); resultobj = Py_None;
13204 return resultobj;
13205 fail:
13206 return NULL;
13207 }
13208
13209
13210 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13211 PyObject *resultobj;
13212 wxDC *arg1 = (wxDC *) 0 ;
13213 wxPalette *arg2 = 0 ;
13214 PyObject * obj0 = 0 ;
13215 PyObject * obj1 = 0 ;
13216 char *kwnames[] = {
13217 (char *) "self",(char *) "palette", NULL
13218 };
13219
13220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13223 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13224 SWIG_POINTER_EXCEPTION | 0)) == -1)
13225 SWIG_fail;
13226 if (arg2 == NULL) {
13227 PyErr_SetString(PyExc_TypeError,"null reference");
13228 SWIG_fail;
13229 }
13230 {
13231 PyThreadState* __tstate = wxPyBeginAllowThreads();
13232 (arg1)->SetPalette((wxPalette const &)*arg2);
13233
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 Py_INCREF(Py_None); resultobj = Py_None;
13238 return resultobj;
13239 fail:
13240 return NULL;
13241 }
13242
13243
13244 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj;
13246 wxDC *arg1 = (wxDC *) 0 ;
13247 PyObject * obj0 = 0 ;
13248 char *kwnames[] = {
13249 (char *) "self", NULL
13250 };
13251
13252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->DestroyClippingRegion();
13258
13259 wxPyEndAllowThreads(__tstate);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 Py_INCREF(Py_None); resultobj = Py_None;
13263 return resultobj;
13264 fail:
13265 return NULL;
13266 }
13267
13268
13269 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj;
13271 wxDC *arg1 = (wxDC *) 0 ;
13272 int *arg2 = (int *) 0 ;
13273 int *arg3 = (int *) 0 ;
13274 int *arg4 = (int *) 0 ;
13275 int *arg5 = (int *) 0 ;
13276 int temp2 ;
13277 int temp3 ;
13278 int temp4 ;
13279 int temp5 ;
13280 PyObject * obj0 = 0 ;
13281 char *kwnames[] = {
13282 (char *) "self", NULL
13283 };
13284
13285 arg2 = &temp2;
13286 arg3 = &temp3;
13287 arg4 = &temp4;
13288 arg5 = &temp5;
13289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13292 {
13293 PyThreadState* __tstate = wxPyBeginAllowThreads();
13294 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13295
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 Py_INCREF(Py_None); resultobj = Py_None;
13300 {
13301 PyObject *o = PyInt_FromLong((long) (*arg2));
13302 resultobj = t_output_helper(resultobj,o);
13303 }
13304 {
13305 PyObject *o = PyInt_FromLong((long) (*arg3));
13306 resultobj = t_output_helper(resultobj,o);
13307 }
13308 {
13309 PyObject *o = PyInt_FromLong((long) (*arg4));
13310 resultobj = t_output_helper(resultobj,o);
13311 }
13312 {
13313 PyObject *o = PyInt_FromLong((long) (*arg5));
13314 resultobj = t_output_helper(resultobj,o);
13315 }
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj;
13324 wxDC *arg1 = (wxDC *) 0 ;
13325 wxRect result;
13326 PyObject * obj0 = 0 ;
13327 char *kwnames[] = {
13328 (char *) "self", NULL
13329 };
13330
13331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 result = wxDC_GetClippingRect(arg1);
13337
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 {
13342 wxRect * resultptr;
13343 resultptr = new wxRect((wxRect &) result);
13344 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13345 }
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13353 PyObject *resultobj;
13354 wxDC *arg1 = (wxDC *) 0 ;
13355 int result;
13356 PyObject * obj0 = 0 ;
13357 char *kwnames[] = {
13358 (char *) "self", NULL
13359 };
13360
13361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 result = (int)((wxDC const *)arg1)->GetCharHeight();
13367
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 resultobj = SWIG_FromInt((int)result);
13372 return resultobj;
13373 fail:
13374 return NULL;
13375 }
13376
13377
13378 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13379 PyObject *resultobj;
13380 wxDC *arg1 = (wxDC *) 0 ;
13381 int result;
13382 PyObject * obj0 = 0 ;
13383 char *kwnames[] = {
13384 (char *) "self", NULL
13385 };
13386
13387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = (int)((wxDC const *)arg1)->GetCharWidth();
13393
13394 wxPyEndAllowThreads(__tstate);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 }
13397 resultobj = SWIG_FromInt((int)result);
13398 return resultobj;
13399 fail:
13400 return NULL;
13401 }
13402
13403
13404 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13405 PyObject *resultobj;
13406 wxDC *arg1 = (wxDC *) 0 ;
13407 wxString *arg2 = 0 ;
13408 int *arg3 = (int *) 0 ;
13409 int *arg4 = (int *) 0 ;
13410 bool temp2 = False ;
13411 int temp3 ;
13412 int temp4 ;
13413 PyObject * obj0 = 0 ;
13414 PyObject * obj1 = 0 ;
13415 char *kwnames[] = {
13416 (char *) "self",(char *) "string", NULL
13417 };
13418
13419 arg3 = &temp3;
13420 arg4 = &temp4;
13421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13424 {
13425 arg2 = wxString_in_helper(obj1);
13426 if (arg2 == NULL) SWIG_fail;
13427 temp2 = True;
13428 }
13429 {
13430 PyThreadState* __tstate = wxPyBeginAllowThreads();
13431 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13432
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 Py_INCREF(Py_None); resultobj = Py_None;
13437 {
13438 PyObject *o = PyInt_FromLong((long) (*arg3));
13439 resultobj = t_output_helper(resultobj,o);
13440 }
13441 {
13442 PyObject *o = PyInt_FromLong((long) (*arg4));
13443 resultobj = t_output_helper(resultobj,o);
13444 }
13445 {
13446 if (temp2)
13447 delete arg2;
13448 }
13449 return resultobj;
13450 fail:
13451 {
13452 if (temp2)
13453 delete arg2;
13454 }
13455 return NULL;
13456 }
13457
13458
13459 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13460 PyObject *resultobj;
13461 wxDC *arg1 = (wxDC *) 0 ;
13462 wxString *arg2 = 0 ;
13463 int *arg3 = (int *) 0 ;
13464 int *arg4 = (int *) 0 ;
13465 int *arg5 = (int *) 0 ;
13466 int *arg6 = (int *) 0 ;
13467 wxFont *arg7 = (wxFont *) NULL ;
13468 bool temp2 = False ;
13469 int temp3 ;
13470 int temp4 ;
13471 int temp5 ;
13472 int temp6 ;
13473 PyObject * obj0 = 0 ;
13474 PyObject * obj1 = 0 ;
13475 PyObject * obj2 = 0 ;
13476 char *kwnames[] = {
13477 (char *) "self",(char *) "string",(char *) "font", NULL
13478 };
13479
13480 arg3 = &temp3;
13481 arg4 = &temp4;
13482 arg5 = &temp5;
13483 arg6 = &temp6;
13484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13487 {
13488 arg2 = wxString_in_helper(obj1);
13489 if (arg2 == NULL) SWIG_fail;
13490 temp2 = True;
13491 }
13492 if (obj2) {
13493 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13495 }
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13499
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 Py_INCREF(Py_None); resultobj = Py_None;
13504 {
13505 PyObject *o = PyInt_FromLong((long) (*arg3));
13506 resultobj = t_output_helper(resultobj,o);
13507 }
13508 {
13509 PyObject *o = PyInt_FromLong((long) (*arg4));
13510 resultobj = t_output_helper(resultobj,o);
13511 }
13512 {
13513 PyObject *o = PyInt_FromLong((long) (*arg5));
13514 resultobj = t_output_helper(resultobj,o);
13515 }
13516 {
13517 PyObject *o = PyInt_FromLong((long) (*arg6));
13518 resultobj = t_output_helper(resultobj,o);
13519 }
13520 {
13521 if (temp2)
13522 delete arg2;
13523 }
13524 return resultobj;
13525 fail:
13526 {
13527 if (temp2)
13528 delete arg2;
13529 }
13530 return NULL;
13531 }
13532
13533
13534 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13535 PyObject *resultobj;
13536 wxDC *arg1 = (wxDC *) 0 ;
13537 wxString *arg2 = 0 ;
13538 int *arg3 = (int *) 0 ;
13539 int *arg4 = (int *) 0 ;
13540 int *arg5 = (int *) 0 ;
13541 wxFont *arg6 = (wxFont *) NULL ;
13542 bool temp2 = False ;
13543 int temp3 ;
13544 int temp4 ;
13545 int temp5 ;
13546 PyObject * obj0 = 0 ;
13547 PyObject * obj1 = 0 ;
13548 PyObject * obj2 = 0 ;
13549 char *kwnames[] = {
13550 (char *) "self",(char *) "text",(char *) "font", NULL
13551 };
13552
13553 arg3 = &temp3;
13554 arg4 = &temp4;
13555 arg5 = &temp5;
13556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13559 {
13560 arg2 = wxString_in_helper(obj1);
13561 if (arg2 == NULL) SWIG_fail;
13562 temp2 = True;
13563 }
13564 if (obj2) {
13565 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13567 }
13568 {
13569 PyThreadState* __tstate = wxPyBeginAllowThreads();
13570 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13571
13572 wxPyEndAllowThreads(__tstate);
13573 if (PyErr_Occurred()) SWIG_fail;
13574 }
13575 Py_INCREF(Py_None); resultobj = Py_None;
13576 {
13577 PyObject *o = PyInt_FromLong((long) (*arg3));
13578 resultobj = t_output_helper(resultobj,o);
13579 }
13580 {
13581 PyObject *o = PyInt_FromLong((long) (*arg4));
13582 resultobj = t_output_helper(resultobj,o);
13583 }
13584 {
13585 PyObject *o = PyInt_FromLong((long) (*arg5));
13586 resultobj = t_output_helper(resultobj,o);
13587 }
13588 {
13589 if (temp2)
13590 delete arg2;
13591 }
13592 return resultobj;
13593 fail:
13594 {
13595 if (temp2)
13596 delete arg2;
13597 }
13598 return NULL;
13599 }
13600
13601
13602 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13603 PyObject *resultobj;
13604 wxDC *arg1 = (wxDC *) 0 ;
13605 wxString *arg2 = 0 ;
13606 wxArrayInt result;
13607 bool temp2 = False ;
13608 PyObject * obj0 = 0 ;
13609 PyObject * obj1 = 0 ;
13610 char *kwnames[] = {
13611 (char *) "self",(char *) "text", NULL
13612 };
13613
13614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13617 {
13618 arg2 = wxString_in_helper(obj1);
13619 if (arg2 == NULL) SWIG_fail;
13620 temp2 = True;
13621 }
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13625
13626 wxPyEndAllowThreads(__tstate);
13627 if (PyErr_Occurred()) SWIG_fail;
13628 }
13629 {
13630 resultobj = PyList_New(0);
13631 size_t idx;
13632 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13633 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13634 PyList_Append(resultobj, val);
13635 Py_DECREF(val);
13636 }
13637 }
13638 {
13639 if (temp2)
13640 delete arg2;
13641 }
13642 return resultobj;
13643 fail:
13644 {
13645 if (temp2)
13646 delete arg2;
13647 }
13648 return NULL;
13649 }
13650
13651
13652 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj;
13654 wxDC *arg1 = (wxDC *) 0 ;
13655 wxSize result;
13656 PyObject * obj0 = 0 ;
13657 char *kwnames[] = {
13658 (char *) "self", NULL
13659 };
13660
13661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (arg1)->GetSize();
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 {
13672 wxSize * resultptr;
13673 resultptr = new wxSize((wxSize &) result);
13674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13675 }
13676 return resultobj;
13677 fail:
13678 return NULL;
13679 }
13680
13681
13682 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxDC *arg1 = (wxDC *) 0 ;
13685 int *arg2 = (int *) 0 ;
13686 int *arg3 = (int *) 0 ;
13687 int temp2 ;
13688 int temp3 ;
13689 PyObject * obj0 = 0 ;
13690 char *kwnames[] = {
13691 (char *) "self", NULL
13692 };
13693
13694 arg2 = &temp2;
13695 arg3 = &temp3;
13696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13699 {
13700 PyThreadState* __tstate = wxPyBeginAllowThreads();
13701 (arg1)->GetSize(arg2,arg3);
13702
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 Py_INCREF(Py_None); resultobj = Py_None;
13707 {
13708 PyObject *o = PyInt_FromLong((long) (*arg2));
13709 resultobj = t_output_helper(resultobj,o);
13710 }
13711 {
13712 PyObject *o = PyInt_FromLong((long) (*arg3));
13713 resultobj = t_output_helper(resultobj,o);
13714 }
13715 return resultobj;
13716 fail:
13717 return NULL;
13718 }
13719
13720
13721 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj;
13723 wxDC *arg1 = (wxDC *) 0 ;
13724 wxSize result;
13725 PyObject * obj0 = 0 ;
13726 char *kwnames[] = {
13727 (char *) "self", NULL
13728 };
13729
13730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13733 {
13734 PyThreadState* __tstate = wxPyBeginAllowThreads();
13735 result = ((wxDC const *)arg1)->GetSizeMM();
13736
13737 wxPyEndAllowThreads(__tstate);
13738 if (PyErr_Occurred()) SWIG_fail;
13739 }
13740 {
13741 wxSize * resultptr;
13742 resultptr = new wxSize((wxSize &) result);
13743 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13744 }
13745 return resultobj;
13746 fail:
13747 return NULL;
13748 }
13749
13750
13751 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13752 PyObject *resultobj;
13753 wxDC *arg1 = (wxDC *) 0 ;
13754 int *arg2 = (int *) 0 ;
13755 int *arg3 = (int *) 0 ;
13756 int temp2 ;
13757 int temp3 ;
13758 PyObject * obj0 = 0 ;
13759 char *kwnames[] = {
13760 (char *) "self", NULL
13761 };
13762
13763 arg2 = &temp2;
13764 arg3 = &temp3;
13765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13771
13772 wxPyEndAllowThreads(__tstate);
13773 if (PyErr_Occurred()) SWIG_fail;
13774 }
13775 Py_INCREF(Py_None); resultobj = Py_None;
13776 {
13777 PyObject *o = PyInt_FromLong((long) (*arg2));
13778 resultobj = t_output_helper(resultobj,o);
13779 }
13780 {
13781 PyObject *o = PyInt_FromLong((long) (*arg3));
13782 resultobj = t_output_helper(resultobj,o);
13783 }
13784 return resultobj;
13785 fail:
13786 return NULL;
13787 }
13788
13789
13790 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj;
13792 wxDC *arg1 = (wxDC *) 0 ;
13793 int arg2 ;
13794 int result;
13795 PyObject * obj0 = 0 ;
13796 PyObject * obj1 = 0 ;
13797 char *kwnames[] = {
13798 (char *) "self",(char *) "x", NULL
13799 };
13800
13801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13804 arg2 = (int) SWIG_AsInt(obj1);
13805 if (PyErr_Occurred()) SWIG_fail;
13806 {
13807 PyThreadState* __tstate = wxPyBeginAllowThreads();
13808 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13809
13810 wxPyEndAllowThreads(__tstate);
13811 if (PyErr_Occurred()) SWIG_fail;
13812 }
13813 resultobj = SWIG_FromInt((int)result);
13814 return resultobj;
13815 fail:
13816 return NULL;
13817 }
13818
13819
13820 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13821 PyObject *resultobj;
13822 wxDC *arg1 = (wxDC *) 0 ;
13823 int arg2 ;
13824 int result;
13825 PyObject * obj0 = 0 ;
13826 PyObject * obj1 = 0 ;
13827 char *kwnames[] = {
13828 (char *) "self",(char *) "y", NULL
13829 };
13830
13831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13834 arg2 = (int) SWIG_AsInt(obj1);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 {
13837 PyThreadState* __tstate = wxPyBeginAllowThreads();
13838 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13839
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_FromInt((int)result);
13844 return resultobj;
13845 fail:
13846 return NULL;
13847 }
13848
13849
13850 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13851 PyObject *resultobj;
13852 wxDC *arg1 = (wxDC *) 0 ;
13853 int arg2 ;
13854 int result;
13855 PyObject * obj0 = 0 ;
13856 PyObject * obj1 = 0 ;
13857 char *kwnames[] = {
13858 (char *) "self",(char *) "x", NULL
13859 };
13860
13861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13864 arg2 = (int) SWIG_AsInt(obj1);
13865 if (PyErr_Occurred()) SWIG_fail;
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13869
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = SWIG_FromInt((int)result);
13874 return resultobj;
13875 fail:
13876 return NULL;
13877 }
13878
13879
13880 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj;
13882 wxDC *arg1 = (wxDC *) 0 ;
13883 int arg2 ;
13884 int result;
13885 PyObject * obj0 = 0 ;
13886 PyObject * obj1 = 0 ;
13887 char *kwnames[] = {
13888 (char *) "self",(char *) "y", NULL
13889 };
13890
13891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13894 arg2 = (int) SWIG_AsInt(obj1);
13895 if (PyErr_Occurred()) SWIG_fail;
13896 {
13897 PyThreadState* __tstate = wxPyBeginAllowThreads();
13898 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13899
13900 wxPyEndAllowThreads(__tstate);
13901 if (PyErr_Occurred()) SWIG_fail;
13902 }
13903 resultobj = SWIG_FromInt((int)result);
13904 return resultobj;
13905 fail:
13906 return NULL;
13907 }
13908
13909
13910 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13911 PyObject *resultobj;
13912 wxDC *arg1 = (wxDC *) 0 ;
13913 int arg2 ;
13914 int result;
13915 PyObject * obj0 = 0 ;
13916 PyObject * obj1 = 0 ;
13917 char *kwnames[] = {
13918 (char *) "self",(char *) "x", NULL
13919 };
13920
13921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13924 arg2 = (int) SWIG_AsInt(obj1);
13925 if (PyErr_Occurred()) SWIG_fail;
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13929
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 resultobj = SWIG_FromInt((int)result);
13934 return resultobj;
13935 fail:
13936 return NULL;
13937 }
13938
13939
13940 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13941 PyObject *resultobj;
13942 wxDC *arg1 = (wxDC *) 0 ;
13943 int arg2 ;
13944 int result;
13945 PyObject * obj0 = 0 ;
13946 PyObject * obj1 = 0 ;
13947 char *kwnames[] = {
13948 (char *) "self",(char *) "y", NULL
13949 };
13950
13951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13954 arg2 = (int) SWIG_AsInt(obj1);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13959
13960 wxPyEndAllowThreads(__tstate);
13961 if (PyErr_Occurred()) SWIG_fail;
13962 }
13963 resultobj = SWIG_FromInt((int)result);
13964 return resultobj;
13965 fail:
13966 return NULL;
13967 }
13968
13969
13970 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13971 PyObject *resultobj;
13972 wxDC *arg1 = (wxDC *) 0 ;
13973 int arg2 ;
13974 int result;
13975 PyObject * obj0 = 0 ;
13976 PyObject * obj1 = 0 ;
13977 char *kwnames[] = {
13978 (char *) "self",(char *) "x", NULL
13979 };
13980
13981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13984 arg2 = (int) SWIG_AsInt(obj1);
13985 if (PyErr_Occurred()) SWIG_fail;
13986 {
13987 PyThreadState* __tstate = wxPyBeginAllowThreads();
13988 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13989
13990 wxPyEndAllowThreads(__tstate);
13991 if (PyErr_Occurred()) SWIG_fail;
13992 }
13993 resultobj = SWIG_FromInt((int)result);
13994 return resultobj;
13995 fail:
13996 return NULL;
13997 }
13998
13999
14000 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14001 PyObject *resultobj;
14002 wxDC *arg1 = (wxDC *) 0 ;
14003 int arg2 ;
14004 int result;
14005 PyObject * obj0 = 0 ;
14006 PyObject * obj1 = 0 ;
14007 char *kwnames[] = {
14008 (char *) "self",(char *) "y", NULL
14009 };
14010
14011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14014 arg2 = (int) SWIG_AsInt(obj1);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14019
14020 wxPyEndAllowThreads(__tstate);
14021 if (PyErr_Occurred()) SWIG_fail;
14022 }
14023 resultobj = SWIG_FromInt((int)result);
14024 return resultobj;
14025 fail:
14026 return NULL;
14027 }
14028
14029
14030 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14031 PyObject *resultobj;
14032 wxDC *arg1 = (wxDC *) 0 ;
14033 bool result;
14034 PyObject * obj0 = 0 ;
14035 char *kwnames[] = {
14036 (char *) "self", NULL
14037 };
14038
14039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14042 {
14043 PyThreadState* __tstate = wxPyBeginAllowThreads();
14044 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14045
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 {
14050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14051 }
14052 return resultobj;
14053 fail:
14054 return NULL;
14055 }
14056
14057
14058 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj;
14060 wxDC *arg1 = (wxDC *) 0 ;
14061 bool result;
14062 PyObject * obj0 = 0 ;
14063 char *kwnames[] = {
14064 (char *) "self", NULL
14065 };
14066
14067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14070 {
14071 PyThreadState* __tstate = wxPyBeginAllowThreads();
14072 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14073
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 {
14078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14079 }
14080 return resultobj;
14081 fail:
14082 return NULL;
14083 }
14084
14085
14086 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14087 PyObject *resultobj;
14088 wxDC *arg1 = (wxDC *) 0 ;
14089 int result;
14090 PyObject * obj0 = 0 ;
14091 char *kwnames[] = {
14092 (char *) "self", NULL
14093 };
14094
14095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14098 {
14099 PyThreadState* __tstate = wxPyBeginAllowThreads();
14100 result = (int)((wxDC const *)arg1)->GetDepth();
14101
14102 wxPyEndAllowThreads(__tstate);
14103 if (PyErr_Occurred()) SWIG_fail;
14104 }
14105 resultobj = SWIG_FromInt((int)result);
14106 return resultobj;
14107 fail:
14108 return NULL;
14109 }
14110
14111
14112 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14113 PyObject *resultobj;
14114 wxDC *arg1 = (wxDC *) 0 ;
14115 wxSize result;
14116 PyObject * obj0 = 0 ;
14117 char *kwnames[] = {
14118 (char *) "self", NULL
14119 };
14120
14121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14124 {
14125 PyThreadState* __tstate = wxPyBeginAllowThreads();
14126 result = ((wxDC const *)arg1)->GetPPI();
14127
14128 wxPyEndAllowThreads(__tstate);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 }
14131 {
14132 wxSize * resultptr;
14133 resultptr = new wxSize((wxSize &) result);
14134 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14135 }
14136 return resultobj;
14137 fail:
14138 return NULL;
14139 }
14140
14141
14142 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14143 PyObject *resultobj;
14144 wxDC *arg1 = (wxDC *) 0 ;
14145 bool result;
14146 PyObject * obj0 = 0 ;
14147 char *kwnames[] = {
14148 (char *) "self", NULL
14149 };
14150
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = (bool)((wxDC const *)arg1)->Ok();
14157
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 {
14162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14163 }
14164 return resultobj;
14165 fail:
14166 return NULL;
14167 }
14168
14169
14170 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14171 PyObject *resultobj;
14172 wxDC *arg1 = (wxDC *) 0 ;
14173 int result;
14174 PyObject * obj0 = 0 ;
14175 char *kwnames[] = {
14176 (char *) "self", NULL
14177 };
14178
14179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14182 {
14183 PyThreadState* __tstate = wxPyBeginAllowThreads();
14184 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14185
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 resultobj = SWIG_FromInt((int)result);
14190 return resultobj;
14191 fail:
14192 return NULL;
14193 }
14194
14195
14196 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14197 PyObject *resultobj;
14198 wxDC *arg1 = (wxDC *) 0 ;
14199 wxBrush *result;
14200 PyObject * obj0 = 0 ;
14201 char *kwnames[] = {
14202 (char *) "self", NULL
14203 };
14204
14205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14208 {
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
14210 {
14211 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14212 result = (wxBrush *) &_result_ref;
14213 }
14214
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 {
14219 wxBrush* resultptr = new wxBrush(*result);
14220 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14221 }
14222 return resultobj;
14223 fail:
14224 return NULL;
14225 }
14226
14227
14228 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14229 PyObject *resultobj;
14230 wxDC *arg1 = (wxDC *) 0 ;
14231 wxBrush *result;
14232 PyObject * obj0 = 0 ;
14233 char *kwnames[] = {
14234 (char *) "self", NULL
14235 };
14236
14237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14240 {
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 {
14243 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14244 result = (wxBrush *) &_result_ref;
14245 }
14246
14247 wxPyEndAllowThreads(__tstate);
14248 if (PyErr_Occurred()) SWIG_fail;
14249 }
14250 {
14251 wxBrush* resultptr = new wxBrush(*result);
14252 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14253 }
14254 return resultobj;
14255 fail:
14256 return NULL;
14257 }
14258
14259
14260 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14261 PyObject *resultobj;
14262 wxDC *arg1 = (wxDC *) 0 ;
14263 wxFont *result;
14264 PyObject * obj0 = 0 ;
14265 char *kwnames[] = {
14266 (char *) "self", NULL
14267 };
14268
14269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14272 {
14273 PyThreadState* __tstate = wxPyBeginAllowThreads();
14274 {
14275 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14276 result = (wxFont *) &_result_ref;
14277 }
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 {
14283 wxFont* resultptr = new wxFont(*result);
14284 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14285 }
14286 return resultobj;
14287 fail:
14288 return NULL;
14289 }
14290
14291
14292 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14293 PyObject *resultobj;
14294 wxDC *arg1 = (wxDC *) 0 ;
14295 wxPen *result;
14296 PyObject * obj0 = 0 ;
14297 char *kwnames[] = {
14298 (char *) "self", NULL
14299 };
14300
14301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14304 {
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 {
14307 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14308 result = (wxPen *) &_result_ref;
14309 }
14310
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315 wxPen* resultptr = new wxPen(*result);
14316 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14317 }
14318 return resultobj;
14319 fail:
14320 return NULL;
14321 }
14322
14323
14324 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14325 PyObject *resultobj;
14326 wxDC *arg1 = (wxDC *) 0 ;
14327 wxColour *result;
14328 PyObject * obj0 = 0 ;
14329 char *kwnames[] = {
14330 (char *) "self", NULL
14331 };
14332
14333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14336 {
14337 PyThreadState* __tstate = wxPyBeginAllowThreads();
14338 {
14339 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14340 result = (wxColour *) &_result_ref;
14341 }
14342
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14347 return resultobj;
14348 fail:
14349 return NULL;
14350 }
14351
14352
14353 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14354 PyObject *resultobj;
14355 wxDC *arg1 = (wxDC *) 0 ;
14356 wxColour *result;
14357 PyObject * obj0 = 0 ;
14358 char *kwnames[] = {
14359 (char *) "self", NULL
14360 };
14361
14362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 {
14368 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14369 result = (wxColour *) &_result_ref;
14370 }
14371
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14376 return resultobj;
14377 fail:
14378 return NULL;
14379 }
14380
14381
14382 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14383 PyObject *resultobj;
14384 wxDC *arg1 = (wxDC *) 0 ;
14385 wxColour *arg2 = 0 ;
14386 wxColour temp2 ;
14387 PyObject * obj0 = 0 ;
14388 PyObject * obj1 = 0 ;
14389 char *kwnames[] = {
14390 (char *) "self",(char *) "colour", NULL
14391 };
14392
14393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14396 {
14397 arg2 = &temp2;
14398 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14399 }
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 (arg1)->SetTextForeground((wxColour const &)*arg2);
14403
14404 wxPyEndAllowThreads(__tstate);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 }
14407 Py_INCREF(Py_None); resultobj = Py_None;
14408 return resultobj;
14409 fail:
14410 return NULL;
14411 }
14412
14413
14414 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14415 PyObject *resultobj;
14416 wxDC *arg1 = (wxDC *) 0 ;
14417 wxColour *arg2 = 0 ;
14418 wxColour temp2 ;
14419 PyObject * obj0 = 0 ;
14420 PyObject * obj1 = 0 ;
14421 char *kwnames[] = {
14422 (char *) "self",(char *) "colour", NULL
14423 };
14424
14425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14428 {
14429 arg2 = &temp2;
14430 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14431 }
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 (arg1)->SetTextBackground((wxColour const &)*arg2);
14435
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 Py_INCREF(Py_None); resultobj = Py_None;
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14447 PyObject *resultobj;
14448 wxDC *arg1 = (wxDC *) 0 ;
14449 int result;
14450 PyObject * obj0 = 0 ;
14451 char *kwnames[] = {
14452 (char *) "self", NULL
14453 };
14454
14455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14458 {
14459 PyThreadState* __tstate = wxPyBeginAllowThreads();
14460 result = (int)((wxDC const *)arg1)->GetMapMode();
14461
14462 wxPyEndAllowThreads(__tstate);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 resultobj = SWIG_FromInt((int)result);
14466 return resultobj;
14467 fail:
14468 return NULL;
14469 }
14470
14471
14472 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14473 PyObject *resultobj;
14474 wxDC *arg1 = (wxDC *) 0 ;
14475 int arg2 ;
14476 PyObject * obj0 = 0 ;
14477 PyObject * obj1 = 0 ;
14478 char *kwnames[] = {
14479 (char *) "self",(char *) "mode", NULL
14480 };
14481
14482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14485 arg2 = (int) SWIG_AsInt(obj1);
14486 if (PyErr_Occurred()) SWIG_fail;
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 (arg1)->SetMapMode(arg2);
14490
14491 wxPyEndAllowThreads(__tstate);
14492 if (PyErr_Occurred()) SWIG_fail;
14493 }
14494 Py_INCREF(Py_None); resultobj = Py_None;
14495 return resultobj;
14496 fail:
14497 return NULL;
14498 }
14499
14500
14501 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14502 PyObject *resultobj;
14503 wxDC *arg1 = (wxDC *) 0 ;
14504 double *arg2 = (double *) 0 ;
14505 double *arg3 = (double *) 0 ;
14506 double temp2 ;
14507 double temp3 ;
14508 PyObject * obj0 = 0 ;
14509 char *kwnames[] = {
14510 (char *) "self", NULL
14511 };
14512
14513 arg2 = &temp2;
14514 arg3 = &temp3;
14515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14521
14522 wxPyEndAllowThreads(__tstate);
14523 if (PyErr_Occurred()) SWIG_fail;
14524 }
14525 Py_INCREF(Py_None); resultobj = Py_None;
14526 {
14527 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14528 resultobj = t_output_helper(resultobj,o);
14529 }
14530 {
14531 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14532 resultobj = t_output_helper(resultobj,o);
14533 }
14534 return resultobj;
14535 fail:
14536 return NULL;
14537 }
14538
14539
14540 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj;
14542 wxDC *arg1 = (wxDC *) 0 ;
14543 double arg2 ;
14544 double arg3 ;
14545 PyObject * obj0 = 0 ;
14546 PyObject * obj1 = 0 ;
14547 PyObject * obj2 = 0 ;
14548 char *kwnames[] = {
14549 (char *) "self",(char *) "x",(char *) "y", NULL
14550 };
14551
14552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14555 arg2 = (double) SWIG_AsDouble(obj1);
14556 if (PyErr_Occurred()) SWIG_fail;
14557 arg3 = (double) SWIG_AsDouble(obj2);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 (arg1)->SetUserScale(arg2,arg3);
14562
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 Py_INCREF(Py_None); resultobj = Py_None;
14567 return resultobj;
14568 fail:
14569 return NULL;
14570 }
14571
14572
14573 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14574 PyObject *resultobj;
14575 wxDC *arg1 = (wxDC *) 0 ;
14576 double *arg2 = (double *) 0 ;
14577 double *arg3 = (double *) 0 ;
14578 double temp2 ;
14579 double temp3 ;
14580 PyObject * obj0 = 0 ;
14581 char *kwnames[] = {
14582 (char *) "self", NULL
14583 };
14584
14585 arg2 = &temp2;
14586 arg3 = &temp3;
14587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14590 {
14591 PyThreadState* __tstate = wxPyBeginAllowThreads();
14592 (arg1)->GetLogicalScale(arg2,arg3);
14593
14594 wxPyEndAllowThreads(__tstate);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 Py_INCREF(Py_None); resultobj = Py_None;
14598 {
14599 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14600 resultobj = t_output_helper(resultobj,o);
14601 }
14602 {
14603 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14604 resultobj = t_output_helper(resultobj,o);
14605 }
14606 return resultobj;
14607 fail:
14608 return NULL;
14609 }
14610
14611
14612 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14613 PyObject *resultobj;
14614 wxDC *arg1 = (wxDC *) 0 ;
14615 double arg2 ;
14616 double arg3 ;
14617 PyObject * obj0 = 0 ;
14618 PyObject * obj1 = 0 ;
14619 PyObject * obj2 = 0 ;
14620 char *kwnames[] = {
14621 (char *) "self",(char *) "x",(char *) "y", NULL
14622 };
14623
14624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14627 arg2 = (double) SWIG_AsDouble(obj1);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 arg3 = (double) SWIG_AsDouble(obj2);
14630 if (PyErr_Occurred()) SWIG_fail;
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 (arg1)->SetLogicalScale(arg2,arg3);
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 Py_INCREF(Py_None); resultobj = Py_None;
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj;
14647 wxDC *arg1 = (wxDC *) 0 ;
14648 wxPoint result;
14649 PyObject * obj0 = 0 ;
14650 char *kwnames[] = {
14651 (char *) "self", NULL
14652 };
14653
14654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14657 {
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14660
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 {
14665 wxPoint * resultptr;
14666 resultptr = new wxPoint((wxPoint &) result);
14667 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14668 }
14669 return resultobj;
14670 fail:
14671 return NULL;
14672 }
14673
14674
14675 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14676 PyObject *resultobj;
14677 wxDC *arg1 = (wxDC *) 0 ;
14678 int *arg2 = (int *) 0 ;
14679 int *arg3 = (int *) 0 ;
14680 int temp2 ;
14681 int temp3 ;
14682 PyObject * obj0 = 0 ;
14683 char *kwnames[] = {
14684 (char *) "self", NULL
14685 };
14686
14687 arg2 = &temp2;
14688 arg3 = &temp3;
14689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14692 {
14693 PyThreadState* __tstate = wxPyBeginAllowThreads();
14694 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14695
14696 wxPyEndAllowThreads(__tstate);
14697 if (PyErr_Occurred()) SWIG_fail;
14698 }
14699 Py_INCREF(Py_None); resultobj = Py_None;
14700 {
14701 PyObject *o = PyInt_FromLong((long) (*arg2));
14702 resultobj = t_output_helper(resultobj,o);
14703 }
14704 {
14705 PyObject *o = PyInt_FromLong((long) (*arg3));
14706 resultobj = t_output_helper(resultobj,o);
14707 }
14708 return resultobj;
14709 fail:
14710 return NULL;
14711 }
14712
14713
14714 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj;
14716 wxDC *arg1 = (wxDC *) 0 ;
14717 int arg2 ;
14718 int arg3 ;
14719 PyObject * obj0 = 0 ;
14720 PyObject * obj1 = 0 ;
14721 PyObject * obj2 = 0 ;
14722 char *kwnames[] = {
14723 (char *) "self",(char *) "x",(char *) "y", NULL
14724 };
14725
14726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14729 arg2 = (int) SWIG_AsInt(obj1);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 arg3 = (int) SWIG_AsInt(obj2);
14732 if (PyErr_Occurred()) SWIG_fail;
14733 {
14734 PyThreadState* __tstate = wxPyBeginAllowThreads();
14735 (arg1)->SetLogicalOrigin(arg2,arg3);
14736
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 Py_INCREF(Py_None); resultobj = Py_None;
14741 return resultobj;
14742 fail:
14743 return NULL;
14744 }
14745
14746
14747 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14748 PyObject *resultobj;
14749 wxDC *arg1 = (wxDC *) 0 ;
14750 wxPoint *arg2 = 0 ;
14751 wxPoint temp2 ;
14752 PyObject * obj0 = 0 ;
14753 PyObject * obj1 = 0 ;
14754 char *kwnames[] = {
14755 (char *) "self",(char *) "point", NULL
14756 };
14757
14758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14761 {
14762 arg2 = &temp2;
14763 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14764 }
14765 {
14766 PyThreadState* __tstate = wxPyBeginAllowThreads();
14767 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14768
14769 wxPyEndAllowThreads(__tstate);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 Py_INCREF(Py_None); resultobj = Py_None;
14773 return resultobj;
14774 fail:
14775 return NULL;
14776 }
14777
14778
14779 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14780 PyObject *resultobj;
14781 wxDC *arg1 = (wxDC *) 0 ;
14782 wxPoint result;
14783 PyObject * obj0 = 0 ;
14784 char *kwnames[] = {
14785 (char *) "self", NULL
14786 };
14787
14788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14794
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 {
14799 wxPoint * resultptr;
14800 resultptr = new wxPoint((wxPoint &) result);
14801 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14802 }
14803 return resultobj;
14804 fail:
14805 return NULL;
14806 }
14807
14808
14809 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj;
14811 wxDC *arg1 = (wxDC *) 0 ;
14812 int *arg2 = (int *) 0 ;
14813 int *arg3 = (int *) 0 ;
14814 int temp2 ;
14815 int temp3 ;
14816 PyObject * obj0 = 0 ;
14817 char *kwnames[] = {
14818 (char *) "self", NULL
14819 };
14820
14821 arg2 = &temp2;
14822 arg3 = &temp3;
14823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14826 {
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14829
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 Py_INCREF(Py_None); resultobj = Py_None;
14834 {
14835 PyObject *o = PyInt_FromLong((long) (*arg2));
14836 resultobj = t_output_helper(resultobj,o);
14837 }
14838 {
14839 PyObject *o = PyInt_FromLong((long) (*arg3));
14840 resultobj = t_output_helper(resultobj,o);
14841 }
14842 return resultobj;
14843 fail:
14844 return NULL;
14845 }
14846
14847
14848 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14849 PyObject *resultobj;
14850 wxDC *arg1 = (wxDC *) 0 ;
14851 int arg2 ;
14852 int arg3 ;
14853 PyObject * obj0 = 0 ;
14854 PyObject * obj1 = 0 ;
14855 PyObject * obj2 = 0 ;
14856 char *kwnames[] = {
14857 (char *) "self",(char *) "x",(char *) "y", NULL
14858 };
14859
14860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14863 arg2 = (int) SWIG_AsInt(obj1);
14864 if (PyErr_Occurred()) SWIG_fail;
14865 arg3 = (int) SWIG_AsInt(obj2);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 {
14868 PyThreadState* __tstate = wxPyBeginAllowThreads();
14869 (arg1)->SetDeviceOrigin(arg2,arg3);
14870
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
14874 Py_INCREF(Py_None); resultobj = Py_None;
14875 return resultobj;
14876 fail:
14877 return NULL;
14878 }
14879
14880
14881 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14882 PyObject *resultobj;
14883 wxDC *arg1 = (wxDC *) 0 ;
14884 wxPoint *arg2 = 0 ;
14885 wxPoint temp2 ;
14886 PyObject * obj0 = 0 ;
14887 PyObject * obj1 = 0 ;
14888 char *kwnames[] = {
14889 (char *) "self",(char *) "point", NULL
14890 };
14891
14892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14895 {
14896 arg2 = &temp2;
14897 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14898 }
14899 {
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14902
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 Py_INCREF(Py_None); resultobj = Py_None;
14907 return resultobj;
14908 fail:
14909 return NULL;
14910 }
14911
14912
14913 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14914 PyObject *resultobj;
14915 wxDC *arg1 = (wxDC *) 0 ;
14916 bool arg2 ;
14917 bool arg3 ;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 PyObject * obj2 = 0 ;
14921 char *kwnames[] = {
14922 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14923 };
14924
14925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14928 arg2 = (bool) SWIG_AsBool(obj1);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 arg3 = (bool) SWIG_AsBool(obj2);
14931 if (PyErr_Occurred()) SWIG_fail;
14932 {
14933 PyThreadState* __tstate = wxPyBeginAllowThreads();
14934 (arg1)->SetAxisOrientation(arg2,arg3);
14935
14936 wxPyEndAllowThreads(__tstate);
14937 if (PyErr_Occurred()) SWIG_fail;
14938 }
14939 Py_INCREF(Py_None); resultobj = Py_None;
14940 return resultobj;
14941 fail:
14942 return NULL;
14943 }
14944
14945
14946 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14947 PyObject *resultobj;
14948 wxDC *arg1 = (wxDC *) 0 ;
14949 int result;
14950 PyObject * obj0 = 0 ;
14951 char *kwnames[] = {
14952 (char *) "self", NULL
14953 };
14954
14955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 resultobj = SWIG_FromInt((int)result);
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj;
14974 wxDC *arg1 = (wxDC *) 0 ;
14975 int arg2 ;
14976 PyObject * obj0 = 0 ;
14977 PyObject * obj1 = 0 ;
14978 char *kwnames[] = {
14979 (char *) "self",(char *) "function", NULL
14980 };
14981
14982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14985 arg2 = (int) SWIG_AsInt(obj1);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 {
14988 PyThreadState* __tstate = wxPyBeginAllowThreads();
14989 (arg1)->SetLogicalFunction(arg2);
14990
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 Py_INCREF(Py_None); resultobj = Py_None;
14995 return resultobj;
14996 fail:
14997 return NULL;
14998 }
14999
15000
15001 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15002 PyObject *resultobj;
15003 wxDC *arg1 = (wxDC *) 0 ;
15004 bool arg2 ;
15005 PyObject * obj0 = 0 ;
15006 PyObject * obj1 = 0 ;
15007 char *kwnames[] = {
15008 (char *) "self",(char *) "opt", NULL
15009 };
15010
15011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15014 arg2 = (bool) SWIG_AsBool(obj1);
15015 if (PyErr_Occurred()) SWIG_fail;
15016 {
15017 PyThreadState* __tstate = wxPyBeginAllowThreads();
15018 (arg1)->SetOptimization(arg2);
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_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15031 PyObject *resultobj;
15032 wxDC *arg1 = (wxDC *) 0 ;
15033 bool result;
15034 PyObject * obj0 = 0 ;
15035 char *kwnames[] = {
15036 (char *) "self", NULL
15037 };
15038
15039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15042 {
15043 PyThreadState* __tstate = wxPyBeginAllowThreads();
15044 result = (bool)(arg1)->GetOptimization();
15045
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 {
15050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15051 }
15052 return resultobj;
15053 fail:
15054 return NULL;
15055 }
15056
15057
15058 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15059 PyObject *resultobj;
15060 wxDC *arg1 = (wxDC *) 0 ;
15061 int arg2 ;
15062 int arg3 ;
15063 PyObject * obj0 = 0 ;
15064 PyObject * obj1 = 0 ;
15065 PyObject * obj2 = 0 ;
15066 char *kwnames[] = {
15067 (char *) "self",(char *) "x",(char *) "y", NULL
15068 };
15069
15070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15073 arg2 = (int) SWIG_AsInt(obj1);
15074 if (PyErr_Occurred()) SWIG_fail;
15075 arg3 = (int) SWIG_AsInt(obj2);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 (arg1)->CalcBoundingBox(arg2,arg3);
15080
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 Py_INCREF(Py_None); resultobj = Py_None;
15085 return resultobj;
15086 fail:
15087 return NULL;
15088 }
15089
15090
15091 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
15092 PyObject *resultobj;
15093 wxDC *arg1 = (wxDC *) 0 ;
15094 wxPoint *arg2 = 0 ;
15095 wxPoint temp2 ;
15096 PyObject * obj0 = 0 ;
15097 PyObject * obj1 = 0 ;
15098 char *kwnames[] = {
15099 (char *) "self",(char *) "point", NULL
15100 };
15101
15102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15105 {
15106 arg2 = &temp2;
15107 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15108 }
15109 {
15110 PyThreadState* __tstate = wxPyBeginAllowThreads();
15111 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15112
15113 wxPyEndAllowThreads(__tstate);
15114 if (PyErr_Occurred()) SWIG_fail;
15115 }
15116 Py_INCREF(Py_None); resultobj = Py_None;
15117 return resultobj;
15118 fail:
15119 return NULL;
15120 }
15121
15122
15123 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15124 PyObject *resultobj;
15125 wxDC *arg1 = (wxDC *) 0 ;
15126 PyObject * obj0 = 0 ;
15127 char *kwnames[] = {
15128 (char *) "self", NULL
15129 };
15130
15131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15134 {
15135 PyThreadState* __tstate = wxPyBeginAllowThreads();
15136 (arg1)->ResetBoundingBox();
15137
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 Py_INCREF(Py_None); resultobj = Py_None;
15142 return resultobj;
15143 fail:
15144 return NULL;
15145 }
15146
15147
15148 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj;
15150 wxDC *arg1 = (wxDC *) 0 ;
15151 int result;
15152 PyObject * obj0 = 0 ;
15153 char *kwnames[] = {
15154 (char *) "self", NULL
15155 };
15156
15157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15160 {
15161 PyThreadState* __tstate = wxPyBeginAllowThreads();
15162 result = (int)((wxDC const *)arg1)->MinX();
15163
15164 wxPyEndAllowThreads(__tstate);
15165 if (PyErr_Occurred()) SWIG_fail;
15166 }
15167 resultobj = SWIG_FromInt((int)result);
15168 return resultobj;
15169 fail:
15170 return NULL;
15171 }
15172
15173
15174 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15175 PyObject *resultobj;
15176 wxDC *arg1 = (wxDC *) 0 ;
15177 int result;
15178 PyObject * obj0 = 0 ;
15179 char *kwnames[] = {
15180 (char *) "self", NULL
15181 };
15182
15183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15186 {
15187 PyThreadState* __tstate = wxPyBeginAllowThreads();
15188 result = (int)((wxDC const *)arg1)->MaxX();
15189
15190 wxPyEndAllowThreads(__tstate);
15191 if (PyErr_Occurred()) SWIG_fail;
15192 }
15193 resultobj = SWIG_FromInt((int)result);
15194 return resultobj;
15195 fail:
15196 return NULL;
15197 }
15198
15199
15200 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15201 PyObject *resultobj;
15202 wxDC *arg1 = (wxDC *) 0 ;
15203 int result;
15204 PyObject * obj0 = 0 ;
15205 char *kwnames[] = {
15206 (char *) "self", NULL
15207 };
15208
15209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15212 {
15213 PyThreadState* __tstate = wxPyBeginAllowThreads();
15214 result = (int)((wxDC const *)arg1)->MinY();
15215
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
15219 resultobj = SWIG_FromInt((int)result);
15220 return resultobj;
15221 fail:
15222 return NULL;
15223 }
15224
15225
15226 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15227 PyObject *resultobj;
15228 wxDC *arg1 = (wxDC *) 0 ;
15229 int result;
15230 PyObject * obj0 = 0 ;
15231 char *kwnames[] = {
15232 (char *) "self", NULL
15233 };
15234
15235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 result = (int)((wxDC const *)arg1)->MaxY();
15241
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = SWIG_FromInt((int)result);
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj;
15254 wxDC *arg1 = (wxDC *) 0 ;
15255 int *arg2 = (int *) 0 ;
15256 int *arg3 = (int *) 0 ;
15257 int *arg4 = (int *) 0 ;
15258 int *arg5 = (int *) 0 ;
15259 int temp2 ;
15260 int temp3 ;
15261 int temp4 ;
15262 int temp5 ;
15263 PyObject * obj0 = 0 ;
15264 char *kwnames[] = {
15265 (char *) "self", NULL
15266 };
15267
15268 arg2 = &temp2;
15269 arg3 = &temp3;
15270 arg4 = &temp4;
15271 arg5 = &temp5;
15272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15275 {
15276 PyThreadState* __tstate = wxPyBeginAllowThreads();
15277 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15278
15279 wxPyEndAllowThreads(__tstate);
15280 if (PyErr_Occurred()) SWIG_fail;
15281 }
15282 Py_INCREF(Py_None); resultobj = Py_None;
15283 {
15284 PyObject *o = PyInt_FromLong((long) (*arg2));
15285 resultobj = t_output_helper(resultobj,o);
15286 }
15287 {
15288 PyObject *o = PyInt_FromLong((long) (*arg3));
15289 resultobj = t_output_helper(resultobj,o);
15290 }
15291 {
15292 PyObject *o = PyInt_FromLong((long) (*arg4));
15293 resultobj = t_output_helper(resultobj,o);
15294 }
15295 {
15296 PyObject *o = PyInt_FromLong((long) (*arg5));
15297 resultobj = t_output_helper(resultobj,o);
15298 }
15299 return resultobj;
15300 fail:
15301 return NULL;
15302 }
15303
15304
15305 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15306 PyObject *resultobj;
15307 wxDC *arg1 = (wxDC *) 0 ;
15308 PyObject *arg2 = (PyObject *) 0 ;
15309 PyObject *arg3 = (PyObject *) 0 ;
15310 PyObject *arg4 = (PyObject *) 0 ;
15311 PyObject *result;
15312 PyObject * obj0 = 0 ;
15313 PyObject * obj1 = 0 ;
15314 PyObject * obj2 = 0 ;
15315 PyObject * obj3 = 0 ;
15316 char *kwnames[] = {
15317 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15318 };
15319
15320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15323 arg2 = obj1;
15324 arg3 = obj2;
15325 arg4 = obj3;
15326 {
15327 PyThreadState* __tstate = wxPyBeginAllowThreads();
15328 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15329
15330 wxPyEndAllowThreads(__tstate);
15331 if (PyErr_Occurred()) SWIG_fail;
15332 }
15333 resultobj = result;
15334 return resultobj;
15335 fail:
15336 return NULL;
15337 }
15338
15339
15340 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15341 PyObject *resultobj;
15342 wxDC *arg1 = (wxDC *) 0 ;
15343 PyObject *arg2 = (PyObject *) 0 ;
15344 PyObject *arg3 = (PyObject *) 0 ;
15345 PyObject *arg4 = (PyObject *) 0 ;
15346 PyObject *result;
15347 PyObject * obj0 = 0 ;
15348 PyObject * obj1 = 0 ;
15349 PyObject * obj2 = 0 ;
15350 PyObject * obj3 = 0 ;
15351 char *kwnames[] = {
15352 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15353 };
15354
15355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15358 arg2 = obj1;
15359 arg3 = obj2;
15360 arg4 = obj3;
15361 {
15362 PyThreadState* __tstate = wxPyBeginAllowThreads();
15363 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15364
15365 wxPyEndAllowThreads(__tstate);
15366 if (PyErr_Occurred()) SWIG_fail;
15367 }
15368 resultobj = result;
15369 return resultobj;
15370 fail:
15371 return NULL;
15372 }
15373
15374
15375 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15376 PyObject *resultobj;
15377 wxDC *arg1 = (wxDC *) 0 ;
15378 PyObject *arg2 = (PyObject *) 0 ;
15379 PyObject *arg3 = (PyObject *) 0 ;
15380 PyObject *arg4 = (PyObject *) 0 ;
15381 PyObject *result;
15382 PyObject * obj0 = 0 ;
15383 PyObject * obj1 = 0 ;
15384 PyObject * obj2 = 0 ;
15385 PyObject * obj3 = 0 ;
15386 char *kwnames[] = {
15387 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15388 };
15389
15390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15393 arg2 = obj1;
15394 arg3 = obj2;
15395 arg4 = obj3;
15396 {
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15399
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 resultobj = result;
15404 return resultobj;
15405 fail:
15406 return NULL;
15407 }
15408
15409
15410 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15411 PyObject *resultobj;
15412 wxDC *arg1 = (wxDC *) 0 ;
15413 PyObject *arg2 = (PyObject *) 0 ;
15414 PyObject *arg3 = (PyObject *) 0 ;
15415 PyObject *arg4 = (PyObject *) 0 ;
15416 PyObject *result;
15417 PyObject * obj0 = 0 ;
15418 PyObject * obj1 = 0 ;
15419 PyObject * obj2 = 0 ;
15420 PyObject * obj3 = 0 ;
15421 char *kwnames[] = {
15422 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15423 };
15424
15425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15428 arg2 = obj1;
15429 arg3 = obj2;
15430 arg4 = obj3;
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15434
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 resultobj = result;
15439 return resultobj;
15440 fail:
15441 return NULL;
15442 }
15443
15444
15445 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15446 PyObject *resultobj;
15447 wxDC *arg1 = (wxDC *) 0 ;
15448 PyObject *arg2 = (PyObject *) 0 ;
15449 PyObject *arg3 = (PyObject *) 0 ;
15450 PyObject *arg4 = (PyObject *) 0 ;
15451 PyObject *result;
15452 PyObject * obj0 = 0 ;
15453 PyObject * obj1 = 0 ;
15454 PyObject * obj2 = 0 ;
15455 PyObject * obj3 = 0 ;
15456 char *kwnames[] = {
15457 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15458 };
15459
15460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15463 arg2 = obj1;
15464 arg3 = obj2;
15465 arg4 = obj3;
15466 {
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15469
15470 wxPyEndAllowThreads(__tstate);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 }
15473 resultobj = result;
15474 return resultobj;
15475 fail:
15476 return NULL;
15477 }
15478
15479
15480 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15481 PyObject *resultobj;
15482 wxDC *arg1 = (wxDC *) 0 ;
15483 PyObject *arg2 = (PyObject *) 0 ;
15484 PyObject *arg3 = (PyObject *) 0 ;
15485 PyObject *arg4 = (PyObject *) 0 ;
15486 PyObject *arg5 = (PyObject *) 0 ;
15487 PyObject *result;
15488 PyObject * obj0 = 0 ;
15489 PyObject * obj1 = 0 ;
15490 PyObject * obj2 = 0 ;
15491 PyObject * obj3 = 0 ;
15492 PyObject * obj4 = 0 ;
15493 char *kwnames[] = {
15494 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15495 };
15496
15497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15500 arg2 = obj1;
15501 arg3 = obj2;
15502 arg4 = obj3;
15503 arg5 = obj4;
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
15506 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15507
15508 wxPyEndAllowThreads(__tstate);
15509 if (PyErr_Occurred()) SWIG_fail;
15510 }
15511 resultobj = result;
15512 return resultobj;
15513 fail:
15514 return NULL;
15515 }
15516
15517
15518 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15519 PyObject *obj;
15520 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15521 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15522 Py_INCREF(obj);
15523 return Py_BuildValue((char *)"");
15524 }
15525 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15526 PyObject *resultobj;
15527 wxMemoryDC *result;
15528 char *kwnames[] = {
15529 NULL
15530 };
15531
15532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15533 {
15534 PyThreadState* __tstate = wxPyBeginAllowThreads();
15535 result = (wxMemoryDC *)new wxMemoryDC();
15536
15537 wxPyEndAllowThreads(__tstate);
15538 if (PyErr_Occurred()) SWIG_fail;
15539 }
15540 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15541 return resultobj;
15542 fail:
15543 return NULL;
15544 }
15545
15546
15547 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15548 PyObject *resultobj;
15549 wxDC *arg1 = (wxDC *) 0 ;
15550 wxMemoryDC *result;
15551 PyObject * obj0 = 0 ;
15552 char *kwnames[] = {
15553 (char *) "oldDC", NULL
15554 };
15555
15556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15559 {
15560 PyThreadState* __tstate = wxPyBeginAllowThreads();
15561 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15562
15563 wxPyEndAllowThreads(__tstate);
15564 if (PyErr_Occurred()) SWIG_fail;
15565 }
15566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15567 return resultobj;
15568 fail:
15569 return NULL;
15570 }
15571
15572
15573 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15574 PyObject *resultobj;
15575 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15576 wxBitmap *arg2 = 0 ;
15577 PyObject * obj0 = 0 ;
15578 PyObject * obj1 = 0 ;
15579 char *kwnames[] = {
15580 (char *) "self",(char *) "bitmap", NULL
15581 };
15582
15583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15586 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15587 SWIG_POINTER_EXCEPTION | 0)) == -1)
15588 SWIG_fail;
15589 if (arg2 == NULL) {
15590 PyErr_SetString(PyExc_TypeError,"null reference");
15591 SWIG_fail;
15592 }
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 (arg1)->SelectObject((wxBitmap const &)*arg2);
15596
15597 wxPyEndAllowThreads(__tstate);
15598 if (PyErr_Occurred()) SWIG_fail;
15599 }
15600 Py_INCREF(Py_None); resultobj = Py_None;
15601 return resultobj;
15602 fail:
15603 return NULL;
15604 }
15605
15606
15607 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15608 PyObject *obj;
15609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15610 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15611 Py_INCREF(obj);
15612 return Py_BuildValue((char *)"");
15613 }
15614 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15615 PyObject *resultobj;
15616 wxDC *arg1 = (wxDC *) 0 ;
15617 wxBitmap *arg2 = 0 ;
15618 wxBufferedDC *result;
15619 PyObject * obj0 = 0 ;
15620 PyObject * obj1 = 0 ;
15621
15622 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15626 SWIG_POINTER_EXCEPTION | 0)) == -1)
15627 SWIG_fail;
15628 if (arg2 == NULL) {
15629 PyErr_SetString(PyExc_TypeError,"null reference");
15630 SWIG_fail;
15631 }
15632 {
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15635
15636 wxPyEndAllowThreads(__tstate);
15637 if (PyErr_Occurred()) SWIG_fail;
15638 }
15639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15640 return resultobj;
15641 fail:
15642 return NULL;
15643 }
15644
15645
15646 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15647 PyObject *resultobj;
15648 wxDC *arg1 = (wxDC *) 0 ;
15649 wxSize *arg2 = 0 ;
15650 wxBufferedDC *result;
15651 wxSize temp2 ;
15652 PyObject * obj0 = 0 ;
15653 PyObject * obj1 = 0 ;
15654
15655 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15658 {
15659 arg2 = &temp2;
15660 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15661 }
15662 {
15663 PyThreadState* __tstate = wxPyBeginAllowThreads();
15664 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15665
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
15669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15670 return resultobj;
15671 fail:
15672 return NULL;
15673 }
15674
15675
15676 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15677 int argc;
15678 PyObject *argv[3];
15679 int ii;
15680
15681 argc = PyObject_Length(args);
15682 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15683 argv[ii] = PyTuple_GetItem(args,ii);
15684 }
15685 if (argc == 2) {
15686 int _v;
15687 {
15688 void *ptr;
15689 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15690 _v = 0;
15691 PyErr_Clear();
15692 } else {
15693 _v = 1;
15694 }
15695 }
15696 if (_v) {
15697 {
15698 void *ptr;
15699 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15700 _v = 0;
15701 PyErr_Clear();
15702 } else {
15703 _v = 1;
15704 }
15705 }
15706 if (_v) {
15707 return _wrap_new_BufferedDC__SWIG_0(self,args);
15708 }
15709 }
15710 }
15711 if (argc == 2) {
15712 int _v;
15713 {
15714 void *ptr;
15715 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15716 _v = 0;
15717 PyErr_Clear();
15718 } else {
15719 _v = 1;
15720 }
15721 }
15722 if (_v) {
15723 {
15724 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15725 }
15726 if (_v) {
15727 return _wrap_new_BufferedDC__SWIG_1(self,args);
15728 }
15729 }
15730 }
15731
15732 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15733 return NULL;
15734 }
15735
15736
15737 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15738 PyObject *resultobj;
15739 wxDC *arg1 = (wxDC *) 0 ;
15740 wxSize *arg2 = 0 ;
15741 wxBufferedDC *result;
15742 wxSize temp2 ;
15743 PyObject * obj0 = 0 ;
15744 PyObject * obj1 = 0 ;
15745
15746 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15749 {
15750 arg2 = &temp2;
15751 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15752 }
15753 {
15754 PyThreadState* __tstate = wxPyBeginAllowThreads();
15755 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15756
15757 wxPyEndAllowThreads(__tstate);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15761 return resultobj;
15762 fail:
15763 return NULL;
15764 }
15765
15766
15767 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15768 PyObject *resultobj;
15769 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15770 PyObject * obj0 = 0 ;
15771 char *kwnames[] = {
15772 (char *) "self", NULL
15773 };
15774
15775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 delete arg1;
15781
15782 wxPyEndAllowThreads(__tstate);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 Py_INCREF(Py_None); resultobj = Py_None;
15786 return resultobj;
15787 fail:
15788 return NULL;
15789 }
15790
15791
15792 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15793 PyObject *resultobj;
15794 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15795 PyObject * obj0 = 0 ;
15796 char *kwnames[] = {
15797 (char *) "self", NULL
15798 };
15799
15800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15803 {
15804 PyThreadState* __tstate = wxPyBeginAllowThreads();
15805 (arg1)->UnMask();
15806
15807 wxPyEndAllowThreads(__tstate);
15808 if (PyErr_Occurred()) SWIG_fail;
15809 }
15810 Py_INCREF(Py_None); resultobj = Py_None;
15811 return resultobj;
15812 fail:
15813 return NULL;
15814 }
15815
15816
15817 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15818 PyObject *obj;
15819 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15820 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15821 Py_INCREF(obj);
15822 return Py_BuildValue((char *)"");
15823 }
15824 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15825 PyObject *resultobj;
15826 wxWindow *arg1 = (wxWindow *) 0 ;
15827 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15828 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15829 wxBufferedPaintDC *result;
15830 PyObject * obj0 = 0 ;
15831 PyObject * obj1 = 0 ;
15832 char *kwnames[] = {
15833 (char *) "window",(char *) "buffer", NULL
15834 };
15835
15836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15839 if (obj1) {
15840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15841 SWIG_POINTER_EXCEPTION | 0)) == -1)
15842 SWIG_fail;
15843 if (arg2 == NULL) {
15844 PyErr_SetString(PyExc_TypeError,"null reference");
15845 SWIG_fail;
15846 }
15847 }
15848 {
15849 PyThreadState* __tstate = wxPyBeginAllowThreads();
15850 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15851
15852 wxPyEndAllowThreads(__tstate);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15856 return resultobj;
15857 fail:
15858 return NULL;
15859 }
15860
15861
15862 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15863 PyObject *obj;
15864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15865 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15866 Py_INCREF(obj);
15867 return Py_BuildValue((char *)"");
15868 }
15869 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15870 PyObject *resultobj;
15871 wxScreenDC *result;
15872 char *kwnames[] = {
15873 NULL
15874 };
15875
15876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15877 {
15878 PyThreadState* __tstate = wxPyBeginAllowThreads();
15879 result = (wxScreenDC *)new wxScreenDC();
15880
15881 wxPyEndAllowThreads(__tstate);
15882 if (PyErr_Occurred()) SWIG_fail;
15883 }
15884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15885 return resultobj;
15886 fail:
15887 return NULL;
15888 }
15889
15890
15891 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15892 PyObject *resultobj;
15893 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15894 wxWindow *arg2 = (wxWindow *) 0 ;
15895 bool result;
15896 PyObject * obj0 = 0 ;
15897 PyObject * obj1 = 0 ;
15898 char *kwnames[] = {
15899 (char *) "self",(char *) "window", NULL
15900 };
15901
15902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15905 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15907 {
15908 PyThreadState* __tstate = wxPyBeginAllowThreads();
15909 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15910
15911 wxPyEndAllowThreads(__tstate);
15912 if (PyErr_Occurred()) SWIG_fail;
15913 }
15914 {
15915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15916 }
15917 return resultobj;
15918 fail:
15919 return NULL;
15920 }
15921
15922
15923 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15924 PyObject *resultobj;
15925 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15926 wxRect *arg2 = (wxRect *) NULL ;
15927 bool result;
15928 PyObject * obj0 = 0 ;
15929 PyObject * obj1 = 0 ;
15930 char *kwnames[] = {
15931 (char *) "self",(char *) "rect", NULL
15932 };
15933
15934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15937 if (obj1) {
15938 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15940 }
15941 {
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15944
15945 wxPyEndAllowThreads(__tstate);
15946 if (PyErr_Occurred()) SWIG_fail;
15947 }
15948 {
15949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15950 }
15951 return resultobj;
15952 fail:
15953 return NULL;
15954 }
15955
15956
15957 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15958 PyObject *resultobj;
15959 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15960 bool result;
15961 PyObject * obj0 = 0 ;
15962 char *kwnames[] = {
15963 (char *) "self", NULL
15964 };
15965
15966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15969 {
15970 PyThreadState* __tstate = wxPyBeginAllowThreads();
15971 result = (bool)(arg1)->EndDrawingOnTop();
15972
15973 wxPyEndAllowThreads(__tstate);
15974 if (PyErr_Occurred()) SWIG_fail;
15975 }
15976 {
15977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15978 }
15979 return resultobj;
15980 fail:
15981 return NULL;
15982 }
15983
15984
15985 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15986 PyObject *obj;
15987 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15988 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15989 Py_INCREF(obj);
15990 return Py_BuildValue((char *)"");
15991 }
15992 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15993 PyObject *resultobj;
15994 wxWindow *arg1 = (wxWindow *) 0 ;
15995 wxClientDC *result;
15996 PyObject * obj0 = 0 ;
15997 char *kwnames[] = {
15998 (char *) "win", NULL
15999 };
16000
16001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
16002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16004 {
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 result = (wxClientDC *)new wxClientDC(arg1);
16007
16008 wxPyEndAllowThreads(__tstate);
16009 if (PyErr_Occurred()) SWIG_fail;
16010 }
16011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16012 return resultobj;
16013 fail:
16014 return NULL;
16015 }
16016
16017
16018 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
16019 PyObject *obj;
16020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16021 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16022 Py_INCREF(obj);
16023 return Py_BuildValue((char *)"");
16024 }
16025 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16026 PyObject *resultobj;
16027 wxWindow *arg1 = (wxWindow *) 0 ;
16028 wxPaintDC *result;
16029 PyObject * obj0 = 0 ;
16030 char *kwnames[] = {
16031 (char *) "win", NULL
16032 };
16033
16034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16037 {
16038 PyThreadState* __tstate = wxPyBeginAllowThreads();
16039 result = (wxPaintDC *)new wxPaintDC(arg1);
16040
16041 wxPyEndAllowThreads(__tstate);
16042 if (PyErr_Occurred()) SWIG_fail;
16043 }
16044 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16045 return resultobj;
16046 fail:
16047 return NULL;
16048 }
16049
16050
16051 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
16052 PyObject *obj;
16053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16054 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16055 Py_INCREF(obj);
16056 return Py_BuildValue((char *)"");
16057 }
16058 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16059 PyObject *resultobj;
16060 wxWindow *arg1 = (wxWindow *) 0 ;
16061 wxWindowDC *result;
16062 PyObject * obj0 = 0 ;
16063 char *kwnames[] = {
16064 (char *) "win", NULL
16065 };
16066
16067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 result = (wxWindowDC *)new wxWindowDC(arg1);
16073
16074 wxPyEndAllowThreads(__tstate);
16075 if (PyErr_Occurred()) SWIG_fail;
16076 }
16077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16078 return resultobj;
16079 fail:
16080 return NULL;
16081 }
16082
16083
16084 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16085 PyObject *obj;
16086 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16087 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16088 Py_INCREF(obj);
16089 return Py_BuildValue((char *)"");
16090 }
16091 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16092 PyObject *resultobj;
16093 wxDC *arg1 = 0 ;
16094 bool arg2 ;
16095 wxMirrorDC *result;
16096 PyObject * obj0 = 0 ;
16097 PyObject * obj1 = 0 ;
16098 char *kwnames[] = {
16099 (char *) "dc",(char *) "mirror", NULL
16100 };
16101
16102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16104 SWIG_POINTER_EXCEPTION | 0)) == -1)
16105 SWIG_fail;
16106 if (arg1 == NULL) {
16107 PyErr_SetString(PyExc_TypeError,"null reference");
16108 SWIG_fail;
16109 }
16110 arg2 = (bool) SWIG_AsBool(obj1);
16111 if (PyErr_Occurred()) SWIG_fail;
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16115
16116 wxPyEndAllowThreads(__tstate);
16117 if (PyErr_Occurred()) SWIG_fail;
16118 }
16119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16120 return resultobj;
16121 fail:
16122 return NULL;
16123 }
16124
16125
16126 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16127 PyObject *obj;
16128 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16129 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16130 Py_INCREF(obj);
16131 return Py_BuildValue((char *)"");
16132 }
16133 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16134 PyObject *resultobj;
16135 wxPrintData *arg1 = 0 ;
16136 wxPostScriptDC *result;
16137 PyObject * obj0 = 0 ;
16138 char *kwnames[] = {
16139 (char *) "printData", NULL
16140 };
16141
16142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16144 SWIG_POINTER_EXCEPTION | 0)) == -1)
16145 SWIG_fail;
16146 if (arg1 == NULL) {
16147 PyErr_SetString(PyExc_TypeError,"null reference");
16148 SWIG_fail;
16149 }
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16153
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16158 return resultobj;
16159 fail:
16160 return NULL;
16161 }
16162
16163
16164 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16165 PyObject *resultobj;
16166 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16167 wxPrintData *result;
16168 PyObject * obj0 = 0 ;
16169 char *kwnames[] = {
16170 (char *) "self", NULL
16171 };
16172
16173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16176 {
16177 PyThreadState* __tstate = wxPyBeginAllowThreads();
16178 {
16179 wxPrintData &_result_ref = (arg1)->GetPrintData();
16180 result = (wxPrintData *) &_result_ref;
16181 }
16182
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16187 return resultobj;
16188 fail:
16189 return NULL;
16190 }
16191
16192
16193 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16194 PyObject *resultobj;
16195 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16196 wxPrintData *arg2 = 0 ;
16197 PyObject * obj0 = 0 ;
16198 PyObject * obj1 = 0 ;
16199 char *kwnames[] = {
16200 (char *) "self",(char *) "data", NULL
16201 };
16202
16203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16207 SWIG_POINTER_EXCEPTION | 0)) == -1)
16208 SWIG_fail;
16209 if (arg2 == NULL) {
16210 PyErr_SetString(PyExc_TypeError,"null reference");
16211 SWIG_fail;
16212 }
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16216
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 Py_INCREF(Py_None); resultobj = Py_None;
16221 return resultobj;
16222 fail:
16223 return NULL;
16224 }
16225
16226
16227 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16228 PyObject *resultobj;
16229 int arg1 ;
16230 PyObject * obj0 = 0 ;
16231 char *kwnames[] = {
16232 (char *) "ppi", NULL
16233 };
16234
16235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16236 arg1 = (int) SWIG_AsInt(obj0);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 {
16239 PyThreadState* __tstate = wxPyBeginAllowThreads();
16240 wxPostScriptDC::SetResolution(arg1);
16241
16242 wxPyEndAllowThreads(__tstate);
16243 if (PyErr_Occurred()) SWIG_fail;
16244 }
16245 Py_INCREF(Py_None); resultobj = Py_None;
16246 return resultobj;
16247 fail:
16248 return NULL;
16249 }
16250
16251
16252 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16253 PyObject *resultobj;
16254 int result;
16255 char *kwnames[] = {
16256 NULL
16257 };
16258
16259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16260 {
16261 PyThreadState* __tstate = wxPyBeginAllowThreads();
16262 result = (int)wxPostScriptDC::GetResolution();
16263
16264 wxPyEndAllowThreads(__tstate);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 }
16267 resultobj = SWIG_FromInt((int)result);
16268 return resultobj;
16269 fail:
16270 return NULL;
16271 }
16272
16273
16274 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16275 PyObject *obj;
16276 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16277 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16278 Py_INCREF(obj);
16279 return Py_BuildValue((char *)"");
16280 }
16281 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16282 PyObject *resultobj;
16283 wxString const &arg1_defvalue = wxPyEmptyString ;
16284 wxString *arg1 = (wxString *) &arg1_defvalue ;
16285 wxMetaFile *result;
16286 bool temp1 = False ;
16287 PyObject * obj0 = 0 ;
16288 char *kwnames[] = {
16289 (char *) "filename", NULL
16290 };
16291
16292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16293 if (obj0) {
16294 {
16295 arg1 = wxString_in_helper(obj0);
16296 if (arg1 == NULL) SWIG_fail;
16297 temp1 = True;
16298 }
16299 }
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16303
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16308 {
16309 if (temp1)
16310 delete arg1;
16311 }
16312 return resultobj;
16313 fail:
16314 {
16315 if (temp1)
16316 delete arg1;
16317 }
16318 return NULL;
16319 }
16320
16321
16322 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16323 PyObject *resultobj;
16324 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16325 PyObject * obj0 = 0 ;
16326 char *kwnames[] = {
16327 (char *) "self", NULL
16328 };
16329
16330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 delete arg1;
16336
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 Py_INCREF(Py_None); resultobj = Py_None;
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16348 PyObject *resultobj;
16349 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16350 bool result;
16351 PyObject * obj0 = 0 ;
16352 char *kwnames[] = {
16353 (char *) "self", NULL
16354 };
16355
16356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 result = (bool)(arg1)->Ok();
16362
16363 wxPyEndAllowThreads(__tstate);
16364 if (PyErr_Occurred()) SWIG_fail;
16365 }
16366 {
16367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16368 }
16369 return resultobj;
16370 fail:
16371 return NULL;
16372 }
16373
16374
16375 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16376 PyObject *resultobj;
16377 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16378 int arg2 = (int) 0 ;
16379 int arg3 = (int) 0 ;
16380 bool result;
16381 PyObject * obj0 = 0 ;
16382 PyObject * obj1 = 0 ;
16383 PyObject * obj2 = 0 ;
16384 char *kwnames[] = {
16385 (char *) "self",(char *) "width",(char *) "height", NULL
16386 };
16387
16388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16391 if (obj1) {
16392 arg2 = (int) SWIG_AsInt(obj1);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 if (obj2) {
16396 arg3 = (int) SWIG_AsInt(obj2);
16397 if (PyErr_Occurred()) SWIG_fail;
16398 }
16399 {
16400 PyThreadState* __tstate = wxPyBeginAllowThreads();
16401 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16402
16403 wxPyEndAllowThreads(__tstate);
16404 if (PyErr_Occurred()) SWIG_fail;
16405 }
16406 {
16407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16408 }
16409 return resultobj;
16410 fail:
16411 return NULL;
16412 }
16413
16414
16415 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16416 PyObject *resultobj;
16417 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16418 wxSize result;
16419 PyObject * obj0 = 0 ;
16420 char *kwnames[] = {
16421 (char *) "self", NULL
16422 };
16423
16424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 result = (arg1)->GetSize();
16430
16431 wxPyEndAllowThreads(__tstate);
16432 if (PyErr_Occurred()) SWIG_fail;
16433 }
16434 {
16435 wxSize * resultptr;
16436 resultptr = new wxSize((wxSize &) result);
16437 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16438 }
16439 return resultobj;
16440 fail:
16441 return NULL;
16442 }
16443
16444
16445 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16446 PyObject *resultobj;
16447 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16448 int result;
16449 PyObject * obj0 = 0 ;
16450 char *kwnames[] = {
16451 (char *) "self", NULL
16452 };
16453
16454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16457 {
16458 PyThreadState* __tstate = wxPyBeginAllowThreads();
16459 result = (int)(arg1)->GetWidth();
16460
16461 wxPyEndAllowThreads(__tstate);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 }
16464 resultobj = SWIG_FromInt((int)result);
16465 return resultobj;
16466 fail:
16467 return NULL;
16468 }
16469
16470
16471 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16472 PyObject *resultobj;
16473 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16474 int result;
16475 PyObject * obj0 = 0 ;
16476 char *kwnames[] = {
16477 (char *) "self", NULL
16478 };
16479
16480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16483 {
16484 PyThreadState* __tstate = wxPyBeginAllowThreads();
16485 result = (int)(arg1)->GetHeight();
16486
16487 wxPyEndAllowThreads(__tstate);
16488 if (PyErr_Occurred()) SWIG_fail;
16489 }
16490 resultobj = SWIG_FromInt((int)result);
16491 return resultobj;
16492 fail:
16493 return NULL;
16494 }
16495
16496
16497 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16498 PyObject *resultobj;
16499 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16500 wxString *result;
16501 PyObject * obj0 = 0 ;
16502 char *kwnames[] = {
16503 (char *) "self", NULL
16504 };
16505
16506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16509 {
16510 PyThreadState* __tstate = wxPyBeginAllowThreads();
16511 {
16512 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16513 result = (wxString *) &_result_ref;
16514 }
16515
16516 wxPyEndAllowThreads(__tstate);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
16519 {
16520 #if wxUSE_UNICODE
16521 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16522 #else
16523 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16524 #endif
16525 }
16526 return resultobj;
16527 fail:
16528 return NULL;
16529 }
16530
16531
16532 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16533 PyObject *obj;
16534 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16535 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16536 Py_INCREF(obj);
16537 return Py_BuildValue((char *)"");
16538 }
16539 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16540 PyObject *resultobj;
16541 wxString const &arg1_defvalue = wxPyEmptyString ;
16542 wxString *arg1 = (wxString *) &arg1_defvalue ;
16543 int arg2 = (int) 0 ;
16544 int arg3 = (int) 0 ;
16545 wxString const &arg4_defvalue = wxPyEmptyString ;
16546 wxString *arg4 = (wxString *) &arg4_defvalue ;
16547 wxMetaFileDC *result;
16548 bool temp1 = False ;
16549 bool temp4 = False ;
16550 PyObject * obj0 = 0 ;
16551 PyObject * obj1 = 0 ;
16552 PyObject * obj2 = 0 ;
16553 PyObject * obj3 = 0 ;
16554 char *kwnames[] = {
16555 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16556 };
16557
16558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16559 if (obj0) {
16560 {
16561 arg1 = wxString_in_helper(obj0);
16562 if (arg1 == NULL) SWIG_fail;
16563 temp1 = True;
16564 }
16565 }
16566 if (obj1) {
16567 arg2 = (int) SWIG_AsInt(obj1);
16568 if (PyErr_Occurred()) SWIG_fail;
16569 }
16570 if (obj2) {
16571 arg3 = (int) SWIG_AsInt(obj2);
16572 if (PyErr_Occurred()) SWIG_fail;
16573 }
16574 if (obj3) {
16575 {
16576 arg4 = wxString_in_helper(obj3);
16577 if (arg4 == NULL) SWIG_fail;
16578 temp4 = True;
16579 }
16580 }
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
16583 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16584
16585 wxPyEndAllowThreads(__tstate);
16586 if (PyErr_Occurred()) SWIG_fail;
16587 }
16588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16589 {
16590 if (temp1)
16591 delete arg1;
16592 }
16593 {
16594 if (temp4)
16595 delete arg4;
16596 }
16597 return resultobj;
16598 fail:
16599 {
16600 if (temp1)
16601 delete arg1;
16602 }
16603 {
16604 if (temp4)
16605 delete arg4;
16606 }
16607 return NULL;
16608 }
16609
16610
16611 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16612 PyObject *resultobj;
16613 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16614 wxMetaFile *result;
16615 PyObject * obj0 = 0 ;
16616 char *kwnames[] = {
16617 (char *) "self", NULL
16618 };
16619
16620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16623 {
16624 PyThreadState* __tstate = wxPyBeginAllowThreads();
16625 result = (wxMetaFile *)(arg1)->Close();
16626
16627 wxPyEndAllowThreads(__tstate);
16628 if (PyErr_Occurred()) SWIG_fail;
16629 }
16630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16631 return resultobj;
16632 fail:
16633 return NULL;
16634 }
16635
16636
16637 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16638 PyObject *obj;
16639 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16640 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16641 Py_INCREF(obj);
16642 return Py_BuildValue((char *)"");
16643 }
16644 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16645 PyObject *resultobj;
16646 wxPrintData *arg1 = 0 ;
16647 wxPrinterDC *result;
16648 PyObject * obj0 = 0 ;
16649 char *kwnames[] = {
16650 (char *) "printData", NULL
16651 };
16652
16653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16655 SWIG_POINTER_EXCEPTION | 0)) == -1)
16656 SWIG_fail;
16657 if (arg1 == NULL) {
16658 PyErr_SetString(PyExc_TypeError,"null reference");
16659 SWIG_fail;
16660 }
16661 {
16662 PyThreadState* __tstate = wxPyBeginAllowThreads();
16663 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16664
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16669 return resultobj;
16670 fail:
16671 return NULL;
16672 }
16673
16674
16675 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16676 PyObject *obj;
16677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16678 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16679 Py_INCREF(obj);
16680 return Py_BuildValue((char *)"");
16681 }
16682 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16683 PyObject *resultobj;
16684 int arg1 ;
16685 int arg2 ;
16686 int arg3 = (int) True ;
16687 int arg4 = (int) 1 ;
16688 wxImageList *result;
16689 PyObject * obj0 = 0 ;
16690 PyObject * obj1 = 0 ;
16691 PyObject * obj2 = 0 ;
16692 PyObject * obj3 = 0 ;
16693 char *kwnames[] = {
16694 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16695 };
16696
16697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16698 arg1 = (int) SWIG_AsInt(obj0);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 arg2 = (int) SWIG_AsInt(obj1);
16701 if (PyErr_Occurred()) SWIG_fail;
16702 if (obj2) {
16703 arg3 = (int) SWIG_AsInt(obj2);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
16706 if (obj3) {
16707 arg4 = (int) SWIG_AsInt(obj3);
16708 if (PyErr_Occurred()) SWIG_fail;
16709 }
16710 {
16711 PyThreadState* __tstate = wxPyBeginAllowThreads();
16712 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16713
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 {
16718 resultobj = wxPyMake_wxObject(result);
16719 }
16720 return resultobj;
16721 fail:
16722 return NULL;
16723 }
16724
16725
16726 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16727 PyObject *resultobj;
16728 wxImageList *arg1 = (wxImageList *) 0 ;
16729 PyObject * obj0 = 0 ;
16730 char *kwnames[] = {
16731 (char *) "self", NULL
16732 };
16733
16734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16737 {
16738 PyThreadState* __tstate = wxPyBeginAllowThreads();
16739 delete arg1;
16740
16741 wxPyEndAllowThreads(__tstate);
16742 if (PyErr_Occurred()) SWIG_fail;
16743 }
16744 Py_INCREF(Py_None); resultobj = Py_None;
16745 return resultobj;
16746 fail:
16747 return NULL;
16748 }
16749
16750
16751 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16752 PyObject *resultobj;
16753 wxImageList *arg1 = (wxImageList *) 0 ;
16754 wxBitmap *arg2 = 0 ;
16755 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16756 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16757 int result;
16758 PyObject * obj0 = 0 ;
16759 PyObject * obj1 = 0 ;
16760 PyObject * obj2 = 0 ;
16761 char *kwnames[] = {
16762 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16763 };
16764
16765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16769 SWIG_POINTER_EXCEPTION | 0)) == -1)
16770 SWIG_fail;
16771 if (arg2 == NULL) {
16772 PyErr_SetString(PyExc_TypeError,"null reference");
16773 SWIG_fail;
16774 }
16775 if (obj2) {
16776 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16777 SWIG_POINTER_EXCEPTION | 0)) == -1)
16778 SWIG_fail;
16779 if (arg3 == NULL) {
16780 PyErr_SetString(PyExc_TypeError,"null reference");
16781 SWIG_fail;
16782 }
16783 }
16784 {
16785 PyThreadState* __tstate = wxPyBeginAllowThreads();
16786 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16787
16788 wxPyEndAllowThreads(__tstate);
16789 if (PyErr_Occurred()) SWIG_fail;
16790 }
16791 resultobj = SWIG_FromInt((int)result);
16792 return resultobj;
16793 fail:
16794 return NULL;
16795 }
16796
16797
16798 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16799 PyObject *resultobj;
16800 wxImageList *arg1 = (wxImageList *) 0 ;
16801 wxBitmap *arg2 = 0 ;
16802 wxColour *arg3 = 0 ;
16803 int result;
16804 wxColour temp3 ;
16805 PyObject * obj0 = 0 ;
16806 PyObject * obj1 = 0 ;
16807 PyObject * obj2 = 0 ;
16808 char *kwnames[] = {
16809 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16810 };
16811
16812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16816 SWIG_POINTER_EXCEPTION | 0)) == -1)
16817 SWIG_fail;
16818 if (arg2 == NULL) {
16819 PyErr_SetString(PyExc_TypeError,"null reference");
16820 SWIG_fail;
16821 }
16822 {
16823 arg3 = &temp3;
16824 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16825 }
16826 {
16827 PyThreadState* __tstate = wxPyBeginAllowThreads();
16828 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16829
16830 wxPyEndAllowThreads(__tstate);
16831 if (PyErr_Occurred()) SWIG_fail;
16832 }
16833 resultobj = SWIG_FromInt((int)result);
16834 return resultobj;
16835 fail:
16836 return NULL;
16837 }
16838
16839
16840 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16841 PyObject *resultobj;
16842 wxImageList *arg1 = (wxImageList *) 0 ;
16843 wxIcon *arg2 = 0 ;
16844 int result;
16845 PyObject * obj0 = 0 ;
16846 PyObject * obj1 = 0 ;
16847 char *kwnames[] = {
16848 (char *) "self",(char *) "icon", NULL
16849 };
16850
16851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16854 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16855 SWIG_POINTER_EXCEPTION | 0)) == -1)
16856 SWIG_fail;
16857 if (arg2 == NULL) {
16858 PyErr_SetString(PyExc_TypeError,"null reference");
16859 SWIG_fail;
16860 }
16861 {
16862 PyThreadState* __tstate = wxPyBeginAllowThreads();
16863 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16864
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
16868 resultobj = SWIG_FromInt((int)result);
16869 return resultobj;
16870 fail:
16871 return NULL;
16872 }
16873
16874
16875 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16876 PyObject *resultobj;
16877 wxImageList *arg1 = (wxImageList *) 0 ;
16878 int arg2 ;
16879 wxBitmap *arg3 = 0 ;
16880 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16881 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16882 bool result;
16883 PyObject * obj0 = 0 ;
16884 PyObject * obj1 = 0 ;
16885 PyObject * obj2 = 0 ;
16886 PyObject * obj3 = 0 ;
16887 char *kwnames[] = {
16888 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16889 };
16890
16891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16894 arg2 = (int) SWIG_AsInt(obj1);
16895 if (PyErr_Occurred()) SWIG_fail;
16896 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16897 SWIG_POINTER_EXCEPTION | 0)) == -1)
16898 SWIG_fail;
16899 if (arg3 == NULL) {
16900 PyErr_SetString(PyExc_TypeError,"null reference");
16901 SWIG_fail;
16902 }
16903 if (obj3) {
16904 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16905 SWIG_POINTER_EXCEPTION | 0)) == -1)
16906 SWIG_fail;
16907 if (arg4 == NULL) {
16908 PyErr_SetString(PyExc_TypeError,"null reference");
16909 SWIG_fail;
16910 }
16911 }
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
16914 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16915
16916 wxPyEndAllowThreads(__tstate);
16917 if (PyErr_Occurred()) SWIG_fail;
16918 }
16919 {
16920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16921 }
16922 return resultobj;
16923 fail:
16924 return NULL;
16925 }
16926
16927
16928 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16929 PyObject *resultobj;
16930 wxImageList *arg1 = (wxImageList *) 0 ;
16931 int arg2 ;
16932 wxDC *arg3 = 0 ;
16933 int arg4 ;
16934 int arg5 ;
16935 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16936 bool arg7 = (bool) (bool)False ;
16937 bool result;
16938 PyObject * obj0 = 0 ;
16939 PyObject * obj1 = 0 ;
16940 PyObject * obj2 = 0 ;
16941 PyObject * obj3 = 0 ;
16942 PyObject * obj4 = 0 ;
16943 PyObject * obj5 = 0 ;
16944 PyObject * obj6 = 0 ;
16945 char *kwnames[] = {
16946 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16947 };
16948
16949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16952 arg2 = (int) SWIG_AsInt(obj1);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16955 SWIG_POINTER_EXCEPTION | 0)) == -1)
16956 SWIG_fail;
16957 if (arg3 == NULL) {
16958 PyErr_SetString(PyExc_TypeError,"null reference");
16959 SWIG_fail;
16960 }
16961 arg4 = (int) SWIG_AsInt(obj3);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 arg5 = (int) SWIG_AsInt(obj4);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 if (obj5) {
16966 arg6 = (int) SWIG_AsInt(obj5);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 }
16969 if (obj6) {
16970 arg7 = (bool const) SWIG_AsBool(obj6);
16971 if (PyErr_Occurred()) SWIG_fail;
16972 }
16973 {
16974 PyThreadState* __tstate = wxPyBeginAllowThreads();
16975 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16976
16977 wxPyEndAllowThreads(__tstate);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
16980 {
16981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16982 }
16983 return resultobj;
16984 fail:
16985 return NULL;
16986 }
16987
16988
16989 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16990 PyObject *resultobj;
16991 wxImageList *arg1 = (wxImageList *) 0 ;
16992 int result;
16993 PyObject * obj0 = 0 ;
16994 char *kwnames[] = {
16995 (char *) "self", NULL
16996 };
16997
16998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17001 {
17002 PyThreadState* __tstate = wxPyBeginAllowThreads();
17003 result = (int)(arg1)->GetImageCount();
17004
17005 wxPyEndAllowThreads(__tstate);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 }
17008 resultobj = SWIG_FromInt((int)result);
17009 return resultobj;
17010 fail:
17011 return NULL;
17012 }
17013
17014
17015 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
17016 PyObject *resultobj;
17017 wxImageList *arg1 = (wxImageList *) 0 ;
17018 int arg2 ;
17019 bool result;
17020 PyObject * obj0 = 0 ;
17021 PyObject * obj1 = 0 ;
17022 char *kwnames[] = {
17023 (char *) "self",(char *) "index", NULL
17024 };
17025
17026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17029 arg2 = (int) SWIG_AsInt(obj1);
17030 if (PyErr_Occurred()) SWIG_fail;
17031 {
17032 PyThreadState* __tstate = wxPyBeginAllowThreads();
17033 result = (bool)(arg1)->Remove(arg2);
17034
17035 wxPyEndAllowThreads(__tstate);
17036 if (PyErr_Occurred()) SWIG_fail;
17037 }
17038 {
17039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17040 }
17041 return resultobj;
17042 fail:
17043 return NULL;
17044 }
17045
17046
17047 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
17048 PyObject *resultobj;
17049 wxImageList *arg1 = (wxImageList *) 0 ;
17050 bool result;
17051 PyObject * obj0 = 0 ;
17052 char *kwnames[] = {
17053 (char *) "self", NULL
17054 };
17055
17056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17059 {
17060 PyThreadState* __tstate = wxPyBeginAllowThreads();
17061 result = (bool)(arg1)->RemoveAll();
17062
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17068 }
17069 return resultobj;
17070 fail:
17071 return NULL;
17072 }
17073
17074
17075 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17076 PyObject *resultobj;
17077 wxImageList *arg1 = (wxImageList *) 0 ;
17078 int arg2 ;
17079 int *arg3 = 0 ;
17080 int *arg4 = 0 ;
17081 int temp3 ;
17082 int temp4 ;
17083 PyObject * obj0 = 0 ;
17084 PyObject * obj1 = 0 ;
17085 char *kwnames[] = {
17086 (char *) "self",(char *) "index", NULL
17087 };
17088
17089 arg3 = &temp3;
17090 arg4 = &temp4;
17091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17094 arg2 = (int) SWIG_AsInt(obj1);
17095 if (PyErr_Occurred()) SWIG_fail;
17096 {
17097 PyThreadState* __tstate = wxPyBeginAllowThreads();
17098 (arg1)->GetSize(arg2,*arg3,*arg4);
17099
17100 wxPyEndAllowThreads(__tstate);
17101 if (PyErr_Occurred()) SWIG_fail;
17102 }
17103 Py_INCREF(Py_None); resultobj = Py_None;
17104 {
17105 PyObject *o = PyInt_FromLong((long) (*arg3));
17106 resultobj = t_output_helper(resultobj,o);
17107 }
17108 {
17109 PyObject *o = PyInt_FromLong((long) (*arg4));
17110 resultobj = t_output_helper(resultobj,o);
17111 }
17112 return resultobj;
17113 fail:
17114 return NULL;
17115 }
17116
17117
17118 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17119 PyObject *obj;
17120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17121 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17122 Py_INCREF(obj);
17123 return Py_BuildValue((char *)"");
17124 }
17125 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
17126 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17127 return 1;
17128 }
17129
17130
17131 static PyObject *_wrap_NORMAL_FONT_get() {
17132 PyObject *pyobj;
17133
17134 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17135 return pyobj;
17136 }
17137
17138
17139 static int _wrap_SMALL_FONT_set(PyObject *_val) {
17140 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17141 return 1;
17142 }
17143
17144
17145 static PyObject *_wrap_SMALL_FONT_get() {
17146 PyObject *pyobj;
17147
17148 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17149 return pyobj;
17150 }
17151
17152
17153 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
17154 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17155 return 1;
17156 }
17157
17158
17159 static PyObject *_wrap_ITALIC_FONT_get() {
17160 PyObject *pyobj;
17161
17162 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17163 return pyobj;
17164 }
17165
17166
17167 static int _wrap_SWISS_FONT_set(PyObject *_val) {
17168 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17169 return 1;
17170 }
17171
17172
17173 static PyObject *_wrap_SWISS_FONT_get() {
17174 PyObject *pyobj;
17175
17176 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17177 return pyobj;
17178 }
17179
17180
17181 static int _wrap_RED_PEN_set(PyObject *_val) {
17182 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17183 return 1;
17184 }
17185
17186
17187 static PyObject *_wrap_RED_PEN_get() {
17188 PyObject *pyobj;
17189
17190 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17191 return pyobj;
17192 }
17193
17194
17195 static int _wrap_CYAN_PEN_set(PyObject *_val) {
17196 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17197 return 1;
17198 }
17199
17200
17201 static PyObject *_wrap_CYAN_PEN_get() {
17202 PyObject *pyobj;
17203
17204 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17205 return pyobj;
17206 }
17207
17208
17209 static int _wrap_GREEN_PEN_set(PyObject *_val) {
17210 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17211 return 1;
17212 }
17213
17214
17215 static PyObject *_wrap_GREEN_PEN_get() {
17216 PyObject *pyobj;
17217
17218 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17219 return pyobj;
17220 }
17221
17222
17223 static int _wrap_BLACK_PEN_set(PyObject *_val) {
17224 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17225 return 1;
17226 }
17227
17228
17229 static PyObject *_wrap_BLACK_PEN_get() {
17230 PyObject *pyobj;
17231
17232 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17233 return pyobj;
17234 }
17235
17236
17237 static int _wrap_WHITE_PEN_set(PyObject *_val) {
17238 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17239 return 1;
17240 }
17241
17242
17243 static PyObject *_wrap_WHITE_PEN_get() {
17244 PyObject *pyobj;
17245
17246 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17247 return pyobj;
17248 }
17249
17250
17251 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
17252 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17253 return 1;
17254 }
17255
17256
17257 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17258 PyObject *pyobj;
17259
17260 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17261 return pyobj;
17262 }
17263
17264
17265 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
17266 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17267 return 1;
17268 }
17269
17270
17271 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17272 PyObject *pyobj;
17273
17274 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17275 return pyobj;
17276 }
17277
17278
17279 static int _wrap_GREY_PEN_set(PyObject *_val) {
17280 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17281 return 1;
17282 }
17283
17284
17285 static PyObject *_wrap_GREY_PEN_get() {
17286 PyObject *pyobj;
17287
17288 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17289 return pyobj;
17290 }
17291
17292
17293 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17294 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17295 return 1;
17296 }
17297
17298
17299 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17300 PyObject *pyobj;
17301
17302 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17303 return pyobj;
17304 }
17305
17306
17307 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17308 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17309 return 1;
17310 }
17311
17312
17313 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17314 PyObject *pyobj;
17315
17316 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17317 return pyobj;
17318 }
17319
17320
17321 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17322 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17323 return 1;
17324 }
17325
17326
17327 static PyObject *_wrap_BLUE_BRUSH_get() {
17328 PyObject *pyobj;
17329
17330 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17331 return pyobj;
17332 }
17333
17334
17335 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17336 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17337 return 1;
17338 }
17339
17340
17341 static PyObject *_wrap_GREEN_BRUSH_get() {
17342 PyObject *pyobj;
17343
17344 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17345 return pyobj;
17346 }
17347
17348
17349 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17350 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17351 return 1;
17352 }
17353
17354
17355 static PyObject *_wrap_WHITE_BRUSH_get() {
17356 PyObject *pyobj;
17357
17358 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17359 return pyobj;
17360 }
17361
17362
17363 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17364 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17365 return 1;
17366 }
17367
17368
17369 static PyObject *_wrap_BLACK_BRUSH_get() {
17370 PyObject *pyobj;
17371
17372 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17373 return pyobj;
17374 }
17375
17376
17377 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17378 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17379 return 1;
17380 }
17381
17382
17383 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17384 PyObject *pyobj;
17385
17386 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17387 return pyobj;
17388 }
17389
17390
17391 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17392 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17393 return 1;
17394 }
17395
17396
17397 static PyObject *_wrap_CYAN_BRUSH_get() {
17398 PyObject *pyobj;
17399
17400 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17401 return pyobj;
17402 }
17403
17404
17405 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17406 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17407 return 1;
17408 }
17409
17410
17411 static PyObject *_wrap_RED_BRUSH_get() {
17412 PyObject *pyobj;
17413
17414 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17415 return pyobj;
17416 }
17417
17418
17419 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17420 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17421 return 1;
17422 }
17423
17424
17425 static PyObject *_wrap_GREY_BRUSH_get() {
17426 PyObject *pyobj;
17427
17428 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17429 return pyobj;
17430 }
17431
17432
17433 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17434 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17435 return 1;
17436 }
17437
17438
17439 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17440 PyObject *pyobj;
17441
17442 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17443 return pyobj;
17444 }
17445
17446
17447 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17448 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17449 return 1;
17450 }
17451
17452
17453 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17454 PyObject *pyobj;
17455
17456 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17457 return pyobj;
17458 }
17459
17460
17461 static int _wrap_BLACK_set(PyObject *_val) {
17462 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17463 return 1;
17464 }
17465
17466
17467 static PyObject *_wrap_BLACK_get() {
17468 PyObject *pyobj;
17469
17470 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17471 return pyobj;
17472 }
17473
17474
17475 static int _wrap_WHITE_set(PyObject *_val) {
17476 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17477 return 1;
17478 }
17479
17480
17481 static PyObject *_wrap_WHITE_get() {
17482 PyObject *pyobj;
17483
17484 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17485 return pyobj;
17486 }
17487
17488
17489 static int _wrap_RED_set(PyObject *_val) {
17490 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17491 return 1;
17492 }
17493
17494
17495 static PyObject *_wrap_RED_get() {
17496 PyObject *pyobj;
17497
17498 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17499 return pyobj;
17500 }
17501
17502
17503 static int _wrap_BLUE_set(PyObject *_val) {
17504 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17505 return 1;
17506 }
17507
17508
17509 static PyObject *_wrap_BLUE_get() {
17510 PyObject *pyobj;
17511
17512 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17513 return pyobj;
17514 }
17515
17516
17517 static int _wrap_GREEN_set(PyObject *_val) {
17518 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17519 return 1;
17520 }
17521
17522
17523 static PyObject *_wrap_GREEN_get() {
17524 PyObject *pyobj;
17525
17526 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17527 return pyobj;
17528 }
17529
17530
17531 static int _wrap_CYAN_set(PyObject *_val) {
17532 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17533 return 1;
17534 }
17535
17536
17537 static PyObject *_wrap_CYAN_get() {
17538 PyObject *pyobj;
17539
17540 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17541 return pyobj;
17542 }
17543
17544
17545 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17546 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17547 return 1;
17548 }
17549
17550
17551 static PyObject *_wrap_LIGHT_GREY_get() {
17552 PyObject *pyobj;
17553
17554 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17555 return pyobj;
17556 }
17557
17558
17559 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17560 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17561 return 1;
17562 }
17563
17564
17565 static PyObject *_wrap_STANDARD_CURSOR_get() {
17566 PyObject *pyobj;
17567
17568 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17569 return pyobj;
17570 }
17571
17572
17573 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17574 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17575 return 1;
17576 }
17577
17578
17579 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17580 PyObject *pyobj;
17581
17582 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17583 return pyobj;
17584 }
17585
17586
17587 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17588 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17589 return 1;
17590 }
17591
17592
17593 static PyObject *_wrap_CROSS_CURSOR_get() {
17594 PyObject *pyobj;
17595
17596 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17597 return pyobj;
17598 }
17599
17600
17601 static int _wrap_NullBitmap_set(PyObject *_val) {
17602 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17603 return 1;
17604 }
17605
17606
17607 static PyObject *_wrap_NullBitmap_get() {
17608 PyObject *pyobj;
17609
17610 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17611 return pyobj;
17612 }
17613
17614
17615 static int _wrap_NullIcon_set(PyObject *_val) {
17616 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17617 return 1;
17618 }
17619
17620
17621 static PyObject *_wrap_NullIcon_get() {
17622 PyObject *pyobj;
17623
17624 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17625 return pyobj;
17626 }
17627
17628
17629 static int _wrap_NullCursor_set(PyObject *_val) {
17630 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17631 return 1;
17632 }
17633
17634
17635 static PyObject *_wrap_NullCursor_get() {
17636 PyObject *pyobj;
17637
17638 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17639 return pyobj;
17640 }
17641
17642
17643 static int _wrap_NullPen_set(PyObject *_val) {
17644 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17645 return 1;
17646 }
17647
17648
17649 static PyObject *_wrap_NullPen_get() {
17650 PyObject *pyobj;
17651
17652 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17653 return pyobj;
17654 }
17655
17656
17657 static int _wrap_NullBrush_set(PyObject *_val) {
17658 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17659 return 1;
17660 }
17661
17662
17663 static PyObject *_wrap_NullBrush_get() {
17664 PyObject *pyobj;
17665
17666 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17667 return pyobj;
17668 }
17669
17670
17671 static int _wrap_NullPalette_set(PyObject *_val) {
17672 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17673 return 1;
17674 }
17675
17676
17677 static PyObject *_wrap_NullPalette_get() {
17678 PyObject *pyobj;
17679
17680 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17681 return pyobj;
17682 }
17683
17684
17685 static int _wrap_NullFont_set(PyObject *_val) {
17686 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17687 return 1;
17688 }
17689
17690
17691 static PyObject *_wrap_NullFont_get() {
17692 PyObject *pyobj;
17693
17694 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17695 return pyobj;
17696 }
17697
17698
17699 static int _wrap_NullColour_set(PyObject *_val) {
17700 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17701 return 1;
17702 }
17703
17704
17705 static PyObject *_wrap_NullColour_get() {
17706 PyObject *pyobj;
17707
17708 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17709 return pyobj;
17710 }
17711
17712
17713 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17714 PyObject *resultobj;
17715 wxPenList *arg1 = (wxPenList *) 0 ;
17716 wxPen *arg2 = (wxPen *) 0 ;
17717 PyObject * obj0 = 0 ;
17718 PyObject * obj1 = 0 ;
17719 char *kwnames[] = {
17720 (char *) "self",(char *) "pen", NULL
17721 };
17722
17723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17728 {
17729 PyThreadState* __tstate = wxPyBeginAllowThreads();
17730 (arg1)->AddPen(arg2);
17731
17732 wxPyEndAllowThreads(__tstate);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 }
17735 Py_INCREF(Py_None); resultobj = Py_None;
17736 return resultobj;
17737 fail:
17738 return NULL;
17739 }
17740
17741
17742 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17743 PyObject *resultobj;
17744 wxPenList *arg1 = (wxPenList *) 0 ;
17745 wxColour *arg2 = 0 ;
17746 int arg3 ;
17747 int arg4 ;
17748 wxPen *result;
17749 wxColour temp2 ;
17750 PyObject * obj0 = 0 ;
17751 PyObject * obj1 = 0 ;
17752 PyObject * obj2 = 0 ;
17753 PyObject * obj3 = 0 ;
17754 char *kwnames[] = {
17755 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17756 };
17757
17758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17761 {
17762 arg2 = &temp2;
17763 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17764 }
17765 arg3 = (int) SWIG_AsInt(obj2);
17766 if (PyErr_Occurred()) SWIG_fail;
17767 arg4 = (int) SWIG_AsInt(obj3);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17772
17773 wxPyEndAllowThreads(__tstate);
17774 if (PyErr_Occurred()) SWIG_fail;
17775 }
17776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17777 return resultobj;
17778 fail:
17779 return NULL;
17780 }
17781
17782
17783 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17784 PyObject *resultobj;
17785 wxPenList *arg1 = (wxPenList *) 0 ;
17786 wxPen *arg2 = (wxPen *) 0 ;
17787 PyObject * obj0 = 0 ;
17788 PyObject * obj1 = 0 ;
17789 char *kwnames[] = {
17790 (char *) "self",(char *) "pen", NULL
17791 };
17792
17793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17796 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17798 {
17799 PyThreadState* __tstate = wxPyBeginAllowThreads();
17800 (arg1)->RemovePen(arg2);
17801
17802 wxPyEndAllowThreads(__tstate);
17803 if (PyErr_Occurred()) SWIG_fail;
17804 }
17805 Py_INCREF(Py_None); resultobj = Py_None;
17806 return resultobj;
17807 fail:
17808 return NULL;
17809 }
17810
17811
17812 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17813 PyObject *resultobj;
17814 wxPenList *arg1 = (wxPenList *) 0 ;
17815 int result;
17816 PyObject * obj0 = 0 ;
17817 char *kwnames[] = {
17818 (char *) "self", NULL
17819 };
17820
17821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17824 {
17825 PyThreadState* __tstate = wxPyBeginAllowThreads();
17826 result = (int)(arg1)->GetCount();
17827
17828 wxPyEndAllowThreads(__tstate);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 }
17831 resultobj = SWIG_FromInt((int)result);
17832 return resultobj;
17833 fail:
17834 return NULL;
17835 }
17836
17837
17838 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17839 PyObject *obj;
17840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17841 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17842 Py_INCREF(obj);
17843 return Py_BuildValue((char *)"");
17844 }
17845 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17846 PyObject *resultobj;
17847 wxBrushList *arg1 = (wxBrushList *) 0 ;
17848 wxBrush *arg2 = (wxBrush *) 0 ;
17849 PyObject * obj0 = 0 ;
17850 PyObject * obj1 = 0 ;
17851 char *kwnames[] = {
17852 (char *) "self",(char *) "brush", NULL
17853 };
17854
17855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17860 {
17861 PyThreadState* __tstate = wxPyBeginAllowThreads();
17862 (arg1)->AddBrush(arg2);
17863
17864 wxPyEndAllowThreads(__tstate);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 Py_INCREF(Py_None); resultobj = Py_None;
17868 return resultobj;
17869 fail:
17870 return NULL;
17871 }
17872
17873
17874 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17875 PyObject *resultobj;
17876 wxBrushList *arg1 = (wxBrushList *) 0 ;
17877 wxColour *arg2 = 0 ;
17878 int arg3 ;
17879 wxBrush *result;
17880 wxColour temp2 ;
17881 PyObject * obj0 = 0 ;
17882 PyObject * obj1 = 0 ;
17883 PyObject * obj2 = 0 ;
17884 char *kwnames[] = {
17885 (char *) "self",(char *) "colour",(char *) "style", NULL
17886 };
17887
17888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17891 {
17892 arg2 = &temp2;
17893 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17894 }
17895 arg3 = (int) SWIG_AsInt(obj2);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 {
17898 PyThreadState* __tstate = wxPyBeginAllowThreads();
17899 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17900
17901 wxPyEndAllowThreads(__tstate);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 }
17904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17905 return resultobj;
17906 fail:
17907 return NULL;
17908 }
17909
17910
17911 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17912 PyObject *resultobj;
17913 wxBrushList *arg1 = (wxBrushList *) 0 ;
17914 wxBrush *arg2 = (wxBrush *) 0 ;
17915 PyObject * obj0 = 0 ;
17916 PyObject * obj1 = 0 ;
17917 char *kwnames[] = {
17918 (char *) "self",(char *) "brush", NULL
17919 };
17920
17921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 (arg1)->RemoveBrush(arg2);
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 Py_INCREF(Py_None); resultobj = Py_None;
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 wxBrushList *arg1 = (wxBrushList *) 0 ;
17943 int result;
17944 PyObject * obj0 = 0 ;
17945 char *kwnames[] = {
17946 (char *) "self", NULL
17947 };
17948
17949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17952 {
17953 PyThreadState* __tstate = wxPyBeginAllowThreads();
17954 result = (int)(arg1)->GetCount();
17955
17956 wxPyEndAllowThreads(__tstate);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 resultobj = SWIG_FromInt((int)result);
17960 return resultobj;
17961 fail:
17962 return NULL;
17963 }
17964
17965
17966 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17967 PyObject *obj;
17968 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17969 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17970 Py_INCREF(obj);
17971 return Py_BuildValue((char *)"");
17972 }
17973 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17974 PyObject *resultobj;
17975 wxColourDatabase *result;
17976 char *kwnames[] = {
17977 NULL
17978 };
17979
17980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17981 {
17982 PyThreadState* __tstate = wxPyBeginAllowThreads();
17983 result = (wxColourDatabase *)new wxColourDatabase();
17984
17985 wxPyEndAllowThreads(__tstate);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 }
17988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17989 return resultobj;
17990 fail:
17991 return NULL;
17992 }
17993
17994
17995 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17996 PyObject *resultobj;
17997 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17998 PyObject * obj0 = 0 ;
17999 char *kwnames[] = {
18000 (char *) "self", NULL
18001 };
18002
18003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18006 {
18007 PyThreadState* __tstate = wxPyBeginAllowThreads();
18008 delete arg1;
18009
18010 wxPyEndAllowThreads(__tstate);
18011 if (PyErr_Occurred()) SWIG_fail;
18012 }
18013 Py_INCREF(Py_None); resultobj = Py_None;
18014 return resultobj;
18015 fail:
18016 return NULL;
18017 }
18018
18019
18020 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
18021 PyObject *resultobj;
18022 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18023 wxString *arg2 = 0 ;
18024 wxColour result;
18025 bool temp2 = False ;
18026 PyObject * obj0 = 0 ;
18027 PyObject * obj1 = 0 ;
18028 char *kwnames[] = {
18029 (char *) "self",(char *) "name", NULL
18030 };
18031
18032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18035 {
18036 arg2 = wxString_in_helper(obj1);
18037 if (arg2 == NULL) SWIG_fail;
18038 temp2 = True;
18039 }
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18043
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 {
18048 wxColour * resultptr;
18049 resultptr = new wxColour((wxColour &) result);
18050 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18051 }
18052 {
18053 if (temp2)
18054 delete arg2;
18055 }
18056 return resultobj;
18057 fail:
18058 {
18059 if (temp2)
18060 delete arg2;
18061 }
18062 return NULL;
18063 }
18064
18065
18066 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18067 PyObject *resultobj;
18068 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18069 wxColour *arg2 = 0 ;
18070 wxString result;
18071 wxColour temp2 ;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 char *kwnames[] = {
18075 (char *) "self",(char *) "colour", NULL
18076 };
18077
18078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18081 {
18082 arg2 = &temp2;
18083 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18084 }
18085 {
18086 PyThreadState* __tstate = wxPyBeginAllowThreads();
18087 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18088
18089 wxPyEndAllowThreads(__tstate);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 }
18092 {
18093 #if wxUSE_UNICODE
18094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18095 #else
18096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18097 #endif
18098 }
18099 return resultobj;
18100 fail:
18101 return NULL;
18102 }
18103
18104
18105 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18106 PyObject *resultobj;
18107 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18108 wxString *arg2 = 0 ;
18109 wxColour *arg3 = 0 ;
18110 bool temp2 = False ;
18111 wxColour temp3 ;
18112 PyObject * obj0 = 0 ;
18113 PyObject * obj1 = 0 ;
18114 PyObject * obj2 = 0 ;
18115 char *kwnames[] = {
18116 (char *) "self",(char *) "name",(char *) "colour", NULL
18117 };
18118
18119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18122 {
18123 arg2 = wxString_in_helper(obj1);
18124 if (arg2 == NULL) SWIG_fail;
18125 temp2 = True;
18126 }
18127 {
18128 arg3 = &temp3;
18129 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18130 }
18131 {
18132 PyThreadState* __tstate = wxPyBeginAllowThreads();
18133 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18134
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 Py_INCREF(Py_None); resultobj = Py_None;
18139 {
18140 if (temp2)
18141 delete arg2;
18142 }
18143 return resultobj;
18144 fail:
18145 {
18146 if (temp2)
18147 delete arg2;
18148 }
18149 return NULL;
18150 }
18151
18152
18153 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18154 PyObject *resultobj;
18155 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18156 wxString *arg2 = 0 ;
18157 int arg3 ;
18158 int arg4 ;
18159 int arg5 ;
18160 bool temp2 = False ;
18161 PyObject * obj0 = 0 ;
18162 PyObject * obj1 = 0 ;
18163 PyObject * obj2 = 0 ;
18164 PyObject * obj3 = 0 ;
18165 PyObject * obj4 = 0 ;
18166 char *kwnames[] = {
18167 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18168 };
18169
18170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18173 {
18174 arg2 = wxString_in_helper(obj1);
18175 if (arg2 == NULL) SWIG_fail;
18176 temp2 = True;
18177 }
18178 arg3 = (int) SWIG_AsInt(obj2);
18179 if (PyErr_Occurred()) SWIG_fail;
18180 arg4 = (int) SWIG_AsInt(obj3);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 arg5 = (int) SWIG_AsInt(obj4);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18187
18188 wxPyEndAllowThreads(__tstate);
18189 if (PyErr_Occurred()) SWIG_fail;
18190 }
18191 Py_INCREF(Py_None); resultobj = Py_None;
18192 {
18193 if (temp2)
18194 delete arg2;
18195 }
18196 return resultobj;
18197 fail:
18198 {
18199 if (temp2)
18200 delete arg2;
18201 }
18202 return NULL;
18203 }
18204
18205
18206 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18207 PyObject *obj;
18208 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18209 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18210 Py_INCREF(obj);
18211 return Py_BuildValue((char *)"");
18212 }
18213 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj;
18215 wxFontList *arg1 = (wxFontList *) 0 ;
18216 wxFont *arg2 = (wxFont *) 0 ;
18217 PyObject * obj0 = 0 ;
18218 PyObject * obj1 = 0 ;
18219 char *kwnames[] = {
18220 (char *) "self",(char *) "font", NULL
18221 };
18222
18223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18228 {
18229 PyThreadState* __tstate = wxPyBeginAllowThreads();
18230 (arg1)->AddFont(arg2);
18231
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 Py_INCREF(Py_None); resultobj = Py_None;
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj;
18244 wxFontList *arg1 = (wxFontList *) 0 ;
18245 int arg2 ;
18246 int arg3 ;
18247 int arg4 ;
18248 int arg5 ;
18249 bool arg6 = (bool) False ;
18250 wxString const &arg7_defvalue = wxPyEmptyString ;
18251 wxString *arg7 = (wxString *) &arg7_defvalue ;
18252 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18253 wxFont *result;
18254 bool temp7 = False ;
18255 PyObject * obj0 = 0 ;
18256 PyObject * obj1 = 0 ;
18257 PyObject * obj2 = 0 ;
18258 PyObject * obj3 = 0 ;
18259 PyObject * obj4 = 0 ;
18260 PyObject * obj5 = 0 ;
18261 PyObject * obj6 = 0 ;
18262 PyObject * obj7 = 0 ;
18263 char *kwnames[] = {
18264 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18265 };
18266
18267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18270 arg2 = (int) SWIG_AsInt(obj1);
18271 if (PyErr_Occurred()) SWIG_fail;
18272 arg3 = (int) SWIG_AsInt(obj2);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 arg4 = (int) SWIG_AsInt(obj3);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 arg5 = (int) SWIG_AsInt(obj4);
18277 if (PyErr_Occurred()) SWIG_fail;
18278 if (obj5) {
18279 arg6 = (bool) SWIG_AsBool(obj5);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 if (obj6) {
18283 {
18284 arg7 = wxString_in_helper(obj6);
18285 if (arg7 == NULL) SWIG_fail;
18286 temp7 = True;
18287 }
18288 }
18289 if (obj7) {
18290 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18291 if (PyErr_Occurred()) SWIG_fail;
18292 }
18293 {
18294 PyThreadState* __tstate = wxPyBeginAllowThreads();
18295 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18296
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18301 {
18302 if (temp7)
18303 delete arg7;
18304 }
18305 return resultobj;
18306 fail:
18307 {
18308 if (temp7)
18309 delete arg7;
18310 }
18311 return NULL;
18312 }
18313
18314
18315 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18316 PyObject *resultobj;
18317 wxFontList *arg1 = (wxFontList *) 0 ;
18318 wxFont *arg2 = (wxFont *) 0 ;
18319 PyObject * obj0 = 0 ;
18320 PyObject * obj1 = 0 ;
18321 char *kwnames[] = {
18322 (char *) "self",(char *) "font", NULL
18323 };
18324
18325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18328 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18330 {
18331 PyThreadState* __tstate = wxPyBeginAllowThreads();
18332 (arg1)->RemoveFont(arg2);
18333
18334 wxPyEndAllowThreads(__tstate);
18335 if (PyErr_Occurred()) SWIG_fail;
18336 }
18337 Py_INCREF(Py_None); resultobj = Py_None;
18338 return resultobj;
18339 fail:
18340 return NULL;
18341 }
18342
18343
18344 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18345 PyObject *resultobj;
18346 wxFontList *arg1 = (wxFontList *) 0 ;
18347 int result;
18348 PyObject * obj0 = 0 ;
18349 char *kwnames[] = {
18350 (char *) "self", NULL
18351 };
18352
18353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18356 {
18357 PyThreadState* __tstate = wxPyBeginAllowThreads();
18358 result = (int)(arg1)->GetCount();
18359
18360 wxPyEndAllowThreads(__tstate);
18361 if (PyErr_Occurred()) SWIG_fail;
18362 }
18363 resultobj = SWIG_FromInt((int)result);
18364 return resultobj;
18365 fail:
18366 return NULL;
18367 }
18368
18369
18370 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18371 PyObject *obj;
18372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18373 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18374 Py_INCREF(obj);
18375 return Py_BuildValue((char *)"");
18376 }
18377 static int _wrap_TheFontList_set(PyObject *_val) {
18378 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18379 return 1;
18380 }
18381
18382
18383 static PyObject *_wrap_TheFontList_get() {
18384 PyObject *pyobj;
18385
18386 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18387 return pyobj;
18388 }
18389
18390
18391 static int _wrap_ThePenList_set(PyObject *_val) {
18392 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18393 return 1;
18394 }
18395
18396
18397 static PyObject *_wrap_ThePenList_get() {
18398 PyObject *pyobj;
18399
18400 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18401 return pyobj;
18402 }
18403
18404
18405 static int _wrap_TheBrushList_set(PyObject *_val) {
18406 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18407 return 1;
18408 }
18409
18410
18411 static PyObject *_wrap_TheBrushList_get() {
18412 PyObject *pyobj;
18413
18414 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18415 return pyobj;
18416 }
18417
18418
18419 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18420 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18421 return 1;
18422 }
18423
18424
18425 static PyObject *_wrap_TheColourDatabase_get() {
18426 PyObject *pyobj;
18427
18428 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18429 return pyobj;
18430 }
18431
18432
18433 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18434 PyObject *resultobj;
18435 wxEffects *result;
18436 char *kwnames[] = {
18437 NULL
18438 };
18439
18440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18441 {
18442 PyThreadState* __tstate = wxPyBeginAllowThreads();
18443 result = (wxEffects *)new wxEffects();
18444
18445 wxPyEndAllowThreads(__tstate);
18446 if (PyErr_Occurred()) SWIG_fail;
18447 }
18448 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18449 return resultobj;
18450 fail:
18451 return NULL;
18452 }
18453
18454
18455 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18456 PyObject *resultobj;
18457 wxEffects *arg1 = (wxEffects *) 0 ;
18458 wxColour result;
18459 PyObject * obj0 = 0 ;
18460 char *kwnames[] = {
18461 (char *) "self", NULL
18462 };
18463
18464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 result = ((wxEffects const *)arg1)->GetHighlightColour();
18470
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 {
18475 wxColour * resultptr;
18476 resultptr = new wxColour((wxColour &) result);
18477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18478 }
18479 return resultobj;
18480 fail:
18481 return NULL;
18482 }
18483
18484
18485 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18486 PyObject *resultobj;
18487 wxEffects *arg1 = (wxEffects *) 0 ;
18488 wxColour result;
18489 PyObject * obj0 = 0 ;
18490 char *kwnames[] = {
18491 (char *) "self", NULL
18492 };
18493
18494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18497 {
18498 PyThreadState* __tstate = wxPyBeginAllowThreads();
18499 result = ((wxEffects const *)arg1)->GetLightShadow();
18500
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 {
18505 wxColour * resultptr;
18506 resultptr = new wxColour((wxColour &) result);
18507 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18508 }
18509 return resultobj;
18510 fail:
18511 return NULL;
18512 }
18513
18514
18515 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18516 PyObject *resultobj;
18517 wxEffects *arg1 = (wxEffects *) 0 ;
18518 wxColour result;
18519 PyObject * obj0 = 0 ;
18520 char *kwnames[] = {
18521 (char *) "self", NULL
18522 };
18523
18524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = ((wxEffects const *)arg1)->GetFaceColour();
18530
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 {
18535 wxColour * resultptr;
18536 resultptr = new wxColour((wxColour &) result);
18537 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18538 }
18539 return resultobj;
18540 fail:
18541 return NULL;
18542 }
18543
18544
18545 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj;
18547 wxEffects *arg1 = (wxEffects *) 0 ;
18548 wxColour result;
18549 PyObject * obj0 = 0 ;
18550 char *kwnames[] = {
18551 (char *) "self", NULL
18552 };
18553
18554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18557 {
18558 PyThreadState* __tstate = wxPyBeginAllowThreads();
18559 result = ((wxEffects const *)arg1)->GetMediumShadow();
18560
18561 wxPyEndAllowThreads(__tstate);
18562 if (PyErr_Occurred()) SWIG_fail;
18563 }
18564 {
18565 wxColour * resultptr;
18566 resultptr = new wxColour((wxColour &) result);
18567 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18568 }
18569 return resultobj;
18570 fail:
18571 return NULL;
18572 }
18573
18574
18575 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18576 PyObject *resultobj;
18577 wxEffects *arg1 = (wxEffects *) 0 ;
18578 wxColour result;
18579 PyObject * obj0 = 0 ;
18580 char *kwnames[] = {
18581 (char *) "self", NULL
18582 };
18583
18584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18587 {
18588 PyThreadState* __tstate = wxPyBeginAllowThreads();
18589 result = ((wxEffects const *)arg1)->GetDarkShadow();
18590
18591 wxPyEndAllowThreads(__tstate);
18592 if (PyErr_Occurred()) SWIG_fail;
18593 }
18594 {
18595 wxColour * resultptr;
18596 resultptr = new wxColour((wxColour &) result);
18597 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18598 }
18599 return resultobj;
18600 fail:
18601 return NULL;
18602 }
18603
18604
18605 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18606 PyObject *resultobj;
18607 wxEffects *arg1 = (wxEffects *) 0 ;
18608 wxColour *arg2 = 0 ;
18609 wxColour temp2 ;
18610 PyObject * obj0 = 0 ;
18611 PyObject * obj1 = 0 ;
18612 char *kwnames[] = {
18613 (char *) "self",(char *) "c", NULL
18614 };
18615
18616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18619 {
18620 arg2 = &temp2;
18621 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18622 }
18623 {
18624 PyThreadState* __tstate = wxPyBeginAllowThreads();
18625 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18626
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 Py_INCREF(Py_None); resultobj = Py_None;
18631 return resultobj;
18632 fail:
18633 return NULL;
18634 }
18635
18636
18637 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18638 PyObject *resultobj;
18639 wxEffects *arg1 = (wxEffects *) 0 ;
18640 wxColour *arg2 = 0 ;
18641 wxColour temp2 ;
18642 PyObject * obj0 = 0 ;
18643 PyObject * obj1 = 0 ;
18644 char *kwnames[] = {
18645 (char *) "self",(char *) "c", NULL
18646 };
18647
18648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18651 {
18652 arg2 = &temp2;
18653 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18654 }
18655 {
18656 PyThreadState* __tstate = wxPyBeginAllowThreads();
18657 (arg1)->SetLightShadow((wxColour const &)*arg2);
18658
18659 wxPyEndAllowThreads(__tstate);
18660 if (PyErr_Occurred()) SWIG_fail;
18661 }
18662 Py_INCREF(Py_None); resultobj = Py_None;
18663 return resultobj;
18664 fail:
18665 return NULL;
18666 }
18667
18668
18669 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18670 PyObject *resultobj;
18671 wxEffects *arg1 = (wxEffects *) 0 ;
18672 wxColour *arg2 = 0 ;
18673 wxColour temp2 ;
18674 PyObject * obj0 = 0 ;
18675 PyObject * obj1 = 0 ;
18676 char *kwnames[] = {
18677 (char *) "self",(char *) "c", NULL
18678 };
18679
18680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18683 {
18684 arg2 = &temp2;
18685 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18686 }
18687 {
18688 PyThreadState* __tstate = wxPyBeginAllowThreads();
18689 (arg1)->SetFaceColour((wxColour const &)*arg2);
18690
18691 wxPyEndAllowThreads(__tstate);
18692 if (PyErr_Occurred()) SWIG_fail;
18693 }
18694 Py_INCREF(Py_None); resultobj = Py_None;
18695 return resultobj;
18696 fail:
18697 return NULL;
18698 }
18699
18700
18701 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18702 PyObject *resultobj;
18703 wxEffects *arg1 = (wxEffects *) 0 ;
18704 wxColour *arg2 = 0 ;
18705 wxColour temp2 ;
18706 PyObject * obj0 = 0 ;
18707 PyObject * obj1 = 0 ;
18708 char *kwnames[] = {
18709 (char *) "self",(char *) "c", NULL
18710 };
18711
18712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18715 {
18716 arg2 = &temp2;
18717 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18718 }
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18722
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 Py_INCREF(Py_None); resultobj = Py_None;
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj;
18735 wxEffects *arg1 = (wxEffects *) 0 ;
18736 wxColour *arg2 = 0 ;
18737 wxColour temp2 ;
18738 PyObject * obj0 = 0 ;
18739 PyObject * obj1 = 0 ;
18740 char *kwnames[] = {
18741 (char *) "self",(char *) "c", NULL
18742 };
18743
18744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18747 {
18748 arg2 = &temp2;
18749 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18750 }
18751 {
18752 PyThreadState* __tstate = wxPyBeginAllowThreads();
18753 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18754
18755 wxPyEndAllowThreads(__tstate);
18756 if (PyErr_Occurred()) SWIG_fail;
18757 }
18758 Py_INCREF(Py_None); resultobj = Py_None;
18759 return resultobj;
18760 fail:
18761 return NULL;
18762 }
18763
18764
18765 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18766 PyObject *resultobj;
18767 wxEffects *arg1 = (wxEffects *) 0 ;
18768 wxColour *arg2 = 0 ;
18769 wxColour *arg3 = 0 ;
18770 wxColour *arg4 = 0 ;
18771 wxColour *arg5 = 0 ;
18772 wxColour *arg6 = 0 ;
18773 wxColour temp2 ;
18774 wxColour temp3 ;
18775 wxColour temp4 ;
18776 wxColour temp5 ;
18777 wxColour temp6 ;
18778 PyObject * obj0 = 0 ;
18779 PyObject * obj1 = 0 ;
18780 PyObject * obj2 = 0 ;
18781 PyObject * obj3 = 0 ;
18782 PyObject * obj4 = 0 ;
18783 PyObject * obj5 = 0 ;
18784 char *kwnames[] = {
18785 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18786 };
18787
18788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18791 {
18792 arg2 = &temp2;
18793 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18794 }
18795 {
18796 arg3 = &temp3;
18797 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18798 }
18799 {
18800 arg4 = &temp4;
18801 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18802 }
18803 {
18804 arg5 = &temp5;
18805 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18806 }
18807 {
18808 arg6 = &temp6;
18809 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18810 }
18811 {
18812 PyThreadState* __tstate = wxPyBeginAllowThreads();
18813 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18814
18815 wxPyEndAllowThreads(__tstate);
18816 if (PyErr_Occurred()) SWIG_fail;
18817 }
18818 Py_INCREF(Py_None); resultobj = Py_None;
18819 return resultobj;
18820 fail:
18821 return NULL;
18822 }
18823
18824
18825 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18826 PyObject *resultobj;
18827 wxEffects *arg1 = (wxEffects *) 0 ;
18828 wxDC *arg2 = 0 ;
18829 wxRect *arg3 = 0 ;
18830 int arg4 = (int) 1 ;
18831 wxRect temp3 ;
18832 PyObject * obj0 = 0 ;
18833 PyObject * obj1 = 0 ;
18834 PyObject * obj2 = 0 ;
18835 PyObject * obj3 = 0 ;
18836 char *kwnames[] = {
18837 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18838 };
18839
18840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18844 SWIG_POINTER_EXCEPTION | 0)) == -1)
18845 SWIG_fail;
18846 if (arg2 == NULL) {
18847 PyErr_SetString(PyExc_TypeError,"null reference");
18848 SWIG_fail;
18849 }
18850 {
18851 arg3 = &temp3;
18852 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18853 }
18854 if (obj3) {
18855 arg4 = (int) SWIG_AsInt(obj3);
18856 if (PyErr_Occurred()) SWIG_fail;
18857 }
18858 {
18859 PyThreadState* __tstate = wxPyBeginAllowThreads();
18860 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18861
18862 wxPyEndAllowThreads(__tstate);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 }
18865 Py_INCREF(Py_None); resultobj = Py_None;
18866 return resultobj;
18867 fail:
18868 return NULL;
18869 }
18870
18871
18872 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18873 PyObject *resultobj;
18874 wxEffects *arg1 = (wxEffects *) 0 ;
18875 wxRect *arg2 = 0 ;
18876 wxDC *arg3 = 0 ;
18877 wxBitmap *arg4 = 0 ;
18878 bool result;
18879 wxRect temp2 ;
18880 PyObject * obj0 = 0 ;
18881 PyObject * obj1 = 0 ;
18882 PyObject * obj2 = 0 ;
18883 PyObject * obj3 = 0 ;
18884 char *kwnames[] = {
18885 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18886 };
18887
18888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18891 {
18892 arg2 = &temp2;
18893 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18894 }
18895 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18896 SWIG_POINTER_EXCEPTION | 0)) == -1)
18897 SWIG_fail;
18898 if (arg3 == NULL) {
18899 PyErr_SetString(PyExc_TypeError,"null reference");
18900 SWIG_fail;
18901 }
18902 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18903 SWIG_POINTER_EXCEPTION | 0)) == -1)
18904 SWIG_fail;
18905 if (arg4 == NULL) {
18906 PyErr_SetString(PyExc_TypeError,"null reference");
18907 SWIG_fail;
18908 }
18909 {
18910 PyThreadState* __tstate = wxPyBeginAllowThreads();
18911 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18912
18913 wxPyEndAllowThreads(__tstate);
18914 if (PyErr_Occurred()) SWIG_fail;
18915 }
18916 {
18917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18918 }
18919 return resultobj;
18920 fail:
18921 return NULL;
18922 }
18923
18924
18925 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18926 PyObject *obj;
18927 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18928 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18929 Py_INCREF(obj);
18930 return Py_BuildValue((char *)"");
18931 }
18932 static PyMethodDef SwigMethods[] = {
18933 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18934 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18935 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18936 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18937 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18938 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18939 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18942 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18943 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18945 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18947 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18948 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18949 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18951 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18952 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18953 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18954 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18956 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18957 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18958 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18959 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18962 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18963 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18965 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18966 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18967 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18969 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18970 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18971 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18972 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18973 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18974 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18975 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18977 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18981 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18984 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18991 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18994 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
19002 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
19010 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
19020 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
19025 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
19027 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
19029 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
19035 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
19045 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
19047 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
19048 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
19052 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
19053 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19055 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19056 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19057 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19061 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19064 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19066 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19067 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19079 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19090 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19099 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19106 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19107 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19120 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19121 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19141 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19144 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19153 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19163 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19164 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19170 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19173 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19185 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19192 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19193 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19194 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19201 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19202 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19210 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19216 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19218 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19225 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19246 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19247 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19249 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19257 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19258 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19259 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19261 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19269 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
19270 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19271 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
19272 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19273 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
19274 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19275 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
19276 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19281 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19283 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19290 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
19291 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19292 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19298 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19300 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19303 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19304 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19305 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19306 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19307 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19308 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19310 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19312 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19320 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19322 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19328 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19330 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19332 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19333 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19334 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19335 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19337 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19338 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19339 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19344 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19346 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19347 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19348 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19349 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19350 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19352 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19355 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19357 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19358 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
19362 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19364 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19367 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19370 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19372 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19377 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19381 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19382 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19383 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19384 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19386 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19387 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19388 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19389 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19390 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19391 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19392 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19393 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19394 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19395 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19396 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19397 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19399 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19401 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19402 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19403 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19404 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19405 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19406 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19407 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19408 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19410 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19413 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19416 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19419 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19421 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19422 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19423 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19424 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19425 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19426 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19427 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19428 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19429 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19430 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19431 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19432 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19433 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19434 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19435 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19436 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19437 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19438 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19439 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19440 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19441 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19442 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19443 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19444 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19445 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19446 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19447 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19448 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19449 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19450 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19451 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19452 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19453 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19454 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19455 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19456 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19457 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19458 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19459 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19460 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19461 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19462 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19463 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19464 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19465 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19466 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19467 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19468 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19469 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19470 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19471 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19472 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19473 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19474 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19475 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19476 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19477 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19478 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19479 { NULL, NULL }
19480 };
19481
19482
19483 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19484
19485 static void *_p_wxControlTo_p_wxWindow(void *x) {
19486 return (void *)((wxWindow *) ((wxControl *) x));
19487 }
19488 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19489 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19490 }
19491 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19492 return (void *)((wxWindow *) ((wxMenuBar *) x));
19493 }
19494 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19495 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19496 }
19497 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19498 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19499 }
19500 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19501 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19502 }
19503 static void *_p_wxPenTo_p_wxObject(void *x) {
19504 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19505 }
19506 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19507 return (void *)((wxObject *) ((wxRegionIterator *) x));
19508 }
19509 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19510 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19511 }
19512 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19513 return (void *)((wxObject *) ((wxSizerItem *) x));
19514 }
19515 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19516 return (void *)((wxObject *) ((wxColourDatabase *) x));
19517 }
19518 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19519 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19520 }
19521 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19522 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19523 }
19524 static void *_p_wxIconTo_p_wxObject(void *x) {
19525 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19526 }
19527 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19528 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19529 }
19530 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19531 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19532 }
19533 static void *_p_wxSizerTo_p_wxObject(void *x) {
19534 return (void *)((wxObject *) ((wxSizer *) x));
19535 }
19536 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19537 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19538 }
19539 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19540 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19541 }
19542 static void *_p_wxPenListTo_p_wxObject(void *x) {
19543 return (void *)((wxObject *) ((wxPenList *) x));
19544 }
19545 static void *_p_wxEventTo_p_wxObject(void *x) {
19546 return (void *)((wxObject *) ((wxEvent *) x));
19547 }
19548 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19549 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19550 }
19551 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19552 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19553 }
19554 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19555 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19556 }
19557 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19558 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19559 }
19560 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19561 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19562 }
19563 static void *_p_wxDCTo_p_wxObject(void *x) {
19564 return (void *)((wxObject *) ((wxDC *) x));
19565 }
19566 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19567 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19568 }
19569 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19570 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19571 }
19572 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19573 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19574 }
19575 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19576 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19577 }
19578 static void *_p_wxControlTo_p_wxObject(void *x) {
19579 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19580 }
19581 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19582 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19583 }
19584 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19585 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19586 }
19587 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19588 return (void *)((wxObject *) ((wxFSFile *) x));
19589 }
19590 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19591 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19592 }
19593 static void *_p_wxRegionTo_p_wxObject(void *x) {
19594 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19595 }
19596 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19597 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19598 }
19599 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19600 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19601 }
19602 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19603 return (void *)((wxObject *) ((wxGDIObject *) x));
19604 }
19605 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19606 return (void *)((wxObject *) ((wxEffects *) x));
19607 }
19608 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19609 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19610 }
19611 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19612 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19613 }
19614 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19615 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19616 }
19617 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19618 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19619 }
19620 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19621 return (void *)((wxObject *) ((wxMenuItem *) x));
19622 }
19623 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19624 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19625 }
19626 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19627 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19628 }
19629 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19630 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19631 }
19632 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19633 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19634 }
19635 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19636 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19637 }
19638 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19639 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19640 }
19641 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19642 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19643 }
19644 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19645 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19646 }
19647 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19648 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19649 }
19650 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19651 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19652 }
19653 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19654 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19655 }
19656 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19657 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19658 }
19659 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19660 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19661 }
19662 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19663 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19664 }
19665 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19666 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19667 }
19668 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19669 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19670 }
19671 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19672 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19673 }
19674 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19675 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19676 }
19677 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19678 return (void *)((wxObject *) ((wxImageHandler *) x));
19679 }
19680 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19681 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19682 }
19683 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19684 return (void *)((wxObject *) ((wxEvtHandler *) x));
19685 }
19686 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19687 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19688 }
19689 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19690 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19691 }
19692 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19693 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19694 }
19695 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19696 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19697 }
19698 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19699 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19700 }
19701 static void *_p_wxImageTo_p_wxObject(void *x) {
19702 return (void *)((wxObject *) ((wxImage *) x));
19703 }
19704 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19705 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19706 }
19707 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19708 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19709 }
19710 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19711 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19712 }
19713 static void *_p_wxImageListTo_p_wxObject(void *x) {
19714 return (void *)((wxObject *) ((wxImageList *) x));
19715 }
19716 static void *_p_wxCursorTo_p_wxObject(void *x) {
19717 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19718 }
19719 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19720 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19721 }
19722 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19723 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19724 }
19725 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19726 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19727 }
19728 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19729 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19730 }
19731 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19732 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19733 }
19734 static void *_p_wxWindowTo_p_wxObject(void *x) {
19735 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19736 }
19737 static void *_p_wxMenuTo_p_wxObject(void *x) {
19738 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19739 }
19740 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19741 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19742 }
19743 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19744 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19745 }
19746 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19747 return (void *)((wxObject *) ((wxBrushList *) x));
19748 }
19749 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19750 return (void *)((wxObject *) ((wxFileSystem *) x));
19751 }
19752 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19753 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19754 }
19755 static void *_p_wxMaskTo_p_wxObject(void *x) {
19756 return (void *)((wxObject *) ((wxMask *) x));
19757 }
19758 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19759 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19760 }
19761 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19762 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19763 }
19764 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19765 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19766 }
19767 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19768 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19769 }
19770 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19771 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19772 }
19773 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19774 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19775 }
19776 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19778 }
19779 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19780 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19781 }
19782 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19783 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19784 }
19785 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19786 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19787 }
19788 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19789 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19790 }
19791 static void *_p_wxFontTo_p_wxObject(void *x) {
19792 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19793 }
19794 static void *_p_wxBrushTo_p_wxObject(void *x) {
19795 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19796 }
19797 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19798 return (void *)((wxObject *) ((wxMetaFile *) x));
19799 }
19800 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19802 }
19803 static void *_p_wxColourTo_p_wxObject(void *x) {
19804 return (void *)((wxObject *) ((wxColour *) x));
19805 }
19806 static void *_p_wxFontListTo_p_wxObject(void *x) {
19807 return (void *)((wxObject *) ((wxFontList *) x));
19808 }
19809 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19810 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19811 }
19812 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19813 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19814 }
19815 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19816 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19817 }
19818 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19819 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19820 }
19821 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19822 return (void *)((wxDC *) ((wxScreenDC *) x));
19823 }
19824 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19825 return (void *)((wxDC *) ((wxMirrorDC *) x));
19826 }
19827 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19828 return (void *)((wxDC *) ((wxMemoryDC *) x));
19829 }
19830 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19831 return (void *)((wxDC *) ((wxWindowDC *) x));
19832 }
19833 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19834 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19835 }
19836 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19837 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19838 }
19839 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19840 return (void *)((wxDC *) ((wxClientDC *) x));
19841 }
19842 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19843 return (void *)((wxDC *) ((wxPaintDC *) x));
19844 }
19845 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19846 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19847 }
19848 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19849 return (void *)((wxDC *) ((wxPrinterDC *) x));
19850 }
19851 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19852 return (void *)((wxGDIObject *) ((wxIcon *) x));
19853 }
19854 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19855 return (void *)((wxGDIObject *) ((wxPalette *) x));
19856 }
19857 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19858 return (void *)((wxGDIObject *) ((wxPen *) x));
19859 }
19860 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19861 return (void *)((wxGDIObject *) ((wxFont *) x));
19862 }
19863 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19864 return (void *)((wxGDIObject *) ((wxCursor *) x));
19865 }
19866 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19867 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19868 }
19869 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19870 return (void *)((wxGDIObject *) ((wxRegion *) x));
19871 }
19872 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19873 return (void *)((wxGDIObject *) ((wxBrush *) x));
19874 }
19875 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0, 0, 0, 0},{"_p_wxPostScriptDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19876 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19877 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19878 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19879 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0, 0, 0, 0},{"_p_wxMirrorDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19880 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19881 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0, 0, 0, 0},{"_p_wxPyFontEnumerator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19882 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19883 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0, 0, 0, 0},{"_p_wxIconLocation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19884 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19885 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19886 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19887 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19888 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19889 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19890 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19891 static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19892 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19893 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0, 0, 0, 0},{"_p_wxEffects", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19894 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0, 0, 0, 0},{"_p_wxNativeEncodingInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19895 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19896 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19897 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19898 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0, 0, 0, 0},{"_p_wxRegionIterator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19899 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19900 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19901 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0, 0, 0, 0},{"_p_wxPrinterDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19902 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19903 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19904 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0, 0, 0, 0},{"_p_wxDash", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19905 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0, 0, 0, 0},{"_p_wxScreenDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19906 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19907 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0, 0, 0, 0},{"_p_wxClientDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19908 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19909 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19910 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19911 static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19912 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19913 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19914 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19915 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19916 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19917 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19918 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19919 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19920 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19921 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19922 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0, 0, 0, 0},{"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19923 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0, 0, 0, 0},{"_p_wxPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19924 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19925 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19926 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0, 0, 0, 0},{"_p_wxMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19927 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0, 0, 0, 0},{"_p_wxNativeFontInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19928 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0, 0, 0, 0},{"_p_wxEncodingConverter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19929 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19930
19931 static swig_type_info *swig_types_initial[] = {
19932 _swigt__p_wxPostScriptDC,
19933 _swigt__p_wxBrush,
19934 _swigt__p_wxColour,
19935 _swigt__p_wxDC,
19936 _swigt__p_wxMirrorDC,
19937 _swigt__p_byte,
19938 _swigt__p_wxPyFontEnumerator,
19939 _swigt__p_char,
19940 _swigt__p_wxIconLocation,
19941 _swigt__p_wxImage,
19942 _swigt__p_wxMetaFileDC,
19943 _swigt__p_wxMask,
19944 _swigt__p_wxSize,
19945 _swigt__p_wxFont,
19946 _swigt__p_wxWindow,
19947 _swigt__p_double,
19948 _swigt__p_wxMemoryDC,
19949 _swigt__p_wxFontMapper,
19950 _swigt__p_wxEffects,
19951 _swigt__p_wxNativeEncodingInfo,
19952 _swigt__p_wxPalette,
19953 _swigt__p_wxBitmap,
19954 _swigt__p_wxObject,
19955 _swigt__p_wxRegionIterator,
19956 _swigt__p_wxRect,
19957 _swigt__p_wxString,
19958 _swigt__p_wxPrinterDC,
19959 _swigt__p_wxIconBundle,
19960 _swigt__p_wxPoint,
19961 _swigt__p_wxDash,
19962 _swigt__p_wxScreenDC,
19963 _swigt__p_wxCursor,
19964 _swigt__p_wxClientDC,
19965 _swigt__p_wxBufferedDC,
19966 _swigt__p_wxImageList,
19967 _swigt__p_unsigned_char,
19968 _swigt__p_wxGDIObject,
19969 _swigt__p_wxIcon,
19970 _swigt__p_wxLocale,
19971 _swigt__p_wxRegion,
19972 _swigt__p_wxLanguageInfo,
19973 _swigt__p_wxConfigBase,
19974 _swigt__p_wxWindowDC,
19975 _swigt__p_wxPrintData,
19976 _swigt__p_wxBrushList,
19977 _swigt__p_wxFontList,
19978 _swigt__p_wxPen,
19979 _swigt__p_wxBufferedPaintDC,
19980 _swigt__p_wxPaintDC,
19981 _swigt__p_wxPenList,
19982 _swigt__p_int,
19983 _swigt__p_wxMetaFile,
19984 _swigt__p_wxNativeFontInfo,
19985 _swigt__p_wxEncodingConverter,
19986 _swigt__p_wxColourDatabase,
19987 0
19988 };
19989
19990
19991 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19992
19993 static swig_const_info swig_const_table[] = {
19994 {0}};
19995
19996 #ifdef __cplusplus
19997 }
19998 #endif
19999
20000 #ifdef __cplusplus
20001 extern "C"
20002 #endif
20003 SWIGEXPORT(void) SWIG_init(void) {
20004 static PyObject *SWIG_globals = 0;
20005 static int typeinit = 0;
20006 PyObject *m, *d;
20007 int i;
20008 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20009 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20010 d = PyModule_GetDict(m);
20011
20012 if (!typeinit) {
20013 for (i = 0; swig_types_initial[i]; i++) {
20014 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20015 }
20016 typeinit = 1;
20017 }
20018 SWIG_InstallConstants(d,swig_const_table);
20019
20020 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
20021 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
20022 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
20023 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
20024 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
20025 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
20026 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
20027 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
20028 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
20029 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
20030 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
20031 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
20032 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
20033 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
20034 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
20035 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
20036 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
20037 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
20038 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
20039 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
20040 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
20041 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
20042 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
20043 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
20044 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
20045 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
20046 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20047 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20048 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20049 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20050 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20051 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20052 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20053 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20054 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20055 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20056 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20057 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20058 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20059 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20060 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20061 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20062 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20063 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20064 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20065 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20066 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20067 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20068 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20069 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
20070 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20071 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20072 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20073 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20074 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20075 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20076 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20077 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20078 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20079 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20080 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20081 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20082 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20083 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20084 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20085 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20086 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20087 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20088 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20089 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20090 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20091 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20092 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20093 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20094 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20095 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20096 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20097 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20098 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20099 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20100 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20101 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20102 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20103 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20104 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20105 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20106 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20107 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20108 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20109 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20110 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20111 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20112 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20113 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20114 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20115 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20116 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20117 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20118 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20119 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20120 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20121 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20122 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20123 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20124 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20125 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20126 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20127 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20128 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20129 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20130 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20131 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20132 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20133 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20134 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20135 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20136 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20137 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20138 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20139 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20140 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20141 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20142 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20143 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20144 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20145 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20146 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
20147
20148 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20149
20150 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20151 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20152 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20153 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20154 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20155 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20156 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20157 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20158 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20159 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20160 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20161 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20162 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20163 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20164 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20165 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20166 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20167 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20168 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20169 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20170 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20171 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20172 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20173 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20174 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20175 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20176 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20177 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20178 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20179 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20180 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20181 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20182 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20183 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20184 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20185 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20186 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20187 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20188 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20189 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20190 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20191 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20192 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20193 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20194 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20195 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20196 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20197 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20198 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20199 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20200 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20201 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20202 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20203 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20204 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20205 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20206 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20207 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20208 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20209 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20210 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20211 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20212 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20213 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20214 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20215 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20216 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20217 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20218 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20219 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20220 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20221 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20222 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20223 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20224 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20225 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20226 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20227 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20228 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20229 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20230 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20231 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20232 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20233 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20234 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20235 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20236 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20237 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20238 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20239 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20240 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20241 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20242 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20243 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20244 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20245 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20246 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20247 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20248 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20249 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20250 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20251 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20252 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20253 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20254 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20255 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20256 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20257 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20258 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20259 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20260 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20261 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20262 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20263 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20264 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20265 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20266 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20267 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20268 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20269 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20270 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20271 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20272 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20273 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20274 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20275 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20276 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20277 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20278 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20279 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20280 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20281 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20282 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20283 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20284 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20285 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20286 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20287 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20288 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20289 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20290 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20291 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20292 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20293 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20294 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20295 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20296 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20297 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20298 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20299 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20300 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20301 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20302 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20303 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20304 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20305 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20306 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20307 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20308 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20309 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20310 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20311 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20312 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20313 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20314 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20315 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20316 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20317 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20318 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20319 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20320 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20321 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20322 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20323 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20324 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20325 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20326 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20327 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20328 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20329 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20330 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20331 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20332 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20333 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20334 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20335 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20336 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20337 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20338 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20339 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20340 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20341 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20342 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20343 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20344 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20345 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20346 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20347 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20348 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20349 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20350 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20351 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20352 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20353 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20354 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20355 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20356 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20357 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20358 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20359 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20360 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20361 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20362 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20363 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20364 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20365 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20366 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20367 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20368 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20369 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20370 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20371 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20372 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20373 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20374 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20375 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20376 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20377 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20378 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20379 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20380 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20381 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20382 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20383 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20384 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20385 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20386 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20387 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20388 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20389 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20390 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20391 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20392 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20393 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20394 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20395 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20396 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20397 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20398 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20399 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20400 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20401 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20402 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20403 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20404 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20405 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20406 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20407 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20408 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20409 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20410 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20411 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20412 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20413 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20414 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20415 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20416 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20417 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20418 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20419 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20420 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20421 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20422 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20423 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20424 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20425 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20426 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20427 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20428 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20429 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20430 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20431 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20432 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20433 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20434 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20435 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20436 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20437 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20438 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20439 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20440 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20441 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20442 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20443 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20444 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20445 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20446 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20447 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20448 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20449 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20450
20451 // Work around a chicken/egg problem in drawlist.cpp
20452 wxPyDrawList_SetAPIPtr();
20453
20454 }
20455