]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.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_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
212 #define SWIGTYPE_p_wxBrush swig_types[1]
213 #define SWIGTYPE_p_wxColour swig_types[2]
214 #define SWIGTYPE_p_wxDC swig_types[3]
215 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
216 #define SWIGTYPE_p_byte swig_types[5]
217 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
218 #define SWIGTYPE_p_char swig_types[7]
219 #define SWIGTYPE_p_wxIconLocation swig_types[8]
220 #define SWIGTYPE_p_wxImage swig_types[9]
221 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
222 #define SWIGTYPE_p_wxMask swig_types[11]
223 #define SWIGTYPE_p_wxSize swig_types[12]
224 #define SWIGTYPE_p_wxFont swig_types[13]
225 #define SWIGTYPE_p_wxWindow swig_types[14]
226 #define SWIGTYPE_p_double swig_types[15]
227 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
228 #define SWIGTYPE_p_wxFontMapper swig_types[17]
229 #define SWIGTYPE_p_wxEffects swig_types[18]
230 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
231 #define SWIGTYPE_p_wxPalette swig_types[20]
232 #define SWIGTYPE_p_wxBitmap swig_types[21]
233 #define SWIGTYPE_p_wxObject swig_types[22]
234 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
235 #define SWIGTYPE_p_wxRect swig_types[24]
236 #define SWIGTYPE_p_wxString swig_types[25]
237 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
238 #define SWIGTYPE_p_wxIconBundle swig_types[27]
239 #define SWIGTYPE_p_wxPoint swig_types[28]
240 #define SWIGTYPE_p_wxDash swig_types[29]
241 #define SWIGTYPE_p_wxScreenDC swig_types[30]
242 #define SWIGTYPE_p_wxCursor swig_types[31]
243 #define SWIGTYPE_p_wxClientDC swig_types[32]
244 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
245 #define SWIGTYPE_p_wxImageList swig_types[34]
246 #define SWIGTYPE_p_unsigned_char swig_types[35]
247 #define SWIGTYPE_p_wxGDIObject swig_types[36]
248 #define SWIGTYPE_p_wxIcon swig_types[37]
249 #define SWIGTYPE_p_wxLocale swig_types[38]
250 #define SWIGTYPE_p_wxRegion swig_types[39]
251 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
252 #define SWIGTYPE_p_wxConfigBase swig_types[41]
253 #define SWIGTYPE_p_wxWindowDC swig_types[42]
254 #define SWIGTYPE_p_wxPrintData swig_types[43]
255 #define SWIGTYPE_p_wxBrushList swig_types[44]
256 #define SWIGTYPE_p_wxFontList swig_types[45]
257 #define SWIGTYPE_p_wxPen swig_types[46]
258 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
259 #define SWIGTYPE_p_wxPaintDC swig_types[48]
260 #define SWIGTYPE_p_wxPenList swig_types[49]
261 #define SWIGTYPE_p_int swig_types[50]
262 #define SWIGTYPE_p_wxMetaFile swig_types[51]
263 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
264 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
265 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
266 static swig_type_info *swig_types[56];
267
268 /* -------- TYPES TABLE (END) -------- */
269
270
271 /*-----------------------------------------------
272 @(target):= _gdi_.so
273 ------------------------------------------------*/
274 #define SWIG_init init_gdi_
275
276 #define SWIG_name "_gdi_"
277
278 /* Auxiliar swig macros that appear in the header */
279
280 #define SWIG_OLDOBJ 1
281 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
282 #define SWIG_PYSTR SWIG_NEWOBJ + 1
283
284 #ifdef __cplusplus
285 #define SWIGSTATICINLINE(a) static inline a
286 #define SWIGSTATIC(a) static a
287 #define swig_new_array(size,Type) (new Type[(size)])
288 #define swig_delete(cptr) delete cptr
289 #define swig_delete_array(cptr) delete[] cptr
290 #define swig_const_cast(a,Type) const_cast<Type >(a)
291 #define swig_static_cast(a,Type) static_cast<Type >(a)
292 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
293 #define swig_new_copy(ptr,Type) (new Type(*ptr))
294 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
295
296 #else /* C case */
297
298 #define SWIGSTATICINLINE(a) static a
299 #define SWIGSTATIC(a) static a
300 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
301 #define swig_delete(cptr) free((char*)cptr)
302 #define swig_delete_array(cptr) free((char*)cptr)
303 #define swig_const_cast(a,Type) (Type)(a)
304 #define swig_static_cast(a,Type) (Type)(a)
305 #define swig_reinterpret_cast(a,Type) (Type)(a)
306 #define swig_numeric_cast(a,Type) (Type)(a)
307 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
308
309 #endif /* __cplusplus */
310
311
312 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
313 #define SWIG_From_signed_SS_char PyInt_FromLong
314 /*@@*/
315 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
316 #define SWIG_From_unsigned_SS_char PyInt_FromLong
317 /*@@*/
318 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
319 #define SWIG_From_short PyInt_FromLong
320 /*@@*/
321 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
322 #define SWIG_From_unsigned_SS_short PyInt_FromLong
323 /*@@*/
324 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
325 #define SWIG_From_int PyInt_FromLong
326 /*@@*/
327 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
328 #define SWIG_From_long PyInt_FromLong
329 /*@@*/
330 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
331 #define SWIG_From_float PyFloat_FromDouble
332 /*@@*/
333 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
334 #define SWIG_From_double PyFloat_FromDouble
335 /*@@*/
336
337
338 #include "wx/wxPython/wxPython.h"
339 #include "wx/wxPython/pyclasses.h"
340
341
342 static const wxString wxPyEmptyString(wxEmptyString);
343
344 #include <limits.h>
345
346
347 SWIGSTATICINLINE(int)
348 SWIG_CheckLongInRange(long value, long min_value, long max_value,
349 const char *errmsg)
350 {
351 if (value < min_value) {
352 if (errmsg) {
353 PyErr_Format(PyExc_OverflowError,
354 "value %ld is less than '%s' minimum %ld",
355 value, errmsg, min_value);
356 }
357 return 0;
358 } else if (value > max_value) {
359 if (errmsg) {
360 PyErr_Format(PyExc_OverflowError,
361 "value %ld is greater than '%s' maximum %ld",
362 value, errmsg, max_value);
363 }
364 return 0;
365 }
366 return 1;
367 }
368
369
370 // See my_fragments.i
371 SWIGSTATICINLINE(int)
372 SWIG_AsVal_long(PyObject* obj, long* val)
373 {
374 if (PyNumber_Check(obj)) {
375 if (val) *val = PyInt_AsLong(obj);
376 return 1;
377 }
378 else {
379 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
380 obj->ob_type->tp_name);
381 PyErr_SetObject(PyExc_TypeError, errmsg);
382 Py_DECREF(errmsg);
383 }
384 return 0;
385 }
386
387
388 #if INT_MAX != LONG_MAX
389 SWIGSTATICINLINE(int)
390 SWIG_AsVal_int(PyObject *obj, int *val)
391 {
392 const char* errmsg = val ? "int" : 0;
393 long v;
394 if (SWIG_AsVal_long(obj, &v)) {
395 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
396 if (val) *val = swig_numeric_cast(v, int);
397 return 1;
398 } else {
399 return 0;
400 }
401 } else {
402 PyErr_Clear();
403 }
404 if (val) {
405 PyErr_SetString(PyExc_TypeError, "an int is expected");
406 }
407 return 0;
408 }
409 #else
410 SWIGSTATICINLINE(int)
411 SWIG_AsVal_int(PyObject *obj, int *val)
412 {
413 return SWIG_AsVal_long(obj,(long*)val);
414 }
415 #endif
416
417
418 SWIGSTATICINLINE(int)
419 SWIG_AsVal_bool(PyObject *obj, bool *val)
420 {
421 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
422 if (obj == Py_True) {
423 if (val) *val = true;
424 return 1;
425 }
426 if (obj == Py_False) {
427 if (val) *val = false;
428 return 1;
429 }
430 int res = 0;
431 if (SWIG_AsVal_int(obj, &res)) {
432 if (val) *val = (bool)res;
433 return 1;
434 }
435 if (val) {
436 PyErr_SetString(PyExc_TypeError, "a bool is expected");
437 }
438 return 0;
439 }
440
441
442 SWIGSTATICINLINE(bool)
443 SWIG_As_bool(PyObject* obj)
444 {
445 bool v;
446 if (!SWIG_AsVal_bool(obj, &v)) {
447 /*
448 this is needed to make valgrind/purify happier. the other
449 solution is throw an exception, but since this code should work
450 with plain C ....
451 */
452 memset((void*)&v, 0, sizeof(bool));
453 }
454 return v;
455 }
456
457
458 SWIGSTATICINLINE(int)
459 SWIG_Check_bool(PyObject* obj)
460 {
461 return SWIG_AsVal_bool(obj, (bool*)0);
462 }
463
464
465 // See my_fragments.i
466 SWIGSTATICINLINE(int)
467 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
468 {
469 long v = 0;
470 if (SWIG_AsVal_long(obj, &v) && v < 0) {
471 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
472 return 0;
473 }
474 else if (val)
475 *val = (unsigned long)v;
476 return 1;
477 }
478
479
480 SWIGSTATICINLINE(int)
481 SWIG_CheckUnsignedLongInRange(unsigned long value,
482 unsigned long max_value,
483 const char *errmsg)
484 {
485 if (value > max_value) {
486 if (errmsg) {
487 PyErr_Format(PyExc_OverflowError,
488 "value %ld is greater than '%s' minimum %ld",
489 value, errmsg, max_value);
490 }
491 return 0;
492 }
493 return 1;
494 }
495
496
497 SWIGSTATICINLINE(int)
498 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
499 {
500 const char* errmsg = val ? "unsigned char" : 0;
501 unsigned long v;
502 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
503 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
504 if (val) *val = swig_numeric_cast(v, unsigned char);
505 return 1;
506 } else {
507 return 0;
508 }
509 } else {
510 PyErr_Clear();
511 }
512 if (val) {
513 PyErr_SetString(PyExc_TypeError, "an unsigned char is expected");
514 }
515 return 0;
516 }
517
518
519 SWIGSTATICINLINE(unsigned char)
520 SWIG_As_unsigned_SS_char(PyObject* obj)
521 {
522 unsigned char v;
523 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
524 /*
525 this is needed to make valgrind/purify happier. the other
526 solution is throw an exception, but since this code should work
527 with plain C ....
528 */
529 memset((void*)&v, 0, sizeof(unsigned char));
530 }
531 return v;
532 }
533
534
535 SWIGSTATICINLINE(int)
536 SWIG_Check_unsigned_SS_char(PyObject* obj)
537 {
538 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
539 }
540
541
542 SWIGSTATICINLINE(unsigned long)
543 SWIG_As_unsigned_SS_long(PyObject* obj)
544 {
545 unsigned long v;
546 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
547 /*
548 this is needed to make valgrind/purify happier. the other
549 solution is throw an exception, but since this code should work
550 with plain C ....
551 */
552 memset((void*)&v, 0, sizeof(unsigned long));
553 }
554 return v;
555 }
556
557
558 SWIGSTATICINLINE(int)
559 SWIG_Check_unsigned_SS_long(PyObject* obj)
560 {
561 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
562 }
563
564 PyObject *wxColour_Get(wxColour *self){
565 PyObject* rv = PyTuple_New(3);
566 int red = -1;
567 int green = -1;
568 int blue = -1;
569 if (self->Ok()) {
570 red = self->Red();
571 green = self->Green();
572 blue = self->Blue();
573 }
574 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
575 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
576 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
577 return rv;
578 }
579 unsigned long wxColour_GetRGB(wxColour *self){
580 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
581 }
582
583 SWIGSTATICINLINE(PyObject* )
584 SWIG_From_unsigned_SS_long(unsigned long value)
585 {
586 return (value > LONG_MAX) ?
587 PyLong_FromUnsignedLong(value)
588 : PyInt_FromLong(swig_numeric_cast(value,long));
589 }
590
591
592 SWIGSTATICINLINE(int)
593 SWIG_As_int(PyObject* obj)
594 {
595 int v;
596 if (!SWIG_AsVal_int(obj, &v)) {
597 /*
598 this is needed to make valgrind/purify happier. the other
599 solution is throw an exception, but since this code should work
600 with plain C ....
601 */
602 memset((void*)&v, 0, sizeof(int));
603 }
604 return v;
605 }
606
607
608 SWIGSTATICINLINE(int)
609 SWIG_Check_int(PyObject* obj)
610 {
611 return SWIG_AsVal_int(obj, (int*)0);
612 }
613
614
615 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
616 PyObject* o2;
617 PyObject* o3;
618
619 if (!target) {
620 target = o;
621 } else if (target == Py_None) {
622 Py_DECREF(Py_None);
623 target = o;
624 } else {
625 if (!PyTuple_Check(target)) {
626 o2 = target;
627 target = PyTuple_New(1);
628 PyTuple_SetItem(target, 0, o2);
629 }
630 o3 = PyTuple_New(1);
631 PyTuple_SetItem(o3, 0, o);
632
633 o2 = target;
634 target = PySequence_Concat(o2, o3);
635 Py_DECREF(o2);
636 Py_DECREF(o3);
637 }
638 return target;
639 }
640
641
642 PyObject *wxPen_GetDashes(wxPen *self){
643 wxDash* dashes;
644 int count = self->GetDashes(&dashes);
645 bool blocked = wxPyBeginBlockThreads();
646 PyObject* retval = PyList_New(0);
647 for (int x=0; x<count; x++) {
648 PyObject* pyint = PyInt_FromLong(dashes[x]);
649 PyList_Append(retval, pyint);
650 Py_DECREF(pyint);
651 }
652 wxPyEndBlockThreads(blocked);
653 return retval;
654 }
655 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
656 bool blocked = wxPyBeginBlockThreads();
657 int size = PyList_Size(pyDashes);
658 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
659
660 // black magic warning! The array of wxDashes needs to exist as
661 // long as the pen does because wxPen does not copy the array. So
662 // stick a copy in a Python string object and attach it to _self,
663 // and then call SetDashes with a pointer to that array. Then
664 // when the Python pen object is destroyed the array will be
665 // cleaned up too.
666 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
667 PyObject_SetAttrString(_self, "_dashes", strDashes);
668
669 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
670 delete [] dashes;
671 Py_DECREF(strDashes);
672 wxPyEndBlockThreads(blocked);
673 }
674 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
675 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
676
677 SWIGSTATICINLINE(int)
678 SWIG_AsVal_short(PyObject *obj, short *val)
679 {
680 const char* errmsg = val ? "short" : 0;
681 long v;
682 if (SWIG_AsVal_long(obj, &v)) {
683 if (SWIG_CheckLongInRange(v, SHRT_MIN, SHRT_MAX, errmsg)) {
684 if (val) *val = swig_numeric_cast(v, short);
685 return 1;
686 } else {
687 return 0;
688 }
689 } else {
690 PyErr_Clear();
691 }
692 if (val) {
693 PyErr_SetString(PyExc_TypeError, "a short is expected");
694 }
695 return 0;
696 }
697
698
699 SWIGSTATICINLINE(short)
700 SWIG_As_short(PyObject* obj)
701 {
702 short v;
703 if (!SWIG_AsVal_short(obj, &v)) {
704 /*
705 this is needed to make valgrind/purify happier. the other
706 solution is throw an exception, but since this code should work
707 with plain C ....
708 */
709 memset((void*)&v, 0, sizeof(short));
710 }
711 return v;
712 }
713
714
715 SWIGSTATICINLINE(int)
716 SWIG_Check_short(PyObject* obj)
717 {
718 return SWIG_AsVal_short(obj, (short*)0);
719 }
720
721
722 #include <wx/image.h>
723
724 static char** ConvertListOfStrings(PyObject* listOfStrings) {
725 char** cArray = NULL;
726 int count;
727
728 if (!PyList_Check(listOfStrings)) {
729 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
730 return NULL;
731 }
732 count = PyList_Size(listOfStrings);
733 cArray = new char*[count];
734
735 for(int x=0; x<count; x++) {
736 // TODO: Need some validation and error checking here
737 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
738 }
739 return cArray;
740 }
741
742
743 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
744 char** cArray = NULL;
745 wxBitmap* bmp;
746
747 cArray = ConvertListOfStrings(listOfStrings);
748 if (! cArray)
749 return NULL;
750 bmp = new wxBitmap(cArray);
751 delete [] cArray;
752 return bmp;
753 }
754 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
755 char* buf;
756 int length;
757 PyString_AsStringAndSize(bits, &buf, &length);
758 return new wxBitmap(buf, width, height, depth);
759 }
760 wxSize wxBitmap_GetSize(wxBitmap *self){
761 wxSize size(self->GetWidth(), self->GetHeight());
762 return size;
763 }
764 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
765 wxMask *mask = new wxMask(*self, colour);
766 self->SetMask(mask);
767 }
768 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
769 self->SetWidth(size.x);
770 self->SetHeight(size.y);
771 }
772 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
773 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
774 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
775 if ( !colour.Ok() )
776 return new wxMask(bitmap, *wxBLACK);
777 else
778 return new wxMask(bitmap, colour);
779 }
780
781 #include <wx/iconbndl.h>
782
783 wxIcon *new_wxIcon(wxBitmap const &bmp){
784 wxIcon* icon = new wxIcon();
785 icon->CopyFromBitmap(bmp);
786 return icon;
787 }
788 wxIcon *new_wxIcon(PyObject *listOfStrings){
789 char** cArray = NULL;
790 wxIcon* icon;
791
792 cArray = ConvertListOfStrings(listOfStrings);
793 if (! cArray)
794 return NULL;
795 icon = new wxIcon(cArray);
796 delete [] cArray;
797 return icon;
798 }
799 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
800
801
802
803 return new wxIconLocation(*filename);
804
805 }
806 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
807
808
809
810 // do nothing
811
812 }
813 int wxIconLocation_GetIndex(wxIconLocation *self){
814
815
816
817 return -1;
818
819 }
820
821 SWIGSTATICINLINE(long)
822 SWIG_As_long(PyObject* obj)
823 {
824 long v;
825 if (!SWIG_AsVal_long(obj, &v)) {
826 /*
827 this is needed to make valgrind/purify happier. the other
828 solution is throw an exception, but since this code should work
829 with plain C ....
830 */
831 memset((void*)&v, 0, sizeof(long));
832 }
833 return v;
834 }
835
836
837 SWIGSTATICINLINE(int)
838 SWIG_Check_long(PyObject* obj)
839 {
840 return SWIG_AsVal_long(obj, (long*)0);
841 }
842
843 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
844 #ifdef __WXGTK__
845 wxCHECK_MSG(false, NULL,
846 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
847 #else
848 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
849 #endif
850 }
851
852
853 void wxRegionIterator_Next(wxRegionIterator *self){
854 (*self) ++;
855 }
856 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
857 return self->operator bool();
858 }
859
860 #include <wx/fontutil.h>
861 #include <wx/fontmap.h>
862 #include <wx/fontenum.h>
863
864 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
865 return self->ToString();
866 }
867
868 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
869 static wxNativeEncodingInfo info;
870 if ( wxGetNativeFontEncoding(encoding, &info) )
871 return &info;
872 else
873 return NULL;
874 }
875
876 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
877 wxFontEncoding alt_enc;
878 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
879 return PyInt_FromLong(alt_enc);
880 else {
881 Py_INCREF(Py_None);
882 return Py_None;
883 }
884 }
885 wxFont *new_wxFont(wxString const &info){
886 wxNativeFontInfo nfi;
887 nfi.FromString(info);
888 return new wxFont(nfi);
889 }
890 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
891 return wxFont::New(pointSize, family, flags, face, encoding);
892 }
893 wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){
894 return wxFontBase::New(pixelSize, family,
895 style, weight, underlined,
896 face, encoding);
897 }
898 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
899 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
900
901 class wxPyFontEnumerator : public wxFontEnumerator {
902 public:
903 wxPyFontEnumerator() {}
904 ~wxPyFontEnumerator() {}
905
906 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
907 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
908
909 PYPRIVATE;
910 };
911
912 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
913 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
914
915
916 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
917 wxArrayString* arr = self->GetEncodings();
918 if (arr)
919 return wxArrayString2PyList_helper(*arr);
920 else
921 return PyList_New(0);
922 }
923 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
924 wxArrayString* arr = self->GetFacenames();
925 if (arr)
926 return wxArrayString2PyList_helper(*arr);
927 else
928 return PyList_New(0);
929 }
930
931
932 wxLocale *new_wxLocale(int language,int flags){
933 if (language == -1)
934 return new wxLocale();
935 else
936 return new wxLocale(language, flags);
937 }
938
939 #include "wx/wxPython/pydrawxxx.h"
940
941 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
942 wxColour col;
943 self->GetPixel(x, y, &col);
944 return col;
945 }
946 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
947 wxColour col;
948 self->GetPixel(pt, &col);
949 return col;
950 }
951
952 // See my_fragments.i
953 SWIGSTATICINLINE(int)
954 SWIG_AsVal_double(PyObject *obj, double* val)
955 {
956 if (PyNumber_Check(obj)) {
957 if (val) *val = PyFloat_AsDouble(obj);
958 return 1;
959 }
960 else {
961 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
962 obj->ob_type->tp_name);
963 PyErr_SetObject(PyExc_TypeError, errmsg);
964 Py_DECREF(errmsg);
965 }
966 return 0;
967 }
968
969
970 SWIGSTATICINLINE(double)
971 SWIG_As_double(PyObject* obj)
972 {
973 double v;
974 if (!SWIG_AsVal_double(obj, &v)) {
975 /*
976 this is needed to make valgrind/purify happier. the other
977 solution is throw an exception, but since this code should work
978 with plain C ....
979 */
980 memset((void*)&v, 0, sizeof(double));
981 }
982 return v;
983 }
984
985
986 SWIGSTATICINLINE(int)
987 SWIG_Check_double(PyObject* obj)
988 {
989 return SWIG_AsVal_double(obj, (double*)0);
990 }
991
992 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
993 wxRect rv;
994 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
995 return rv;
996 }
997
998 wxRect wxDC_GetClippingRect(wxDC *self){
999 wxRect rect;
1000 self->GetClippingBox(rect);
1001 return rect;
1002 }
1003 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
1004 wxArrayInt widths;
1005 self->GetPartialTextExtents(text, widths);
1006 return widths;
1007 }
1008
1009 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
1010 self->SetLogicalOrigin(point.x, point.y);
1011 }
1012 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
1013 self->SetDeviceOrigin(point.x, point.y);
1014 }
1015 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
1016 self->CalcBoundingBox(point.x, point.y);
1017 }
1018 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1019 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
1020 }
1021 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1022 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
1023 }
1024 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1025 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
1026 }
1027 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1028 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
1029 }
1030 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1031 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
1032 }
1033 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
1034 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
1035 }
1036
1037 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
1038 *x1 = dc->MinX();
1039 *y1 = dc->MinY();
1040 *x2 = dc->MaxX();
1041 *y2 = dc->MaxY();
1042 }
1043
1044
1045 #include <wx/dcbuffer.h>
1046
1047
1048 #include <wx/dcps.h>
1049
1050
1051 #include <wx/metafile.h>
1052
1053
1054
1055 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1056 self->AddColour(name, wxColour(red, green, blue));
1057 }
1058
1059 #include <wx/effects.h>
1060
1061 #ifdef __cplusplus
1062 extern "C" {
1063 #endif
1064 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1065 PyObject *resultobj;
1066 wxGDIObject *result;
1067 char *kwnames[] = {
1068 NULL
1069 };
1070
1071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1072 {
1073 if (!wxPyCheckForApp()) SWIG_fail;
1074 PyThreadState* __tstate = wxPyBeginAllowThreads();
1075 result = (wxGDIObject *)new wxGDIObject();
1076
1077 wxPyEndAllowThreads(__tstate);
1078 if (PyErr_Occurred()) SWIG_fail;
1079 }
1080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1081 return resultobj;
1082 fail:
1083 return NULL;
1084 }
1085
1086
1087 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1088 PyObject *resultobj;
1089 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1090 PyObject * obj0 = 0 ;
1091 char *kwnames[] = {
1092 (char *) "self", NULL
1093 };
1094
1095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1098 {
1099 PyThreadState* __tstate = wxPyBeginAllowThreads();
1100 delete arg1;
1101
1102 wxPyEndAllowThreads(__tstate);
1103 if (PyErr_Occurred()) SWIG_fail;
1104 }
1105 Py_INCREF(Py_None); resultobj = Py_None;
1106 return resultobj;
1107 fail:
1108 return NULL;
1109 }
1110
1111
1112 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1113 PyObject *resultobj;
1114 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1115 bool result;
1116 PyObject * obj0 = 0 ;
1117 char *kwnames[] = {
1118 (char *) "self", NULL
1119 };
1120
1121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1124 {
1125 PyThreadState* __tstate = wxPyBeginAllowThreads();
1126 result = (bool)(arg1)->GetVisible();
1127
1128 wxPyEndAllowThreads(__tstate);
1129 if (PyErr_Occurred()) SWIG_fail;
1130 }
1131 {
1132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1133 }
1134 return resultobj;
1135 fail:
1136 return NULL;
1137 }
1138
1139
1140 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1141 PyObject *resultobj;
1142 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1143 bool arg2 ;
1144 PyObject * obj0 = 0 ;
1145 PyObject * obj1 = 0 ;
1146 char *kwnames[] = {
1147 (char *) "self",(char *) "visible", NULL
1148 };
1149
1150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1153 arg2 = (bool)SWIG_As_bool(obj1);
1154 if (PyErr_Occurred()) SWIG_fail;
1155 {
1156 PyThreadState* __tstate = wxPyBeginAllowThreads();
1157 (arg1)->SetVisible(arg2);
1158
1159 wxPyEndAllowThreads(__tstate);
1160 if (PyErr_Occurred()) SWIG_fail;
1161 }
1162 Py_INCREF(Py_None); resultobj = Py_None;
1163 return resultobj;
1164 fail:
1165 return NULL;
1166 }
1167
1168
1169 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1170 PyObject *resultobj;
1171 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1172 bool result;
1173 PyObject * obj0 = 0 ;
1174 char *kwnames[] = {
1175 (char *) "self", NULL
1176 };
1177
1178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1181 {
1182 PyThreadState* __tstate = wxPyBeginAllowThreads();
1183 result = (bool)(arg1)->IsNull();
1184
1185 wxPyEndAllowThreads(__tstate);
1186 if (PyErr_Occurred()) SWIG_fail;
1187 }
1188 {
1189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1190 }
1191 return resultobj;
1192 fail:
1193 return NULL;
1194 }
1195
1196
1197 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1198 PyObject *obj;
1199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1200 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1201 Py_INCREF(obj);
1202 return Py_BuildValue((char *)"");
1203 }
1204 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1205 PyObject *resultobj;
1206 byte arg1 = (byte) 0 ;
1207 byte arg2 = (byte) 0 ;
1208 byte arg3 = (byte) 0 ;
1209 wxColour *result;
1210 PyObject * obj0 = 0 ;
1211 PyObject * obj1 = 0 ;
1212 PyObject * obj2 = 0 ;
1213 char *kwnames[] = {
1214 (char *) "red",(char *) "green",(char *) "blue", NULL
1215 };
1216
1217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1218 if (obj0) {
1219 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
1220 if (PyErr_Occurred()) SWIG_fail;
1221 }
1222 if (obj1) {
1223 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1224 if (PyErr_Occurred()) SWIG_fail;
1225 }
1226 if (obj2) {
1227 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1228 if (PyErr_Occurred()) SWIG_fail;
1229 }
1230 {
1231 PyThreadState* __tstate = wxPyBeginAllowThreads();
1232 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1233
1234 wxPyEndAllowThreads(__tstate);
1235 if (PyErr_Occurred()) SWIG_fail;
1236 }
1237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1238 return resultobj;
1239 fail:
1240 return NULL;
1241 }
1242
1243
1244 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1245 PyObject *resultobj;
1246 wxString *arg1 = 0 ;
1247 wxColour *result;
1248 bool temp1 = false ;
1249 PyObject * obj0 = 0 ;
1250 char *kwnames[] = {
1251 (char *) "colorName", NULL
1252 };
1253
1254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1255 {
1256 arg1 = wxString_in_helper(obj0);
1257 if (arg1 == NULL) SWIG_fail;
1258 temp1 = true;
1259 }
1260 {
1261 if (!wxPyCheckForApp()) SWIG_fail;
1262 PyThreadState* __tstate = wxPyBeginAllowThreads();
1263 result = (wxColour *)new wxColour((wxString const &)*arg1);
1264
1265 wxPyEndAllowThreads(__tstate);
1266 if (PyErr_Occurred()) SWIG_fail;
1267 }
1268 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1269 {
1270 if (temp1)
1271 delete arg1;
1272 }
1273 return resultobj;
1274 fail:
1275 {
1276 if (temp1)
1277 delete arg1;
1278 }
1279 return NULL;
1280 }
1281
1282
1283 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1284 PyObject *resultobj;
1285 unsigned long arg1 ;
1286 wxColour *result;
1287 PyObject * obj0 = 0 ;
1288 char *kwnames[] = {
1289 (char *) "colRGB", NULL
1290 };
1291
1292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1293 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
1294 if (PyErr_Occurred()) SWIG_fail;
1295 {
1296 PyThreadState* __tstate = wxPyBeginAllowThreads();
1297 result = (wxColour *)new wxColour(arg1);
1298
1299 wxPyEndAllowThreads(__tstate);
1300 if (PyErr_Occurred()) SWIG_fail;
1301 }
1302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1303 return resultobj;
1304 fail:
1305 return NULL;
1306 }
1307
1308
1309 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1310 PyObject *resultobj;
1311 wxColour *arg1 = (wxColour *) 0 ;
1312 PyObject * obj0 = 0 ;
1313 char *kwnames[] = {
1314 (char *) "self", NULL
1315 };
1316
1317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1320 {
1321 PyThreadState* __tstate = wxPyBeginAllowThreads();
1322 delete arg1;
1323
1324 wxPyEndAllowThreads(__tstate);
1325 if (PyErr_Occurred()) SWIG_fail;
1326 }
1327 Py_INCREF(Py_None); resultobj = Py_None;
1328 return resultobj;
1329 fail:
1330 return NULL;
1331 }
1332
1333
1334 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1335 PyObject *resultobj;
1336 wxColour *arg1 = (wxColour *) 0 ;
1337 byte result;
1338 PyObject * obj0 = 0 ;
1339 char *kwnames[] = {
1340 (char *) "self", NULL
1341 };
1342
1343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1346 {
1347 PyThreadState* __tstate = wxPyBeginAllowThreads();
1348 result = (byte)(arg1)->Red();
1349
1350 wxPyEndAllowThreads(__tstate);
1351 if (PyErr_Occurred()) SWIG_fail;
1352 }
1353 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1354 return resultobj;
1355 fail:
1356 return NULL;
1357 }
1358
1359
1360 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1361 PyObject *resultobj;
1362 wxColour *arg1 = (wxColour *) 0 ;
1363 byte result;
1364 PyObject * obj0 = 0 ;
1365 char *kwnames[] = {
1366 (char *) "self", NULL
1367 };
1368
1369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1372 {
1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
1374 result = (byte)(arg1)->Green();
1375
1376 wxPyEndAllowThreads(__tstate);
1377 if (PyErr_Occurred()) SWIG_fail;
1378 }
1379 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1380 return resultobj;
1381 fail:
1382 return NULL;
1383 }
1384
1385
1386 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1387 PyObject *resultobj;
1388 wxColour *arg1 = (wxColour *) 0 ;
1389 byte result;
1390 PyObject * obj0 = 0 ;
1391 char *kwnames[] = {
1392 (char *) "self", NULL
1393 };
1394
1395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1398 {
1399 PyThreadState* __tstate = wxPyBeginAllowThreads();
1400 result = (byte)(arg1)->Blue();
1401
1402 wxPyEndAllowThreads(__tstate);
1403 if (PyErr_Occurred()) SWIG_fail;
1404 }
1405 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1406 return resultobj;
1407 fail:
1408 return NULL;
1409 }
1410
1411
1412 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1413 PyObject *resultobj;
1414 wxColour *arg1 = (wxColour *) 0 ;
1415 bool result;
1416 PyObject * obj0 = 0 ;
1417 char *kwnames[] = {
1418 (char *) "self", NULL
1419 };
1420
1421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1424 {
1425 PyThreadState* __tstate = wxPyBeginAllowThreads();
1426 result = (bool)(arg1)->Ok();
1427
1428 wxPyEndAllowThreads(__tstate);
1429 if (PyErr_Occurred()) SWIG_fail;
1430 }
1431 {
1432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1433 }
1434 return resultobj;
1435 fail:
1436 return NULL;
1437 }
1438
1439
1440 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1441 PyObject *resultobj;
1442 wxColour *arg1 = (wxColour *) 0 ;
1443 byte arg2 ;
1444 byte arg3 ;
1445 byte arg4 ;
1446 PyObject * obj0 = 0 ;
1447 PyObject * obj1 = 0 ;
1448 PyObject * obj2 = 0 ;
1449 PyObject * obj3 = 0 ;
1450 char *kwnames[] = {
1451 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1452 };
1453
1454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1457 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1458 if (PyErr_Occurred()) SWIG_fail;
1459 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1460 if (PyErr_Occurred()) SWIG_fail;
1461 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1462 if (PyErr_Occurred()) SWIG_fail;
1463 {
1464 PyThreadState* __tstate = wxPyBeginAllowThreads();
1465 (arg1)->Set(arg2,arg3,arg4);
1466
1467 wxPyEndAllowThreads(__tstate);
1468 if (PyErr_Occurred()) SWIG_fail;
1469 }
1470 Py_INCREF(Py_None); resultobj = Py_None;
1471 return resultobj;
1472 fail:
1473 return NULL;
1474 }
1475
1476
1477 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1478 PyObject *resultobj;
1479 wxColour *arg1 = (wxColour *) 0 ;
1480 unsigned long arg2 ;
1481 PyObject * obj0 = 0 ;
1482 PyObject * obj1 = 0 ;
1483 char *kwnames[] = {
1484 (char *) "self",(char *) "colRGB", NULL
1485 };
1486
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1490 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
1491 if (PyErr_Occurred()) SWIG_fail;
1492 {
1493 PyThreadState* __tstate = wxPyBeginAllowThreads();
1494 (arg1)->Set(arg2);
1495
1496 wxPyEndAllowThreads(__tstate);
1497 if (PyErr_Occurred()) SWIG_fail;
1498 }
1499 Py_INCREF(Py_None); resultobj = Py_None;
1500 return resultobj;
1501 fail:
1502 return NULL;
1503 }
1504
1505
1506 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1507 PyObject *resultobj;
1508 wxColour *arg1 = (wxColour *) 0 ;
1509 wxString *arg2 = 0 ;
1510 bool temp2 = false ;
1511 PyObject * obj0 = 0 ;
1512 PyObject * obj1 = 0 ;
1513 char *kwnames[] = {
1514 (char *) "self",(char *) "colourName", NULL
1515 };
1516
1517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1520 {
1521 arg2 = wxString_in_helper(obj1);
1522 if (arg2 == NULL) SWIG_fail;
1523 temp2 = true;
1524 }
1525 {
1526 PyThreadState* __tstate = wxPyBeginAllowThreads();
1527 (arg1)->InitFromName((wxString const &)*arg2);
1528
1529 wxPyEndAllowThreads(__tstate);
1530 if (PyErr_Occurred()) SWIG_fail;
1531 }
1532 Py_INCREF(Py_None); resultobj = Py_None;
1533 {
1534 if (temp2)
1535 delete arg2;
1536 }
1537 return resultobj;
1538 fail:
1539 {
1540 if (temp2)
1541 delete arg2;
1542 }
1543 return NULL;
1544 }
1545
1546
1547 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1548 PyObject *resultobj;
1549 wxColour *arg1 = (wxColour *) 0 ;
1550 long result;
1551 PyObject * obj0 = 0 ;
1552 char *kwnames[] = {
1553 (char *) "self", NULL
1554 };
1555
1556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1559 {
1560 PyThreadState* __tstate = wxPyBeginAllowThreads();
1561 result = (long)((wxColour const *)arg1)->GetPixel();
1562
1563 wxPyEndAllowThreads(__tstate);
1564 if (PyErr_Occurred()) SWIG_fail;
1565 }
1566 resultobj = SWIG_From_long((long)result);
1567 return resultobj;
1568 fail:
1569 return NULL;
1570 }
1571
1572
1573 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1574 PyObject *resultobj;
1575 wxColour *arg1 = (wxColour *) 0 ;
1576 wxColour *arg2 = 0 ;
1577 bool result;
1578 wxColour temp2 ;
1579 PyObject * obj0 = 0 ;
1580 PyObject * obj1 = 0 ;
1581 char *kwnames[] = {
1582 (char *) "self",(char *) "colour", NULL
1583 };
1584
1585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1588 {
1589 arg2 = &temp2;
1590 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1591 }
1592 {
1593 PyThreadState* __tstate = wxPyBeginAllowThreads();
1594 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1595
1596 wxPyEndAllowThreads(__tstate);
1597 if (PyErr_Occurred()) SWIG_fail;
1598 }
1599 {
1600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1601 }
1602 return resultobj;
1603 fail:
1604 return NULL;
1605 }
1606
1607
1608 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1609 PyObject *resultobj;
1610 wxColour *arg1 = (wxColour *) 0 ;
1611 wxColour *arg2 = 0 ;
1612 bool result;
1613 wxColour temp2 ;
1614 PyObject * obj0 = 0 ;
1615 PyObject * obj1 = 0 ;
1616 char *kwnames[] = {
1617 (char *) "self",(char *) "colour", NULL
1618 };
1619
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1623 {
1624 arg2 = &temp2;
1625 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1626 }
1627 {
1628 PyThreadState* __tstate = wxPyBeginAllowThreads();
1629 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1630
1631 wxPyEndAllowThreads(__tstate);
1632 if (PyErr_Occurred()) SWIG_fail;
1633 }
1634 {
1635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1636 }
1637 return resultobj;
1638 fail:
1639 return NULL;
1640 }
1641
1642
1643 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1644 PyObject *resultobj;
1645 wxColour *arg1 = (wxColour *) 0 ;
1646 PyObject *result;
1647 PyObject * obj0 = 0 ;
1648 char *kwnames[] = {
1649 (char *) "self", NULL
1650 };
1651
1652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1655 {
1656 PyThreadState* __tstate = wxPyBeginAllowThreads();
1657 result = (PyObject *)wxColour_Get(arg1);
1658
1659 wxPyEndAllowThreads(__tstate);
1660 if (PyErr_Occurred()) SWIG_fail;
1661 }
1662 resultobj = result;
1663 return resultobj;
1664 fail:
1665 return NULL;
1666 }
1667
1668
1669 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1670 PyObject *resultobj;
1671 wxColour *arg1 = (wxColour *) 0 ;
1672 unsigned long result;
1673 PyObject * obj0 = 0 ;
1674 char *kwnames[] = {
1675 (char *) "self", NULL
1676 };
1677
1678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1681 {
1682 PyThreadState* __tstate = wxPyBeginAllowThreads();
1683 result = (unsigned long)wxColour_GetRGB(arg1);
1684
1685 wxPyEndAllowThreads(__tstate);
1686 if (PyErr_Occurred()) SWIG_fail;
1687 }
1688 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
1689 return resultobj;
1690 fail:
1691 return NULL;
1692 }
1693
1694
1695 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1696 PyObject *obj;
1697 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1698 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1699 Py_INCREF(obj);
1700 return Py_BuildValue((char *)"");
1701 }
1702 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1703 PyObject *resultobj;
1704 int arg1 ;
1705 unsigned char *arg2 = (unsigned char *) 0 ;
1706 unsigned char *arg3 = (unsigned char *) 0 ;
1707 unsigned char *arg4 = (unsigned char *) 0 ;
1708 wxPalette *result;
1709 PyObject * obj0 = 0 ;
1710 PyObject * obj1 = 0 ;
1711 PyObject * obj2 = 0 ;
1712 PyObject * obj3 = 0 ;
1713 char *kwnames[] = {
1714 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1715 };
1716
1717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1718 arg1 = (int)SWIG_As_int(obj0);
1719 if (PyErr_Occurred()) SWIG_fail;
1720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1722 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1724 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1726 {
1727 if (!wxPyCheckForApp()) SWIG_fail;
1728 PyThreadState* __tstate = wxPyBeginAllowThreads();
1729 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1730
1731 wxPyEndAllowThreads(__tstate);
1732 if (PyErr_Occurred()) SWIG_fail;
1733 }
1734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1735 return resultobj;
1736 fail:
1737 return NULL;
1738 }
1739
1740
1741 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1742 PyObject *resultobj;
1743 wxPalette *arg1 = (wxPalette *) 0 ;
1744 PyObject * obj0 = 0 ;
1745 char *kwnames[] = {
1746 (char *) "self", NULL
1747 };
1748
1749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
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_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1767 PyObject *resultobj;
1768 wxPalette *arg1 = (wxPalette *) 0 ;
1769 byte arg2 ;
1770 byte arg3 ;
1771 byte arg4 ;
1772 int result;
1773 PyObject * obj0 = 0 ;
1774 PyObject * obj1 = 0 ;
1775 PyObject * obj2 = 0 ;
1776 PyObject * obj3 = 0 ;
1777 char *kwnames[] = {
1778 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1779 };
1780
1781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1784 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1785 if (PyErr_Occurred()) SWIG_fail;
1786 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1787 if (PyErr_Occurred()) SWIG_fail;
1788 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1789 if (PyErr_Occurred()) SWIG_fail;
1790 {
1791 PyThreadState* __tstate = wxPyBeginAllowThreads();
1792 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1793
1794 wxPyEndAllowThreads(__tstate);
1795 if (PyErr_Occurred()) SWIG_fail;
1796 }
1797 resultobj = SWIG_From_int((int)result);
1798 return resultobj;
1799 fail:
1800 return NULL;
1801 }
1802
1803
1804 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1805 PyObject *resultobj;
1806 wxPalette *arg1 = (wxPalette *) 0 ;
1807 int arg2 ;
1808 byte *arg3 = (byte *) 0 ;
1809 byte *arg4 = (byte *) 0 ;
1810 byte *arg5 = (byte *) 0 ;
1811 bool result;
1812 byte temp3 ;
1813 int res3 = 0 ;
1814 byte temp4 ;
1815 int res4 = 0 ;
1816 byte temp5 ;
1817 int res5 = 0 ;
1818 PyObject * obj0 = 0 ;
1819 PyObject * obj1 = 0 ;
1820 char *kwnames[] = {
1821 (char *) "self",(char *) "pixel", NULL
1822 };
1823
1824 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1825 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1826 arg5 = &temp5; res5 = SWIG_NEWOBJ;
1827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1830 arg2 = (int)SWIG_As_int(obj1);
1831 if (PyErr_Occurred()) SWIG_fail;
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 {
1840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1841 }
1842 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1843 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1844 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1845 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1846 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1847 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
1848 return resultobj;
1849 fail:
1850 return NULL;
1851 }
1852
1853
1854 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1855 PyObject *resultobj;
1856 wxPalette *arg1 = (wxPalette *) 0 ;
1857 bool result;
1858 PyObject * obj0 = 0 ;
1859 char *kwnames[] = {
1860 (char *) "self", NULL
1861 };
1862
1863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1866 {
1867 PyThreadState* __tstate = wxPyBeginAllowThreads();
1868 result = (bool)(arg1)->Ok();
1869
1870 wxPyEndAllowThreads(__tstate);
1871 if (PyErr_Occurred()) SWIG_fail;
1872 }
1873 {
1874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1875 }
1876 return resultobj;
1877 fail:
1878 return NULL;
1879 }
1880
1881
1882 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1883 PyObject *obj;
1884 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1885 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1886 Py_INCREF(obj);
1887 return Py_BuildValue((char *)"");
1888 }
1889 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1890 PyObject *resultobj;
1891 wxColour *arg1 = 0 ;
1892 int arg2 = (int) 1 ;
1893 int arg3 = (int) wxSOLID ;
1894 wxPen *result;
1895 wxColour temp1 ;
1896 PyObject * obj0 = 0 ;
1897 PyObject * obj1 = 0 ;
1898 PyObject * obj2 = 0 ;
1899 char *kwnames[] = {
1900 (char *) "colour",(char *) "width",(char *) "style", NULL
1901 };
1902
1903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1904 {
1905 arg1 = &temp1;
1906 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1907 }
1908 if (obj1) {
1909 arg2 = (int)SWIG_As_int(obj1);
1910 if (PyErr_Occurred()) SWIG_fail;
1911 }
1912 if (obj2) {
1913 arg3 = (int)SWIG_As_int(obj2);
1914 if (PyErr_Occurred()) SWIG_fail;
1915 }
1916 {
1917 if (!wxPyCheckForApp()) SWIG_fail;
1918 PyThreadState* __tstate = wxPyBeginAllowThreads();
1919 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1920
1921 wxPyEndAllowThreads(__tstate);
1922 if (PyErr_Occurred()) SWIG_fail;
1923 }
1924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1925 return resultobj;
1926 fail:
1927 return NULL;
1928 }
1929
1930
1931 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1932 PyObject *resultobj;
1933 wxPen *arg1 = (wxPen *) 0 ;
1934 PyObject * obj0 = 0 ;
1935 char *kwnames[] = {
1936 (char *) "self", NULL
1937 };
1938
1939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1942 {
1943 PyThreadState* __tstate = wxPyBeginAllowThreads();
1944 delete arg1;
1945
1946 wxPyEndAllowThreads(__tstate);
1947 if (PyErr_Occurred()) SWIG_fail;
1948 }
1949 Py_INCREF(Py_None); resultobj = Py_None;
1950 return resultobj;
1951 fail:
1952 return NULL;
1953 }
1954
1955
1956 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1957 PyObject *resultobj;
1958 wxPen *arg1 = (wxPen *) 0 ;
1959 int result;
1960 PyObject * obj0 = 0 ;
1961 char *kwnames[] = {
1962 (char *) "self", NULL
1963 };
1964
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1968 {
1969 PyThreadState* __tstate = wxPyBeginAllowThreads();
1970 result = (int)(arg1)->GetCap();
1971
1972 wxPyEndAllowThreads(__tstate);
1973 if (PyErr_Occurred()) SWIG_fail;
1974 }
1975 resultobj = SWIG_From_int((int)result);
1976 return resultobj;
1977 fail:
1978 return NULL;
1979 }
1980
1981
1982 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1983 PyObject *resultobj;
1984 wxPen *arg1 = (wxPen *) 0 ;
1985 wxColour result;
1986 PyObject * obj0 = 0 ;
1987 char *kwnames[] = {
1988 (char *) "self", NULL
1989 };
1990
1991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1994 {
1995 PyThreadState* __tstate = wxPyBeginAllowThreads();
1996 result = (arg1)->GetColour();
1997
1998 wxPyEndAllowThreads(__tstate);
1999 if (PyErr_Occurred()) SWIG_fail;
2000 }
2001 {
2002 wxColour * resultptr;
2003 resultptr = new wxColour((wxColour &) result);
2004 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2005 }
2006 return resultobj;
2007 fail:
2008 return NULL;
2009 }
2010
2011
2012 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2013 PyObject *resultobj;
2014 wxPen *arg1 = (wxPen *) 0 ;
2015 int result;
2016 PyObject * obj0 = 0 ;
2017 char *kwnames[] = {
2018 (char *) "self", NULL
2019 };
2020
2021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
2022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2024 {
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
2026 result = (int)(arg1)->GetJoin();
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) SWIG_fail;
2030 }
2031 resultobj = SWIG_From_int((int)result);
2032 return resultobj;
2033 fail:
2034 return NULL;
2035 }
2036
2037
2038 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2039 PyObject *resultobj;
2040 wxPen *arg1 = (wxPen *) 0 ;
2041 int result;
2042 PyObject * obj0 = 0 ;
2043 char *kwnames[] = {
2044 (char *) "self", NULL
2045 };
2046
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2050 {
2051 PyThreadState* __tstate = wxPyBeginAllowThreads();
2052 result = (int)(arg1)->GetStyle();
2053
2054 wxPyEndAllowThreads(__tstate);
2055 if (PyErr_Occurred()) SWIG_fail;
2056 }
2057 resultobj = SWIG_From_int((int)result);
2058 return resultobj;
2059 fail:
2060 return NULL;
2061 }
2062
2063
2064 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2065 PyObject *resultobj;
2066 wxPen *arg1 = (wxPen *) 0 ;
2067 int result;
2068 PyObject * obj0 = 0 ;
2069 char *kwnames[] = {
2070 (char *) "self", NULL
2071 };
2072
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2076 {
2077 PyThreadState* __tstate = wxPyBeginAllowThreads();
2078 result = (int)(arg1)->GetWidth();
2079
2080 wxPyEndAllowThreads(__tstate);
2081 if (PyErr_Occurred()) SWIG_fail;
2082 }
2083 resultobj = SWIG_From_int((int)result);
2084 return resultobj;
2085 fail:
2086 return NULL;
2087 }
2088
2089
2090 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2091 PyObject *resultobj;
2092 wxPen *arg1 = (wxPen *) 0 ;
2093 bool result;
2094 PyObject * obj0 = 0 ;
2095 char *kwnames[] = {
2096 (char *) "self", NULL
2097 };
2098
2099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2102 {
2103 PyThreadState* __tstate = wxPyBeginAllowThreads();
2104 result = (bool)(arg1)->Ok();
2105
2106 wxPyEndAllowThreads(__tstate);
2107 if (PyErr_Occurred()) SWIG_fail;
2108 }
2109 {
2110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2111 }
2112 return resultobj;
2113 fail:
2114 return NULL;
2115 }
2116
2117
2118 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2119 PyObject *resultobj;
2120 wxPen *arg1 = (wxPen *) 0 ;
2121 int arg2 ;
2122 PyObject * obj0 = 0 ;
2123 PyObject * obj1 = 0 ;
2124 char *kwnames[] = {
2125 (char *) "self",(char *) "cap_style", NULL
2126 };
2127
2128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2131 arg2 = (int)SWIG_As_int(obj1);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 {
2134 PyThreadState* __tstate = wxPyBeginAllowThreads();
2135 (arg1)->SetCap(arg2);
2136
2137 wxPyEndAllowThreads(__tstate);
2138 if (PyErr_Occurred()) SWIG_fail;
2139 }
2140 Py_INCREF(Py_None); resultobj = Py_None;
2141 return resultobj;
2142 fail:
2143 return NULL;
2144 }
2145
2146
2147 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2148 PyObject *resultobj;
2149 wxPen *arg1 = (wxPen *) 0 ;
2150 wxColour *arg2 = 0 ;
2151 wxColour temp2 ;
2152 PyObject * obj0 = 0 ;
2153 PyObject * obj1 = 0 ;
2154 char *kwnames[] = {
2155 (char *) "self",(char *) "colour", NULL
2156 };
2157
2158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2161 {
2162 arg2 = &temp2;
2163 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2164 }
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 (arg1)->SetColour(*arg2);
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 Py_INCREF(Py_None); resultobj = Py_None;
2173 return resultobj;
2174 fail:
2175 return NULL;
2176 }
2177
2178
2179 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2180 PyObject *resultobj;
2181 wxPen *arg1 = (wxPen *) 0 ;
2182 int arg2 ;
2183 PyObject * obj0 = 0 ;
2184 PyObject * obj1 = 0 ;
2185 char *kwnames[] = {
2186 (char *) "self",(char *) "join_style", NULL
2187 };
2188
2189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2192 arg2 = (int)SWIG_As_int(obj1);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 {
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 (arg1)->SetJoin(arg2);
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 Py_INCREF(Py_None); resultobj = Py_None;
2202 return resultobj;
2203 fail:
2204 return NULL;
2205 }
2206
2207
2208 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2209 PyObject *resultobj;
2210 wxPen *arg1 = (wxPen *) 0 ;
2211 int arg2 ;
2212 PyObject * obj0 = 0 ;
2213 PyObject * obj1 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "self",(char *) "style", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2221 arg2 = (int)SWIG_As_int(obj1);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 {
2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
2225 (arg1)->SetStyle(arg2);
2226
2227 wxPyEndAllowThreads(__tstate);
2228 if (PyErr_Occurred()) SWIG_fail;
2229 }
2230 Py_INCREF(Py_None); resultobj = Py_None;
2231 return resultobj;
2232 fail:
2233 return NULL;
2234 }
2235
2236
2237 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2238 PyObject *resultobj;
2239 wxPen *arg1 = (wxPen *) 0 ;
2240 int arg2 ;
2241 PyObject * obj0 = 0 ;
2242 PyObject * obj1 = 0 ;
2243 char *kwnames[] = {
2244 (char *) "self",(char *) "width", NULL
2245 };
2246
2247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2250 arg2 = (int)SWIG_As_int(obj1);
2251 if (PyErr_Occurred()) SWIG_fail;
2252 {
2253 PyThreadState* __tstate = wxPyBeginAllowThreads();
2254 (arg1)->SetWidth(arg2);
2255
2256 wxPyEndAllowThreads(__tstate);
2257 if (PyErr_Occurred()) SWIG_fail;
2258 }
2259 Py_INCREF(Py_None); resultobj = Py_None;
2260 return resultobj;
2261 fail:
2262 return NULL;
2263 }
2264
2265
2266 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2267 PyObject *resultobj;
2268 wxPen *arg1 = (wxPen *) 0 ;
2269 int arg2 ;
2270 wxDash *arg3 = (wxDash *) 0 ;
2271 PyObject * obj0 = 0 ;
2272 PyObject * obj1 = 0 ;
2273 char *kwnames[] = {
2274 (char *) "self",(char *) "dashes", NULL
2275 };
2276
2277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2280 {
2281 arg2 = PyList_Size(obj1);
2282 arg3 = (wxDash*)byte_LIST_helper(obj1);
2283 if (arg3 == NULL) SWIG_fail;
2284 }
2285 {
2286 PyThreadState* __tstate = wxPyBeginAllowThreads();
2287 (arg1)->SetDashes(arg2,arg3);
2288
2289 wxPyEndAllowThreads(__tstate);
2290 if (PyErr_Occurred()) SWIG_fail;
2291 }
2292 Py_INCREF(Py_None); resultobj = Py_None;
2293 {
2294 if (arg3) delete [] arg3;
2295 }
2296 return resultobj;
2297 fail:
2298 {
2299 if (arg3) delete [] arg3;
2300 }
2301 return NULL;
2302 }
2303
2304
2305 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2306 PyObject *resultobj;
2307 wxPen *arg1 = (wxPen *) 0 ;
2308 PyObject *result;
2309 PyObject * obj0 = 0 ;
2310 char *kwnames[] = {
2311 (char *) "self", NULL
2312 };
2313
2314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2317 {
2318 PyThreadState* __tstate = wxPyBeginAllowThreads();
2319 result = (PyObject *)wxPen_GetDashes(arg1);
2320
2321 wxPyEndAllowThreads(__tstate);
2322 if (PyErr_Occurred()) SWIG_fail;
2323 }
2324 resultobj = result;
2325 return resultobj;
2326 fail:
2327 return NULL;
2328 }
2329
2330
2331 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2332 PyObject *resultobj;
2333 wxPen *arg1 = (wxPen *) 0 ;
2334 PyObject *arg2 = (PyObject *) 0 ;
2335 PyObject *arg3 = (PyObject *) 0 ;
2336 PyObject * obj0 = 0 ;
2337 PyObject * obj1 = 0 ;
2338 PyObject * obj2 = 0 ;
2339 char *kwnames[] = {
2340 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2341 };
2342
2343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2346 arg2 = obj1;
2347 arg3 = obj2;
2348 {
2349 PyThreadState* __tstate = wxPyBeginAllowThreads();
2350 wxPen__SetDashes(arg1,arg2,arg3);
2351
2352 wxPyEndAllowThreads(__tstate);
2353 if (PyErr_Occurred()) SWIG_fail;
2354 }
2355 Py_INCREF(Py_None); resultobj = Py_None;
2356 return resultobj;
2357 fail:
2358 return NULL;
2359 }
2360
2361
2362 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2363 PyObject *resultobj;
2364 wxPen *arg1 = (wxPen *) 0 ;
2365 wxPen *arg2 = (wxPen *) 0 ;
2366 bool result;
2367 PyObject * obj0 = 0 ;
2368 PyObject * obj1 = 0 ;
2369 char *kwnames[] = {
2370 (char *) "self",(char *) "other", NULL
2371 };
2372
2373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2378 {
2379 PyThreadState* __tstate = wxPyBeginAllowThreads();
2380 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2381
2382 wxPyEndAllowThreads(__tstate);
2383 if (PyErr_Occurred()) SWIG_fail;
2384 }
2385 {
2386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2387 }
2388 return resultobj;
2389 fail:
2390 return NULL;
2391 }
2392
2393
2394 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2395 PyObject *resultobj;
2396 wxPen *arg1 = (wxPen *) 0 ;
2397 wxPen *arg2 = (wxPen *) 0 ;
2398 bool result;
2399 PyObject * obj0 = 0 ;
2400 PyObject * obj1 = 0 ;
2401 char *kwnames[] = {
2402 (char *) "self",(char *) "other", NULL
2403 };
2404
2405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2408 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2410 {
2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
2412 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2413
2414 wxPyEndAllowThreads(__tstate);
2415 if (PyErr_Occurred()) SWIG_fail;
2416 }
2417 {
2418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2419 }
2420 return resultobj;
2421 fail:
2422 return NULL;
2423 }
2424
2425
2426 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2427 PyObject *obj;
2428 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2429 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2430 Py_INCREF(obj);
2431 return Py_BuildValue((char *)"");
2432 }
2433 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2434 PyObject *resultobj;
2435 wxColour *arg1 = 0 ;
2436 int arg2 = (int) wxSOLID ;
2437 wxBrush *result;
2438 wxColour temp1 ;
2439 PyObject * obj0 = 0 ;
2440 PyObject * obj1 = 0 ;
2441 char *kwnames[] = {
2442 (char *) "colour",(char *) "style", NULL
2443 };
2444
2445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2446 {
2447 arg1 = &temp1;
2448 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2449 }
2450 if (obj1) {
2451 arg2 = (int)SWIG_As_int(obj1);
2452 if (PyErr_Occurred()) SWIG_fail;
2453 }
2454 {
2455 if (!wxPyCheckForApp()) SWIG_fail;
2456 PyThreadState* __tstate = wxPyBeginAllowThreads();
2457 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2458
2459 wxPyEndAllowThreads(__tstate);
2460 if (PyErr_Occurred()) SWIG_fail;
2461 }
2462 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2463 return resultobj;
2464 fail:
2465 return NULL;
2466 }
2467
2468
2469 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2470 PyObject *resultobj;
2471 wxBrush *arg1 = (wxBrush *) 0 ;
2472 PyObject * obj0 = 0 ;
2473 char *kwnames[] = {
2474 (char *) "self", NULL
2475 };
2476
2477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2480 {
2481 PyThreadState* __tstate = wxPyBeginAllowThreads();
2482 delete arg1;
2483
2484 wxPyEndAllowThreads(__tstate);
2485 if (PyErr_Occurred()) SWIG_fail;
2486 }
2487 Py_INCREF(Py_None); resultobj = Py_None;
2488 return resultobj;
2489 fail:
2490 return NULL;
2491 }
2492
2493
2494 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2495 PyObject *resultobj;
2496 wxBrush *arg1 = (wxBrush *) 0 ;
2497 wxColour *arg2 = 0 ;
2498 wxColour temp2 ;
2499 PyObject * obj0 = 0 ;
2500 PyObject * obj1 = 0 ;
2501 char *kwnames[] = {
2502 (char *) "self",(char *) "col", NULL
2503 };
2504
2505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2508 {
2509 arg2 = &temp2;
2510 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2511 }
2512 {
2513 PyThreadState* __tstate = wxPyBeginAllowThreads();
2514 (arg1)->SetColour((wxColour const &)*arg2);
2515
2516 wxPyEndAllowThreads(__tstate);
2517 if (PyErr_Occurred()) SWIG_fail;
2518 }
2519 Py_INCREF(Py_None); resultobj = Py_None;
2520 return resultobj;
2521 fail:
2522 return NULL;
2523 }
2524
2525
2526 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2527 PyObject *resultobj;
2528 wxBrush *arg1 = (wxBrush *) 0 ;
2529 int arg2 ;
2530 PyObject * obj0 = 0 ;
2531 PyObject * obj1 = 0 ;
2532 char *kwnames[] = {
2533 (char *) "self",(char *) "style", NULL
2534 };
2535
2536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2539 arg2 = (int)SWIG_As_int(obj1);
2540 if (PyErr_Occurred()) SWIG_fail;
2541 {
2542 PyThreadState* __tstate = wxPyBeginAllowThreads();
2543 (arg1)->SetStyle(arg2);
2544
2545 wxPyEndAllowThreads(__tstate);
2546 if (PyErr_Occurred()) SWIG_fail;
2547 }
2548 Py_INCREF(Py_None); resultobj = Py_None;
2549 return resultobj;
2550 fail:
2551 return NULL;
2552 }
2553
2554
2555 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2556 PyObject *resultobj;
2557 wxBrush *arg1 = (wxBrush *) 0 ;
2558 wxBitmap *arg2 = 0 ;
2559 PyObject * obj0 = 0 ;
2560 PyObject * obj1 = 0 ;
2561 char *kwnames[] = {
2562 (char *) "self",(char *) "stipple", NULL
2563 };
2564
2565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2568 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2569 SWIG_POINTER_EXCEPTION | 0)) == -1)
2570 SWIG_fail;
2571 if (arg2 == NULL) {
2572 PyErr_SetString(PyExc_TypeError,"null reference");
2573 SWIG_fail;
2574 }
2575 {
2576 PyThreadState* __tstate = wxPyBeginAllowThreads();
2577 (arg1)->SetStipple((wxBitmap const &)*arg2);
2578
2579 wxPyEndAllowThreads(__tstate);
2580 if (PyErr_Occurred()) SWIG_fail;
2581 }
2582 Py_INCREF(Py_None); resultobj = Py_None;
2583 return resultobj;
2584 fail:
2585 return NULL;
2586 }
2587
2588
2589 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2590 PyObject *resultobj;
2591 wxBrush *arg1 = (wxBrush *) 0 ;
2592 wxColour result;
2593 PyObject * obj0 = 0 ;
2594 char *kwnames[] = {
2595 (char *) "self", NULL
2596 };
2597
2598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2601 {
2602 PyThreadState* __tstate = wxPyBeginAllowThreads();
2603 result = ((wxBrush const *)arg1)->GetColour();
2604
2605 wxPyEndAllowThreads(__tstate);
2606 if (PyErr_Occurred()) SWIG_fail;
2607 }
2608 {
2609 wxColour * resultptr;
2610 resultptr = new wxColour((wxColour &) result);
2611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2612 }
2613 return resultobj;
2614 fail:
2615 return NULL;
2616 }
2617
2618
2619 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2620 PyObject *resultobj;
2621 wxBrush *arg1 = (wxBrush *) 0 ;
2622 int result;
2623 PyObject * obj0 = 0 ;
2624 char *kwnames[] = {
2625 (char *) "self", NULL
2626 };
2627
2628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2631 {
2632 PyThreadState* __tstate = wxPyBeginAllowThreads();
2633 result = (int)((wxBrush const *)arg1)->GetStyle();
2634
2635 wxPyEndAllowThreads(__tstate);
2636 if (PyErr_Occurred()) SWIG_fail;
2637 }
2638 resultobj = SWIG_From_int((int)result);
2639 return resultobj;
2640 fail:
2641 return NULL;
2642 }
2643
2644
2645 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2646 PyObject *resultobj;
2647 wxBrush *arg1 = (wxBrush *) 0 ;
2648 wxBitmap *result;
2649 PyObject * obj0 = 0 ;
2650 char *kwnames[] = {
2651 (char *) "self", NULL
2652 };
2653
2654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2657 {
2658 PyThreadState* __tstate = wxPyBeginAllowThreads();
2659 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2660
2661 wxPyEndAllowThreads(__tstate);
2662 if (PyErr_Occurred()) SWIG_fail;
2663 }
2664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2665 return resultobj;
2666 fail:
2667 return NULL;
2668 }
2669
2670
2671 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2672 PyObject *resultobj;
2673 wxBrush *arg1 = (wxBrush *) 0 ;
2674 bool result;
2675 PyObject * obj0 = 0 ;
2676 char *kwnames[] = {
2677 (char *) "self", NULL
2678 };
2679
2680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2683 {
2684 PyThreadState* __tstate = wxPyBeginAllowThreads();
2685 result = (bool)(arg1)->Ok();
2686
2687 wxPyEndAllowThreads(__tstate);
2688 if (PyErr_Occurred()) SWIG_fail;
2689 }
2690 {
2691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2692 }
2693 return resultobj;
2694 fail:
2695 return NULL;
2696 }
2697
2698
2699 static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2700 PyObject *resultobj;
2701 wxBrush *arg1 = (wxBrush *) 0 ;
2702 short result;
2703 PyObject * obj0 = 0 ;
2704 char *kwnames[] = {
2705 (char *) "self", NULL
2706 };
2707
2708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2711 {
2712 PyThreadState* __tstate = wxPyBeginAllowThreads();
2713 result = (short)(arg1)->MacGetTheme();
2714
2715 wxPyEndAllowThreads(__tstate);
2716 if (PyErr_Occurred()) SWIG_fail;
2717 }
2718 resultobj = SWIG_From_short((short)result);
2719 return resultobj;
2720 fail:
2721 return NULL;
2722 }
2723
2724
2725 static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2726 PyObject *resultobj;
2727 wxBrush *arg1 = (wxBrush *) 0 ;
2728 short arg2 ;
2729 PyObject * obj0 = 0 ;
2730 PyObject * obj1 = 0 ;
2731 char *kwnames[] = {
2732 (char *) "self",(char *) "macThemeBrush", NULL
2733 };
2734
2735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2738 arg2 = (short)SWIG_As_short(obj1);
2739 if (PyErr_Occurred()) SWIG_fail;
2740 {
2741 PyThreadState* __tstate = wxPyBeginAllowThreads();
2742 (arg1)->MacSetTheme(arg2);
2743
2744 wxPyEndAllowThreads(__tstate);
2745 if (PyErr_Occurred()) SWIG_fail;
2746 }
2747 Py_INCREF(Py_None); resultobj = Py_None;
2748 return resultobj;
2749 fail:
2750 return NULL;
2751 }
2752
2753
2754 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2755 PyObject *obj;
2756 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2757 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2758 Py_INCREF(obj);
2759 return Py_BuildValue((char *)"");
2760 }
2761 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2762 PyObject *resultobj;
2763 wxString *arg1 = 0 ;
2764 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2765 wxBitmap *result;
2766 bool temp1 = false ;
2767 PyObject * obj0 = 0 ;
2768 PyObject * obj1 = 0 ;
2769 char *kwnames[] = {
2770 (char *) "name",(char *) "type", NULL
2771 };
2772
2773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2774 {
2775 arg1 = wxString_in_helper(obj0);
2776 if (arg1 == NULL) SWIG_fail;
2777 temp1 = true;
2778 }
2779 if (obj1) {
2780 arg2 = (int)SWIG_As_int(obj1);
2781 if (PyErr_Occurred()) SWIG_fail;
2782 }
2783 {
2784 if (!wxPyCheckForApp()) SWIG_fail;
2785 PyThreadState* __tstate = wxPyBeginAllowThreads();
2786 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2787
2788 wxPyEndAllowThreads(__tstate);
2789 if (PyErr_Occurred()) SWIG_fail;
2790 }
2791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2792 {
2793 if (temp1)
2794 delete arg1;
2795 }
2796 return resultobj;
2797 fail:
2798 {
2799 if (temp1)
2800 delete arg1;
2801 }
2802 return NULL;
2803 }
2804
2805
2806 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2807 PyObject *resultobj;
2808 wxBitmap *arg1 = (wxBitmap *) 0 ;
2809 PyObject * obj0 = 0 ;
2810 char *kwnames[] = {
2811 (char *) "self", NULL
2812 };
2813
2814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2817 {
2818 PyThreadState* __tstate = wxPyBeginAllowThreads();
2819 delete arg1;
2820
2821 wxPyEndAllowThreads(__tstate);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 }
2824 Py_INCREF(Py_None); resultobj = Py_None;
2825 return resultobj;
2826 fail:
2827 return NULL;
2828 }
2829
2830
2831 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2832 PyObject *resultobj;
2833 int arg1 ;
2834 int arg2 ;
2835 int arg3 = (int) -1 ;
2836 wxBitmap *result;
2837 PyObject * obj0 = 0 ;
2838 PyObject * obj1 = 0 ;
2839 PyObject * obj2 = 0 ;
2840 char *kwnames[] = {
2841 (char *) "width",(char *) "height",(char *) "depth", NULL
2842 };
2843
2844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2845 arg1 = (int)SWIG_As_int(obj0);
2846 if (PyErr_Occurred()) SWIG_fail;
2847 arg2 = (int)SWIG_As_int(obj1);
2848 if (PyErr_Occurred()) SWIG_fail;
2849 if (obj2) {
2850 arg3 = (int)SWIG_As_int(obj2);
2851 if (PyErr_Occurred()) SWIG_fail;
2852 }
2853 {
2854 if (!wxPyCheckForApp()) SWIG_fail;
2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
2856 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2857
2858 wxPyEndAllowThreads(__tstate);
2859 if (PyErr_Occurred()) SWIG_fail;
2860 }
2861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2862 return resultobj;
2863 fail:
2864 return NULL;
2865 }
2866
2867
2868 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2869 PyObject *resultobj;
2870 wxIcon *arg1 = 0 ;
2871 wxBitmap *result;
2872 PyObject * obj0 = 0 ;
2873 char *kwnames[] = {
2874 (char *) "icon", NULL
2875 };
2876
2877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2879 SWIG_POINTER_EXCEPTION | 0)) == -1)
2880 SWIG_fail;
2881 if (arg1 == NULL) {
2882 PyErr_SetString(PyExc_TypeError,"null reference");
2883 SWIG_fail;
2884 }
2885 {
2886 if (!wxPyCheckForApp()) SWIG_fail;
2887 PyThreadState* __tstate = wxPyBeginAllowThreads();
2888 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2889
2890 wxPyEndAllowThreads(__tstate);
2891 if (PyErr_Occurred()) SWIG_fail;
2892 }
2893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2894 return resultobj;
2895 fail:
2896 return NULL;
2897 }
2898
2899
2900 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2901 PyObject *resultobj;
2902 wxImage *arg1 = 0 ;
2903 int arg2 = (int) -1 ;
2904 wxBitmap *result;
2905 PyObject * obj0 = 0 ;
2906 PyObject * obj1 = 0 ;
2907 char *kwnames[] = {
2908 (char *) "image",(char *) "depth", NULL
2909 };
2910
2911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2913 SWIG_POINTER_EXCEPTION | 0)) == -1)
2914 SWIG_fail;
2915 if (arg1 == NULL) {
2916 PyErr_SetString(PyExc_TypeError,"null reference");
2917 SWIG_fail;
2918 }
2919 if (obj1) {
2920 arg2 = (int)SWIG_As_int(obj1);
2921 if (PyErr_Occurred()) SWIG_fail;
2922 }
2923 {
2924 if (!wxPyCheckForApp()) SWIG_fail;
2925 PyThreadState* __tstate = wxPyBeginAllowThreads();
2926 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2927
2928 wxPyEndAllowThreads(__tstate);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 }
2931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2932 return resultobj;
2933 fail:
2934 return NULL;
2935 }
2936
2937
2938 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
2939 PyObject *resultobj;
2940 PyObject *arg1 = (PyObject *) 0 ;
2941 wxBitmap *result;
2942 PyObject * obj0 = 0 ;
2943 char *kwnames[] = {
2944 (char *) "listOfStrings", NULL
2945 };
2946
2947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2948 arg1 = obj0;
2949 {
2950 if (!wxPyCheckForApp()) SWIG_fail;
2951 PyThreadState* __tstate = wxPyBeginAllowThreads();
2952 result = (wxBitmap *)new_wxBitmap(arg1);
2953
2954 wxPyEndAllowThreads(__tstate);
2955 if (PyErr_Occurred()) SWIG_fail;
2956 }
2957 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2958 return resultobj;
2959 fail:
2960 return NULL;
2961 }
2962
2963
2964 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
2965 PyObject *resultobj;
2966 PyObject *arg1 = (PyObject *) 0 ;
2967 int arg2 ;
2968 int arg3 ;
2969 int arg4 = (int) 1 ;
2970 wxBitmap *result;
2971 PyObject * obj0 = 0 ;
2972 PyObject * obj1 = 0 ;
2973 PyObject * obj2 = 0 ;
2974 PyObject * obj3 = 0 ;
2975 char *kwnames[] = {
2976 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2977 };
2978
2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2980 arg1 = obj0;
2981 arg2 = (int)SWIG_As_int(obj1);
2982 if (PyErr_Occurred()) SWIG_fail;
2983 arg3 = (int)SWIG_As_int(obj2);
2984 if (PyErr_Occurred()) SWIG_fail;
2985 if (obj3) {
2986 arg4 = (int)SWIG_As_int(obj3);
2987 if (PyErr_Occurred()) SWIG_fail;
2988 }
2989 {
2990 if (!wxPyCheckForApp()) SWIG_fail;
2991 PyThreadState* __tstate = wxPyBeginAllowThreads();
2992 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2993
2994 wxPyEndAllowThreads(__tstate);
2995 if (PyErr_Occurred()) SWIG_fail;
2996 }
2997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2998 return resultobj;
2999 fail:
3000 return NULL;
3001 }
3002
3003
3004 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3005 PyObject *resultobj;
3006 wxBitmap *arg1 = (wxBitmap *) 0 ;
3007 bool result;
3008 PyObject * obj0 = 0 ;
3009 char *kwnames[] = {
3010 (char *) "self", NULL
3011 };
3012
3013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 result = (bool)(arg1)->Ok();
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 {
3024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3025 }
3026 return resultobj;
3027 fail:
3028 return NULL;
3029 }
3030
3031
3032 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3033 PyObject *resultobj;
3034 wxBitmap *arg1 = (wxBitmap *) 0 ;
3035 int result;
3036 PyObject * obj0 = 0 ;
3037 char *kwnames[] = {
3038 (char *) "self", NULL
3039 };
3040
3041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3044 {
3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
3046 result = (int)(arg1)->GetWidth();
3047
3048 wxPyEndAllowThreads(__tstate);
3049 if (PyErr_Occurred()) SWIG_fail;
3050 }
3051 resultobj = SWIG_From_int((int)result);
3052 return resultobj;
3053 fail:
3054 return NULL;
3055 }
3056
3057
3058 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3059 PyObject *resultobj;
3060 wxBitmap *arg1 = (wxBitmap *) 0 ;
3061 int result;
3062 PyObject * obj0 = 0 ;
3063 char *kwnames[] = {
3064 (char *) "self", NULL
3065 };
3066
3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3070 {
3071 PyThreadState* __tstate = wxPyBeginAllowThreads();
3072 result = (int)(arg1)->GetHeight();
3073
3074 wxPyEndAllowThreads(__tstate);
3075 if (PyErr_Occurred()) SWIG_fail;
3076 }
3077 resultobj = SWIG_From_int((int)result);
3078 return resultobj;
3079 fail:
3080 return NULL;
3081 }
3082
3083
3084 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3085 PyObject *resultobj;
3086 wxBitmap *arg1 = (wxBitmap *) 0 ;
3087 int result;
3088 PyObject * obj0 = 0 ;
3089 char *kwnames[] = {
3090 (char *) "self", NULL
3091 };
3092
3093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3096 {
3097 PyThreadState* __tstate = wxPyBeginAllowThreads();
3098 result = (int)(arg1)->GetDepth();
3099
3100 wxPyEndAllowThreads(__tstate);
3101 if (PyErr_Occurred()) SWIG_fail;
3102 }
3103 resultobj = SWIG_From_int((int)result);
3104 return resultobj;
3105 fail:
3106 return NULL;
3107 }
3108
3109
3110 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3111 PyObject *resultobj;
3112 wxBitmap *arg1 = (wxBitmap *) 0 ;
3113 wxSize result;
3114 PyObject * obj0 = 0 ;
3115 char *kwnames[] = {
3116 (char *) "self", NULL
3117 };
3118
3119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3122 {
3123 PyThreadState* __tstate = wxPyBeginAllowThreads();
3124 result = wxBitmap_GetSize(arg1);
3125
3126 wxPyEndAllowThreads(__tstate);
3127 if (PyErr_Occurred()) SWIG_fail;
3128 }
3129 {
3130 wxSize * resultptr;
3131 resultptr = new wxSize((wxSize &) result);
3132 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3133 }
3134 return resultobj;
3135 fail:
3136 return NULL;
3137 }
3138
3139
3140 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3141 PyObject *resultobj;
3142 wxBitmap *arg1 = (wxBitmap *) 0 ;
3143 SwigValueWrapper< wxImage > result;
3144 PyObject * obj0 = 0 ;
3145 char *kwnames[] = {
3146 (char *) "self", NULL
3147 };
3148
3149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3152 {
3153 PyThreadState* __tstate = wxPyBeginAllowThreads();
3154 result = ((wxBitmap const *)arg1)->ConvertToImage();
3155
3156 wxPyEndAllowThreads(__tstate);
3157 if (PyErr_Occurred()) SWIG_fail;
3158 }
3159 {
3160 wxImage * resultptr;
3161 resultptr = new wxImage((wxImage &) result);
3162 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3163 }
3164 return resultobj;
3165 fail:
3166 return NULL;
3167 }
3168
3169
3170 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3171 PyObject *resultobj;
3172 wxBitmap *arg1 = (wxBitmap *) 0 ;
3173 wxMask *result;
3174 PyObject * obj0 = 0 ;
3175 char *kwnames[] = {
3176 (char *) "self", NULL
3177 };
3178
3179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3182 {
3183 PyThreadState* __tstate = wxPyBeginAllowThreads();
3184 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3185
3186 wxPyEndAllowThreads(__tstate);
3187 if (PyErr_Occurred()) SWIG_fail;
3188 }
3189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3190 return resultobj;
3191 fail:
3192 return NULL;
3193 }
3194
3195
3196 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3197 PyObject *resultobj;
3198 wxBitmap *arg1 = (wxBitmap *) 0 ;
3199 wxMask *arg2 = (wxMask *) 0 ;
3200 PyObject * obj0 = 0 ;
3201 PyObject * obj1 = 0 ;
3202 char *kwnames[] = {
3203 (char *) "self",(char *) "mask", NULL
3204 };
3205
3206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3211 {
3212 PyThreadState* __tstate = wxPyBeginAllowThreads();
3213 (arg1)->SetMask(arg2);
3214
3215 wxPyEndAllowThreads(__tstate);
3216 if (PyErr_Occurred()) SWIG_fail;
3217 }
3218 Py_INCREF(Py_None); resultobj = Py_None;
3219 return resultobj;
3220 fail:
3221 return NULL;
3222 }
3223
3224
3225 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3226 PyObject *resultobj;
3227 wxBitmap *arg1 = (wxBitmap *) 0 ;
3228 wxColour *arg2 = 0 ;
3229 wxColour temp2 ;
3230 PyObject * obj0 = 0 ;
3231 PyObject * obj1 = 0 ;
3232 char *kwnames[] = {
3233 (char *) "self",(char *) "colour", NULL
3234 };
3235
3236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3239 {
3240 arg2 = &temp2;
3241 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3242 }
3243 {
3244 PyThreadState* __tstate = wxPyBeginAllowThreads();
3245 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3246
3247 wxPyEndAllowThreads(__tstate);
3248 if (PyErr_Occurred()) SWIG_fail;
3249 }
3250 Py_INCREF(Py_None); resultobj = Py_None;
3251 return resultobj;
3252 fail:
3253 return NULL;
3254 }
3255
3256
3257 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3258 PyObject *resultobj;
3259 wxBitmap *arg1 = (wxBitmap *) 0 ;
3260 wxRect *arg2 = 0 ;
3261 SwigValueWrapper< wxBitmap > result;
3262 wxRect temp2 ;
3263 PyObject * obj0 = 0 ;
3264 PyObject * obj1 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "self",(char *) "rect", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3272 {
3273 arg2 = &temp2;
3274 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3275 }
3276 {
3277 PyThreadState* __tstate = wxPyBeginAllowThreads();
3278 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3279
3280 wxPyEndAllowThreads(__tstate);
3281 if (PyErr_Occurred()) SWIG_fail;
3282 }
3283 {
3284 wxBitmap * resultptr;
3285 resultptr = new wxBitmap((wxBitmap &) result);
3286 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3287 }
3288 return resultobj;
3289 fail:
3290 return NULL;
3291 }
3292
3293
3294 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3295 PyObject *resultobj;
3296 wxBitmap *arg1 = (wxBitmap *) 0 ;
3297 wxString *arg2 = 0 ;
3298 int arg3 ;
3299 wxPalette *arg4 = (wxPalette *) NULL ;
3300 bool result;
3301 bool temp2 = false ;
3302 PyObject * obj0 = 0 ;
3303 PyObject * obj1 = 0 ;
3304 PyObject * obj2 = 0 ;
3305 PyObject * obj3 = 0 ;
3306 char *kwnames[] = {
3307 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3308 };
3309
3310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3313 {
3314 arg2 = wxString_in_helper(obj1);
3315 if (arg2 == NULL) SWIG_fail;
3316 temp2 = true;
3317 }
3318 arg3 = (int)SWIG_As_int(obj2);
3319 if (PyErr_Occurred()) SWIG_fail;
3320 if (obj3) {
3321 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3323 }
3324 {
3325 PyThreadState* __tstate = wxPyBeginAllowThreads();
3326 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3327
3328 wxPyEndAllowThreads(__tstate);
3329 if (PyErr_Occurred()) SWIG_fail;
3330 }
3331 {
3332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3333 }
3334 {
3335 if (temp2)
3336 delete arg2;
3337 }
3338 return resultobj;
3339 fail:
3340 {
3341 if (temp2)
3342 delete arg2;
3343 }
3344 return NULL;
3345 }
3346
3347
3348 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3349 PyObject *resultobj;
3350 wxBitmap *arg1 = (wxBitmap *) 0 ;
3351 wxString *arg2 = 0 ;
3352 int arg3 ;
3353 bool result;
3354 bool temp2 = false ;
3355 PyObject * obj0 = 0 ;
3356 PyObject * obj1 = 0 ;
3357 PyObject * obj2 = 0 ;
3358 char *kwnames[] = {
3359 (char *) "self",(char *) "name",(char *) "type", NULL
3360 };
3361
3362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3365 {
3366 arg2 = wxString_in_helper(obj1);
3367 if (arg2 == NULL) SWIG_fail;
3368 temp2 = true;
3369 }
3370 arg3 = (int)SWIG_As_int(obj2);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3375
3376 wxPyEndAllowThreads(__tstate);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 {
3380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3381 }
3382 {
3383 if (temp2)
3384 delete arg2;
3385 }
3386 return resultobj;
3387 fail:
3388 {
3389 if (temp2)
3390 delete arg2;
3391 }
3392 return NULL;
3393 }
3394
3395
3396 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3397 PyObject *resultobj;
3398 wxBitmap *arg1 = (wxBitmap *) 0 ;
3399 wxIcon *arg2 = 0 ;
3400 bool result;
3401 PyObject * obj0 = 0 ;
3402 PyObject * obj1 = 0 ;
3403 char *kwnames[] = {
3404 (char *) "self",(char *) "icon", NULL
3405 };
3406
3407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3411 SWIG_POINTER_EXCEPTION | 0)) == -1)
3412 SWIG_fail;
3413 if (arg2 == NULL) {
3414 PyErr_SetString(PyExc_TypeError,"null reference");
3415 SWIG_fail;
3416 }
3417 {
3418 PyThreadState* __tstate = wxPyBeginAllowThreads();
3419 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3420
3421 wxPyEndAllowThreads(__tstate);
3422 if (PyErr_Occurred()) SWIG_fail;
3423 }
3424 {
3425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3426 }
3427 return resultobj;
3428 fail:
3429 return NULL;
3430 }
3431
3432
3433 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3434 PyObject *resultobj;
3435 wxBitmap *arg1 = (wxBitmap *) 0 ;
3436 int arg2 ;
3437 PyObject * obj0 = 0 ;
3438 PyObject * obj1 = 0 ;
3439 char *kwnames[] = {
3440 (char *) "self",(char *) "height", NULL
3441 };
3442
3443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3446 arg2 = (int)SWIG_As_int(obj1);
3447 if (PyErr_Occurred()) SWIG_fail;
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 (arg1)->SetHeight(arg2);
3451
3452 wxPyEndAllowThreads(__tstate);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 }
3455 Py_INCREF(Py_None); resultobj = Py_None;
3456 return resultobj;
3457 fail:
3458 return NULL;
3459 }
3460
3461
3462 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3463 PyObject *resultobj;
3464 wxBitmap *arg1 = (wxBitmap *) 0 ;
3465 int arg2 ;
3466 PyObject * obj0 = 0 ;
3467 PyObject * obj1 = 0 ;
3468 char *kwnames[] = {
3469 (char *) "self",(char *) "width", NULL
3470 };
3471
3472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3475 arg2 = (int)SWIG_As_int(obj1);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 {
3478 PyThreadState* __tstate = wxPyBeginAllowThreads();
3479 (arg1)->SetWidth(arg2);
3480
3481 wxPyEndAllowThreads(__tstate);
3482 if (PyErr_Occurred()) SWIG_fail;
3483 }
3484 Py_INCREF(Py_None); resultobj = Py_None;
3485 return resultobj;
3486 fail:
3487 return NULL;
3488 }
3489
3490
3491 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3492 PyObject *resultobj;
3493 wxBitmap *arg1 = (wxBitmap *) 0 ;
3494 int arg2 ;
3495 PyObject * obj0 = 0 ;
3496 PyObject * obj1 = 0 ;
3497 char *kwnames[] = {
3498 (char *) "self",(char *) "depth", NULL
3499 };
3500
3501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3504 arg2 = (int)SWIG_As_int(obj1);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 {
3507 PyThreadState* __tstate = wxPyBeginAllowThreads();
3508 (arg1)->SetDepth(arg2);
3509
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 Py_INCREF(Py_None); resultobj = Py_None;
3514 return resultobj;
3515 fail:
3516 return NULL;
3517 }
3518
3519
3520 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3521 PyObject *resultobj;
3522 wxBitmap *arg1 = (wxBitmap *) 0 ;
3523 wxSize *arg2 = 0 ;
3524 wxSize temp2 ;
3525 PyObject * obj0 = 0 ;
3526 PyObject * obj1 = 0 ;
3527 char *kwnames[] = {
3528 (char *) "self",(char *) "size", NULL
3529 };
3530
3531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3534 {
3535 arg2 = &temp2;
3536 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3537 }
3538 {
3539 PyThreadState* __tstate = wxPyBeginAllowThreads();
3540 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3541
3542 wxPyEndAllowThreads(__tstate);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 Py_INCREF(Py_None); resultobj = Py_None;
3546 return resultobj;
3547 fail:
3548 return NULL;
3549 }
3550
3551
3552 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3553 PyObject *resultobj;
3554 wxBitmap *arg1 = (wxBitmap *) 0 ;
3555 wxBitmap *arg2 = (wxBitmap *) 0 ;
3556 bool result;
3557 PyObject * obj0 = 0 ;
3558 PyObject * obj1 = 0 ;
3559 char *kwnames[] = {
3560 (char *) "self",(char *) "other", NULL
3561 };
3562
3563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3568 {
3569 PyThreadState* __tstate = wxPyBeginAllowThreads();
3570 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3571
3572 wxPyEndAllowThreads(__tstate);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 {
3576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3577 }
3578 return resultobj;
3579 fail:
3580 return NULL;
3581 }
3582
3583
3584 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3585 PyObject *resultobj;
3586 wxBitmap *arg1 = (wxBitmap *) 0 ;
3587 wxBitmap *arg2 = (wxBitmap *) 0 ;
3588 bool result;
3589 PyObject * obj0 = 0 ;
3590 PyObject * obj1 = 0 ;
3591 char *kwnames[] = {
3592 (char *) "self",(char *) "other", NULL
3593 };
3594
3595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3600 {
3601 PyThreadState* __tstate = wxPyBeginAllowThreads();
3602 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3603
3604 wxPyEndAllowThreads(__tstate);
3605 if (PyErr_Occurred()) SWIG_fail;
3606 }
3607 {
3608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3609 }
3610 return resultobj;
3611 fail:
3612 return NULL;
3613 }
3614
3615
3616 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3617 PyObject *obj;
3618 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3619 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3620 Py_INCREF(obj);
3621 return Py_BuildValue((char *)"");
3622 }
3623 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3624 PyObject *resultobj;
3625 wxBitmap *arg1 = 0 ;
3626 wxColour const &arg2_defvalue = wxNullColour ;
3627 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3628 wxMask *result;
3629 wxColour temp2 ;
3630 PyObject * obj0 = 0 ;
3631 PyObject * obj1 = 0 ;
3632 char *kwnames[] = {
3633 (char *) "bitmap",(char *) "colour", NULL
3634 };
3635
3636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3638 SWIG_POINTER_EXCEPTION | 0)) == -1)
3639 SWIG_fail;
3640 if (arg1 == NULL) {
3641 PyErr_SetString(PyExc_TypeError,"null reference");
3642 SWIG_fail;
3643 }
3644 if (obj1) {
3645 {
3646 arg2 = &temp2;
3647 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3648 }
3649 }
3650 {
3651 if (!wxPyCheckForApp()) SWIG_fail;
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3654
3655 wxPyEndAllowThreads(__tstate);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
3658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3659 return resultobj;
3660 fail:
3661 return NULL;
3662 }
3663
3664
3665 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3666 PyObject *obj;
3667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3668 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3669 Py_INCREF(obj);
3670 return Py_BuildValue((char *)"");
3671 }
3672 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3673 PyObject *resultobj;
3674 wxString *arg1 = 0 ;
3675 int arg2 ;
3676 int arg3 = (int) -1 ;
3677 int arg4 = (int) -1 ;
3678 wxIcon *result;
3679 bool temp1 = false ;
3680 PyObject * obj0 = 0 ;
3681 PyObject * obj1 = 0 ;
3682 PyObject * obj2 = 0 ;
3683 PyObject * obj3 = 0 ;
3684 char *kwnames[] = {
3685 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3686 };
3687
3688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3689 {
3690 arg1 = wxString_in_helper(obj0);
3691 if (arg1 == NULL) SWIG_fail;
3692 temp1 = true;
3693 }
3694 arg2 = (int)SWIG_As_int(obj1);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 if (obj2) {
3697 arg3 = (int)SWIG_As_int(obj2);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
3700 if (obj3) {
3701 arg4 = (int)SWIG_As_int(obj3);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 }
3704 {
3705 if (!wxPyCheckForApp()) SWIG_fail;
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 }
3712 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3713 {
3714 if (temp1)
3715 delete arg1;
3716 }
3717 return resultobj;
3718 fail:
3719 {
3720 if (temp1)
3721 delete arg1;
3722 }
3723 return NULL;
3724 }
3725
3726
3727 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj;
3729 wxIcon *arg1 = (wxIcon *) 0 ;
3730 PyObject * obj0 = 0 ;
3731 char *kwnames[] = {
3732 (char *) "self", NULL
3733 };
3734
3735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 delete arg1;
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 Py_INCREF(Py_None); resultobj = Py_None;
3746 return resultobj;
3747 fail:
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 wxIcon *result;
3755 char *kwnames[] = {
3756 NULL
3757 };
3758
3759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3760 {
3761 if (!wxPyCheckForApp()) SWIG_fail;
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 result = (wxIcon *)new wxIcon();
3764
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) SWIG_fail;
3767 }
3768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3769 return resultobj;
3770 fail:
3771 return NULL;
3772 }
3773
3774
3775 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3776 PyObject *resultobj;
3777 wxIconLocation *arg1 = 0 ;
3778 wxIcon *result;
3779 PyObject * obj0 = 0 ;
3780 char *kwnames[] = {
3781 (char *) "loc", NULL
3782 };
3783
3784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3786 SWIG_POINTER_EXCEPTION | 0)) == -1)
3787 SWIG_fail;
3788 if (arg1 == NULL) {
3789 PyErr_SetString(PyExc_TypeError,"null reference");
3790 SWIG_fail;
3791 }
3792 {
3793 if (!wxPyCheckForApp()) SWIG_fail;
3794 PyThreadState* __tstate = wxPyBeginAllowThreads();
3795 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3796
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxBitmap *arg1 = 0 ;
3810 wxIcon *result;
3811 PyObject * obj0 = 0 ;
3812 char *kwnames[] = {
3813 (char *) "bmp", NULL
3814 };
3815
3816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3818 SWIG_POINTER_EXCEPTION | 0)) == -1)
3819 SWIG_fail;
3820 if (arg1 == NULL) {
3821 PyErr_SetString(PyExc_TypeError,"null reference");
3822 SWIG_fail;
3823 }
3824 {
3825 if (!wxPyCheckForApp()) SWIG_fail;
3826 PyThreadState* __tstate = wxPyBeginAllowThreads();
3827 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3828
3829 wxPyEndAllowThreads(__tstate);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 }
3832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3833 return resultobj;
3834 fail:
3835 return NULL;
3836 }
3837
3838
3839 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3840 PyObject *resultobj;
3841 PyObject *arg1 = (PyObject *) 0 ;
3842 wxIcon *result;
3843 PyObject * obj0 = 0 ;
3844 char *kwnames[] = {
3845 (char *) "listOfStrings", NULL
3846 };
3847
3848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3849 arg1 = obj0;
3850 {
3851 if (!wxPyCheckForApp()) SWIG_fail;
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (wxIcon *)new_wxIcon(arg1);
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3859 return resultobj;
3860 fail:
3861 return NULL;
3862 }
3863
3864
3865 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3866 PyObject *resultobj;
3867 wxIcon *arg1 = (wxIcon *) 0 ;
3868 bool result;
3869 PyObject * obj0 = 0 ;
3870 char *kwnames[] = {
3871 (char *) "self", NULL
3872 };
3873
3874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3877 {
3878 PyThreadState* __tstate = wxPyBeginAllowThreads();
3879 result = (bool)(arg1)->Ok();
3880
3881 wxPyEndAllowThreads(__tstate);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 {
3885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3886 }
3887 return resultobj;
3888 fail:
3889 return NULL;
3890 }
3891
3892
3893 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3894 PyObject *resultobj;
3895 wxIcon *arg1 = (wxIcon *) 0 ;
3896 int result;
3897 PyObject * obj0 = 0 ;
3898 char *kwnames[] = {
3899 (char *) "self", NULL
3900 };
3901
3902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3905 {
3906 PyThreadState* __tstate = wxPyBeginAllowThreads();
3907 result = (int)(arg1)->GetWidth();
3908
3909 wxPyEndAllowThreads(__tstate);
3910 if (PyErr_Occurred()) SWIG_fail;
3911 }
3912 resultobj = SWIG_From_int((int)result);
3913 return resultobj;
3914 fail:
3915 return NULL;
3916 }
3917
3918
3919 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3920 PyObject *resultobj;
3921 wxIcon *arg1 = (wxIcon *) 0 ;
3922 int result;
3923 PyObject * obj0 = 0 ;
3924 char *kwnames[] = {
3925 (char *) "self", NULL
3926 };
3927
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 result = (int)(arg1)->GetHeight();
3934
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 resultobj = SWIG_From_int((int)result);
3939 return resultobj;
3940 fail:
3941 return NULL;
3942 }
3943
3944
3945 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3946 PyObject *resultobj;
3947 wxIcon *arg1 = (wxIcon *) 0 ;
3948 int result;
3949 PyObject * obj0 = 0 ;
3950 char *kwnames[] = {
3951 (char *) "self", NULL
3952 };
3953
3954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3957 {
3958 PyThreadState* __tstate = wxPyBeginAllowThreads();
3959 result = (int)(arg1)->GetDepth();
3960
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
3964 resultobj = SWIG_From_int((int)result);
3965 return resultobj;
3966 fail:
3967 return NULL;
3968 }
3969
3970
3971 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3972 PyObject *resultobj;
3973 wxIcon *arg1 = (wxIcon *) 0 ;
3974 int arg2 ;
3975 PyObject * obj0 = 0 ;
3976 PyObject * obj1 = 0 ;
3977 char *kwnames[] = {
3978 (char *) "self",(char *) "w", NULL
3979 };
3980
3981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3984 arg2 = (int)SWIG_As_int(obj1);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 {
3987 PyThreadState* __tstate = wxPyBeginAllowThreads();
3988 (arg1)->SetWidth(arg2);
3989
3990 wxPyEndAllowThreads(__tstate);
3991 if (PyErr_Occurred()) SWIG_fail;
3992 }
3993 Py_INCREF(Py_None); resultobj = Py_None;
3994 return resultobj;
3995 fail:
3996 return NULL;
3997 }
3998
3999
4000 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4001 PyObject *resultobj;
4002 wxIcon *arg1 = (wxIcon *) 0 ;
4003 int arg2 ;
4004 PyObject * obj0 = 0 ;
4005 PyObject * obj1 = 0 ;
4006 char *kwnames[] = {
4007 (char *) "self",(char *) "h", NULL
4008 };
4009
4010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4013 arg2 = (int)SWIG_As_int(obj1);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 {
4016 PyThreadState* __tstate = wxPyBeginAllowThreads();
4017 (arg1)->SetHeight(arg2);
4018
4019 wxPyEndAllowThreads(__tstate);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 }
4022 Py_INCREF(Py_None); resultobj = Py_None;
4023 return resultobj;
4024 fail:
4025 return NULL;
4026 }
4027
4028
4029 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4030 PyObject *resultobj;
4031 wxIcon *arg1 = (wxIcon *) 0 ;
4032 int arg2 ;
4033 PyObject * obj0 = 0 ;
4034 PyObject * obj1 = 0 ;
4035 char *kwnames[] = {
4036 (char *) "self",(char *) "d", NULL
4037 };
4038
4039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4042 arg2 = (int)SWIG_As_int(obj1);
4043 if (PyErr_Occurred()) SWIG_fail;
4044 {
4045 PyThreadState* __tstate = wxPyBeginAllowThreads();
4046 (arg1)->SetDepth(arg2);
4047
4048 wxPyEndAllowThreads(__tstate);
4049 if (PyErr_Occurred()) SWIG_fail;
4050 }
4051 Py_INCREF(Py_None); resultobj = Py_None;
4052 return resultobj;
4053 fail:
4054 return NULL;
4055 }
4056
4057
4058 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4059 PyObject *resultobj;
4060 wxIcon *arg1 = (wxIcon *) 0 ;
4061 wxBitmap *arg2 = 0 ;
4062 PyObject * obj0 = 0 ;
4063 PyObject * obj1 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "self",(char *) "bmp", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4072 SWIG_POINTER_EXCEPTION | 0)) == -1)
4073 SWIG_fail;
4074 if (arg2 == NULL) {
4075 PyErr_SetString(PyExc_TypeError,"null reference");
4076 SWIG_fail;
4077 }
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4081
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 Py_INCREF(Py_None); resultobj = Py_None;
4086 return resultobj;
4087 fail:
4088 return NULL;
4089 }
4090
4091
4092 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
4093 PyObject *obj;
4094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4095 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4096 Py_INCREF(obj);
4097 return Py_BuildValue((char *)"");
4098 }
4099 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4100 PyObject *resultobj;
4101 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4102 int arg2 = (int) 0 ;
4103 wxIconLocation *result;
4104 bool temp1 = false ;
4105 PyObject * obj0 = 0 ;
4106 PyObject * obj1 = 0 ;
4107 char *kwnames[] = {
4108 (char *) "filename",(char *) "num", NULL
4109 };
4110
4111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4112 if (obj0) {
4113 {
4114 arg1 = wxString_in_helper(obj0);
4115 if (arg1 == NULL) SWIG_fail;
4116 temp1 = true;
4117 }
4118 }
4119 if (obj1) {
4120 arg2 = (int)SWIG_As_int(obj1);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
4125 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4126
4127 wxPyEndAllowThreads(__tstate);
4128 if (PyErr_Occurred()) SWIG_fail;
4129 }
4130 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4131 {
4132 if (temp1)
4133 delete arg1;
4134 }
4135 return resultobj;
4136 fail:
4137 {
4138 if (temp1)
4139 delete arg1;
4140 }
4141 return NULL;
4142 }
4143
4144
4145 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4146 PyObject *resultobj;
4147 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4148 PyObject * obj0 = 0 ;
4149 char *kwnames[] = {
4150 (char *) "self", NULL
4151 };
4152
4153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 delete arg1;
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_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj;
4172 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4173 bool result;
4174 PyObject * obj0 = 0 ;
4175 char *kwnames[] = {
4176 (char *) "self", NULL
4177 };
4178
4179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4185
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 {
4190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4191 }
4192 return resultobj;
4193 fail:
4194 return NULL;
4195 }
4196
4197
4198 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4199 PyObject *resultobj;
4200 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4201 wxString *arg2 = 0 ;
4202 bool temp2 = false ;
4203 PyObject * obj0 = 0 ;
4204 PyObject * obj1 = 0 ;
4205 char *kwnames[] = {
4206 (char *) "self",(char *) "filename", NULL
4207 };
4208
4209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4212 {
4213 arg2 = wxString_in_helper(obj1);
4214 if (arg2 == NULL) SWIG_fail;
4215 temp2 = true;
4216 }
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 (arg1)->SetFileName((wxString const &)*arg2);
4220
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 Py_INCREF(Py_None); resultobj = Py_None;
4225 {
4226 if (temp2)
4227 delete arg2;
4228 }
4229 return resultobj;
4230 fail:
4231 {
4232 if (temp2)
4233 delete arg2;
4234 }
4235 return NULL;
4236 }
4237
4238
4239 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4240 PyObject *resultobj;
4241 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4242 wxString *result;
4243 PyObject * obj0 = 0 ;
4244 char *kwnames[] = {
4245 (char *) "self", NULL
4246 };
4247
4248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4251 {
4252 PyThreadState* __tstate = wxPyBeginAllowThreads();
4253 {
4254 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4255 result = (wxString *) &_result_ref;
4256 }
4257
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 {
4262 #if wxUSE_UNICODE
4263 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4264 #else
4265 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4266 #endif
4267 }
4268 return resultobj;
4269 fail:
4270 return NULL;
4271 }
4272
4273
4274 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4275 PyObject *resultobj;
4276 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4277 int arg2 ;
4278 PyObject * obj0 = 0 ;
4279 PyObject * obj1 = 0 ;
4280 char *kwnames[] = {
4281 (char *) "self",(char *) "num", NULL
4282 };
4283
4284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4287 arg2 = (int)SWIG_As_int(obj1);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 {
4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
4291 wxIconLocation_SetIndex(arg1,arg2);
4292
4293 wxPyEndAllowThreads(__tstate);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 Py_INCREF(Py_None); resultobj = Py_None;
4297 return resultobj;
4298 fail:
4299 return NULL;
4300 }
4301
4302
4303 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4304 PyObject *resultobj;
4305 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4306 int result;
4307 PyObject * obj0 = 0 ;
4308 char *kwnames[] = {
4309 (char *) "self", NULL
4310 };
4311
4312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4315 {
4316 PyThreadState* __tstate = wxPyBeginAllowThreads();
4317 result = (int)wxIconLocation_GetIndex(arg1);
4318
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 resultobj = SWIG_From_int((int)result);
4323 return resultobj;
4324 fail:
4325 return NULL;
4326 }
4327
4328
4329 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4330 PyObject *obj;
4331 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4332 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4333 Py_INCREF(obj);
4334 return Py_BuildValue((char *)"");
4335 }
4336 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4337 PyObject *resultobj;
4338 wxIconBundle *result;
4339 char *kwnames[] = {
4340 NULL
4341 };
4342
4343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4344 {
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 result = (wxIconBundle *)new wxIconBundle();
4347
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj;
4360 wxString *arg1 = 0 ;
4361 long arg2 ;
4362 wxIconBundle *result;
4363 bool temp1 = false ;
4364 PyObject * obj0 = 0 ;
4365 PyObject * obj1 = 0 ;
4366 char *kwnames[] = {
4367 (char *) "file",(char *) "type", NULL
4368 };
4369
4370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4371 {
4372 arg1 = wxString_in_helper(obj0);
4373 if (arg1 == NULL) SWIG_fail;
4374 temp1 = true;
4375 }
4376 arg2 = (long)SWIG_As_long(obj1);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 {
4379 PyThreadState* __tstate = wxPyBeginAllowThreads();
4380 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4381
4382 wxPyEndAllowThreads(__tstate);
4383 if (PyErr_Occurred()) SWIG_fail;
4384 }
4385 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4386 {
4387 if (temp1)
4388 delete arg1;
4389 }
4390 return resultobj;
4391 fail:
4392 {
4393 if (temp1)
4394 delete arg1;
4395 }
4396 return NULL;
4397 }
4398
4399
4400 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4401 PyObject *resultobj;
4402 wxIcon *arg1 = 0 ;
4403 wxIconBundle *result;
4404 PyObject * obj0 = 0 ;
4405 char *kwnames[] = {
4406 (char *) "icon", NULL
4407 };
4408
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4411 SWIG_POINTER_EXCEPTION | 0)) == -1)
4412 SWIG_fail;
4413 if (arg1 == NULL) {
4414 PyErr_SetString(PyExc_TypeError,"null reference");
4415 SWIG_fail;
4416 }
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4420
4421 wxPyEndAllowThreads(__tstate);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4425 return resultobj;
4426 fail:
4427 return NULL;
4428 }
4429
4430
4431 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4432 PyObject *resultobj;
4433 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4434 PyObject * obj0 = 0 ;
4435 char *kwnames[] = {
4436 (char *) "self", NULL
4437 };
4438
4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4442 {
4443 PyThreadState* __tstate = wxPyBeginAllowThreads();
4444 delete arg1;
4445
4446 wxPyEndAllowThreads(__tstate);
4447 if (PyErr_Occurred()) SWIG_fail;
4448 }
4449 Py_INCREF(Py_None); resultobj = Py_None;
4450 return resultobj;
4451 fail:
4452 return NULL;
4453 }
4454
4455
4456 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4457 PyObject *resultobj;
4458 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4459 wxIcon *arg2 = 0 ;
4460 PyObject * obj0 = 0 ;
4461 PyObject * obj1 = 0 ;
4462 char *kwnames[] = {
4463 (char *) "self",(char *) "icon", NULL
4464 };
4465
4466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4470 SWIG_POINTER_EXCEPTION | 0)) == -1)
4471 SWIG_fail;
4472 if (arg2 == NULL) {
4473 PyErr_SetString(PyExc_TypeError,"null reference");
4474 SWIG_fail;
4475 }
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 (arg1)->AddIcon((wxIcon const &)*arg2);
4479
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 Py_INCREF(Py_None); resultobj = Py_None;
4484 return resultobj;
4485 fail:
4486 return NULL;
4487 }
4488
4489
4490 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4491 PyObject *resultobj;
4492 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4493 wxString *arg2 = 0 ;
4494 long arg3 ;
4495 bool temp2 = false ;
4496 PyObject * obj0 = 0 ;
4497 PyObject * obj1 = 0 ;
4498 PyObject * obj2 = 0 ;
4499 char *kwnames[] = {
4500 (char *) "self",(char *) "file",(char *) "type", NULL
4501 };
4502
4503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4506 {
4507 arg2 = wxString_in_helper(obj1);
4508 if (arg2 == NULL) SWIG_fail;
4509 temp2 = true;
4510 }
4511 arg3 = (long)SWIG_As_long(obj2);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 {
4514 PyThreadState* __tstate = wxPyBeginAllowThreads();
4515 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4516
4517 wxPyEndAllowThreads(__tstate);
4518 if (PyErr_Occurred()) SWIG_fail;
4519 }
4520 Py_INCREF(Py_None); resultobj = Py_None;
4521 {
4522 if (temp2)
4523 delete arg2;
4524 }
4525 return resultobj;
4526 fail:
4527 {
4528 if (temp2)
4529 delete arg2;
4530 }
4531 return NULL;
4532 }
4533
4534
4535 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4536 PyObject *resultobj;
4537 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4538 wxSize *arg2 = 0 ;
4539 wxIcon *result;
4540 wxSize temp2 ;
4541 PyObject * obj0 = 0 ;
4542 PyObject * obj1 = 0 ;
4543 char *kwnames[] = {
4544 (char *) "self",(char *) "size", NULL
4545 };
4546
4547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4550 {
4551 arg2 = &temp2;
4552 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4553 }
4554 {
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 {
4557 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4558 result = (wxIcon *) &_result_ref;
4559 }
4560
4561 wxPyEndAllowThreads(__tstate);
4562 if (PyErr_Occurred()) SWIG_fail;
4563 }
4564 {
4565 wxIcon* resultptr = new wxIcon(*result);
4566 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4567 }
4568 return resultobj;
4569 fail:
4570 return NULL;
4571 }
4572
4573
4574 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4575 PyObject *obj;
4576 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4577 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4578 Py_INCREF(obj);
4579 return Py_BuildValue((char *)"");
4580 }
4581 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4582 PyObject *resultobj;
4583 wxString *arg1 = (wxString *) 0 ;
4584 long arg2 ;
4585 int arg3 = (int) 0 ;
4586 int arg4 = (int) 0 ;
4587 wxCursor *result;
4588 bool temp1 = false ;
4589 PyObject * obj0 = 0 ;
4590 PyObject * obj1 = 0 ;
4591 PyObject * obj2 = 0 ;
4592 PyObject * obj3 = 0 ;
4593 char *kwnames[] = {
4594 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4595 };
4596
4597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4598 {
4599 arg1 = wxString_in_helper(obj0);
4600 if (arg1 == NULL) SWIG_fail;
4601 temp1 = true;
4602 }
4603 arg2 = (long)SWIG_As_long(obj1);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 if (obj2) {
4606 arg3 = (int)SWIG_As_int(obj2);
4607 if (PyErr_Occurred()) SWIG_fail;
4608 }
4609 if (obj3) {
4610 arg4 = (int)SWIG_As_int(obj3);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 {
4614 if (!wxPyCheckForApp()) SWIG_fail;
4615 PyThreadState* __tstate = wxPyBeginAllowThreads();
4616 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4617
4618 wxPyEndAllowThreads(__tstate);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 }
4621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4622 {
4623 if (temp1)
4624 delete arg1;
4625 }
4626 return resultobj;
4627 fail:
4628 {
4629 if (temp1)
4630 delete arg1;
4631 }
4632 return NULL;
4633 }
4634
4635
4636 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4637 PyObject *resultobj;
4638 wxCursor *arg1 = (wxCursor *) 0 ;
4639 PyObject * obj0 = 0 ;
4640 char *kwnames[] = {
4641 (char *) "self", NULL
4642 };
4643
4644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4647 {
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
4649 delete arg1;
4650
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 Py_INCREF(Py_None); resultobj = Py_None;
4655 return resultobj;
4656 fail:
4657 return NULL;
4658 }
4659
4660
4661 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj;
4663 int arg1 ;
4664 wxCursor *result;
4665 PyObject * obj0 = 0 ;
4666 char *kwnames[] = {
4667 (char *) "id", NULL
4668 };
4669
4670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4671 arg1 = (int)SWIG_As_int(obj0);
4672 if (PyErr_Occurred()) SWIG_fail;
4673 {
4674 if (!wxPyCheckForApp()) SWIG_fail;
4675 PyThreadState* __tstate = wxPyBeginAllowThreads();
4676 result = (wxCursor *)new wxCursor(arg1);
4677
4678 wxPyEndAllowThreads(__tstate);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4682 return resultobj;
4683 fail:
4684 return NULL;
4685 }
4686
4687
4688 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4689 PyObject *resultobj;
4690 wxImage *arg1 = 0 ;
4691 wxCursor *result;
4692 PyObject * obj0 = 0 ;
4693 char *kwnames[] = {
4694 (char *) "image", NULL
4695 };
4696
4697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4699 SWIG_POINTER_EXCEPTION | 0)) == -1)
4700 SWIG_fail;
4701 if (arg1 == NULL) {
4702 PyErr_SetString(PyExc_TypeError,"null reference");
4703 SWIG_fail;
4704 }
4705 {
4706 if (!wxPyCheckForApp()) SWIG_fail;
4707 PyThreadState* __tstate = wxPyBeginAllowThreads();
4708 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4709
4710 wxPyEndAllowThreads(__tstate);
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4714 return resultobj;
4715 fail:
4716 return NULL;
4717 }
4718
4719
4720 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4721 PyObject *resultobj;
4722 wxCursor *arg1 = (wxCursor *) 0 ;
4723 bool result;
4724 PyObject * obj0 = 0 ;
4725 char *kwnames[] = {
4726 (char *) "self", NULL
4727 };
4728
4729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4732 {
4733 PyThreadState* __tstate = wxPyBeginAllowThreads();
4734 result = (bool)(arg1)->Ok();
4735
4736 wxPyEndAllowThreads(__tstate);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 {
4740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4741 }
4742 return resultobj;
4743 fail:
4744 return NULL;
4745 }
4746
4747
4748 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
4749 PyObject *obj;
4750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4751 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4752 Py_INCREF(obj);
4753 return Py_BuildValue((char *)"");
4754 }
4755 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4756 PyObject *resultobj;
4757 int arg1 = (int) 0 ;
4758 int arg2 = (int) 0 ;
4759 int arg3 = (int) 0 ;
4760 int arg4 = (int) 0 ;
4761 wxRegion *result;
4762 PyObject * obj0 = 0 ;
4763 PyObject * obj1 = 0 ;
4764 PyObject * obj2 = 0 ;
4765 PyObject * obj3 = 0 ;
4766 char *kwnames[] = {
4767 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4768 };
4769
4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4771 if (obj0) {
4772 arg1 = (int)SWIG_As_int(obj0);
4773 if (PyErr_Occurred()) SWIG_fail;
4774 }
4775 if (obj1) {
4776 arg2 = (int)SWIG_As_int(obj1);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 if (obj2) {
4780 arg3 = (int)SWIG_As_int(obj2);
4781 if (PyErr_Occurred()) SWIG_fail;
4782 }
4783 if (obj3) {
4784 arg4 = (int)SWIG_As_int(obj3);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 {
4788 if (!wxPyCheckForApp()) SWIG_fail;
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4791
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4796 return resultobj;
4797 fail:
4798 return NULL;
4799 }
4800
4801
4802 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4803 PyObject *resultobj;
4804 wxBitmap *arg1 = 0 ;
4805 wxRegion *result;
4806 PyObject * obj0 = 0 ;
4807 char *kwnames[] = {
4808 (char *) "bmp", NULL
4809 };
4810
4811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4813 SWIG_POINTER_EXCEPTION | 0)) == -1)
4814 SWIG_fail;
4815 if (arg1 == NULL) {
4816 PyErr_SetString(PyExc_TypeError,"null reference");
4817 SWIG_fail;
4818 }
4819 {
4820 if (!wxPyCheckForApp()) SWIG_fail;
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4823
4824 wxPyEndAllowThreads(__tstate);
4825 if (PyErr_Occurred()) SWIG_fail;
4826 }
4827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4828 return resultobj;
4829 fail:
4830 return NULL;
4831 }
4832
4833
4834 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
4835 PyObject *resultobj;
4836 wxBitmap *arg1 = 0 ;
4837 wxColour *arg2 = 0 ;
4838 int arg3 = (int) 0 ;
4839 wxRegion *result;
4840 wxColour temp2 ;
4841 PyObject * obj0 = 0 ;
4842 PyObject * obj1 = 0 ;
4843 PyObject * obj2 = 0 ;
4844 char *kwnames[] = {
4845 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4846 };
4847
4848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
4849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4850 SWIG_POINTER_EXCEPTION | 0)) == -1)
4851 SWIG_fail;
4852 if (arg1 == NULL) {
4853 PyErr_SetString(PyExc_TypeError,"null reference");
4854 SWIG_fail;
4855 }
4856 {
4857 arg2 = &temp2;
4858 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4859 }
4860 if (obj2) {
4861 arg3 = (int)SWIG_As_int(obj2);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 {
4865 if (!wxPyCheckForApp()) SWIG_fail;
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4868
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4873 return resultobj;
4874 fail:
4875 return NULL;
4876 }
4877
4878
4879 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
4880 PyObject *resultobj;
4881 int arg1 ;
4882 wxPoint *arg2 = (wxPoint *) 0 ;
4883 int arg3 = (int) wxWINDING_RULE ;
4884 wxRegion *result;
4885 PyObject * obj0 = 0 ;
4886 PyObject * obj1 = 0 ;
4887 char *kwnames[] = {
4888 (char *) "points",(char *) "fillStyle", NULL
4889 };
4890
4891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4892 {
4893 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4894 if (arg2 == NULL) SWIG_fail;
4895 }
4896 if (obj1) {
4897 arg3 = (int)SWIG_As_int(obj1);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 {
4901 if (!wxPyCheckForApp()) SWIG_fail;
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4904
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4909 {
4910 if (arg2) delete [] arg2;
4911 }
4912 return resultobj;
4913 fail:
4914 {
4915 if (arg2) delete [] arg2;
4916 }
4917 return NULL;
4918 }
4919
4920
4921 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4922 PyObject *resultobj;
4923 wxRegion *arg1 = (wxRegion *) 0 ;
4924 PyObject * obj0 = 0 ;
4925 char *kwnames[] = {
4926 (char *) "self", NULL
4927 };
4928
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 delete arg1;
4935
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 Py_INCREF(Py_None); resultobj = Py_None;
4940 return resultobj;
4941 fail:
4942 return NULL;
4943 }
4944
4945
4946 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
4947 PyObject *resultobj;
4948 wxRegion *arg1 = (wxRegion *) 0 ;
4949 PyObject * obj0 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "self", NULL
4952 };
4953
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4957 {
4958 PyThreadState* __tstate = wxPyBeginAllowThreads();
4959 (arg1)->Clear();
4960
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 Py_INCREF(Py_None); resultobj = Py_None;
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
4972 PyObject *resultobj;
4973 wxRegion *arg1 = (wxRegion *) 0 ;
4974 int arg2 ;
4975 int arg3 ;
4976 int result;
4977 PyObject * obj0 = 0 ;
4978 PyObject * obj1 = 0 ;
4979 PyObject * obj2 = 0 ;
4980 char *kwnames[] = {
4981 (char *) "self",(char *) "x",(char *) "y", NULL
4982 };
4983
4984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4987 arg2 = (int)SWIG_As_int(obj1);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 arg3 = (int)SWIG_As_int(obj2);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 result = (int)(arg1)->Contains(arg2,arg3);
4994
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 resultobj = SWIG_From_int((int)result);
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
5006 PyObject *resultobj;
5007 wxRegion *arg1 = (wxRegion *) 0 ;
5008 wxPoint *arg2 = 0 ;
5009 int result;
5010 wxPoint temp2 ;
5011 PyObject * obj0 = 0 ;
5012 PyObject * obj1 = 0 ;
5013 char *kwnames[] = {
5014 (char *) "self",(char *) "pt", NULL
5015 };
5016
5017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5020 {
5021 arg2 = &temp2;
5022 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5023 }
5024 {
5025 PyThreadState* __tstate = wxPyBeginAllowThreads();
5026 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5027
5028 wxPyEndAllowThreads(__tstate);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 }
5031 resultobj = SWIG_From_int((int)result);
5032 return resultobj;
5033 fail:
5034 return NULL;
5035 }
5036
5037
5038 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
5039 PyObject *resultobj;
5040 wxRegion *arg1 = (wxRegion *) 0 ;
5041 wxRect *arg2 = 0 ;
5042 int result;
5043 wxRect temp2 ;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 char *kwnames[] = {
5047 (char *) "self",(char *) "rect", NULL
5048 };
5049
5050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5053 {
5054 arg2 = &temp2;
5055 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5056 }
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5060
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 resultobj = SWIG_From_int((int)result);
5065 return resultobj;
5066 fail:
5067 return NULL;
5068 }
5069
5070
5071 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 wxRegion *arg1 = (wxRegion *) 0 ;
5074 int arg2 ;
5075 int arg3 ;
5076 int arg4 ;
5077 int arg5 ;
5078 int result;
5079 PyObject * obj0 = 0 ;
5080 PyObject * obj1 = 0 ;
5081 PyObject * obj2 = 0 ;
5082 PyObject * obj3 = 0 ;
5083 PyObject * obj4 = 0 ;
5084 char *kwnames[] = {
5085 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5086 };
5087
5088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5091 arg2 = (int)SWIG_As_int(obj1);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 arg3 = (int)SWIG_As_int(obj2);
5094 if (PyErr_Occurred()) SWIG_fail;
5095 arg4 = (int)SWIG_As_int(obj3);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 arg5 = (int)SWIG_As_int(obj4);
5098 if (PyErr_Occurred()) SWIG_fail;
5099 {
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5102
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_From_int((int)result);
5107 return resultobj;
5108 fail:
5109 return NULL;
5110 }
5111
5112
5113 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj;
5115 wxRegion *arg1 = (wxRegion *) 0 ;
5116 wxRect result;
5117 PyObject * obj0 = 0 ;
5118 char *kwnames[] = {
5119 (char *) "self", NULL
5120 };
5121
5122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (arg1)->GetBox();
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 {
5133 wxRect * resultptr;
5134 resultptr = new wxRect((wxRect &) result);
5135 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5136 }
5137 return resultobj;
5138 fail:
5139 return NULL;
5140 }
5141
5142
5143 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj;
5145 wxRegion *arg1 = (wxRegion *) 0 ;
5146 int arg2 ;
5147 int arg3 ;
5148 int arg4 ;
5149 int arg5 ;
5150 bool result;
5151 PyObject * obj0 = 0 ;
5152 PyObject * obj1 = 0 ;
5153 PyObject * obj2 = 0 ;
5154 PyObject * obj3 = 0 ;
5155 PyObject * obj4 = 0 ;
5156 char *kwnames[] = {
5157 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5158 };
5159
5160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5163 arg2 = (int)SWIG_As_int(obj1);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 arg3 = (int)SWIG_As_int(obj2);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg4 = (int)SWIG_As_int(obj3);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 arg5 = (int)SWIG_As_int(obj4);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5174
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 {
5179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5180 }
5181 return resultobj;
5182 fail:
5183 return NULL;
5184 }
5185
5186
5187 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5188 PyObject *resultobj;
5189 wxRegion *arg1 = (wxRegion *) 0 ;
5190 wxRect *arg2 = 0 ;
5191 bool result;
5192 wxRect temp2 ;
5193 PyObject * obj0 = 0 ;
5194 PyObject * obj1 = 0 ;
5195 char *kwnames[] = {
5196 (char *) "self",(char *) "rect", NULL
5197 };
5198
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5202 {
5203 arg2 = &temp2;
5204 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5205 }
5206 {
5207 PyThreadState* __tstate = wxPyBeginAllowThreads();
5208 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5209
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 {
5214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5215 }
5216 return resultobj;
5217 fail:
5218 return NULL;
5219 }
5220
5221
5222 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5223 PyObject *resultobj;
5224 wxRegion *arg1 = (wxRegion *) 0 ;
5225 wxRegion *arg2 = 0 ;
5226 bool result;
5227 PyObject * obj0 = 0 ;
5228 PyObject * obj1 = 0 ;
5229 char *kwnames[] = {
5230 (char *) "self",(char *) "region", NULL
5231 };
5232
5233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5236 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5237 SWIG_POINTER_EXCEPTION | 0)) == -1)
5238 SWIG_fail;
5239 if (arg2 == NULL) {
5240 PyErr_SetString(PyExc_TypeError,"null reference");
5241 SWIG_fail;
5242 }
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5246
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 {
5251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5252 }
5253 return resultobj;
5254 fail:
5255 return NULL;
5256 }
5257
5258
5259 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5260 PyObject *resultobj;
5261 wxRegion *arg1 = (wxRegion *) 0 ;
5262 bool result;
5263 PyObject * obj0 = 0 ;
5264 char *kwnames[] = {
5265 (char *) "self", NULL
5266 };
5267
5268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 result = (bool)(arg1)->IsEmpty();
5274
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 {
5279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5280 }
5281 return resultobj;
5282 fail:
5283 return NULL;
5284 }
5285
5286
5287 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5288 PyObject *resultobj;
5289 wxRegion *arg1 = (wxRegion *) 0 ;
5290 int arg2 ;
5291 int arg3 ;
5292 int arg4 ;
5293 int arg5 ;
5294 bool result;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 PyObject * obj2 = 0 ;
5298 PyObject * obj3 = 0 ;
5299 PyObject * obj4 = 0 ;
5300 char *kwnames[] = {
5301 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5302 };
5303
5304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5307 arg2 = (int)SWIG_As_int(obj1);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 arg3 = (int)SWIG_As_int(obj2);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 arg4 = (int)SWIG_As_int(obj3);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 arg5 = (int)SWIG_As_int(obj4);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 {
5316 PyThreadState* __tstate = wxPyBeginAllowThreads();
5317 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5318
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
5322 {
5323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5324 }
5325 return resultobj;
5326 fail:
5327 return NULL;
5328 }
5329
5330
5331 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
5332 PyObject *resultobj;
5333 wxRegion *arg1 = (wxRegion *) 0 ;
5334 wxRect *arg2 = 0 ;
5335 bool result;
5336 wxRect temp2 ;
5337 PyObject * obj0 = 0 ;
5338 PyObject * obj1 = 0 ;
5339 char *kwnames[] = {
5340 (char *) "self",(char *) "rect", NULL
5341 };
5342
5343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5346 {
5347 arg2 = &temp2;
5348 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5349 }
5350 {
5351 PyThreadState* __tstate = wxPyBeginAllowThreads();
5352 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5353
5354 wxPyEndAllowThreads(__tstate);
5355 if (PyErr_Occurred()) SWIG_fail;
5356 }
5357 {
5358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5359 }
5360 return resultobj;
5361 fail:
5362 return NULL;
5363 }
5364
5365
5366 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5367 PyObject *resultobj;
5368 wxRegion *arg1 = (wxRegion *) 0 ;
5369 wxRegion *arg2 = 0 ;
5370 bool result;
5371 PyObject * obj0 = 0 ;
5372 PyObject * obj1 = 0 ;
5373 char *kwnames[] = {
5374 (char *) "self",(char *) "region", NULL
5375 };
5376
5377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5380 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5381 SWIG_POINTER_EXCEPTION | 0)) == -1)
5382 SWIG_fail;
5383 if (arg2 == NULL) {
5384 PyErr_SetString(PyExc_TypeError,"null reference");
5385 SWIG_fail;
5386 }
5387 {
5388 PyThreadState* __tstate = wxPyBeginAllowThreads();
5389 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5390
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 {
5395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5396 }
5397 return resultobj;
5398 fail:
5399 return NULL;
5400 }
5401
5402
5403 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
5404 PyObject *resultobj;
5405 wxRegion *arg1 = (wxRegion *) 0 ;
5406 int arg2 ;
5407 int arg3 ;
5408 int arg4 ;
5409 int arg5 ;
5410 bool result;
5411 PyObject * obj0 = 0 ;
5412 PyObject * obj1 = 0 ;
5413 PyObject * obj2 = 0 ;
5414 PyObject * obj3 = 0 ;
5415 PyObject * obj4 = 0 ;
5416 char *kwnames[] = {
5417 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5418 };
5419
5420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5423 arg2 = (int)SWIG_As_int(obj1);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 arg3 = (int)SWIG_As_int(obj2);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 arg4 = (int)SWIG_As_int(obj3);
5428 if (PyErr_Occurred()) SWIG_fail;
5429 arg5 = (int)SWIG_As_int(obj4);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 {
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5434
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 {
5439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5440 }
5441 return resultobj;
5442 fail:
5443 return NULL;
5444 }
5445
5446
5447 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
5448 PyObject *resultobj;
5449 wxRegion *arg1 = (wxRegion *) 0 ;
5450 wxRect *arg2 = 0 ;
5451 bool result;
5452 wxRect temp2 ;
5453 PyObject * obj0 = 0 ;
5454 PyObject * obj1 = 0 ;
5455 char *kwnames[] = {
5456 (char *) "self",(char *) "rect", NULL
5457 };
5458
5459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5462 {
5463 arg2 = &temp2;
5464 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5465 }
5466 {
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5469
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 {
5474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5475 }
5476 return resultobj;
5477 fail:
5478 return NULL;
5479 }
5480
5481
5482 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj;
5484 wxRegion *arg1 = (wxRegion *) 0 ;
5485 wxRegion *arg2 = 0 ;
5486 bool result;
5487 PyObject * obj0 = 0 ;
5488 PyObject * obj1 = 0 ;
5489 char *kwnames[] = {
5490 (char *) "self",(char *) "region", NULL
5491 };
5492
5493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5497 SWIG_POINTER_EXCEPTION | 0)) == -1)
5498 SWIG_fail;
5499 if (arg2 == NULL) {
5500 PyErr_SetString(PyExc_TypeError,"null reference");
5501 SWIG_fail;
5502 }
5503 {
5504 PyThreadState* __tstate = wxPyBeginAllowThreads();
5505 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5506
5507 wxPyEndAllowThreads(__tstate);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 {
5511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5512 }
5513 return resultobj;
5514 fail:
5515 return NULL;
5516 }
5517
5518
5519 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
5520 PyObject *resultobj;
5521 wxRegion *arg1 = (wxRegion *) 0 ;
5522 int arg2 ;
5523 int arg3 ;
5524 int arg4 ;
5525 int arg5 ;
5526 bool result;
5527 PyObject * obj0 = 0 ;
5528 PyObject * obj1 = 0 ;
5529 PyObject * obj2 = 0 ;
5530 PyObject * obj3 = 0 ;
5531 PyObject * obj4 = 0 ;
5532 char *kwnames[] = {
5533 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5534 };
5535
5536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5539 arg2 = (int)SWIG_As_int(obj1);
5540 if (PyErr_Occurred()) SWIG_fail;
5541 arg3 = (int)SWIG_As_int(obj2);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 arg4 = (int)SWIG_As_int(obj3);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 arg5 = (int)SWIG_As_int(obj4);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5550
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 }
5554 {
5555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5556 }
5557 return resultobj;
5558 fail:
5559 return NULL;
5560 }
5561
5562
5563 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
5564 PyObject *resultobj;
5565 wxRegion *arg1 = (wxRegion *) 0 ;
5566 wxRect *arg2 = 0 ;
5567 bool result;
5568 wxRect temp2 ;
5569 PyObject * obj0 = 0 ;
5570 PyObject * obj1 = 0 ;
5571 char *kwnames[] = {
5572 (char *) "self",(char *) "rect", NULL
5573 };
5574
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5578 {
5579 arg2 = &temp2;
5580 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5581 }
5582 {
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5585
5586 wxPyEndAllowThreads(__tstate);
5587 if (PyErr_Occurred()) SWIG_fail;
5588 }
5589 {
5590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5591 }
5592 return resultobj;
5593 fail:
5594 return NULL;
5595 }
5596
5597
5598 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5599 PyObject *resultobj;
5600 wxRegion *arg1 = (wxRegion *) 0 ;
5601 wxRegion *arg2 = 0 ;
5602 bool result;
5603 PyObject * obj0 = 0 ;
5604 PyObject * obj1 = 0 ;
5605 char *kwnames[] = {
5606 (char *) "self",(char *) "region", NULL
5607 };
5608
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5612 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5613 SWIG_POINTER_EXCEPTION | 0)) == -1)
5614 SWIG_fail;
5615 if (arg2 == NULL) {
5616 PyErr_SetString(PyExc_TypeError,"null reference");
5617 SWIG_fail;
5618 }
5619 {
5620 PyThreadState* __tstate = wxPyBeginAllowThreads();
5621 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5622
5623 wxPyEndAllowThreads(__tstate);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 }
5626 {
5627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5628 }
5629 return resultobj;
5630 fail:
5631 return NULL;
5632 }
5633
5634
5635 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5636 PyObject *resultobj;
5637 wxRegion *arg1 = (wxRegion *) 0 ;
5638 SwigValueWrapper< wxBitmap > result;
5639 PyObject * obj0 = 0 ;
5640 char *kwnames[] = {
5641 (char *) "self", NULL
5642 };
5643
5644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5647 {
5648 PyThreadState* __tstate = wxPyBeginAllowThreads();
5649 result = (arg1)->ConvertToBitmap();
5650
5651 wxPyEndAllowThreads(__tstate);
5652 if (PyErr_Occurred()) SWIG_fail;
5653 }
5654 {
5655 wxBitmap * resultptr;
5656 resultptr = new wxBitmap((wxBitmap &) result);
5657 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5658 }
5659 return resultobj;
5660 fail:
5661 return NULL;
5662 }
5663
5664
5665 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5666 PyObject *resultobj;
5667 wxRegion *arg1 = (wxRegion *) 0 ;
5668 wxBitmap *arg2 = 0 ;
5669 bool result;
5670 PyObject * obj0 = 0 ;
5671 PyObject * obj1 = 0 ;
5672 char *kwnames[] = {
5673 (char *) "self",(char *) "bmp", NULL
5674 };
5675
5676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5680 SWIG_POINTER_EXCEPTION | 0)) == -1)
5681 SWIG_fail;
5682 if (arg2 == NULL) {
5683 PyErr_SetString(PyExc_TypeError,"null reference");
5684 SWIG_fail;
5685 }
5686 {
5687 PyThreadState* __tstate = wxPyBeginAllowThreads();
5688 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5689
5690 wxPyEndAllowThreads(__tstate);
5691 if (PyErr_Occurred()) SWIG_fail;
5692 }
5693 {
5694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5695 }
5696 return resultobj;
5697 fail:
5698 return NULL;
5699 }
5700
5701
5702 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
5703 PyObject *resultobj;
5704 wxRegion *arg1 = (wxRegion *) 0 ;
5705 wxBitmap *arg2 = 0 ;
5706 wxColour *arg3 = 0 ;
5707 int arg4 = (int) 0 ;
5708 bool result;
5709 wxColour temp3 ;
5710 PyObject * obj0 = 0 ;
5711 PyObject * obj1 = 0 ;
5712 PyObject * obj2 = 0 ;
5713 PyObject * obj3 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5722 SWIG_POINTER_EXCEPTION | 0)) == -1)
5723 SWIG_fail;
5724 if (arg2 == NULL) {
5725 PyErr_SetString(PyExc_TypeError,"null reference");
5726 SWIG_fail;
5727 }
5728 {
5729 arg3 = &temp3;
5730 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5731 }
5732 if (obj3) {
5733 arg4 = (int)SWIG_As_int(obj3);
5734 if (PyErr_Occurred()) SWIG_fail;
5735 }
5736 {
5737 PyThreadState* __tstate = wxPyBeginAllowThreads();
5738 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5739
5740 wxPyEndAllowThreads(__tstate);
5741 if (PyErr_Occurred()) SWIG_fail;
5742 }
5743 {
5744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5745 }
5746 return resultobj;
5747 fail:
5748 return NULL;
5749 }
5750
5751
5752 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
5753 PyObject *obj;
5754 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5755 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5756 Py_INCREF(obj);
5757 return Py_BuildValue((char *)"");
5758 }
5759 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5760 PyObject *resultobj;
5761 wxRegion *arg1 = 0 ;
5762 wxRegionIterator *result;
5763 PyObject * obj0 = 0 ;
5764 char *kwnames[] = {
5765 (char *) "region", NULL
5766 };
5767
5768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5770 SWIG_POINTER_EXCEPTION | 0)) == -1)
5771 SWIG_fail;
5772 if (arg1 == NULL) {
5773 PyErr_SetString(PyExc_TypeError,"null reference");
5774 SWIG_fail;
5775 }
5776 {
5777 if (!wxPyCheckForApp()) SWIG_fail;
5778 PyThreadState* __tstate = wxPyBeginAllowThreads();
5779 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5780
5781 wxPyEndAllowThreads(__tstate);
5782 if (PyErr_Occurred()) SWIG_fail;
5783 }
5784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5785 return resultobj;
5786 fail:
5787 return NULL;
5788 }
5789
5790
5791 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5792 PyObject *resultobj;
5793 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5794 PyObject * obj0 = 0 ;
5795 char *kwnames[] = {
5796 (char *) "self", NULL
5797 };
5798
5799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5802 {
5803 PyThreadState* __tstate = wxPyBeginAllowThreads();
5804 delete arg1;
5805
5806 wxPyEndAllowThreads(__tstate);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 }
5809 Py_INCREF(Py_None); resultobj = Py_None;
5810 return resultobj;
5811 fail:
5812 return NULL;
5813 }
5814
5815
5816 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
5817 PyObject *resultobj;
5818 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5819 int result;
5820 PyObject * obj0 = 0 ;
5821 char *kwnames[] = {
5822 (char *) "self", NULL
5823 };
5824
5825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 result = (int)(arg1)->GetX();
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = SWIG_From_int((int)result);
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5845 int result;
5846 PyObject * obj0 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5854 {
5855 PyThreadState* __tstate = wxPyBeginAllowThreads();
5856 result = (int)(arg1)->GetY();
5857
5858 wxPyEndAllowThreads(__tstate);
5859 if (PyErr_Occurred()) SWIG_fail;
5860 }
5861 resultobj = SWIG_From_int((int)result);
5862 return resultobj;
5863 fail:
5864 return NULL;
5865 }
5866
5867
5868 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
5869 PyObject *resultobj;
5870 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5871 int result;
5872 PyObject * obj0 = 0 ;
5873 char *kwnames[] = {
5874 (char *) "self", NULL
5875 };
5876
5877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (int)(arg1)->GetW();
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 resultobj = SWIG_From_int((int)result);
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5897 int result;
5898 PyObject * obj0 = 0 ;
5899 char *kwnames[] = {
5900 (char *) "self", NULL
5901 };
5902
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 result = (int)(arg1)->GetWidth();
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 resultobj = SWIG_From_int((int)result);
5914 return resultobj;
5915 fail:
5916 return NULL;
5917 }
5918
5919
5920 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
5921 PyObject *resultobj;
5922 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5923 int result;
5924 PyObject * obj0 = 0 ;
5925 char *kwnames[] = {
5926 (char *) "self", NULL
5927 };
5928
5929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 result = (int)(arg1)->GetH();
5935
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_From_int((int)result);
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj;
5948 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5949 int result;
5950 PyObject * obj0 = 0 ;
5951 char *kwnames[] = {
5952 (char *) "self", NULL
5953 };
5954
5955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5958 {
5959 PyThreadState* __tstate = wxPyBeginAllowThreads();
5960 result = (int)(arg1)->GetHeight();
5961
5962 wxPyEndAllowThreads(__tstate);
5963 if (PyErr_Occurred()) SWIG_fail;
5964 }
5965 resultobj = SWIG_From_int((int)result);
5966 return resultobj;
5967 fail:
5968 return NULL;
5969 }
5970
5971
5972 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
5973 PyObject *resultobj;
5974 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5975 wxRect result;
5976 PyObject * obj0 = 0 ;
5977 char *kwnames[] = {
5978 (char *) "self", NULL
5979 };
5980
5981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 result = (arg1)->GetRect();
5987
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 {
5992 wxRect * resultptr;
5993 resultptr = new wxRect((wxRect &) result);
5994 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5995 }
5996 return resultobj;
5997 fail:
5998 return NULL;
5999 }
6000
6001
6002 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
6003 PyObject *resultobj;
6004 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6005 bool result;
6006 PyObject * obj0 = 0 ;
6007 char *kwnames[] = {
6008 (char *) "self", NULL
6009 };
6010
6011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (bool)(arg1)->HaveRects();
6017
6018 wxPyEndAllowThreads(__tstate);
6019 if (PyErr_Occurred()) SWIG_fail;
6020 }
6021 {
6022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6023 }
6024 return resultobj;
6025 fail:
6026 return NULL;
6027 }
6028
6029
6030 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
6031 PyObject *resultobj;
6032 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6033 PyObject * obj0 = 0 ;
6034 char *kwnames[] = {
6035 (char *) "self", NULL
6036 };
6037
6038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6041 {
6042 PyThreadState* __tstate = wxPyBeginAllowThreads();
6043 (arg1)->Reset();
6044
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 Py_INCREF(Py_None); resultobj = Py_None;
6049 return resultobj;
6050 fail:
6051 return NULL;
6052 }
6053
6054
6055 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
6056 PyObject *resultobj;
6057 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6058 PyObject * obj0 = 0 ;
6059 char *kwnames[] = {
6060 (char *) "self", NULL
6061 };
6062
6063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6066 {
6067 PyThreadState* __tstate = wxPyBeginAllowThreads();
6068 wxRegionIterator_Next(arg1);
6069
6070 wxPyEndAllowThreads(__tstate);
6071 if (PyErr_Occurred()) SWIG_fail;
6072 }
6073 Py_INCREF(Py_None); resultobj = Py_None;
6074 return resultobj;
6075 fail:
6076 return NULL;
6077 }
6078
6079
6080 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
6081 PyObject *resultobj;
6082 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6083 bool result;
6084 PyObject * obj0 = 0 ;
6085 char *kwnames[] = {
6086 (char *) "self", NULL
6087 };
6088
6089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6092 {
6093 PyThreadState* __tstate = wxPyBeginAllowThreads();
6094 result = (bool)wxRegionIterator___nonzero__(arg1);
6095
6096 wxPyEndAllowThreads(__tstate);
6097 if (PyErr_Occurred()) SWIG_fail;
6098 }
6099 {
6100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6101 }
6102 return resultobj;
6103 fail:
6104 return NULL;
6105 }
6106
6107
6108 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
6109 PyObject *obj;
6110 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6111 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6112 Py_INCREF(obj);
6113 return Py_BuildValue((char *)"");
6114 }
6115 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6116 PyObject *resultobj;
6117 wxNativeFontInfo *result;
6118 char *kwnames[] = {
6119 NULL
6120 };
6121
6122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6126
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6131 return resultobj;
6132 fail:
6133 return NULL;
6134 }
6135
6136
6137 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj;
6139 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6140 PyObject * obj0 = 0 ;
6141 char *kwnames[] = {
6142 (char *) "self", NULL
6143 };
6144
6145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6148 {
6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
6150 delete arg1;
6151
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 Py_INCREF(Py_None); resultobj = Py_None;
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj;
6164 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6165 PyObject * obj0 = 0 ;
6166 char *kwnames[] = {
6167 (char *) "self", NULL
6168 };
6169
6170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6173 {
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 (arg1)->Init();
6176
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 Py_INCREF(Py_None); resultobj = Py_None;
6181 return resultobj;
6182 fail:
6183 return NULL;
6184 }
6185
6186
6187 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj;
6189 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6190 wxFont *arg2 = 0 ;
6191 PyObject * obj0 = 0 ;
6192 PyObject * obj1 = 0 ;
6193 char *kwnames[] = {
6194 (char *) "self",(char *) "font", NULL
6195 };
6196
6197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6200 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6201 SWIG_POINTER_EXCEPTION | 0)) == -1)
6202 SWIG_fail;
6203 if (arg2 == NULL) {
6204 PyErr_SetString(PyExc_TypeError,"null reference");
6205 SWIG_fail;
6206 }
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 (arg1)->InitFromFont((wxFont const &)*arg2);
6210
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 Py_INCREF(Py_None); resultobj = Py_None;
6215 return resultobj;
6216 fail:
6217 return NULL;
6218 }
6219
6220
6221 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6222 PyObject *resultobj;
6223 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6224 int result;
6225 PyObject * obj0 = 0 ;
6226 char *kwnames[] = {
6227 (char *) "self", NULL
6228 };
6229
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6233 {
6234 PyThreadState* __tstate = wxPyBeginAllowThreads();
6235 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6236
6237 wxPyEndAllowThreads(__tstate);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 }
6240 resultobj = SWIG_From_int((int)result);
6241 return resultobj;
6242 fail:
6243 return NULL;
6244 }
6245
6246
6247 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6248 PyObject *resultobj;
6249 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6250 int result;
6251 PyObject * obj0 = 0 ;
6252 char *kwnames[] = {
6253 (char *) "self", NULL
6254 };
6255
6256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6262
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_From_int((int)result);
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6276 int result;
6277 PyObject * obj0 = 0 ;
6278 char *kwnames[] = {
6279 (char *) "self", NULL
6280 };
6281
6282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6288
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_From_int((int)result);
6293 return resultobj;
6294 fail:
6295 return NULL;
6296 }
6297
6298
6299 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj;
6301 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6302 bool result;
6303 PyObject * obj0 = 0 ;
6304 char *kwnames[] = {
6305 (char *) "self", NULL
6306 };
6307
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 {
6319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6320 }
6321 return resultobj;
6322 fail:
6323 return NULL;
6324 }
6325
6326
6327 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6328 PyObject *resultobj;
6329 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6330 wxString result;
6331 PyObject * obj0 = 0 ;
6332 char *kwnames[] = {
6333 (char *) "self", NULL
6334 };
6335
6336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6342
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 {
6347 #if wxUSE_UNICODE
6348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6349 #else
6350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6351 #endif
6352 }
6353 return resultobj;
6354 fail:
6355 return NULL;
6356 }
6357
6358
6359 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6360 PyObject *resultobj;
6361 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6362 int result;
6363 PyObject * obj0 = 0 ;
6364 char *kwnames[] = {
6365 (char *) "self", NULL
6366 };
6367
6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 resultobj = SWIG_From_int((int)result);
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6386 PyObject *resultobj;
6387 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6388 int result;
6389 PyObject * obj0 = 0 ;
6390 char *kwnames[] = {
6391 (char *) "self", NULL
6392 };
6393
6394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6397 {
6398 PyThreadState* __tstate = wxPyBeginAllowThreads();
6399 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6400
6401 wxPyEndAllowThreads(__tstate);
6402 if (PyErr_Occurred()) SWIG_fail;
6403 }
6404 resultobj = SWIG_From_int((int)result);
6405 return resultobj;
6406 fail:
6407 return NULL;
6408 }
6409
6410
6411 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6412 PyObject *resultobj;
6413 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6414 int arg2 ;
6415 PyObject * obj0 = 0 ;
6416 PyObject * obj1 = 0 ;
6417 char *kwnames[] = {
6418 (char *) "self",(char *) "pointsize", NULL
6419 };
6420
6421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6424 arg2 = (int)SWIG_As_int(obj1);
6425 if (PyErr_Occurred()) SWIG_fail;
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 (arg1)->SetPointSize(arg2);
6429
6430 wxPyEndAllowThreads(__tstate);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 Py_INCREF(Py_None); resultobj = Py_None;
6434 return resultobj;
6435 fail:
6436 return NULL;
6437 }
6438
6439
6440 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6441 PyObject *resultobj;
6442 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6443 int arg2 ;
6444 PyObject * obj0 = 0 ;
6445 PyObject * obj1 = 0 ;
6446 char *kwnames[] = {
6447 (char *) "self",(char *) "style", NULL
6448 };
6449
6450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6453 arg2 = (int)SWIG_As_int(obj1);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 {
6456 PyThreadState* __tstate = wxPyBeginAllowThreads();
6457 (arg1)->SetStyle((wxFontStyle )arg2);
6458
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 Py_INCREF(Py_None); resultobj = Py_None;
6463 return resultobj;
6464 fail:
6465 return NULL;
6466 }
6467
6468
6469 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6470 PyObject *resultobj;
6471 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6472 int arg2 ;
6473 PyObject * obj0 = 0 ;
6474 PyObject * obj1 = 0 ;
6475 char *kwnames[] = {
6476 (char *) "self",(char *) "weight", NULL
6477 };
6478
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6482 arg2 = (int)SWIG_As_int(obj1);
6483 if (PyErr_Occurred()) SWIG_fail;
6484 {
6485 PyThreadState* __tstate = wxPyBeginAllowThreads();
6486 (arg1)->SetWeight((wxFontWeight )arg2);
6487
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 Py_INCREF(Py_None); resultobj = Py_None;
6492 return resultobj;
6493 fail:
6494 return NULL;
6495 }
6496
6497
6498 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6499 PyObject *resultobj;
6500 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6501 bool arg2 ;
6502 PyObject * obj0 = 0 ;
6503 PyObject * obj1 = 0 ;
6504 char *kwnames[] = {
6505 (char *) "self",(char *) "underlined", NULL
6506 };
6507
6508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6511 arg2 = (bool)SWIG_As_bool(obj1);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 {
6514 PyThreadState* __tstate = wxPyBeginAllowThreads();
6515 (arg1)->SetUnderlined(arg2);
6516
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 Py_INCREF(Py_None); resultobj = Py_None;
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj;
6529 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6530 wxString arg2 ;
6531 PyObject * obj0 = 0 ;
6532 PyObject * obj1 = 0 ;
6533 char *kwnames[] = {
6534 (char *) "self",(char *) "facename", NULL
6535 };
6536
6537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6540 {
6541 wxString* sptr = wxString_in_helper(obj1);
6542 if (sptr == NULL) SWIG_fail;
6543 arg2 = *sptr;
6544 delete sptr;
6545 }
6546 {
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 (arg1)->SetFaceName(arg2);
6549
6550 wxPyEndAllowThreads(__tstate);
6551 if (PyErr_Occurred()) SWIG_fail;
6552 }
6553 Py_INCREF(Py_None); resultobj = Py_None;
6554 return resultobj;
6555 fail:
6556 return NULL;
6557 }
6558
6559
6560 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6561 PyObject *resultobj;
6562 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6563 int arg2 ;
6564 PyObject * obj0 = 0 ;
6565 PyObject * obj1 = 0 ;
6566 char *kwnames[] = {
6567 (char *) "self",(char *) "family", NULL
6568 };
6569
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6573 arg2 = (int)SWIG_As_int(obj1);
6574 if (PyErr_Occurred()) SWIG_fail;
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 (arg1)->SetFamily((wxFontFamily )arg2);
6578
6579 wxPyEndAllowThreads(__tstate);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 Py_INCREF(Py_None); resultobj = Py_None;
6583 return resultobj;
6584 fail:
6585 return NULL;
6586 }
6587
6588
6589 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6590 PyObject *resultobj;
6591 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6592 int arg2 ;
6593 PyObject * obj0 = 0 ;
6594 PyObject * obj1 = 0 ;
6595 char *kwnames[] = {
6596 (char *) "self",(char *) "encoding", NULL
6597 };
6598
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6602 arg2 = (int)SWIG_As_int(obj1);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 {
6605 PyThreadState* __tstate = wxPyBeginAllowThreads();
6606 (arg1)->SetEncoding((wxFontEncoding )arg2);
6607
6608 wxPyEndAllowThreads(__tstate);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 Py_INCREF(Py_None); resultobj = Py_None;
6612 return resultobj;
6613 fail:
6614 return NULL;
6615 }
6616
6617
6618 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6619 PyObject *resultobj;
6620 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6621 wxString *arg2 = 0 ;
6622 bool result;
6623 bool temp2 = false ;
6624 PyObject * obj0 = 0 ;
6625 PyObject * obj1 = 0 ;
6626 char *kwnames[] = {
6627 (char *) "self",(char *) "s", NULL
6628 };
6629
6630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6633 {
6634 arg2 = wxString_in_helper(obj1);
6635 if (arg2 == NULL) SWIG_fail;
6636 temp2 = true;
6637 }
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 {
6646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6647 }
6648 {
6649 if (temp2)
6650 delete arg2;
6651 }
6652 return resultobj;
6653 fail:
6654 {
6655 if (temp2)
6656 delete arg2;
6657 }
6658 return NULL;
6659 }
6660
6661
6662 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6663 PyObject *resultobj;
6664 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6665 wxString result;
6666 PyObject * obj0 = 0 ;
6667 char *kwnames[] = {
6668 (char *) "self", NULL
6669 };
6670
6671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 result = ((wxNativeFontInfo const *)arg1)->ToString();
6677
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
6681 {
6682 #if wxUSE_UNICODE
6683 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6684 #else
6685 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6686 #endif
6687 }
6688 return resultobj;
6689 fail:
6690 return NULL;
6691 }
6692
6693
6694 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
6695 PyObject *resultobj;
6696 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6697 wxString result;
6698 PyObject * obj0 = 0 ;
6699 char *kwnames[] = {
6700 (char *) "self", NULL
6701 };
6702
6703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6706 {
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 result = wxNativeFontInfo___str__(arg1);
6709
6710 wxPyEndAllowThreads(__tstate);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 {
6714 #if wxUSE_UNICODE
6715 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6716 #else
6717 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6718 #endif
6719 }
6720 return resultobj;
6721 fail:
6722 return NULL;
6723 }
6724
6725
6726 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj;
6728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6729 wxString *arg2 = 0 ;
6730 bool result;
6731 bool temp2 = false ;
6732 PyObject * obj0 = 0 ;
6733 PyObject * obj1 = 0 ;
6734 char *kwnames[] = {
6735 (char *) "self",(char *) "s", NULL
6736 };
6737
6738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6741 {
6742 arg2 = wxString_in_helper(obj1);
6743 if (arg2 == NULL) SWIG_fail;
6744 temp2 = true;
6745 }
6746 {
6747 PyThreadState* __tstate = wxPyBeginAllowThreads();
6748 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6749
6750 wxPyEndAllowThreads(__tstate);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 {
6754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6755 }
6756 {
6757 if (temp2)
6758 delete arg2;
6759 }
6760 return resultobj;
6761 fail:
6762 {
6763 if (temp2)
6764 delete arg2;
6765 }
6766 return NULL;
6767 }
6768
6769
6770 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6771 PyObject *resultobj;
6772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6773 wxString result;
6774 PyObject * obj0 = 0 ;
6775 char *kwnames[] = {
6776 (char *) "self", NULL
6777 };
6778
6779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6782 {
6783 PyThreadState* __tstate = wxPyBeginAllowThreads();
6784 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6785
6786 wxPyEndAllowThreads(__tstate);
6787 if (PyErr_Occurred()) SWIG_fail;
6788 }
6789 {
6790 #if wxUSE_UNICODE
6791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6792 #else
6793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6794 #endif
6795 }
6796 return resultobj;
6797 fail:
6798 return NULL;
6799 }
6800
6801
6802 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
6803 PyObject *obj;
6804 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6805 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6806 Py_INCREF(obj);
6807 return Py_BuildValue((char *)"");
6808 }
6809 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj;
6811 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6812 wxString *arg2 = (wxString *) 0 ;
6813 bool temp2 = false ;
6814 PyObject * obj0 = 0 ;
6815 PyObject * obj1 = 0 ;
6816 char *kwnames[] = {
6817 (char *) "self",(char *) "facename", NULL
6818 };
6819
6820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6823 {
6824 arg2 = wxString_in_helper(obj1);
6825 if (arg2 == NULL) SWIG_fail;
6826 temp2 = true;
6827 }
6828 if (arg1) (arg1)->facename = *arg2;
6829
6830 Py_INCREF(Py_None); resultobj = Py_None;
6831 {
6832 if (temp2)
6833 delete arg2;
6834 }
6835 return resultobj;
6836 fail:
6837 {
6838 if (temp2)
6839 delete arg2;
6840 }
6841 return NULL;
6842 }
6843
6844
6845 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj;
6847 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6848 wxString *result;
6849 PyObject * obj0 = 0 ;
6850 char *kwnames[] = {
6851 (char *) "self", NULL
6852 };
6853
6854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6857 result = (wxString *)& ((arg1)->facename);
6858
6859 {
6860 #if wxUSE_UNICODE
6861 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6862 #else
6863 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6864 #endif
6865 }
6866 return resultobj;
6867 fail:
6868 return NULL;
6869 }
6870
6871
6872 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
6873 PyObject *resultobj;
6874 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6875 int arg2 ;
6876 PyObject * obj0 = 0 ;
6877 PyObject * obj1 = 0 ;
6878 char *kwnames[] = {
6879 (char *) "self",(char *) "encoding", NULL
6880 };
6881
6882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6885 arg2 = (int)SWIG_As_int(obj1);
6886 if (PyErr_Occurred()) SWIG_fail;
6887 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6888
6889 Py_INCREF(Py_None); resultobj = Py_None;
6890 return resultobj;
6891 fail:
6892 return NULL;
6893 }
6894
6895
6896 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj;
6898 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6899 int result;
6900 PyObject * obj0 = 0 ;
6901 char *kwnames[] = {
6902 (char *) "self", NULL
6903 };
6904
6905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6908 result = (int) ((arg1)->encoding);
6909
6910 resultobj = SWIG_From_int((int)result);
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6918 PyObject *resultobj;
6919 wxNativeEncodingInfo *result;
6920 char *kwnames[] = {
6921 NULL
6922 };
6923
6924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6925 {
6926 PyThreadState* __tstate = wxPyBeginAllowThreads();
6927 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6928
6929 wxPyEndAllowThreads(__tstate);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6933 return resultobj;
6934 fail:
6935 return NULL;
6936 }
6937
6938
6939 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj;
6941 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6942 PyObject * obj0 = 0 ;
6943 char *kwnames[] = {
6944 (char *) "self", NULL
6945 };
6946
6947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6950 {
6951 PyThreadState* __tstate = wxPyBeginAllowThreads();
6952 delete arg1;
6953
6954 wxPyEndAllowThreads(__tstate);
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 Py_INCREF(Py_None); resultobj = Py_None;
6958 return resultobj;
6959 fail:
6960 return NULL;
6961 }
6962
6963
6964 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj;
6966 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6967 wxString *arg2 = 0 ;
6968 bool result;
6969 bool temp2 = false ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 char *kwnames[] = {
6973 (char *) "self",(char *) "s", NULL
6974 };
6975
6976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6979 {
6980 arg2 = wxString_in_helper(obj1);
6981 if (arg2 == NULL) SWIG_fail;
6982 temp2 = true;
6983 }
6984 {
6985 PyThreadState* __tstate = wxPyBeginAllowThreads();
6986 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6987
6988 wxPyEndAllowThreads(__tstate);
6989 if (PyErr_Occurred()) SWIG_fail;
6990 }
6991 {
6992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6993 }
6994 {
6995 if (temp2)
6996 delete arg2;
6997 }
6998 return resultobj;
6999 fail:
7000 {
7001 if (temp2)
7002 delete arg2;
7003 }
7004 return NULL;
7005 }
7006
7007
7008 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
7009 PyObject *resultobj;
7010 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7011 wxString result;
7012 PyObject * obj0 = 0 ;
7013 char *kwnames[] = {
7014 (char *) "self", NULL
7015 };
7016
7017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7020 {
7021 PyThreadState* __tstate = wxPyBeginAllowThreads();
7022 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7023
7024 wxPyEndAllowThreads(__tstate);
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 {
7028 #if wxUSE_UNICODE
7029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7030 #else
7031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7032 #endif
7033 }
7034 return resultobj;
7035 fail:
7036 return NULL;
7037 }
7038
7039
7040 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
7041 PyObject *obj;
7042 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7043 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7044 Py_INCREF(obj);
7045 return Py_BuildValue((char *)"");
7046 }
7047 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 int arg1 ;
7050 wxNativeEncodingInfo *result;
7051 PyObject * obj0 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "encoding", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7057 arg1 = (int)SWIG_As_int(obj0);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7067 return resultobj;
7068 fail:
7069 return NULL;
7070 }
7071
7072
7073 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj;
7075 wxNativeEncodingInfo *arg1 = 0 ;
7076 bool result;
7077 PyObject * obj0 = 0 ;
7078 char *kwnames[] = {
7079 (char *) "info", NULL
7080 };
7081
7082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7084 SWIG_POINTER_EXCEPTION | 0)) == -1)
7085 SWIG_fail;
7086 if (arg1 == NULL) {
7087 PyErr_SetString(PyExc_TypeError,"null reference");
7088 SWIG_fail;
7089 }
7090 {
7091 PyThreadState* __tstate = wxPyBeginAllowThreads();
7092 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7093
7094 wxPyEndAllowThreads(__tstate);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 {
7098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7099 }
7100 return resultobj;
7101 fail:
7102 return NULL;
7103 }
7104
7105
7106 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7107 PyObject *resultobj;
7108 wxFontMapper *result;
7109 char *kwnames[] = {
7110 NULL
7111 };
7112
7113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7114 {
7115 PyThreadState* __tstate = wxPyBeginAllowThreads();
7116 result = (wxFontMapper *)new wxFontMapper();
7117
7118 wxPyEndAllowThreads(__tstate);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
7121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7122 return resultobj;
7123 fail:
7124 return NULL;
7125 }
7126
7127
7128 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7129 PyObject *resultobj;
7130 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7131 PyObject * obj0 = 0 ;
7132 char *kwnames[] = {
7133 (char *) "self", NULL
7134 };
7135
7136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7139 {
7140 PyThreadState* __tstate = wxPyBeginAllowThreads();
7141 delete arg1;
7142
7143 wxPyEndAllowThreads(__tstate);
7144 if (PyErr_Occurred()) SWIG_fail;
7145 }
7146 Py_INCREF(Py_None); resultobj = Py_None;
7147 return resultobj;
7148 fail:
7149 return NULL;
7150 }
7151
7152
7153 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
7154 PyObject *resultobj;
7155 wxFontMapper *result;
7156 char *kwnames[] = {
7157 NULL
7158 };
7159
7160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 result = (wxFontMapper *)wxFontMapper::Get();
7164
7165 wxPyEndAllowThreads(__tstate);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 }
7168 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7169 return resultobj;
7170 fail:
7171 return NULL;
7172 }
7173
7174
7175 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7176 PyObject *resultobj;
7177 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7178 wxFontMapper *result;
7179 PyObject * obj0 = 0 ;
7180 char *kwnames[] = {
7181 (char *) "mapper", NULL
7182 };
7183
7184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7190
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7195 return resultobj;
7196 fail:
7197 return NULL;
7198 }
7199
7200
7201 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7202 PyObject *resultobj;
7203 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7204 wxString *arg2 = 0 ;
7205 bool arg3 = (bool) true ;
7206 int result;
7207 bool temp2 = false ;
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 PyObject * obj2 = 0 ;
7211 char *kwnames[] = {
7212 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7213 };
7214
7215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7218 {
7219 arg2 = wxString_in_helper(obj1);
7220 if (arg2 == NULL) SWIG_fail;
7221 temp2 = true;
7222 }
7223 if (obj2) {
7224 arg3 = (bool)SWIG_As_bool(obj2);
7225 if (PyErr_Occurred()) SWIG_fail;
7226 }
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7230
7231 wxPyEndAllowThreads(__tstate);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 resultobj = SWIG_From_int((int)result);
7235 {
7236 if (temp2)
7237 delete arg2;
7238 }
7239 return resultobj;
7240 fail:
7241 {
7242 if (temp2)
7243 delete arg2;
7244 }
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 size_t result;
7252 char *kwnames[] = {
7253 NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7260
7261 wxPyEndAllowThreads(__tstate);
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7265 return resultobj;
7266 fail:
7267 return NULL;
7268 }
7269
7270
7271 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7272 PyObject *resultobj;
7273 size_t arg1 ;
7274 int result;
7275 PyObject * obj0 = 0 ;
7276 char *kwnames[] = {
7277 (char *) "n", NULL
7278 };
7279
7280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7281 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 result = (int)wxFontMapper::GetEncoding(arg1);
7286
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = SWIG_From_int((int)result);
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj;
7299 int arg1 ;
7300 wxString result;
7301 PyObject * obj0 = 0 ;
7302 char *kwnames[] = {
7303 (char *) "encoding", NULL
7304 };
7305
7306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7307 arg1 = (int)SWIG_As_int(obj0);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7312
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 {
7317 #if wxUSE_UNICODE
7318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7319 #else
7320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7321 #endif
7322 }
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
7330 PyObject *resultobj;
7331 int arg1 ;
7332 wxString result;
7333 PyObject * obj0 = 0 ;
7334 char *kwnames[] = {
7335 (char *) "encoding", NULL
7336 };
7337
7338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7339 arg1 = (int)SWIG_As_int(obj0);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 {
7342 PyThreadState* __tstate = wxPyBeginAllowThreads();
7343 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7344
7345 wxPyEndAllowThreads(__tstate);
7346 if (PyErr_Occurred()) SWIG_fail;
7347 }
7348 {
7349 #if wxUSE_UNICODE
7350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7351 #else
7352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7353 #endif
7354 }
7355 return resultobj;
7356 fail:
7357 return NULL;
7358 }
7359
7360
7361 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
7362 PyObject *resultobj;
7363 wxString *arg1 = 0 ;
7364 int result;
7365 bool temp1 = false ;
7366 PyObject * obj0 = 0 ;
7367 char *kwnames[] = {
7368 (char *) "name", NULL
7369 };
7370
7371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7372 {
7373 arg1 = wxString_in_helper(obj0);
7374 if (arg1 == NULL) SWIG_fail;
7375 temp1 = true;
7376 }
7377 {
7378 PyThreadState* __tstate = wxPyBeginAllowThreads();
7379 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7380
7381 wxPyEndAllowThreads(__tstate);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_From_int((int)result);
7385 {
7386 if (temp1)
7387 delete arg1;
7388 }
7389 return resultobj;
7390 fail:
7391 {
7392 if (temp1)
7393 delete arg1;
7394 }
7395 return NULL;
7396 }
7397
7398
7399 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
7400 PyObject *resultobj;
7401 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7402 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7403 PyObject * obj0 = 0 ;
7404 PyObject * obj1 = 0 ;
7405 char *kwnames[] = {
7406 (char *) "self",(char *) "config", NULL
7407 };
7408
7409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7412 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7414 {
7415 PyThreadState* __tstate = wxPyBeginAllowThreads();
7416 (arg1)->SetConfig(arg2);
7417
7418 wxPyEndAllowThreads(__tstate);
7419 if (PyErr_Occurred()) SWIG_fail;
7420 }
7421 Py_INCREF(Py_None); resultobj = Py_None;
7422 return resultobj;
7423 fail:
7424 return NULL;
7425 }
7426
7427
7428 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj;
7430 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7431 wxString *arg2 = 0 ;
7432 bool temp2 = false ;
7433 PyObject * obj0 = 0 ;
7434 PyObject * obj1 = 0 ;
7435 char *kwnames[] = {
7436 (char *) "self",(char *) "prefix", NULL
7437 };
7438
7439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7442 {
7443 arg2 = wxString_in_helper(obj1);
7444 if (arg2 == NULL) SWIG_fail;
7445 temp2 = true;
7446 }
7447 {
7448 PyThreadState* __tstate = wxPyBeginAllowThreads();
7449 (arg1)->SetConfigPath((wxString const &)*arg2);
7450
7451 wxPyEndAllowThreads(__tstate);
7452 if (PyErr_Occurred()) SWIG_fail;
7453 }
7454 Py_INCREF(Py_None); resultobj = Py_None;
7455 {
7456 if (temp2)
7457 delete arg2;
7458 }
7459 return resultobj;
7460 fail:
7461 {
7462 if (temp2)
7463 delete arg2;
7464 }
7465 return NULL;
7466 }
7467
7468
7469 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7470 PyObject *resultobj;
7471 wxString result;
7472 char *kwnames[] = {
7473 NULL
7474 };
7475
7476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7477 {
7478 PyThreadState* __tstate = wxPyBeginAllowThreads();
7479 result = wxFontMapper::GetDefaultConfigPath();
7480
7481 wxPyEndAllowThreads(__tstate);
7482 if (PyErr_Occurred()) SWIG_fail;
7483 }
7484 {
7485 #if wxUSE_UNICODE
7486 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7487 #else
7488 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7489 #endif
7490 }
7491 return resultobj;
7492 fail:
7493 return NULL;
7494 }
7495
7496
7497 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7498 PyObject *resultobj;
7499 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7500 int arg2 ;
7501 wxString const &arg3_defvalue = wxPyEmptyString ;
7502 wxString *arg3 = (wxString *) &arg3_defvalue ;
7503 bool arg4 = (bool) true ;
7504 PyObject *result;
7505 bool temp3 = false ;
7506 PyObject * obj0 = 0 ;
7507 PyObject * obj1 = 0 ;
7508 PyObject * obj2 = 0 ;
7509 PyObject * obj3 = 0 ;
7510 char *kwnames[] = {
7511 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7512 };
7513
7514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7517 arg2 = (int)SWIG_As_int(obj1);
7518 if (PyErr_Occurred()) SWIG_fail;
7519 if (obj2) {
7520 {
7521 arg3 = wxString_in_helper(obj2);
7522 if (arg3 == NULL) SWIG_fail;
7523 temp3 = true;
7524 }
7525 }
7526 if (obj3) {
7527 arg4 = (bool)SWIG_As_bool(obj3);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 {
7531 PyThreadState* __tstate = wxPyBeginAllowThreads();
7532 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7533
7534 wxPyEndAllowThreads(__tstate);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 resultobj = result;
7538 {
7539 if (temp3)
7540 delete arg3;
7541 }
7542 return resultobj;
7543 fail:
7544 {
7545 if (temp3)
7546 delete arg3;
7547 }
7548 return NULL;
7549 }
7550
7551
7552 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
7553 PyObject *resultobj;
7554 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7555 int arg2 ;
7556 wxString const &arg3_defvalue = wxPyEmptyString ;
7557 wxString *arg3 = (wxString *) &arg3_defvalue ;
7558 bool result;
7559 bool temp3 = false ;
7560 PyObject * obj0 = 0 ;
7561 PyObject * obj1 = 0 ;
7562 PyObject * obj2 = 0 ;
7563 char *kwnames[] = {
7564 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7565 };
7566
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7570 arg2 = (int)SWIG_As_int(obj1);
7571 if (PyErr_Occurred()) SWIG_fail;
7572 if (obj2) {
7573 {
7574 arg3 = wxString_in_helper(obj2);
7575 if (arg3 == NULL) SWIG_fail;
7576 temp3 = true;
7577 }
7578 }
7579 {
7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
7581 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7582
7583 wxPyEndAllowThreads(__tstate);
7584 if (PyErr_Occurred()) SWIG_fail;
7585 }
7586 {
7587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7588 }
7589 {
7590 if (temp3)
7591 delete arg3;
7592 }
7593 return resultobj;
7594 fail:
7595 {
7596 if (temp3)
7597 delete arg3;
7598 }
7599 return NULL;
7600 }
7601
7602
7603 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
7604 PyObject *resultobj;
7605 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7606 wxWindow *arg2 = (wxWindow *) 0 ;
7607 PyObject * obj0 = 0 ;
7608 PyObject * obj1 = 0 ;
7609 char *kwnames[] = {
7610 (char *) "self",(char *) "parent", NULL
7611 };
7612
7613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7618 {
7619 PyThreadState* __tstate = wxPyBeginAllowThreads();
7620 (arg1)->SetDialogParent(arg2);
7621
7622 wxPyEndAllowThreads(__tstate);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 Py_INCREF(Py_None); resultobj = Py_None;
7626 return resultobj;
7627 fail:
7628 return NULL;
7629 }
7630
7631
7632 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
7633 PyObject *resultobj;
7634 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7635 wxString *arg2 = 0 ;
7636 bool temp2 = false ;
7637 PyObject * obj0 = 0 ;
7638 PyObject * obj1 = 0 ;
7639 char *kwnames[] = {
7640 (char *) "self",(char *) "title", NULL
7641 };
7642
7643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7646 {
7647 arg2 = wxString_in_helper(obj1);
7648 if (arg2 == NULL) SWIG_fail;
7649 temp2 = true;
7650 }
7651 {
7652 PyThreadState* __tstate = wxPyBeginAllowThreads();
7653 (arg1)->SetDialogTitle((wxString const &)*arg2);
7654
7655 wxPyEndAllowThreads(__tstate);
7656 if (PyErr_Occurred()) SWIG_fail;
7657 }
7658 Py_INCREF(Py_None); resultobj = Py_None;
7659 {
7660 if (temp2)
7661 delete arg2;
7662 }
7663 return resultobj;
7664 fail:
7665 {
7666 if (temp2)
7667 delete arg2;
7668 }
7669 return NULL;
7670 }
7671
7672
7673 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
7674 PyObject *obj;
7675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7676 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7677 Py_INCREF(obj);
7678 return Py_BuildValue((char *)"");
7679 }
7680 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7681 PyObject *resultobj;
7682 int arg1 ;
7683 int arg2 ;
7684 int arg3 ;
7685 int arg4 ;
7686 bool arg5 = (bool) false ;
7687 wxString const &arg6_defvalue = wxPyEmptyString ;
7688 wxString *arg6 = (wxString *) &arg6_defvalue ;
7689 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7690 wxFont *result;
7691 bool temp6 = false ;
7692 PyObject * obj0 = 0 ;
7693 PyObject * obj1 = 0 ;
7694 PyObject * obj2 = 0 ;
7695 PyObject * obj3 = 0 ;
7696 PyObject * obj4 = 0 ;
7697 PyObject * obj5 = 0 ;
7698 PyObject * obj6 = 0 ;
7699 char *kwnames[] = {
7700 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7701 };
7702
7703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7704 arg1 = (int)SWIG_As_int(obj0);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 arg2 = (int)SWIG_As_int(obj1);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 arg3 = (int)SWIG_As_int(obj2);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 arg4 = (int)SWIG_As_int(obj3);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 if (obj4) {
7713 arg5 = (bool)SWIG_As_bool(obj4);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 if (obj5) {
7717 {
7718 arg6 = wxString_in_helper(obj5);
7719 if (arg6 == NULL) SWIG_fail;
7720 temp6 = true;
7721 }
7722 }
7723 if (obj6) {
7724 arg7 = (int)SWIG_As_int(obj6);
7725 if (PyErr_Occurred()) SWIG_fail;
7726 }
7727 {
7728 if (!wxPyCheckForApp()) SWIG_fail;
7729 PyThreadState* __tstate = wxPyBeginAllowThreads();
7730 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7731
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7736 {
7737 if (temp6)
7738 delete arg6;
7739 }
7740 return resultobj;
7741 fail:
7742 {
7743 if (temp6)
7744 delete arg6;
7745 }
7746 return NULL;
7747 }
7748
7749
7750 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7751 PyObject *resultobj;
7752 wxFont *arg1 = (wxFont *) 0 ;
7753 PyObject * obj0 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 delete arg1;
7764
7765 wxPyEndAllowThreads(__tstate);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 Py_INCREF(Py_None); resultobj = Py_None;
7769 return resultobj;
7770 fail:
7771 return NULL;
7772 }
7773
7774
7775 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7776 PyObject *resultobj;
7777 wxNativeFontInfo *arg1 = 0 ;
7778 wxFont *result;
7779 PyObject * obj0 = 0 ;
7780 char *kwnames[] = {
7781 (char *) "info", NULL
7782 };
7783
7784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7786 SWIG_POINTER_EXCEPTION | 0)) == -1)
7787 SWIG_fail;
7788 if (arg1 == NULL) {
7789 PyErr_SetString(PyExc_TypeError,"null reference");
7790 SWIG_fail;
7791 }
7792 {
7793 if (!wxPyCheckForApp()) SWIG_fail;
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7796
7797 wxPyEndAllowThreads(__tstate);
7798 if (PyErr_Occurred()) SWIG_fail;
7799 }
7800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7801 return resultobj;
7802 fail:
7803 return NULL;
7804 }
7805
7806
7807 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj;
7809 wxString *arg1 = 0 ;
7810 wxFont *result;
7811 bool temp1 = false ;
7812 PyObject * obj0 = 0 ;
7813 char *kwnames[] = {
7814 (char *) "info", NULL
7815 };
7816
7817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7818 {
7819 arg1 = wxString_in_helper(obj0);
7820 if (arg1 == NULL) SWIG_fail;
7821 temp1 = true;
7822 }
7823 {
7824 if (!wxPyCheckForApp()) SWIG_fail;
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7827
7828 wxPyEndAllowThreads(__tstate);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7832 {
7833 if (temp1)
7834 delete arg1;
7835 }
7836 return resultobj;
7837 fail:
7838 {
7839 if (temp1)
7840 delete arg1;
7841 }
7842 return NULL;
7843 }
7844
7845
7846 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
7847 PyObject *resultobj;
7848 int arg1 ;
7849 int arg2 ;
7850 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7851 wxString const &arg4_defvalue = wxPyEmptyString ;
7852 wxString *arg4 = (wxString *) &arg4_defvalue ;
7853 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7854 wxFont *result;
7855 bool temp4 = false ;
7856 PyObject * obj0 = 0 ;
7857 PyObject * obj1 = 0 ;
7858 PyObject * obj2 = 0 ;
7859 PyObject * obj3 = 0 ;
7860 PyObject * obj4 = 0 ;
7861 char *kwnames[] = {
7862 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7863 };
7864
7865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7866 arg1 = (int)SWIG_As_int(obj0);
7867 if (PyErr_Occurred()) SWIG_fail;
7868 arg2 = (int)SWIG_As_int(obj1);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 if (obj2) {
7871 arg3 = (int)SWIG_As_int(obj2);
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 if (obj3) {
7875 {
7876 arg4 = wxString_in_helper(obj3);
7877 if (arg4 == NULL) SWIG_fail;
7878 temp4 = true;
7879 }
7880 }
7881 if (obj4) {
7882 arg5 = (int)SWIG_As_int(obj4);
7883 if (PyErr_Occurred()) SWIG_fail;
7884 }
7885 {
7886 if (!wxPyCheckForApp()) SWIG_fail;
7887 PyThreadState* __tstate = wxPyBeginAllowThreads();
7888 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7889
7890 wxPyEndAllowThreads(__tstate);
7891 if (PyErr_Occurred()) SWIG_fail;
7892 }
7893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7894 {
7895 if (temp4)
7896 delete arg4;
7897 }
7898 return resultobj;
7899 fail:
7900 {
7901 if (temp4)
7902 delete arg4;
7903 }
7904 return NULL;
7905 }
7906
7907
7908 static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
7909 PyObject *resultobj;
7910 wxSize *arg1 = 0 ;
7911 int arg2 ;
7912 int arg3 ;
7913 int arg4 ;
7914 bool arg5 = (bool) false ;
7915 wxString const &arg6_defvalue = wxEmptyString ;
7916 wxString *arg6 = (wxString *) &arg6_defvalue ;
7917 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7918 wxFont *result;
7919 wxSize temp1 ;
7920 bool temp6 = false ;
7921 PyObject * obj0 = 0 ;
7922 PyObject * obj1 = 0 ;
7923 PyObject * obj2 = 0 ;
7924 PyObject * obj3 = 0 ;
7925 PyObject * obj4 = 0 ;
7926 PyObject * obj5 = 0 ;
7927 PyObject * obj6 = 0 ;
7928 char *kwnames[] = {
7929 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
7930 };
7931
7932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7933 {
7934 arg1 = &temp1;
7935 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
7936 }
7937 arg2 = (int)SWIG_As_int(obj1);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 arg3 = (int)SWIG_As_int(obj2);
7940 if (PyErr_Occurred()) SWIG_fail;
7941 arg4 = (int)SWIG_As_int(obj3);
7942 if (PyErr_Occurred()) SWIG_fail;
7943 if (obj4) {
7944 arg5 = (bool)SWIG_As_bool(obj4);
7945 if (PyErr_Occurred()) SWIG_fail;
7946 }
7947 if (obj5) {
7948 {
7949 arg6 = wxString_in_helper(obj5);
7950 if (arg6 == NULL) SWIG_fail;
7951 temp6 = true;
7952 }
7953 }
7954 if (obj6) {
7955 arg7 = (int)SWIG_As_int(obj6);
7956 if (PyErr_Occurred()) SWIG_fail;
7957 }
7958 {
7959 if (!wxPyCheckForApp()) SWIG_fail;
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7962
7963 wxPyEndAllowThreads(__tstate);
7964 if (PyErr_Occurred()) SWIG_fail;
7965 }
7966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7967 {
7968 if (temp6)
7969 delete arg6;
7970 }
7971 return resultobj;
7972 fail:
7973 {
7974 if (temp6)
7975 delete arg6;
7976 }
7977 return NULL;
7978 }
7979
7980
7981 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
7982 PyObject *resultobj;
7983 wxFont *arg1 = (wxFont *) 0 ;
7984 bool result;
7985 PyObject * obj0 = 0 ;
7986 char *kwnames[] = {
7987 (char *) "self", NULL
7988 };
7989
7990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7993 {
7994 PyThreadState* __tstate = wxPyBeginAllowThreads();
7995 result = (bool)((wxFont const *)arg1)->Ok();
7996
7997 wxPyEndAllowThreads(__tstate);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 {
8001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8002 }
8003 return resultobj;
8004 fail:
8005 return NULL;
8006 }
8007
8008
8009 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxFont *arg1 = (wxFont *) 0 ;
8012 wxFont *arg2 = (wxFont *) 0 ;
8013 bool result;
8014 PyObject * obj0 = 0 ;
8015 PyObject * obj1 = 0 ;
8016 char *kwnames[] = {
8017 (char *) "self",(char *) "other", NULL
8018 };
8019
8020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8023 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8025 {
8026 PyThreadState* __tstate = wxPyBeginAllowThreads();
8027 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8028
8029 wxPyEndAllowThreads(__tstate);
8030 if (PyErr_Occurred()) SWIG_fail;
8031 }
8032 {
8033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8034 }
8035 return resultobj;
8036 fail:
8037 return NULL;
8038 }
8039
8040
8041 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
8042 PyObject *resultobj;
8043 wxFont *arg1 = (wxFont *) 0 ;
8044 wxFont *arg2 = (wxFont *) 0 ;
8045 bool result;
8046 PyObject * obj0 = 0 ;
8047 PyObject * obj1 = 0 ;
8048 char *kwnames[] = {
8049 (char *) "self",(char *) "other", NULL
8050 };
8051
8052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8057 {
8058 PyThreadState* __tstate = wxPyBeginAllowThreads();
8059 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8060
8061 wxPyEndAllowThreads(__tstate);
8062 if (PyErr_Occurred()) SWIG_fail;
8063 }
8064 {
8065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8066 }
8067 return resultobj;
8068 fail:
8069 return NULL;
8070 }
8071
8072
8073 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8074 PyObject *resultobj;
8075 wxFont *arg1 = (wxFont *) 0 ;
8076 int result;
8077 PyObject * obj0 = 0 ;
8078 char *kwnames[] = {
8079 (char *) "self", NULL
8080 };
8081
8082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8085 {
8086 PyThreadState* __tstate = wxPyBeginAllowThreads();
8087 result = (int)((wxFont const *)arg1)->GetPointSize();
8088
8089 wxPyEndAllowThreads(__tstate);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 }
8092 resultobj = SWIG_From_int((int)result);
8093 return resultobj;
8094 fail:
8095 return NULL;
8096 }
8097
8098
8099 static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8100 PyObject *resultobj;
8101 wxFont *arg1 = (wxFont *) 0 ;
8102 wxSize result;
8103 PyObject * obj0 = 0 ;
8104 char *kwnames[] = {
8105 (char *) "self", NULL
8106 };
8107
8108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
8109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 result = ((wxFont const *)arg1)->GetPixelSize();
8114
8115 wxPyEndAllowThreads(__tstate);
8116 if (PyErr_Occurred()) SWIG_fail;
8117 }
8118 {
8119 wxSize * resultptr;
8120 resultptr = new wxSize((wxSize &) result);
8121 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
8122 }
8123 return resultobj;
8124 fail:
8125 return NULL;
8126 }
8127
8128
8129 static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
8130 PyObject *resultobj;
8131 wxFont *arg1 = (wxFont *) 0 ;
8132 bool result;
8133 PyObject * obj0 = 0 ;
8134 char *kwnames[] = {
8135 (char *) "self", NULL
8136 };
8137
8138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
8139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 {
8149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8150 }
8151 return resultobj;
8152 fail:
8153 return NULL;
8154 }
8155
8156
8157 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8158 PyObject *resultobj;
8159 wxFont *arg1 = (wxFont *) 0 ;
8160 int result;
8161 PyObject * obj0 = 0 ;
8162 char *kwnames[] = {
8163 (char *) "self", NULL
8164 };
8165
8166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8169 {
8170 PyThreadState* __tstate = wxPyBeginAllowThreads();
8171 result = (int)((wxFont const *)arg1)->GetFamily();
8172
8173 wxPyEndAllowThreads(__tstate);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 resultobj = SWIG_From_int((int)result);
8177 return resultobj;
8178 fail:
8179 return NULL;
8180 }
8181
8182
8183 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8184 PyObject *resultobj;
8185 wxFont *arg1 = (wxFont *) 0 ;
8186 int result;
8187 PyObject * obj0 = 0 ;
8188 char *kwnames[] = {
8189 (char *) "self", NULL
8190 };
8191
8192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 result = (int)((wxFont const *)arg1)->GetStyle();
8198
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 resultobj = SWIG_From_int((int)result);
8203 return resultobj;
8204 fail:
8205 return NULL;
8206 }
8207
8208
8209 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8210 PyObject *resultobj;
8211 wxFont *arg1 = (wxFont *) 0 ;
8212 int result;
8213 PyObject * obj0 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "self", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8221 {
8222 PyThreadState* __tstate = wxPyBeginAllowThreads();
8223 result = (int)((wxFont const *)arg1)->GetWeight();
8224
8225 wxPyEndAllowThreads(__tstate);
8226 if (PyErr_Occurred()) SWIG_fail;
8227 }
8228 resultobj = SWIG_From_int((int)result);
8229 return resultobj;
8230 fail:
8231 return NULL;
8232 }
8233
8234
8235 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8236 PyObject *resultobj;
8237 wxFont *arg1 = (wxFont *) 0 ;
8238 bool result;
8239 PyObject * obj0 = 0 ;
8240 char *kwnames[] = {
8241 (char *) "self", NULL
8242 };
8243
8244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8247 {
8248 PyThreadState* __tstate = wxPyBeginAllowThreads();
8249 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8250
8251 wxPyEndAllowThreads(__tstate);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 {
8255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8256 }
8257 return resultobj;
8258 fail:
8259 return NULL;
8260 }
8261
8262
8263 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8264 PyObject *resultobj;
8265 wxFont *arg1 = (wxFont *) 0 ;
8266 wxString result;
8267 PyObject * obj0 = 0 ;
8268 char *kwnames[] = {
8269 (char *) "self", NULL
8270 };
8271
8272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8275 {
8276 PyThreadState* __tstate = wxPyBeginAllowThreads();
8277 result = ((wxFont const *)arg1)->GetFaceName();
8278
8279 wxPyEndAllowThreads(__tstate);
8280 if (PyErr_Occurred()) SWIG_fail;
8281 }
8282 {
8283 #if wxUSE_UNICODE
8284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8285 #else
8286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8287 #endif
8288 }
8289 return resultobj;
8290 fail:
8291 return NULL;
8292 }
8293
8294
8295 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8296 PyObject *resultobj;
8297 wxFont *arg1 = (wxFont *) 0 ;
8298 int result;
8299 PyObject * obj0 = 0 ;
8300 char *kwnames[] = {
8301 (char *) "self", NULL
8302 };
8303
8304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8307 {
8308 PyThreadState* __tstate = wxPyBeginAllowThreads();
8309 result = (int)((wxFont const *)arg1)->GetEncoding();
8310
8311 wxPyEndAllowThreads(__tstate);
8312 if (PyErr_Occurred()) SWIG_fail;
8313 }
8314 resultobj = SWIG_From_int((int)result);
8315 return resultobj;
8316 fail:
8317 return NULL;
8318 }
8319
8320
8321 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8322 PyObject *resultobj;
8323 wxFont *arg1 = (wxFont *) 0 ;
8324 wxNativeFontInfo *result;
8325 PyObject * obj0 = 0 ;
8326 char *kwnames[] = {
8327 (char *) "self", NULL
8328 };
8329
8330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8333 {
8334 PyThreadState* __tstate = wxPyBeginAllowThreads();
8335 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8336
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8341 return resultobj;
8342 fail:
8343 return NULL;
8344 }
8345
8346
8347 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8348 PyObject *resultobj;
8349 wxFont *arg1 = (wxFont *) 0 ;
8350 bool result;
8351 PyObject * obj0 = 0 ;
8352 char *kwnames[] = {
8353 (char *) "self", NULL
8354 };
8355
8356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8359 {
8360 PyThreadState* __tstate = wxPyBeginAllowThreads();
8361 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8362
8363 wxPyEndAllowThreads(__tstate);
8364 if (PyErr_Occurred()) SWIG_fail;
8365 }
8366 {
8367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8368 }
8369 return resultobj;
8370 fail:
8371 return NULL;
8372 }
8373
8374
8375 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj;
8377 wxFont *arg1 = (wxFont *) 0 ;
8378 wxString result;
8379 PyObject * obj0 = 0 ;
8380 char *kwnames[] = {
8381 (char *) "self", NULL
8382 };
8383
8384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8387 {
8388 PyThreadState* __tstate = wxPyBeginAllowThreads();
8389 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8390
8391 wxPyEndAllowThreads(__tstate);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 {
8395 #if wxUSE_UNICODE
8396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8397 #else
8398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8399 #endif
8400 }
8401 return resultobj;
8402 fail:
8403 return NULL;
8404 }
8405
8406
8407 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8408 PyObject *resultobj;
8409 wxFont *arg1 = (wxFont *) 0 ;
8410 wxString result;
8411 PyObject * obj0 = 0 ;
8412 char *kwnames[] = {
8413 (char *) "self", NULL
8414 };
8415
8416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8419 {
8420 PyThreadState* __tstate = wxPyBeginAllowThreads();
8421 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8422
8423 wxPyEndAllowThreads(__tstate);
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 {
8427 #if wxUSE_UNICODE
8428 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8429 #else
8430 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8431 #endif
8432 }
8433 return resultobj;
8434 fail:
8435 return NULL;
8436 }
8437
8438
8439 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8440 PyObject *resultobj;
8441 wxFont *arg1 = (wxFont *) 0 ;
8442 int arg2 ;
8443 PyObject * obj0 = 0 ;
8444 PyObject * obj1 = 0 ;
8445 char *kwnames[] = {
8446 (char *) "self",(char *) "pointSize", NULL
8447 };
8448
8449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8452 arg2 = (int)SWIG_As_int(obj1);
8453 if (PyErr_Occurred()) SWIG_fail;
8454 {
8455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8456 (arg1)->SetPointSize(arg2);
8457
8458 wxPyEndAllowThreads(__tstate);
8459 if (PyErr_Occurred()) SWIG_fail;
8460 }
8461 Py_INCREF(Py_None); resultobj = Py_None;
8462 return resultobj;
8463 fail:
8464 return NULL;
8465 }
8466
8467
8468 static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8469 PyObject *resultobj;
8470 wxFont *arg1 = (wxFont *) 0 ;
8471 wxSize *arg2 = 0 ;
8472 wxSize temp2 ;
8473 PyObject * obj0 = 0 ;
8474 PyObject * obj1 = 0 ;
8475 char *kwnames[] = {
8476 (char *) "self",(char *) "pixelSize", NULL
8477 };
8478
8479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
8480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8482 {
8483 arg2 = &temp2;
8484 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8485 }
8486 {
8487 PyThreadState* __tstate = wxPyBeginAllowThreads();
8488 (arg1)->SetPixelSize((wxSize const &)*arg2);
8489
8490 wxPyEndAllowThreads(__tstate);
8491 if (PyErr_Occurred()) SWIG_fail;
8492 }
8493 Py_INCREF(Py_None); resultobj = Py_None;
8494 return resultobj;
8495 fail:
8496 return NULL;
8497 }
8498
8499
8500 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8501 PyObject *resultobj;
8502 wxFont *arg1 = (wxFont *) 0 ;
8503 int arg2 ;
8504 PyObject * obj0 = 0 ;
8505 PyObject * obj1 = 0 ;
8506 char *kwnames[] = {
8507 (char *) "self",(char *) "family", NULL
8508 };
8509
8510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8513 arg2 = (int)SWIG_As_int(obj1);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 {
8516 PyThreadState* __tstate = wxPyBeginAllowThreads();
8517 (arg1)->SetFamily(arg2);
8518
8519 wxPyEndAllowThreads(__tstate);
8520 if (PyErr_Occurred()) SWIG_fail;
8521 }
8522 Py_INCREF(Py_None); resultobj = Py_None;
8523 return resultobj;
8524 fail:
8525 return NULL;
8526 }
8527
8528
8529 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8530 PyObject *resultobj;
8531 wxFont *arg1 = (wxFont *) 0 ;
8532 int arg2 ;
8533 PyObject * obj0 = 0 ;
8534 PyObject * obj1 = 0 ;
8535 char *kwnames[] = {
8536 (char *) "self",(char *) "style", NULL
8537 };
8538
8539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8542 arg2 = (int)SWIG_As_int(obj1);
8543 if (PyErr_Occurred()) SWIG_fail;
8544 {
8545 PyThreadState* __tstate = wxPyBeginAllowThreads();
8546 (arg1)->SetStyle(arg2);
8547
8548 wxPyEndAllowThreads(__tstate);
8549 if (PyErr_Occurred()) SWIG_fail;
8550 }
8551 Py_INCREF(Py_None); resultobj = Py_None;
8552 return resultobj;
8553 fail:
8554 return NULL;
8555 }
8556
8557
8558 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8559 PyObject *resultobj;
8560 wxFont *arg1 = (wxFont *) 0 ;
8561 int arg2 ;
8562 PyObject * obj0 = 0 ;
8563 PyObject * obj1 = 0 ;
8564 char *kwnames[] = {
8565 (char *) "self",(char *) "weight", NULL
8566 };
8567
8568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8571 arg2 = (int)SWIG_As_int(obj1);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 {
8574 PyThreadState* __tstate = wxPyBeginAllowThreads();
8575 (arg1)->SetWeight(arg2);
8576
8577 wxPyEndAllowThreads(__tstate);
8578 if (PyErr_Occurred()) SWIG_fail;
8579 }
8580 Py_INCREF(Py_None); resultobj = Py_None;
8581 return resultobj;
8582 fail:
8583 return NULL;
8584 }
8585
8586
8587 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj;
8589 wxFont *arg1 = (wxFont *) 0 ;
8590 wxString *arg2 = 0 ;
8591 bool temp2 = false ;
8592 PyObject * obj0 = 0 ;
8593 PyObject * obj1 = 0 ;
8594 char *kwnames[] = {
8595 (char *) "self",(char *) "faceName", NULL
8596 };
8597
8598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8601 {
8602 arg2 = wxString_in_helper(obj1);
8603 if (arg2 == NULL) SWIG_fail;
8604 temp2 = true;
8605 }
8606 {
8607 PyThreadState* __tstate = wxPyBeginAllowThreads();
8608 (arg1)->SetFaceName((wxString const &)*arg2);
8609
8610 wxPyEndAllowThreads(__tstate);
8611 if (PyErr_Occurred()) SWIG_fail;
8612 }
8613 Py_INCREF(Py_None); resultobj = Py_None;
8614 {
8615 if (temp2)
8616 delete arg2;
8617 }
8618 return resultobj;
8619 fail:
8620 {
8621 if (temp2)
8622 delete arg2;
8623 }
8624 return NULL;
8625 }
8626
8627
8628 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8629 PyObject *resultobj;
8630 wxFont *arg1 = (wxFont *) 0 ;
8631 bool arg2 ;
8632 PyObject * obj0 = 0 ;
8633 PyObject * obj1 = 0 ;
8634 char *kwnames[] = {
8635 (char *) "self",(char *) "underlined", NULL
8636 };
8637
8638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8641 arg2 = (bool)SWIG_As_bool(obj1);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 {
8644 PyThreadState* __tstate = wxPyBeginAllowThreads();
8645 (arg1)->SetUnderlined(arg2);
8646
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 Py_INCREF(Py_None); resultobj = Py_None;
8651 return resultobj;
8652 fail:
8653 return NULL;
8654 }
8655
8656
8657 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8658 PyObject *resultobj;
8659 wxFont *arg1 = (wxFont *) 0 ;
8660 int arg2 ;
8661 PyObject * obj0 = 0 ;
8662 PyObject * obj1 = 0 ;
8663 char *kwnames[] = {
8664 (char *) "self",(char *) "encoding", NULL
8665 };
8666
8667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8670 arg2 = (int)SWIG_As_int(obj1);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 {
8673 PyThreadState* __tstate = wxPyBeginAllowThreads();
8674 (arg1)->SetEncoding((wxFontEncoding )arg2);
8675
8676 wxPyEndAllowThreads(__tstate);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 }
8679 Py_INCREF(Py_None); resultobj = Py_None;
8680 return resultobj;
8681 fail:
8682 return NULL;
8683 }
8684
8685
8686 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8687 PyObject *resultobj;
8688 wxFont *arg1 = (wxFont *) 0 ;
8689 wxNativeFontInfo *arg2 = 0 ;
8690 PyObject * obj0 = 0 ;
8691 PyObject * obj1 = 0 ;
8692 char *kwnames[] = {
8693 (char *) "self",(char *) "info", NULL
8694 };
8695
8696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8699 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8700 SWIG_POINTER_EXCEPTION | 0)) == -1)
8701 SWIG_fail;
8702 if (arg2 == NULL) {
8703 PyErr_SetString(PyExc_TypeError,"null reference");
8704 SWIG_fail;
8705 }
8706 {
8707 PyThreadState* __tstate = wxPyBeginAllowThreads();
8708 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8709
8710 wxPyEndAllowThreads(__tstate);
8711 if (PyErr_Occurred()) SWIG_fail;
8712 }
8713 Py_INCREF(Py_None); resultobj = Py_None;
8714 return resultobj;
8715 fail:
8716 return NULL;
8717 }
8718
8719
8720 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
8721 PyObject *resultobj;
8722 wxFont *arg1 = (wxFont *) 0 ;
8723 wxString *arg2 = 0 ;
8724 bool temp2 = false ;
8725 PyObject * obj0 = 0 ;
8726 PyObject * obj1 = 0 ;
8727 char *kwnames[] = {
8728 (char *) "self",(char *) "info", NULL
8729 };
8730
8731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8734 {
8735 arg2 = wxString_in_helper(obj1);
8736 if (arg2 == NULL) SWIG_fail;
8737 temp2 = true;
8738 }
8739 {
8740 PyThreadState* __tstate = wxPyBeginAllowThreads();
8741 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8742
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 Py_INCREF(Py_None); resultobj = Py_None;
8747 {
8748 if (temp2)
8749 delete arg2;
8750 }
8751 return resultobj;
8752 fail:
8753 {
8754 if (temp2)
8755 delete arg2;
8756 }
8757 return NULL;
8758 }
8759
8760
8761 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj;
8763 wxFont *arg1 = (wxFont *) 0 ;
8764 wxString *arg2 = 0 ;
8765 bool temp2 = false ;
8766 PyObject * obj0 = 0 ;
8767 PyObject * obj1 = 0 ;
8768 char *kwnames[] = {
8769 (char *) "self",(char *) "info", NULL
8770 };
8771
8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8775 {
8776 arg2 = wxString_in_helper(obj1);
8777 if (arg2 == NULL) SWIG_fail;
8778 temp2 = true;
8779 }
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 Py_INCREF(Py_None); resultobj = Py_None;
8788 {
8789 if (temp2)
8790 delete arg2;
8791 }
8792 return resultobj;
8793 fail:
8794 {
8795 if (temp2)
8796 delete arg2;
8797 }
8798 return NULL;
8799 }
8800
8801
8802 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
8803 PyObject *resultobj;
8804 wxFont *arg1 = (wxFont *) 0 ;
8805 wxString result;
8806 PyObject * obj0 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "self", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8814 {
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 result = ((wxFont const *)arg1)->GetFamilyString();
8817
8818 wxPyEndAllowThreads(__tstate);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 }
8821 {
8822 #if wxUSE_UNICODE
8823 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8824 #else
8825 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8826 #endif
8827 }
8828 return resultobj;
8829 fail:
8830 return NULL;
8831 }
8832
8833
8834 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
8835 PyObject *resultobj;
8836 wxFont *arg1 = (wxFont *) 0 ;
8837 wxString result;
8838 PyObject * obj0 = 0 ;
8839 char *kwnames[] = {
8840 (char *) "self", NULL
8841 };
8842
8843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8846 {
8847 PyThreadState* __tstate = wxPyBeginAllowThreads();
8848 result = ((wxFont const *)arg1)->GetStyleString();
8849
8850 wxPyEndAllowThreads(__tstate);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
8853 {
8854 #if wxUSE_UNICODE
8855 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8856 #else
8857 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8858 #endif
8859 }
8860 return resultobj;
8861 fail:
8862 return NULL;
8863 }
8864
8865
8866 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj;
8868 wxFont *arg1 = (wxFont *) 0 ;
8869 wxString result;
8870 PyObject * obj0 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "self", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8878 {
8879 PyThreadState* __tstate = wxPyBeginAllowThreads();
8880 result = ((wxFont const *)arg1)->GetWeightString();
8881
8882 wxPyEndAllowThreads(__tstate);
8883 if (PyErr_Occurred()) SWIG_fail;
8884 }
8885 {
8886 #if wxUSE_UNICODE
8887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8888 #else
8889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8890 #endif
8891 }
8892 return resultobj;
8893 fail:
8894 return NULL;
8895 }
8896
8897
8898 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8899 PyObject *resultobj;
8900 wxFont *arg1 = (wxFont *) 0 ;
8901 bool arg2 = (bool) true ;
8902 PyObject * obj0 = 0 ;
8903 PyObject * obj1 = 0 ;
8904 char *kwnames[] = {
8905 (char *) "self",(char *) "no", NULL
8906 };
8907
8908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8911 if (obj1) {
8912 arg2 = (bool)SWIG_As_bool(obj1);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 }
8915 {
8916 PyThreadState* __tstate = wxPyBeginAllowThreads();
8917 (arg1)->SetNoAntiAliasing(arg2);
8918
8919 wxPyEndAllowThreads(__tstate);
8920 if (PyErr_Occurred()) SWIG_fail;
8921 }
8922 Py_INCREF(Py_None); resultobj = Py_None;
8923 return resultobj;
8924 fail:
8925 return NULL;
8926 }
8927
8928
8929 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8930 PyObject *resultobj;
8931 wxFont *arg1 = (wxFont *) 0 ;
8932 bool result;
8933 PyObject * obj0 = 0 ;
8934 char *kwnames[] = {
8935 (char *) "self", NULL
8936 };
8937
8938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8941 {
8942 PyThreadState* __tstate = wxPyBeginAllowThreads();
8943 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
8944
8945 wxPyEndAllowThreads(__tstate);
8946 if (PyErr_Occurred()) SWIG_fail;
8947 }
8948 {
8949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8950 }
8951 return resultobj;
8952 fail:
8953 return NULL;
8954 }
8955
8956
8957 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8958 PyObject *resultobj;
8959 int result;
8960 char *kwnames[] = {
8961 NULL
8962 };
8963
8964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8965 {
8966 if (!wxPyCheckForApp()) SWIG_fail;
8967 PyThreadState* __tstate = wxPyBeginAllowThreads();
8968 result = (int)wxFont::GetDefaultEncoding();
8969
8970 wxPyEndAllowThreads(__tstate);
8971 if (PyErr_Occurred()) SWIG_fail;
8972 }
8973 resultobj = SWIG_From_int((int)result);
8974 return resultobj;
8975 fail:
8976 return NULL;
8977 }
8978
8979
8980 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8981 PyObject *resultobj;
8982 int arg1 ;
8983 PyObject * obj0 = 0 ;
8984 char *kwnames[] = {
8985 (char *) "encoding", NULL
8986 };
8987
8988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8989 arg1 = (int)SWIG_As_int(obj0);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 {
8992 if (!wxPyCheckForApp()) SWIG_fail;
8993 PyThreadState* __tstate = wxPyBeginAllowThreads();
8994 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8995
8996 wxPyEndAllowThreads(__tstate);
8997 if (PyErr_Occurred()) SWIG_fail;
8998 }
8999 Py_INCREF(Py_None); resultobj = Py_None;
9000 return resultobj;
9001 fail:
9002 return NULL;
9003 }
9004
9005
9006 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
9007 PyObject *obj;
9008 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9009 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9010 Py_INCREF(obj);
9011 return Py_BuildValue((char *)"");
9012 }
9013 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
9014 PyObject *resultobj;
9015 wxPyFontEnumerator *result;
9016 char *kwnames[] = {
9017 NULL
9018 };
9019
9020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9021 {
9022 if (!wxPyCheckForApp()) SWIG_fail;
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9025
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 }
9029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9030 return resultobj;
9031 fail:
9032 return NULL;
9033 }
9034
9035
9036 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
9037 PyObject *resultobj;
9038 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9039 PyObject * obj0 = 0 ;
9040 char *kwnames[] = {
9041 (char *) "self", NULL
9042 };
9043
9044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9047 {
9048 PyThreadState* __tstate = wxPyBeginAllowThreads();
9049 delete arg1;
9050
9051 wxPyEndAllowThreads(__tstate);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 }
9054 Py_INCREF(Py_None); resultobj = Py_None;
9055 return resultobj;
9056 fail:
9057 return NULL;
9058 }
9059
9060
9061 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9062 PyObject *resultobj;
9063 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9064 PyObject *arg2 = (PyObject *) 0 ;
9065 PyObject *arg3 = (PyObject *) 0 ;
9066 bool arg4 ;
9067 PyObject * obj0 = 0 ;
9068 PyObject * obj1 = 0 ;
9069 PyObject * obj2 = 0 ;
9070 PyObject * obj3 = 0 ;
9071 char *kwnames[] = {
9072 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9073 };
9074
9075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9078 arg2 = obj1;
9079 arg3 = obj2;
9080 arg4 = (bool)SWIG_As_bool(obj3);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9085
9086 wxPyEndAllowThreads(__tstate);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 Py_INCREF(Py_None); resultobj = Py_None;
9090 return resultobj;
9091 fail:
9092 return NULL;
9093 }
9094
9095
9096 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9097 PyObject *resultobj;
9098 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9099 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9100 bool arg3 = (bool) false ;
9101 bool result;
9102 PyObject * obj0 = 0 ;
9103 PyObject * obj1 = 0 ;
9104 PyObject * obj2 = 0 ;
9105 char *kwnames[] = {
9106 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9107 };
9108
9109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9112 if (obj1) {
9113 arg2 = (int)SWIG_As_int(obj1);
9114 if (PyErr_Occurred()) SWIG_fail;
9115 }
9116 if (obj2) {
9117 arg3 = (bool)SWIG_As_bool(obj2);
9118 if (PyErr_Occurred()) SWIG_fail;
9119 }
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9123
9124 wxPyEndAllowThreads(__tstate);
9125 if (PyErr_Occurred()) SWIG_fail;
9126 }
9127 {
9128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9129 }
9130 return resultobj;
9131 fail:
9132 return NULL;
9133 }
9134
9135
9136 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9137 PyObject *resultobj;
9138 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9139 wxString const &arg2_defvalue = wxPyEmptyString ;
9140 wxString *arg2 = (wxString *) &arg2_defvalue ;
9141 bool result;
9142 bool temp2 = false ;
9143 PyObject * obj0 = 0 ;
9144 PyObject * obj1 = 0 ;
9145 char *kwnames[] = {
9146 (char *) "self",(char *) "facename", NULL
9147 };
9148
9149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9152 if (obj1) {
9153 {
9154 arg2 = wxString_in_helper(obj1);
9155 if (arg2 == NULL) SWIG_fail;
9156 temp2 = true;
9157 }
9158 }
9159 {
9160 PyThreadState* __tstate = wxPyBeginAllowThreads();
9161 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9162
9163 wxPyEndAllowThreads(__tstate);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 }
9166 {
9167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9168 }
9169 {
9170 if (temp2)
9171 delete arg2;
9172 }
9173 return resultobj;
9174 fail:
9175 {
9176 if (temp2)
9177 delete arg2;
9178 }
9179 return NULL;
9180 }
9181
9182
9183 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9184 PyObject *resultobj;
9185 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9186 PyObject *result;
9187 PyObject * obj0 = 0 ;
9188 char *kwnames[] = {
9189 (char *) "self", NULL
9190 };
9191
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9198
9199 wxPyEndAllowThreads(__tstate);
9200 if (PyErr_Occurred()) SWIG_fail;
9201 }
9202 resultobj = result;
9203 return resultobj;
9204 fail:
9205 return NULL;
9206 }
9207
9208
9209 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj;
9211 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9212 PyObject *result;
9213 PyObject * obj0 = 0 ;
9214 char *kwnames[] = {
9215 (char *) "self", NULL
9216 };
9217
9218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9221 {
9222 PyThreadState* __tstate = wxPyBeginAllowThreads();
9223 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9224
9225 wxPyEndAllowThreads(__tstate);
9226 if (PyErr_Occurred()) SWIG_fail;
9227 }
9228 resultobj = result;
9229 return resultobj;
9230 fail:
9231 return NULL;
9232 }
9233
9234
9235 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
9236 PyObject *obj;
9237 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9238 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9239 Py_INCREF(obj);
9240 return Py_BuildValue((char *)"");
9241 }
9242 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
9243 PyObject *resultobj;
9244 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9245 int arg2 ;
9246 PyObject * obj0 = 0 ;
9247 PyObject * obj1 = 0 ;
9248 char *kwnames[] = {
9249 (char *) "self",(char *) "Language", NULL
9250 };
9251
9252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9255 arg2 = (int)SWIG_As_int(obj1);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 if (arg1) (arg1)->Language = arg2;
9258
9259 Py_INCREF(Py_None); resultobj = Py_None;
9260 return resultobj;
9261 fail:
9262 return NULL;
9263 }
9264
9265
9266 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
9267 PyObject *resultobj;
9268 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9269 int result;
9270 PyObject * obj0 = 0 ;
9271 char *kwnames[] = {
9272 (char *) "self", NULL
9273 };
9274
9275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9278 result = (int) ((arg1)->Language);
9279
9280 resultobj = SWIG_From_int((int)result);
9281 return resultobj;
9282 fail:
9283 return NULL;
9284 }
9285
9286
9287 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj;
9289 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9290 wxString *arg2 = (wxString *) 0 ;
9291 bool temp2 = false ;
9292 PyObject * obj0 = 0 ;
9293 PyObject * obj1 = 0 ;
9294 char *kwnames[] = {
9295 (char *) "self",(char *) "CanonicalName", NULL
9296 };
9297
9298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9301 {
9302 arg2 = wxString_in_helper(obj1);
9303 if (arg2 == NULL) SWIG_fail;
9304 temp2 = true;
9305 }
9306 if (arg1) (arg1)->CanonicalName = *arg2;
9307
9308 Py_INCREF(Py_None); resultobj = Py_None;
9309 {
9310 if (temp2)
9311 delete arg2;
9312 }
9313 return resultobj;
9314 fail:
9315 {
9316 if (temp2)
9317 delete arg2;
9318 }
9319 return NULL;
9320 }
9321
9322
9323 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
9324 PyObject *resultobj;
9325 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9326 wxString *result;
9327 PyObject * obj0 = 0 ;
9328 char *kwnames[] = {
9329 (char *) "self", NULL
9330 };
9331
9332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9335 result = (wxString *)& ((arg1)->CanonicalName);
9336
9337 {
9338 #if wxUSE_UNICODE
9339 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9340 #else
9341 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9342 #endif
9343 }
9344 return resultobj;
9345 fail:
9346 return NULL;
9347 }
9348
9349
9350 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
9351 PyObject *resultobj;
9352 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9353 wxString *arg2 = (wxString *) 0 ;
9354 bool temp2 = false ;
9355 PyObject * obj0 = 0 ;
9356 PyObject * obj1 = 0 ;
9357 char *kwnames[] = {
9358 (char *) "self",(char *) "Description", NULL
9359 };
9360
9361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9364 {
9365 arg2 = wxString_in_helper(obj1);
9366 if (arg2 == NULL) SWIG_fail;
9367 temp2 = true;
9368 }
9369 if (arg1) (arg1)->Description = *arg2;
9370
9371 Py_INCREF(Py_None); resultobj = Py_None;
9372 {
9373 if (temp2)
9374 delete arg2;
9375 }
9376 return resultobj;
9377 fail:
9378 {
9379 if (temp2)
9380 delete arg2;
9381 }
9382 return NULL;
9383 }
9384
9385
9386 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
9387 PyObject *resultobj;
9388 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9389 wxString *result;
9390 PyObject * obj0 = 0 ;
9391 char *kwnames[] = {
9392 (char *) "self", NULL
9393 };
9394
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9398 result = (wxString *)& ((arg1)->Description);
9399
9400 {
9401 #if wxUSE_UNICODE
9402 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9403 #else
9404 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9405 #endif
9406 }
9407 return resultobj;
9408 fail:
9409 return NULL;
9410 }
9411
9412
9413 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
9414 PyObject *obj;
9415 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9416 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9417 Py_INCREF(obj);
9418 return Py_BuildValue((char *)"");
9419 }
9420 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9421 PyObject *resultobj;
9422 int arg1 = (int) -1 ;
9423 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9424 wxLocale *result;
9425 PyObject * obj0 = 0 ;
9426 PyObject * obj1 = 0 ;
9427 char *kwnames[] = {
9428 (char *) "language",(char *) "flags", NULL
9429 };
9430
9431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9432 if (obj0) {
9433 arg1 = (int)SWIG_As_int(obj0);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 if (obj1) {
9437 arg2 = (int)SWIG_As_int(obj1);
9438 if (PyErr_Occurred()) SWIG_fail;
9439 }
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 result = (wxLocale *)new_wxLocale(arg1,arg2);
9443
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9448 return resultobj;
9449 fail:
9450 return NULL;
9451 }
9452
9453
9454 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj;
9456 wxLocale *arg1 = (wxLocale *) 0 ;
9457 PyObject * obj0 = 0 ;
9458 char *kwnames[] = {
9459 (char *) "self", NULL
9460 };
9461
9462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
9467 delete arg1;
9468
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 Py_INCREF(Py_None); resultobj = Py_None;
9473 return resultobj;
9474 fail:
9475 return NULL;
9476 }
9477
9478
9479 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
9480 PyObject *resultobj;
9481 wxLocale *arg1 = (wxLocale *) 0 ;
9482 wxString *arg2 = 0 ;
9483 wxString const &arg3_defvalue = wxPyEmptyString ;
9484 wxString *arg3 = (wxString *) &arg3_defvalue ;
9485 wxString const &arg4_defvalue = wxPyEmptyString ;
9486 wxString *arg4 = (wxString *) &arg4_defvalue ;
9487 bool arg5 = (bool) true ;
9488 bool arg6 = (bool) false ;
9489 bool result;
9490 bool temp2 = false ;
9491 bool temp3 = false ;
9492 bool temp4 = false ;
9493 PyObject * obj0 = 0 ;
9494 PyObject * obj1 = 0 ;
9495 PyObject * obj2 = 0 ;
9496 PyObject * obj3 = 0 ;
9497 PyObject * obj4 = 0 ;
9498 PyObject * obj5 = 0 ;
9499 char *kwnames[] = {
9500 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9501 };
9502
9503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9506 {
9507 arg2 = wxString_in_helper(obj1);
9508 if (arg2 == NULL) SWIG_fail;
9509 temp2 = true;
9510 }
9511 if (obj2) {
9512 {
9513 arg3 = wxString_in_helper(obj2);
9514 if (arg3 == NULL) SWIG_fail;
9515 temp3 = true;
9516 }
9517 }
9518 if (obj3) {
9519 {
9520 arg4 = wxString_in_helper(obj3);
9521 if (arg4 == NULL) SWIG_fail;
9522 temp4 = true;
9523 }
9524 }
9525 if (obj4) {
9526 arg5 = (bool)SWIG_As_bool(obj4);
9527 if (PyErr_Occurred()) SWIG_fail;
9528 }
9529 if (obj5) {
9530 arg6 = (bool)SWIG_As_bool(obj5);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9536
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
9540 {
9541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9542 }
9543 {
9544 if (temp2)
9545 delete arg2;
9546 }
9547 {
9548 if (temp3)
9549 delete arg3;
9550 }
9551 {
9552 if (temp4)
9553 delete arg4;
9554 }
9555 return resultobj;
9556 fail:
9557 {
9558 if (temp2)
9559 delete arg2;
9560 }
9561 {
9562 if (temp3)
9563 delete arg3;
9564 }
9565 {
9566 if (temp4)
9567 delete arg4;
9568 }
9569 return NULL;
9570 }
9571
9572
9573 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj;
9575 wxLocale *arg1 = (wxLocale *) 0 ;
9576 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9577 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9578 bool result;
9579 PyObject * obj0 = 0 ;
9580 PyObject * obj1 = 0 ;
9581 PyObject * obj2 = 0 ;
9582 char *kwnames[] = {
9583 (char *) "self",(char *) "language",(char *) "flags", NULL
9584 };
9585
9586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9589 if (obj1) {
9590 arg2 = (int)SWIG_As_int(obj1);
9591 if (PyErr_Occurred()) SWIG_fail;
9592 }
9593 if (obj2) {
9594 arg3 = (int)SWIG_As_int(obj2);
9595 if (PyErr_Occurred()) SWIG_fail;
9596 }
9597 {
9598 PyThreadState* __tstate = wxPyBeginAllowThreads();
9599 result = (bool)(arg1)->Init(arg2,arg3);
9600
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 {
9605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9606 }
9607 return resultobj;
9608 fail:
9609 return NULL;
9610 }
9611
9612
9613 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj;
9615 int result;
9616 char *kwnames[] = {
9617 NULL
9618 };
9619
9620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9621 {
9622 PyThreadState* __tstate = wxPyBeginAllowThreads();
9623 result = (int)wxLocale::GetSystemLanguage();
9624
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 resultobj = SWIG_From_int((int)result);
9629 return resultobj;
9630 fail:
9631 return NULL;
9632 }
9633
9634
9635 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9636 PyObject *resultobj;
9637 int result;
9638 char *kwnames[] = {
9639 NULL
9640 };
9641
9642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 result = (int)wxLocale::GetSystemEncoding();
9646
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = SWIG_From_int((int)result);
9651 return resultobj;
9652 fail:
9653 return NULL;
9654 }
9655
9656
9657 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9658 PyObject *resultobj;
9659 wxString result;
9660 char *kwnames[] = {
9661 NULL
9662 };
9663
9664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 result = wxLocale::GetSystemEncodingName();
9668
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 {
9673 #if wxUSE_UNICODE
9674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9675 #else
9676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9677 #endif
9678 }
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj;
9687 wxLocale *arg1 = (wxLocale *) 0 ;
9688 bool result;
9689 PyObject * obj0 = 0 ;
9690 char *kwnames[] = {
9691 (char *) "self", NULL
9692 };
9693
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9697 {
9698 PyThreadState* __tstate = wxPyBeginAllowThreads();
9699 result = (bool)((wxLocale const *)arg1)->IsOk();
9700
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 {
9705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9706 }
9707 return resultobj;
9708 fail:
9709 return NULL;
9710 }
9711
9712
9713 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9714 PyObject *resultobj;
9715 wxLocale *arg1 = (wxLocale *) 0 ;
9716 wxString result;
9717 PyObject * obj0 = 0 ;
9718 char *kwnames[] = {
9719 (char *) "self", NULL
9720 };
9721
9722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = ((wxLocale const *)arg1)->GetLocale();
9728
9729 wxPyEndAllowThreads(__tstate);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 {
9733 #if wxUSE_UNICODE
9734 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9735 #else
9736 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9737 #endif
9738 }
9739 return resultobj;
9740 fail:
9741 return NULL;
9742 }
9743
9744
9745 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9746 PyObject *resultobj;
9747 wxLocale *arg1 = (wxLocale *) 0 ;
9748 int result;
9749 PyObject * obj0 = 0 ;
9750 char *kwnames[] = {
9751 (char *) "self", NULL
9752 };
9753
9754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9757 {
9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
9759 result = (int)((wxLocale const *)arg1)->GetLanguage();
9760
9761 wxPyEndAllowThreads(__tstate);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 resultobj = SWIG_From_int((int)result);
9765 return resultobj;
9766 fail:
9767 return NULL;
9768 }
9769
9770
9771 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
9772 PyObject *resultobj;
9773 wxLocale *arg1 = (wxLocale *) 0 ;
9774 wxString result;
9775 PyObject * obj0 = 0 ;
9776 char *kwnames[] = {
9777 (char *) "self", NULL
9778 };
9779
9780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9783 {
9784 PyThreadState* __tstate = wxPyBeginAllowThreads();
9785 result = ((wxLocale const *)arg1)->GetSysName();
9786
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 {
9791 #if wxUSE_UNICODE
9792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9793 #else
9794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9795 #endif
9796 }
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj;
9805 wxLocale *arg1 = (wxLocale *) 0 ;
9806 wxString result;
9807 PyObject * obj0 = 0 ;
9808 char *kwnames[] = {
9809 (char *) "self", NULL
9810 };
9811
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = ((wxLocale const *)arg1)->GetCanonicalName();
9818
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 {
9823 #if wxUSE_UNICODE
9824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9825 #else
9826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9827 #endif
9828 }
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj;
9837 wxString *arg1 = 0 ;
9838 bool temp1 = false ;
9839 PyObject * obj0 = 0 ;
9840 char *kwnames[] = {
9841 (char *) "prefix", NULL
9842 };
9843
9844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9845 {
9846 arg1 = wxString_in_helper(obj0);
9847 if (arg1 == NULL) SWIG_fail;
9848 temp1 = true;
9849 }
9850 {
9851 PyThreadState* __tstate = wxPyBeginAllowThreads();
9852 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9853
9854 wxPyEndAllowThreads(__tstate);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 Py_INCREF(Py_None); resultobj = Py_None;
9858 {
9859 if (temp1)
9860 delete arg1;
9861 }
9862 return resultobj;
9863 fail:
9864 {
9865 if (temp1)
9866 delete arg1;
9867 }
9868 return NULL;
9869 }
9870
9871
9872 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
9873 PyObject *resultobj;
9874 wxLocale *arg1 = (wxLocale *) 0 ;
9875 wxString *arg2 = 0 ;
9876 bool result;
9877 bool temp2 = false ;
9878 PyObject * obj0 = 0 ;
9879 PyObject * obj1 = 0 ;
9880 char *kwnames[] = {
9881 (char *) "self",(char *) "szDomain", NULL
9882 };
9883
9884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9887 {
9888 arg2 = wxString_in_helper(obj1);
9889 if (arg2 == NULL) SWIG_fail;
9890 temp2 = true;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9895
9896 wxPyEndAllowThreads(__tstate);
9897 if (PyErr_Occurred()) SWIG_fail;
9898 }
9899 {
9900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9901 }
9902 {
9903 if (temp2)
9904 delete arg2;
9905 }
9906 return resultobj;
9907 fail:
9908 {
9909 if (temp2)
9910 delete arg2;
9911 }
9912 return NULL;
9913 }
9914
9915
9916 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
9917 PyObject *resultobj;
9918 wxLocale *arg1 = (wxLocale *) 0 ;
9919 wxString *arg2 = 0 ;
9920 bool result;
9921 bool temp2 = false ;
9922 PyObject * obj0 = 0 ;
9923 PyObject * obj1 = 0 ;
9924 char *kwnames[] = {
9925 (char *) "self",(char *) "szDomain", NULL
9926 };
9927
9928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9931 {
9932 arg2 = wxString_in_helper(obj1);
9933 if (arg2 == NULL) SWIG_fail;
9934 temp2 = true;
9935 }
9936 {
9937 PyThreadState* __tstate = wxPyBeginAllowThreads();
9938 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9939
9940 wxPyEndAllowThreads(__tstate);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
9943 {
9944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9945 }
9946 {
9947 if (temp2)
9948 delete arg2;
9949 }
9950 return resultobj;
9951 fail:
9952 {
9953 if (temp2)
9954 delete arg2;
9955 }
9956 return NULL;
9957 }
9958
9959
9960 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj;
9962 int arg1 ;
9963 wxLanguageInfo *result;
9964 PyObject * obj0 = 0 ;
9965 char *kwnames[] = {
9966 (char *) "lang", NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9970 arg1 = (int)SWIG_As_int(obj0);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 {
9973 PyThreadState* __tstate = wxPyBeginAllowThreads();
9974 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9975
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9980 return resultobj;
9981 fail:
9982 return NULL;
9983 }
9984
9985
9986 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
9987 PyObject *resultobj;
9988 int arg1 ;
9989 wxString result;
9990 PyObject * obj0 = 0 ;
9991 char *kwnames[] = {
9992 (char *) "lang", NULL
9993 };
9994
9995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9996 arg1 = (int)SWIG_As_int(obj0);
9997 if (PyErr_Occurred()) SWIG_fail;
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 result = wxLocale::GetLanguageName(arg1);
10001
10002 wxPyEndAllowThreads(__tstate);
10003 if (PyErr_Occurred()) SWIG_fail;
10004 }
10005 {
10006 #if wxUSE_UNICODE
10007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10008 #else
10009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10010 #endif
10011 }
10012 return resultobj;
10013 fail:
10014 return NULL;
10015 }
10016
10017
10018 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10019 PyObject *resultobj;
10020 wxString *arg1 = 0 ;
10021 wxLanguageInfo *result;
10022 bool temp1 = false ;
10023 PyObject * obj0 = 0 ;
10024 char *kwnames[] = {
10025 (char *) "locale", NULL
10026 };
10027
10028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10029 {
10030 arg1 = wxString_in_helper(obj0);
10031 if (arg1 == NULL) SWIG_fail;
10032 temp1 = true;
10033 }
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10042 {
10043 if (temp1)
10044 delete arg1;
10045 }
10046 return resultobj;
10047 fail:
10048 {
10049 if (temp1)
10050 delete arg1;
10051 }
10052 return NULL;
10053 }
10054
10055
10056 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
10057 PyObject *resultobj;
10058 wxLanguageInfo *arg1 = 0 ;
10059 PyObject * obj0 = 0 ;
10060 char *kwnames[] = {
10061 (char *) "info", NULL
10062 };
10063
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10066 SWIG_POINTER_EXCEPTION | 0)) == -1)
10067 SWIG_fail;
10068 if (arg1 == NULL) {
10069 PyErr_SetString(PyExc_TypeError,"null reference");
10070 SWIG_fail;
10071 }
10072 {
10073 PyThreadState* __tstate = wxPyBeginAllowThreads();
10074 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10075
10076 wxPyEndAllowThreads(__tstate);
10077 if (PyErr_Occurred()) SWIG_fail;
10078 }
10079 Py_INCREF(Py_None); resultobj = Py_None;
10080 return resultobj;
10081 fail:
10082 return NULL;
10083 }
10084
10085
10086 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10087 PyObject *resultobj;
10088 wxLocale *arg1 = (wxLocale *) 0 ;
10089 wxString *arg2 = 0 ;
10090 wxString const &arg3_defvalue = wxPyEmptyString ;
10091 wxString *arg3 = (wxString *) &arg3_defvalue ;
10092 wxString result;
10093 bool temp2 = false ;
10094 bool temp3 = false ;
10095 PyObject * obj0 = 0 ;
10096 PyObject * obj1 = 0 ;
10097 PyObject * obj2 = 0 ;
10098 char *kwnames[] = {
10099 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10100 };
10101
10102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10105 {
10106 arg2 = wxString_in_helper(obj1);
10107 if (arg2 == NULL) SWIG_fail;
10108 temp2 = true;
10109 }
10110 if (obj2) {
10111 {
10112 arg3 = wxString_in_helper(obj2);
10113 if (arg3 == NULL) SWIG_fail;
10114 temp3 = true;
10115 }
10116 }
10117 {
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10120
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 {
10125 #if wxUSE_UNICODE
10126 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10127 #else
10128 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10129 #endif
10130 }
10131 {
10132 if (temp2)
10133 delete arg2;
10134 }
10135 {
10136 if (temp3)
10137 delete arg3;
10138 }
10139 return resultobj;
10140 fail:
10141 {
10142 if (temp2)
10143 delete arg2;
10144 }
10145 {
10146 if (temp3)
10147 delete arg3;
10148 }
10149 return NULL;
10150 }
10151
10152
10153 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
10154 PyObject *resultobj;
10155 wxLocale *arg1 = (wxLocale *) 0 ;
10156 wxString *result;
10157 PyObject * obj0 = 0 ;
10158 char *kwnames[] = {
10159 (char *) "self", NULL
10160 };
10161
10162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 {
10168 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10169 result = (wxString *) &_result_ref;
10170 }
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 {
10176 #if wxUSE_UNICODE
10177 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10178 #else
10179 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10180 #endif
10181 }
10182 return resultobj;
10183 fail:
10184 return NULL;
10185 }
10186
10187
10188 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
10189 PyObject *obj;
10190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10191 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10192 Py_INCREF(obj);
10193 return Py_BuildValue((char *)"");
10194 }
10195 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
10196 PyObject *resultobj;
10197 wxLocale *result;
10198 char *kwnames[] = {
10199 NULL
10200 };
10201
10202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10203 {
10204 PyThreadState* __tstate = wxPyBeginAllowThreads();
10205 result = (wxLocale *)wxGetLocale();
10206
10207 wxPyEndAllowThreads(__tstate);
10208 if (PyErr_Occurred()) SWIG_fail;
10209 }
10210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10211 return resultobj;
10212 fail:
10213 return NULL;
10214 }
10215
10216
10217 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
10218 PyObject *resultobj;
10219 wxString *arg1 = 0 ;
10220 wxString result;
10221 bool temp1 = false ;
10222 PyObject * obj0 = 0 ;
10223
10224 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10225 {
10226 arg1 = wxString_in_helper(obj0);
10227 if (arg1 == NULL) SWIG_fail;
10228 temp1 = true;
10229 }
10230 {
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 result = wxGetTranslation((wxString const &)*arg1);
10233
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 {
10238 #if wxUSE_UNICODE
10239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10240 #else
10241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10242 #endif
10243 }
10244 {
10245 if (temp1)
10246 delete arg1;
10247 }
10248 return resultobj;
10249 fail:
10250 {
10251 if (temp1)
10252 delete arg1;
10253 }
10254 return NULL;
10255 }
10256
10257
10258 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
10259 PyObject *resultobj;
10260 wxString *arg1 = 0 ;
10261 wxString *arg2 = 0 ;
10262 size_t arg3 ;
10263 wxString result;
10264 bool temp1 = false ;
10265 bool temp2 = false ;
10266 PyObject * obj0 = 0 ;
10267 PyObject * obj1 = 0 ;
10268 PyObject * obj2 = 0 ;
10269
10270 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10271 {
10272 arg1 = wxString_in_helper(obj0);
10273 if (arg1 == NULL) SWIG_fail;
10274 temp1 = true;
10275 }
10276 {
10277 arg2 = wxString_in_helper(obj1);
10278 if (arg2 == NULL) SWIG_fail;
10279 temp2 = true;
10280 }
10281 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 {
10284 PyThreadState* __tstate = wxPyBeginAllowThreads();
10285 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10286
10287 wxPyEndAllowThreads(__tstate);
10288 if (PyErr_Occurred()) SWIG_fail;
10289 }
10290 {
10291 #if wxUSE_UNICODE
10292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10293 #else
10294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10295 #endif
10296 }
10297 {
10298 if (temp1)
10299 delete arg1;
10300 }
10301 {
10302 if (temp2)
10303 delete arg2;
10304 }
10305 return resultobj;
10306 fail:
10307 {
10308 if (temp1)
10309 delete arg1;
10310 }
10311 {
10312 if (temp2)
10313 delete arg2;
10314 }
10315 return NULL;
10316 }
10317
10318
10319 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10320 int argc;
10321 PyObject *argv[4];
10322 int ii;
10323
10324 argc = PyObject_Length(args);
10325 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10326 argv[ii] = PyTuple_GetItem(args,ii);
10327 }
10328 if (argc == 1) {
10329 int _v;
10330 {
10331 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10332 }
10333 if (_v) {
10334 return _wrap_GetTranslation__SWIG_0(self,args);
10335 }
10336 }
10337 if (argc == 3) {
10338 int _v;
10339 {
10340 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10341 }
10342 if (_v) {
10343 {
10344 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10345 }
10346 if (_v) {
10347 _v = SWIG_Check_unsigned_SS_long(argv[2]);
10348 if (_v) {
10349 return _wrap_GetTranslation__SWIG_1(self,args);
10350 }
10351 }
10352 }
10353 }
10354
10355 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10356 return NULL;
10357 }
10358
10359
10360 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj;
10362 wxEncodingConverter *result;
10363 char *kwnames[] = {
10364 NULL
10365 };
10366
10367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10368 {
10369 PyThreadState* __tstate = wxPyBeginAllowThreads();
10370 result = (wxEncodingConverter *)new wxEncodingConverter();
10371
10372 wxPyEndAllowThreads(__tstate);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10376 return resultobj;
10377 fail:
10378 return NULL;
10379 }
10380
10381
10382 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj;
10384 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10385 PyObject * obj0 = 0 ;
10386 char *kwnames[] = {
10387 (char *) "self", NULL
10388 };
10389
10390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10393 {
10394 PyThreadState* __tstate = wxPyBeginAllowThreads();
10395 delete arg1;
10396
10397 wxPyEndAllowThreads(__tstate);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 }
10400 Py_INCREF(Py_None); resultobj = Py_None;
10401 return resultobj;
10402 fail:
10403 return NULL;
10404 }
10405
10406
10407 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
10408 PyObject *resultobj;
10409 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10410 int arg2 ;
10411 int arg3 ;
10412 int arg4 = (int) wxCONVERT_STRICT ;
10413 bool result;
10414 PyObject * obj0 = 0 ;
10415 PyObject * obj1 = 0 ;
10416 PyObject * obj2 = 0 ;
10417 PyObject * obj3 = 0 ;
10418 char *kwnames[] = {
10419 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10420 };
10421
10422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10425 arg2 = (int)SWIG_As_int(obj1);
10426 if (PyErr_Occurred()) SWIG_fail;
10427 arg3 = (int)SWIG_As_int(obj2);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 if (obj3) {
10430 arg4 = (int)SWIG_As_int(obj3);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 {
10441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10442 }
10443 return resultobj;
10444 fail:
10445 return NULL;
10446 }
10447
10448
10449 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
10450 PyObject *resultobj;
10451 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10452 wxString *arg2 = 0 ;
10453 wxString result;
10454 bool temp2 = false ;
10455 PyObject * obj0 = 0 ;
10456 PyObject * obj1 = 0 ;
10457 char *kwnames[] = {
10458 (char *) "self",(char *) "input", NULL
10459 };
10460
10461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10464 {
10465 arg2 = wxString_in_helper(obj1);
10466 if (arg2 == NULL) SWIG_fail;
10467 temp2 = true;
10468 }
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 result = (arg1)->Convert((wxString const &)*arg2);
10472
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 {
10477 #if wxUSE_UNICODE
10478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10479 #else
10480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10481 #endif
10482 }
10483 {
10484 if (temp2)
10485 delete arg2;
10486 }
10487 return resultobj;
10488 fail:
10489 {
10490 if (temp2)
10491 delete arg2;
10492 }
10493 return NULL;
10494 }
10495
10496
10497 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10498 PyObject *resultobj;
10499 int arg1 ;
10500 int arg2 = (int) wxPLATFORM_CURRENT ;
10501 wxFontEncodingArray result;
10502 PyObject * obj0 = 0 ;
10503 PyObject * obj1 = 0 ;
10504 char *kwnames[] = {
10505 (char *) "enc",(char *) "platform", NULL
10506 };
10507
10508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10509 arg1 = (int)SWIG_As_int(obj0);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 if (obj1) {
10512 arg2 = (int)SWIG_As_int(obj1);
10513 if (PyErr_Occurred()) SWIG_fail;
10514 }
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 {
10523 resultobj = PyList_New(0);
10524 for (size_t i=0; i < (&result)->GetCount(); i++) {
10525 PyObject* number = PyInt_FromLong((&result)->Item(i));
10526 PyList_Append(resultobj, number);
10527 Py_DECREF(number);
10528 }
10529 }
10530 return resultobj;
10531 fail:
10532 return NULL;
10533 }
10534
10535
10536 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10537 PyObject *resultobj;
10538 int arg1 ;
10539 wxFontEncodingArray result;
10540 PyObject * obj0 = 0 ;
10541 char *kwnames[] = {
10542 (char *) "enc", NULL
10543 };
10544
10545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10546 arg1 = (int)SWIG_As_int(obj0);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 {
10549 PyThreadState* __tstate = wxPyBeginAllowThreads();
10550 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10551
10552 wxPyEndAllowThreads(__tstate);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 }
10555 {
10556 resultobj = PyList_New(0);
10557 for (size_t i=0; i < (&result)->GetCount(); i++) {
10558 PyObject* number = PyInt_FromLong((&result)->Item(i));
10559 PyList_Append(resultobj, number);
10560 Py_DECREF(number);
10561 }
10562 }
10563 return resultobj;
10564 fail:
10565 return NULL;
10566 }
10567
10568
10569 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj;
10571 int arg1 ;
10572 int arg2 ;
10573 bool result;
10574 PyObject * obj0 = 0 ;
10575 PyObject * obj1 = 0 ;
10576 char *kwnames[] = {
10577 (char *) "encIn",(char *) "encOut", NULL
10578 };
10579
10580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10581 arg1 = (int)SWIG_As_int(obj0);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 arg2 = (int)SWIG_As_int(obj1);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10588
10589 wxPyEndAllowThreads(__tstate);
10590 if (PyErr_Occurred()) SWIG_fail;
10591 }
10592 {
10593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10594 }
10595 return resultobj;
10596 fail:
10597 return NULL;
10598 }
10599
10600
10601 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
10602 PyObject *obj;
10603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10604 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10605 Py_INCREF(obj);
10606 return Py_BuildValue((char *)"");
10607 }
10608 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
10609 PyObject *resultobj;
10610 wxDC *arg1 = (wxDC *) 0 ;
10611 PyObject * obj0 = 0 ;
10612 char *kwnames[] = {
10613 (char *) "self", NULL
10614 };
10615
10616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10619 {
10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
10621 delete arg1;
10622
10623 wxPyEndAllowThreads(__tstate);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 Py_INCREF(Py_None); resultobj = Py_None;
10627 return resultobj;
10628 fail:
10629 return NULL;
10630 }
10631
10632
10633 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10634 PyObject *resultobj;
10635 wxDC *arg1 = (wxDC *) 0 ;
10636 PyObject * obj0 = 0 ;
10637 char *kwnames[] = {
10638 (char *) "self", NULL
10639 };
10640
10641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 (arg1)->BeginDrawing();
10647
10648 wxPyEndAllowThreads(__tstate);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 Py_INCREF(Py_None); resultobj = Py_None;
10652 return resultobj;
10653 fail:
10654 return NULL;
10655 }
10656
10657
10658 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10659 PyObject *resultobj;
10660 wxDC *arg1 = (wxDC *) 0 ;
10661 PyObject * obj0 = 0 ;
10662 char *kwnames[] = {
10663 (char *) "self", NULL
10664 };
10665
10666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 (arg1)->EndDrawing();
10672
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 Py_INCREF(Py_None); resultobj = Py_None;
10677 return resultobj;
10678 fail:
10679 return NULL;
10680 }
10681
10682
10683 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
10684 PyObject *resultobj;
10685 wxDC *arg1 = (wxDC *) 0 ;
10686 int arg2 ;
10687 int arg3 ;
10688 wxColour *arg4 = 0 ;
10689 int arg5 = (int) wxFLOOD_SURFACE ;
10690 bool result;
10691 wxColour temp4 ;
10692 PyObject * obj0 = 0 ;
10693 PyObject * obj1 = 0 ;
10694 PyObject * obj2 = 0 ;
10695 PyObject * obj3 = 0 ;
10696 PyObject * obj4 = 0 ;
10697 char *kwnames[] = {
10698 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10699 };
10700
10701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10704 arg2 = (int)SWIG_As_int(obj1);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 arg3 = (int)SWIG_As_int(obj2);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 {
10709 arg4 = &temp4;
10710 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10711 }
10712 if (obj4) {
10713 arg5 = (int)SWIG_As_int(obj4);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10719
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 {
10724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10725 }
10726 return resultobj;
10727 fail:
10728 return NULL;
10729 }
10730
10731
10732 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj;
10734 wxDC *arg1 = (wxDC *) 0 ;
10735 wxPoint *arg2 = 0 ;
10736 wxColour *arg3 = 0 ;
10737 int arg4 = (int) wxFLOOD_SURFACE ;
10738 bool result;
10739 wxPoint temp2 ;
10740 wxColour temp3 ;
10741 PyObject * obj0 = 0 ;
10742 PyObject * obj1 = 0 ;
10743 PyObject * obj2 = 0 ;
10744 PyObject * obj3 = 0 ;
10745 char *kwnames[] = {
10746 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10747 };
10748
10749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10752 {
10753 arg2 = &temp2;
10754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10755 }
10756 {
10757 arg3 = &temp3;
10758 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10759 }
10760 if (obj3) {
10761 arg4 = (int)SWIG_As_int(obj3);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 {
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10767
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 {
10772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10773 }
10774 return resultobj;
10775 fail:
10776 return NULL;
10777 }
10778
10779
10780 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj;
10782 wxDC *arg1 = (wxDC *) 0 ;
10783 int arg2 ;
10784 int arg3 ;
10785 wxColour result;
10786 PyObject * obj0 = 0 ;
10787 PyObject * obj1 = 0 ;
10788 PyObject * obj2 = 0 ;
10789 char *kwnames[] = {
10790 (char *) "self",(char *) "x",(char *) "y", NULL
10791 };
10792
10793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10796 arg2 = (int)SWIG_As_int(obj1);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 arg3 = (int)SWIG_As_int(obj2);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 result = wxDC_GetPixel(arg1,arg2,arg3);
10803
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 {
10808 wxColour * resultptr;
10809 resultptr = new wxColour((wxColour &) result);
10810 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10811 }
10812 return resultobj;
10813 fail:
10814 return NULL;
10815 }
10816
10817
10818 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10819 PyObject *resultobj;
10820 wxDC *arg1 = (wxDC *) 0 ;
10821 wxPoint *arg2 = 0 ;
10822 wxColour result;
10823 wxPoint temp2 ;
10824 PyObject * obj0 = 0 ;
10825 PyObject * obj1 = 0 ;
10826 char *kwnames[] = {
10827 (char *) "self",(char *) "pt", NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10833 {
10834 arg2 = &temp2;
10835 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10836 }
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10840
10841 wxPyEndAllowThreads(__tstate);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 }
10844 {
10845 wxColour * resultptr;
10846 resultptr = new wxColour((wxColour &) result);
10847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10848 }
10849 return resultobj;
10850 fail:
10851 return NULL;
10852 }
10853
10854
10855 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj;
10857 wxDC *arg1 = (wxDC *) 0 ;
10858 int arg2 ;
10859 int arg3 ;
10860 int arg4 ;
10861 int arg5 ;
10862 PyObject * obj0 = 0 ;
10863 PyObject * obj1 = 0 ;
10864 PyObject * obj2 = 0 ;
10865 PyObject * obj3 = 0 ;
10866 PyObject * obj4 = 0 ;
10867 char *kwnames[] = {
10868 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10869 };
10870
10871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10874 arg2 = (int)SWIG_As_int(obj1);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 arg3 = (int)SWIG_As_int(obj2);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 arg4 = (int)SWIG_As_int(obj3);
10879 if (PyErr_Occurred()) SWIG_fail;
10880 arg5 = (int)SWIG_As_int(obj4);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 {
10883 PyThreadState* __tstate = wxPyBeginAllowThreads();
10884 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10885
10886 wxPyEndAllowThreads(__tstate);
10887 if (PyErr_Occurred()) SWIG_fail;
10888 }
10889 Py_INCREF(Py_None); resultobj = Py_None;
10890 return resultobj;
10891 fail:
10892 return NULL;
10893 }
10894
10895
10896 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
10897 PyObject *resultobj;
10898 wxDC *arg1 = (wxDC *) 0 ;
10899 wxPoint *arg2 = 0 ;
10900 wxPoint *arg3 = 0 ;
10901 wxPoint temp2 ;
10902 wxPoint temp3 ;
10903 PyObject * obj0 = 0 ;
10904 PyObject * obj1 = 0 ;
10905 PyObject * obj2 = 0 ;
10906 char *kwnames[] = {
10907 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10908 };
10909
10910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10913 {
10914 arg2 = &temp2;
10915 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10916 }
10917 {
10918 arg3 = &temp3;
10919 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10920 }
10921 {
10922 PyThreadState* __tstate = wxPyBeginAllowThreads();
10923 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10924
10925 wxPyEndAllowThreads(__tstate);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 }
10928 Py_INCREF(Py_None); resultobj = Py_None;
10929 return resultobj;
10930 fail:
10931 return NULL;
10932 }
10933
10934
10935 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
10936 PyObject *resultobj;
10937 wxDC *arg1 = (wxDC *) 0 ;
10938 int arg2 ;
10939 int arg3 ;
10940 PyObject * obj0 = 0 ;
10941 PyObject * obj1 = 0 ;
10942 PyObject * obj2 = 0 ;
10943 char *kwnames[] = {
10944 (char *) "self",(char *) "x",(char *) "y", NULL
10945 };
10946
10947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10950 arg2 = (int)SWIG_As_int(obj1);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 arg3 = (int)SWIG_As_int(obj2);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 {
10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
10956 (arg1)->CrossHair(arg2,arg3);
10957
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 Py_INCREF(Py_None); resultobj = Py_None;
10962 return resultobj;
10963 fail:
10964 return NULL;
10965 }
10966
10967
10968 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10969 PyObject *resultobj;
10970 wxDC *arg1 = (wxDC *) 0 ;
10971 wxPoint *arg2 = 0 ;
10972 wxPoint temp2 ;
10973 PyObject * obj0 = 0 ;
10974 PyObject * obj1 = 0 ;
10975 char *kwnames[] = {
10976 (char *) "self",(char *) "pt", NULL
10977 };
10978
10979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10982 {
10983 arg2 = &temp2;
10984 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10985 }
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 (arg1)->CrossHair((wxPoint const &)*arg2);
10989
10990 wxPyEndAllowThreads(__tstate);
10991 if (PyErr_Occurred()) SWIG_fail;
10992 }
10993 Py_INCREF(Py_None); resultobj = Py_None;
10994 return resultobj;
10995 fail:
10996 return NULL;
10997 }
10998
10999
11000 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
11001 PyObject *resultobj;
11002 wxDC *arg1 = (wxDC *) 0 ;
11003 int arg2 ;
11004 int arg3 ;
11005 int arg4 ;
11006 int arg5 ;
11007 int arg6 ;
11008 int arg7 ;
11009 PyObject * obj0 = 0 ;
11010 PyObject * obj1 = 0 ;
11011 PyObject * obj2 = 0 ;
11012 PyObject * obj3 = 0 ;
11013 PyObject * obj4 = 0 ;
11014 PyObject * obj5 = 0 ;
11015 PyObject * obj6 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11023 arg2 = (int)SWIG_As_int(obj1);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 arg3 = (int)SWIG_As_int(obj2);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 arg4 = (int)SWIG_As_int(obj3);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 arg5 = (int)SWIG_As_int(obj4);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 arg6 = (int)SWIG_As_int(obj5);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 arg7 = (int)SWIG_As_int(obj6);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11038
11039 wxPyEndAllowThreads(__tstate);
11040 if (PyErr_Occurred()) SWIG_fail;
11041 }
11042 Py_INCREF(Py_None); resultobj = Py_None;
11043 return resultobj;
11044 fail:
11045 return NULL;
11046 }
11047
11048
11049 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11050 PyObject *resultobj;
11051 wxDC *arg1 = (wxDC *) 0 ;
11052 wxPoint *arg2 = 0 ;
11053 wxPoint *arg3 = 0 ;
11054 wxPoint *arg4 = 0 ;
11055 wxPoint temp2 ;
11056 wxPoint temp3 ;
11057 wxPoint temp4 ;
11058 PyObject * obj0 = 0 ;
11059 PyObject * obj1 = 0 ;
11060 PyObject * obj2 = 0 ;
11061 PyObject * obj3 = 0 ;
11062 char *kwnames[] = {
11063 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
11064 };
11065
11066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11069 {
11070 arg2 = &temp2;
11071 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11072 }
11073 {
11074 arg3 = &temp3;
11075 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11076 }
11077 {
11078 arg4 = &temp4;
11079 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11080 }
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11084
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 Py_INCREF(Py_None); resultobj = Py_None;
11089 return resultobj;
11090 fail:
11091 return NULL;
11092 }
11093
11094
11095 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj;
11097 wxDC *arg1 = (wxDC *) 0 ;
11098 int arg2 ;
11099 int arg3 ;
11100 int arg4 ;
11101 int arg5 ;
11102 PyObject * obj0 = 0 ;
11103 PyObject * obj1 = 0 ;
11104 PyObject * obj2 = 0 ;
11105 PyObject * obj3 = 0 ;
11106 PyObject * obj4 = 0 ;
11107 char *kwnames[] = {
11108 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11109 };
11110
11111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11114 arg2 = (int)SWIG_As_int(obj1);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 arg3 = (int)SWIG_As_int(obj2);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 arg4 = (int)SWIG_As_int(obj3);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 arg5 = (int)SWIG_As_int(obj4);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 {
11123 PyThreadState* __tstate = wxPyBeginAllowThreads();
11124 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11125
11126 wxPyEndAllowThreads(__tstate);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 }
11129 Py_INCREF(Py_None); resultobj = Py_None;
11130 return resultobj;
11131 fail:
11132 return NULL;
11133 }
11134
11135
11136 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
11137 PyObject *resultobj;
11138 wxDC *arg1 = (wxDC *) 0 ;
11139 wxRect *arg2 = 0 ;
11140 wxRect temp2 ;
11141 PyObject * obj0 = 0 ;
11142 PyObject * obj1 = 0 ;
11143 char *kwnames[] = {
11144 (char *) "self",(char *) "rect", NULL
11145 };
11146
11147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11150 {
11151 arg2 = &temp2;
11152 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11153 }
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11157
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 Py_INCREF(Py_None); resultobj = Py_None;
11162 return resultobj;
11163 fail:
11164 return NULL;
11165 }
11166
11167
11168 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
11169 PyObject *resultobj;
11170 wxDC *arg1 = (wxDC *) 0 ;
11171 int arg2 ;
11172 int arg3 ;
11173 int arg4 ;
11174 int arg5 ;
11175 double arg6 ;
11176 double arg7 ;
11177 PyObject * obj0 = 0 ;
11178 PyObject * obj1 = 0 ;
11179 PyObject * obj2 = 0 ;
11180 PyObject * obj3 = 0 ;
11181 PyObject * obj4 = 0 ;
11182 PyObject * obj5 = 0 ;
11183 PyObject * obj6 = 0 ;
11184 char *kwnames[] = {
11185 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
11186 };
11187
11188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11191 arg2 = (int)SWIG_As_int(obj1);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 arg3 = (int)SWIG_As_int(obj2);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 arg4 = (int)SWIG_As_int(obj3);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 arg5 = (int)SWIG_As_int(obj4);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 arg6 = (double)SWIG_As_double(obj5);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 arg7 = (double)SWIG_As_double(obj6);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 {
11204 PyThreadState* __tstate = wxPyBeginAllowThreads();
11205 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11206
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 Py_INCREF(Py_None); resultobj = Py_None;
11211 return resultobj;
11212 fail:
11213 return NULL;
11214 }
11215
11216
11217 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11218 PyObject *resultobj;
11219 wxDC *arg1 = (wxDC *) 0 ;
11220 wxPoint *arg2 = 0 ;
11221 wxSize *arg3 = 0 ;
11222 double arg4 ;
11223 double arg5 ;
11224 wxPoint temp2 ;
11225 wxSize temp3 ;
11226 PyObject * obj0 = 0 ;
11227 PyObject * obj1 = 0 ;
11228 PyObject * obj2 = 0 ;
11229 PyObject * obj3 = 0 ;
11230 PyObject * obj4 = 0 ;
11231 char *kwnames[] = {
11232 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
11233 };
11234
11235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11238 {
11239 arg2 = &temp2;
11240 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11241 }
11242 {
11243 arg3 = &temp3;
11244 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11245 }
11246 arg4 = (double)SWIG_As_double(obj3);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 arg5 = (double)SWIG_As_double(obj4);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 {
11251 PyThreadState* __tstate = wxPyBeginAllowThreads();
11252 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11253
11254 wxPyEndAllowThreads(__tstate);
11255 if (PyErr_Occurred()) SWIG_fail;
11256 }
11257 Py_INCREF(Py_None); resultobj = Py_None;
11258 return resultobj;
11259 fail:
11260 return NULL;
11261 }
11262
11263
11264 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11265 PyObject *resultobj;
11266 wxDC *arg1 = (wxDC *) 0 ;
11267 int arg2 ;
11268 int arg3 ;
11269 PyObject * obj0 = 0 ;
11270 PyObject * obj1 = 0 ;
11271 PyObject * obj2 = 0 ;
11272 char *kwnames[] = {
11273 (char *) "self",(char *) "x",(char *) "y", NULL
11274 };
11275
11276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11279 arg2 = (int)SWIG_As_int(obj1);
11280 if (PyErr_Occurred()) SWIG_fail;
11281 arg3 = (int)SWIG_As_int(obj2);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 (arg1)->DrawPoint(arg2,arg3);
11286
11287 wxPyEndAllowThreads(__tstate);
11288 if (PyErr_Occurred()) SWIG_fail;
11289 }
11290 Py_INCREF(Py_None); resultobj = Py_None;
11291 return resultobj;
11292 fail:
11293 return NULL;
11294 }
11295
11296
11297 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11298 PyObject *resultobj;
11299 wxDC *arg1 = (wxDC *) 0 ;
11300 wxPoint *arg2 = 0 ;
11301 wxPoint temp2 ;
11302 PyObject * obj0 = 0 ;
11303 PyObject * obj1 = 0 ;
11304 char *kwnames[] = {
11305 (char *) "self",(char *) "pt", NULL
11306 };
11307
11308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11311 {
11312 arg2 = &temp2;
11313 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11314 }
11315 {
11316 PyThreadState* __tstate = wxPyBeginAllowThreads();
11317 (arg1)->DrawPoint((wxPoint const &)*arg2);
11318
11319 wxPyEndAllowThreads(__tstate);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 }
11322 Py_INCREF(Py_None); resultobj = Py_None;
11323 return resultobj;
11324 fail:
11325 return NULL;
11326 }
11327
11328
11329 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11330 PyObject *resultobj;
11331 wxDC *arg1 = (wxDC *) 0 ;
11332 int arg2 ;
11333 int arg3 ;
11334 int arg4 ;
11335 int arg5 ;
11336 PyObject * obj0 = 0 ;
11337 PyObject * obj1 = 0 ;
11338 PyObject * obj2 = 0 ;
11339 PyObject * obj3 = 0 ;
11340 PyObject * obj4 = 0 ;
11341 char *kwnames[] = {
11342 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11343 };
11344
11345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11348 arg2 = (int)SWIG_As_int(obj1);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 arg3 = (int)SWIG_As_int(obj2);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 arg4 = (int)SWIG_As_int(obj3);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 arg5 = (int)SWIG_As_int(obj4);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11359
11360 wxPyEndAllowThreads(__tstate);
11361 if (PyErr_Occurred()) SWIG_fail;
11362 }
11363 Py_INCREF(Py_None); resultobj = Py_None;
11364 return resultobj;
11365 fail:
11366 return NULL;
11367 }
11368
11369
11370 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11371 PyObject *resultobj;
11372 wxDC *arg1 = (wxDC *) 0 ;
11373 wxRect *arg2 = 0 ;
11374 wxRect temp2 ;
11375 PyObject * obj0 = 0 ;
11376 PyObject * obj1 = 0 ;
11377 char *kwnames[] = {
11378 (char *) "self",(char *) "rect", NULL
11379 };
11380
11381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11384 {
11385 arg2 = &temp2;
11386 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11387 }
11388 {
11389 PyThreadState* __tstate = wxPyBeginAllowThreads();
11390 (arg1)->DrawRectangle((wxRect const &)*arg2);
11391
11392 wxPyEndAllowThreads(__tstate);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 }
11395 Py_INCREF(Py_None); resultobj = Py_None;
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11403 PyObject *resultobj;
11404 wxDC *arg1 = (wxDC *) 0 ;
11405 wxPoint *arg2 = 0 ;
11406 wxSize *arg3 = 0 ;
11407 wxPoint temp2 ;
11408 wxSize temp3 ;
11409 PyObject * obj0 = 0 ;
11410 PyObject * obj1 = 0 ;
11411 PyObject * obj2 = 0 ;
11412 char *kwnames[] = {
11413 (char *) "self",(char *) "pt",(char *) "sz", NULL
11414 };
11415
11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11419 {
11420 arg2 = &temp2;
11421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11422 }
11423 {
11424 arg3 = &temp3;
11425 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11426 }
11427 {
11428 PyThreadState* __tstate = wxPyBeginAllowThreads();
11429 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11430
11431 wxPyEndAllowThreads(__tstate);
11432 if (PyErr_Occurred()) SWIG_fail;
11433 }
11434 Py_INCREF(Py_None); resultobj = Py_None;
11435 return resultobj;
11436 fail:
11437 return NULL;
11438 }
11439
11440
11441 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11442 PyObject *resultobj;
11443 wxDC *arg1 = (wxDC *) 0 ;
11444 int arg2 ;
11445 int arg3 ;
11446 int arg4 ;
11447 int arg5 ;
11448 double arg6 ;
11449 PyObject * obj0 = 0 ;
11450 PyObject * obj1 = 0 ;
11451 PyObject * obj2 = 0 ;
11452 PyObject * obj3 = 0 ;
11453 PyObject * obj4 = 0 ;
11454 PyObject * obj5 = 0 ;
11455 char *kwnames[] = {
11456 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11457 };
11458
11459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11462 arg2 = (int)SWIG_As_int(obj1);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 arg3 = (int)SWIG_As_int(obj2);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 arg4 = (int)SWIG_As_int(obj3);
11467 if (PyErr_Occurred()) SWIG_fail;
11468 arg5 = (int)SWIG_As_int(obj4);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 arg6 = (double)SWIG_As_double(obj5);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 Py_INCREF(Py_None); resultobj = Py_None;
11480 return resultobj;
11481 fail:
11482 return NULL;
11483 }
11484
11485
11486 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11487 PyObject *resultobj;
11488 wxDC *arg1 = (wxDC *) 0 ;
11489 wxRect *arg2 = 0 ;
11490 double arg3 ;
11491 wxRect temp2 ;
11492 PyObject * obj0 = 0 ;
11493 PyObject * obj1 = 0 ;
11494 PyObject * obj2 = 0 ;
11495 char *kwnames[] = {
11496 (char *) "self",(char *) "r",(char *) "radius", NULL
11497 };
11498
11499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11502 {
11503 arg2 = &temp2;
11504 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11505 }
11506 arg3 = (double)SWIG_As_double(obj2);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11511
11512 wxPyEndAllowThreads(__tstate);
11513 if (PyErr_Occurred()) SWIG_fail;
11514 }
11515 Py_INCREF(Py_None); resultobj = Py_None;
11516 return resultobj;
11517 fail:
11518 return NULL;
11519 }
11520
11521
11522 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11523 PyObject *resultobj;
11524 wxDC *arg1 = (wxDC *) 0 ;
11525 wxPoint *arg2 = 0 ;
11526 wxSize *arg3 = 0 ;
11527 double arg4 ;
11528 wxPoint temp2 ;
11529 wxSize temp3 ;
11530 PyObject * obj0 = 0 ;
11531 PyObject * obj1 = 0 ;
11532 PyObject * obj2 = 0 ;
11533 PyObject * obj3 = 0 ;
11534 char *kwnames[] = {
11535 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11536 };
11537
11538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11541 {
11542 arg2 = &temp2;
11543 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11544 }
11545 {
11546 arg3 = &temp3;
11547 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11548 }
11549 arg4 = (double)SWIG_As_double(obj3);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 {
11552 PyThreadState* __tstate = wxPyBeginAllowThreads();
11553 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11554
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 Py_INCREF(Py_None); resultobj = Py_None;
11559 return resultobj;
11560 fail:
11561 return NULL;
11562 }
11563
11564
11565 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
11566 PyObject *resultobj;
11567 wxDC *arg1 = (wxDC *) 0 ;
11568 int arg2 ;
11569 int arg3 ;
11570 int arg4 ;
11571 PyObject * obj0 = 0 ;
11572 PyObject * obj1 = 0 ;
11573 PyObject * obj2 = 0 ;
11574 PyObject * obj3 = 0 ;
11575 char *kwnames[] = {
11576 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11577 };
11578
11579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11582 arg2 = (int)SWIG_As_int(obj1);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 arg3 = (int)SWIG_As_int(obj2);
11585 if (PyErr_Occurred()) SWIG_fail;
11586 arg4 = (int)SWIG_As_int(obj3);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 (arg1)->DrawCircle(arg2,arg3,arg4);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 Py_INCREF(Py_None); resultobj = Py_None;
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
11603 PyObject *resultobj;
11604 wxDC *arg1 = (wxDC *) 0 ;
11605 wxPoint *arg2 = 0 ;
11606 int arg3 ;
11607 wxPoint temp2 ;
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
11610 PyObject * obj2 = 0 ;
11611 char *kwnames[] = {
11612 (char *) "self",(char *) "pt",(char *) "radius", NULL
11613 };
11614
11615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11618 {
11619 arg2 = &temp2;
11620 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11621 }
11622 arg3 = (int)SWIG_As_int(obj2);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
11626 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11627
11628 wxPyEndAllowThreads(__tstate);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 Py_INCREF(Py_None); resultobj = Py_None;
11632 return resultobj;
11633 fail:
11634 return NULL;
11635 }
11636
11637
11638 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
11639 PyObject *resultobj;
11640 wxDC *arg1 = (wxDC *) 0 ;
11641 int arg2 ;
11642 int arg3 ;
11643 int arg4 ;
11644 int arg5 ;
11645 PyObject * obj0 = 0 ;
11646 PyObject * obj1 = 0 ;
11647 PyObject * obj2 = 0 ;
11648 PyObject * obj3 = 0 ;
11649 PyObject * obj4 = 0 ;
11650 char *kwnames[] = {
11651 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11652 };
11653
11654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11657 arg2 = (int)SWIG_As_int(obj1);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 arg3 = (int)SWIG_As_int(obj2);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 arg4 = (int)SWIG_As_int(obj3);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 arg5 = (int)SWIG_As_int(obj4);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 {
11666 PyThreadState* __tstate = wxPyBeginAllowThreads();
11667 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11668
11669 wxPyEndAllowThreads(__tstate);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 Py_INCREF(Py_None); resultobj = Py_None;
11673 return resultobj;
11674 fail:
11675 return NULL;
11676 }
11677
11678
11679 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
11680 PyObject *resultobj;
11681 wxDC *arg1 = (wxDC *) 0 ;
11682 wxRect *arg2 = 0 ;
11683 wxRect temp2 ;
11684 PyObject * obj0 = 0 ;
11685 PyObject * obj1 = 0 ;
11686 char *kwnames[] = {
11687 (char *) "self",(char *) "rect", NULL
11688 };
11689
11690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11693 {
11694 arg2 = &temp2;
11695 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11696 }
11697 {
11698 PyThreadState* __tstate = wxPyBeginAllowThreads();
11699 (arg1)->DrawEllipse((wxRect const &)*arg2);
11700
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 Py_INCREF(Py_None); resultobj = Py_None;
11705 return resultobj;
11706 fail:
11707 return NULL;
11708 }
11709
11710
11711 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11712 PyObject *resultobj;
11713 wxDC *arg1 = (wxDC *) 0 ;
11714 wxPoint *arg2 = 0 ;
11715 wxSize *arg3 = 0 ;
11716 wxPoint temp2 ;
11717 wxSize temp3 ;
11718 PyObject * obj0 = 0 ;
11719 PyObject * obj1 = 0 ;
11720 PyObject * obj2 = 0 ;
11721 char *kwnames[] = {
11722 (char *) "self",(char *) "pt",(char *) "sz", NULL
11723 };
11724
11725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11728 {
11729 arg2 = &temp2;
11730 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11731 }
11732 {
11733 arg3 = &temp3;
11734 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11735 }
11736 {
11737 PyThreadState* __tstate = wxPyBeginAllowThreads();
11738 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11739
11740 wxPyEndAllowThreads(__tstate);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 Py_INCREF(Py_None); resultobj = Py_None;
11744 return resultobj;
11745 fail:
11746 return NULL;
11747 }
11748
11749
11750 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11751 PyObject *resultobj;
11752 wxDC *arg1 = (wxDC *) 0 ;
11753 wxIcon *arg2 = 0 ;
11754 int arg3 ;
11755 int arg4 ;
11756 PyObject * obj0 = 0 ;
11757 PyObject * obj1 = 0 ;
11758 PyObject * obj2 = 0 ;
11759 PyObject * obj3 = 0 ;
11760 char *kwnames[] = {
11761 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11762 };
11763
11764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11767 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11768 SWIG_POINTER_EXCEPTION | 0)) == -1)
11769 SWIG_fail;
11770 if (arg2 == NULL) {
11771 PyErr_SetString(PyExc_TypeError,"null reference");
11772 SWIG_fail;
11773 }
11774 arg3 = (int)SWIG_As_int(obj2);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 arg4 = (int)SWIG_As_int(obj3);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11781
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 Py_INCREF(Py_None); resultobj = Py_None;
11786 return resultobj;
11787 fail:
11788 return NULL;
11789 }
11790
11791
11792 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11793 PyObject *resultobj;
11794 wxDC *arg1 = (wxDC *) 0 ;
11795 wxIcon *arg2 = 0 ;
11796 wxPoint *arg3 = 0 ;
11797 wxPoint temp3 ;
11798 PyObject * obj0 = 0 ;
11799 PyObject * obj1 = 0 ;
11800 PyObject * obj2 = 0 ;
11801 char *kwnames[] = {
11802 (char *) "self",(char *) "icon",(char *) "pt", NULL
11803 };
11804
11805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11808 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11809 SWIG_POINTER_EXCEPTION | 0)) == -1)
11810 SWIG_fail;
11811 if (arg2 == NULL) {
11812 PyErr_SetString(PyExc_TypeError,"null reference");
11813 SWIG_fail;
11814 }
11815 {
11816 arg3 = &temp3;
11817 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11818 }
11819 {
11820 PyThreadState* __tstate = wxPyBeginAllowThreads();
11821 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11822
11823 wxPyEndAllowThreads(__tstate);
11824 if (PyErr_Occurred()) SWIG_fail;
11825 }
11826 Py_INCREF(Py_None); resultobj = Py_None;
11827 return resultobj;
11828 fail:
11829 return NULL;
11830 }
11831
11832
11833 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11834 PyObject *resultobj;
11835 wxDC *arg1 = (wxDC *) 0 ;
11836 wxBitmap *arg2 = 0 ;
11837 int arg3 ;
11838 int arg4 ;
11839 bool arg5 = (bool) false ;
11840 PyObject * obj0 = 0 ;
11841 PyObject * obj1 = 0 ;
11842 PyObject * obj2 = 0 ;
11843 PyObject * obj3 = 0 ;
11844 PyObject * obj4 = 0 ;
11845 char *kwnames[] = {
11846 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11847 };
11848
11849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11852 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11853 SWIG_POINTER_EXCEPTION | 0)) == -1)
11854 SWIG_fail;
11855 if (arg2 == NULL) {
11856 PyErr_SetString(PyExc_TypeError,"null reference");
11857 SWIG_fail;
11858 }
11859 arg3 = (int)SWIG_As_int(obj2);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 arg4 = (int)SWIG_As_int(obj3);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 if (obj4) {
11864 arg5 = (bool)SWIG_As_bool(obj4);
11865 if (PyErr_Occurred()) SWIG_fail;
11866 }
11867 {
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11870
11871 wxPyEndAllowThreads(__tstate);
11872 if (PyErr_Occurred()) SWIG_fail;
11873 }
11874 Py_INCREF(Py_None); resultobj = Py_None;
11875 return resultobj;
11876 fail:
11877 return NULL;
11878 }
11879
11880
11881 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11882 PyObject *resultobj;
11883 wxDC *arg1 = (wxDC *) 0 ;
11884 wxBitmap *arg2 = 0 ;
11885 wxPoint *arg3 = 0 ;
11886 bool arg4 = (bool) false ;
11887 wxPoint temp3 ;
11888 PyObject * obj0 = 0 ;
11889 PyObject * obj1 = 0 ;
11890 PyObject * obj2 = 0 ;
11891 PyObject * obj3 = 0 ;
11892 char *kwnames[] = {
11893 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11894 };
11895
11896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11899 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11900 SWIG_POINTER_EXCEPTION | 0)) == -1)
11901 SWIG_fail;
11902 if (arg2 == NULL) {
11903 PyErr_SetString(PyExc_TypeError,"null reference");
11904 SWIG_fail;
11905 }
11906 {
11907 arg3 = &temp3;
11908 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11909 }
11910 if (obj3) {
11911 arg4 = (bool)SWIG_As_bool(obj3);
11912 if (PyErr_Occurred()) SWIG_fail;
11913 }
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11917
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 Py_INCREF(Py_None); resultobj = Py_None;
11922 return resultobj;
11923 fail:
11924 return NULL;
11925 }
11926
11927
11928 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
11929 PyObject *resultobj;
11930 wxDC *arg1 = (wxDC *) 0 ;
11931 wxString *arg2 = 0 ;
11932 int arg3 ;
11933 int arg4 ;
11934 bool temp2 = false ;
11935 PyObject * obj0 = 0 ;
11936 PyObject * obj1 = 0 ;
11937 PyObject * obj2 = 0 ;
11938 PyObject * obj3 = 0 ;
11939 char *kwnames[] = {
11940 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11941 };
11942
11943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11946 {
11947 arg2 = wxString_in_helper(obj1);
11948 if (arg2 == NULL) SWIG_fail;
11949 temp2 = true;
11950 }
11951 arg3 = (int)SWIG_As_int(obj2);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 arg4 = (int)SWIG_As_int(obj3);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 {
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11958
11959 wxPyEndAllowThreads(__tstate);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 }
11962 Py_INCREF(Py_None); resultobj = Py_None;
11963 {
11964 if (temp2)
11965 delete arg2;
11966 }
11967 return resultobj;
11968 fail:
11969 {
11970 if (temp2)
11971 delete arg2;
11972 }
11973 return NULL;
11974 }
11975
11976
11977 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11978 PyObject *resultobj;
11979 wxDC *arg1 = (wxDC *) 0 ;
11980 wxString *arg2 = 0 ;
11981 wxPoint *arg3 = 0 ;
11982 bool temp2 = false ;
11983 wxPoint temp3 ;
11984 PyObject * obj0 = 0 ;
11985 PyObject * obj1 = 0 ;
11986 PyObject * obj2 = 0 ;
11987 char *kwnames[] = {
11988 (char *) "self",(char *) "text",(char *) "pt", NULL
11989 };
11990
11991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11994 {
11995 arg2 = wxString_in_helper(obj1);
11996 if (arg2 == NULL) SWIG_fail;
11997 temp2 = true;
11998 }
11999 {
12000 arg3 = &temp3;
12001 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12002 }
12003 {
12004 PyThreadState* __tstate = wxPyBeginAllowThreads();
12005 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12006
12007 wxPyEndAllowThreads(__tstate);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 }
12010 Py_INCREF(Py_None); resultobj = Py_None;
12011 {
12012 if (temp2)
12013 delete arg2;
12014 }
12015 return resultobj;
12016 fail:
12017 {
12018 if (temp2)
12019 delete arg2;
12020 }
12021 return NULL;
12022 }
12023
12024
12025 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
12026 PyObject *resultobj;
12027 wxDC *arg1 = (wxDC *) 0 ;
12028 wxString *arg2 = 0 ;
12029 int arg3 ;
12030 int arg4 ;
12031 double arg5 ;
12032 bool temp2 = false ;
12033 PyObject * obj0 = 0 ;
12034 PyObject * obj1 = 0 ;
12035 PyObject * obj2 = 0 ;
12036 PyObject * obj3 = 0 ;
12037 PyObject * obj4 = 0 ;
12038 char *kwnames[] = {
12039 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12040 };
12041
12042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12045 {
12046 arg2 = wxString_in_helper(obj1);
12047 if (arg2 == NULL) SWIG_fail;
12048 temp2 = true;
12049 }
12050 arg3 = (int)SWIG_As_int(obj2);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 arg4 = (int)SWIG_As_int(obj3);
12053 if (PyErr_Occurred()) SWIG_fail;
12054 arg5 = (double)SWIG_As_double(obj4);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12059
12060 wxPyEndAllowThreads(__tstate);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 Py_INCREF(Py_None); resultobj = Py_None;
12064 {
12065 if (temp2)
12066 delete arg2;
12067 }
12068 return resultobj;
12069 fail:
12070 {
12071 if (temp2)
12072 delete arg2;
12073 }
12074 return NULL;
12075 }
12076
12077
12078 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12079 PyObject *resultobj;
12080 wxDC *arg1 = (wxDC *) 0 ;
12081 wxString *arg2 = 0 ;
12082 wxPoint *arg3 = 0 ;
12083 double arg4 ;
12084 bool temp2 = false ;
12085 wxPoint temp3 ;
12086 PyObject * obj0 = 0 ;
12087 PyObject * obj1 = 0 ;
12088 PyObject * obj2 = 0 ;
12089 PyObject * obj3 = 0 ;
12090 char *kwnames[] = {
12091 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12092 };
12093
12094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12097 {
12098 arg2 = wxString_in_helper(obj1);
12099 if (arg2 == NULL) SWIG_fail;
12100 temp2 = true;
12101 }
12102 {
12103 arg3 = &temp3;
12104 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12105 }
12106 arg4 = (double)SWIG_As_double(obj3);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 {
12109 PyThreadState* __tstate = wxPyBeginAllowThreads();
12110 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12111
12112 wxPyEndAllowThreads(__tstate);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 Py_INCREF(Py_None); resultobj = Py_None;
12116 {
12117 if (temp2)
12118 delete arg2;
12119 }
12120 return resultobj;
12121 fail:
12122 {
12123 if (temp2)
12124 delete arg2;
12125 }
12126 return NULL;
12127 }
12128
12129
12130 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
12131 PyObject *resultobj;
12132 wxDC *arg1 = (wxDC *) 0 ;
12133 int arg2 ;
12134 int arg3 ;
12135 int arg4 ;
12136 int arg5 ;
12137 wxDC *arg6 = (wxDC *) 0 ;
12138 int arg7 ;
12139 int arg8 ;
12140 int arg9 = (int) wxCOPY ;
12141 bool arg10 = (bool) false ;
12142 int arg11 = (int) -1 ;
12143 int arg12 = (int) -1 ;
12144 bool result;
12145 PyObject * obj0 = 0 ;
12146 PyObject * obj1 = 0 ;
12147 PyObject * obj2 = 0 ;
12148 PyObject * obj3 = 0 ;
12149 PyObject * obj4 = 0 ;
12150 PyObject * obj5 = 0 ;
12151 PyObject * obj6 = 0 ;
12152 PyObject * obj7 = 0 ;
12153 PyObject * obj8 = 0 ;
12154 PyObject * obj9 = 0 ;
12155 PyObject * obj10 = 0 ;
12156 PyObject * obj11 = 0 ;
12157 char *kwnames[] = {
12158 (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
12159 };
12160
12161 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;
12162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12164 arg2 = (int)SWIG_As_int(obj1);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 arg3 = (int)SWIG_As_int(obj2);
12167 if (PyErr_Occurred()) SWIG_fail;
12168 arg4 = (int)SWIG_As_int(obj3);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 arg5 = (int)SWIG_As_int(obj4);
12171 if (PyErr_Occurred()) SWIG_fail;
12172 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12174 arg7 = (int)SWIG_As_int(obj6);
12175 if (PyErr_Occurred()) SWIG_fail;
12176 arg8 = (int)SWIG_As_int(obj7);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 if (obj8) {
12179 arg9 = (int)SWIG_As_int(obj8);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 if (obj9) {
12183 arg10 = (bool)SWIG_As_bool(obj9);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 }
12186 if (obj10) {
12187 arg11 = (int)SWIG_As_int(obj10);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 if (obj11) {
12191 arg12 = (int)SWIG_As_int(obj11);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 {
12195 PyThreadState* __tstate = wxPyBeginAllowThreads();
12196 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12197
12198 wxPyEndAllowThreads(__tstate);
12199 if (PyErr_Occurred()) SWIG_fail;
12200 }
12201 {
12202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12203 }
12204 return resultobj;
12205 fail:
12206 return NULL;
12207 }
12208
12209
12210 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12211 PyObject *resultobj;
12212 wxDC *arg1 = (wxDC *) 0 ;
12213 wxPoint *arg2 = 0 ;
12214 wxSize *arg3 = 0 ;
12215 wxDC *arg4 = (wxDC *) 0 ;
12216 wxPoint *arg5 = 0 ;
12217 int arg6 = (int) wxCOPY ;
12218 bool arg7 = (bool) false ;
12219 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12220 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12221 bool result;
12222 wxPoint temp2 ;
12223 wxSize temp3 ;
12224 wxPoint temp5 ;
12225 wxPoint temp8 ;
12226 PyObject * obj0 = 0 ;
12227 PyObject * obj1 = 0 ;
12228 PyObject * obj2 = 0 ;
12229 PyObject * obj3 = 0 ;
12230 PyObject * obj4 = 0 ;
12231 PyObject * obj5 = 0 ;
12232 PyObject * obj6 = 0 ;
12233 PyObject * obj7 = 0 ;
12234 char *kwnames[] = {
12235 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12236 };
12237
12238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12241 {
12242 arg2 = &temp2;
12243 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12244 }
12245 {
12246 arg3 = &temp3;
12247 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12248 }
12249 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12251 {
12252 arg5 = &temp5;
12253 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12254 }
12255 if (obj5) {
12256 arg6 = (int)SWIG_As_int(obj5);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 if (obj6) {
12260 arg7 = (bool)SWIG_As_bool(obj6);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 if (obj7) {
12264 {
12265 arg8 = &temp8;
12266 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12267 }
12268 }
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12272
12273 wxPyEndAllowThreads(__tstate);
12274 if (PyErr_Occurred()) SWIG_fail;
12275 }
12276 {
12277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12278 }
12279 return resultobj;
12280 fail:
12281 return NULL;
12282 }
12283
12284
12285 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12286 PyObject *resultobj;
12287 wxDC *arg1 = (wxDC *) 0 ;
12288 int arg2 ;
12289 int arg3 ;
12290 int arg4 ;
12291 int arg5 ;
12292 PyObject * obj0 = 0 ;
12293 PyObject * obj1 = 0 ;
12294 PyObject * obj2 = 0 ;
12295 PyObject * obj3 = 0 ;
12296 PyObject * obj4 = 0 ;
12297 char *kwnames[] = {
12298 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12299 };
12300
12301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12304 arg2 = (int)SWIG_As_int(obj1);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 arg3 = (int)SWIG_As_int(obj2);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 arg4 = (int)SWIG_As_int(obj3);
12309 if (PyErr_Occurred()) SWIG_fail;
12310 arg5 = (int)SWIG_As_int(obj4);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 {
12313 PyThreadState* __tstate = wxPyBeginAllowThreads();
12314 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12315
12316 wxPyEndAllowThreads(__tstate);
12317 if (PyErr_Occurred()) SWIG_fail;
12318 }
12319 Py_INCREF(Py_None); resultobj = Py_None;
12320 return resultobj;
12321 fail:
12322 return NULL;
12323 }
12324
12325
12326 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12327 PyObject *resultobj;
12328 wxDC *arg1 = (wxDC *) 0 ;
12329 wxPoint *arg2 = 0 ;
12330 wxSize *arg3 = 0 ;
12331 wxPoint temp2 ;
12332 wxSize temp3 ;
12333 PyObject * obj0 = 0 ;
12334 PyObject * obj1 = 0 ;
12335 PyObject * obj2 = 0 ;
12336 char *kwnames[] = {
12337 (char *) "self",(char *) "pt",(char *) "sz", NULL
12338 };
12339
12340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12343 {
12344 arg2 = &temp2;
12345 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12346 }
12347 {
12348 arg3 = &temp3;
12349 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12350 }
12351 {
12352 PyThreadState* __tstate = wxPyBeginAllowThreads();
12353 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12354
12355 wxPyEndAllowThreads(__tstate);
12356 if (PyErr_Occurred()) SWIG_fail;
12357 }
12358 Py_INCREF(Py_None); resultobj = Py_None;
12359 return resultobj;
12360 fail:
12361 return NULL;
12362 }
12363
12364
12365 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12366 PyObject *resultobj;
12367 wxDC *arg1 = (wxDC *) 0 ;
12368 wxRegion *arg2 = 0 ;
12369 PyObject * obj0 = 0 ;
12370 PyObject * obj1 = 0 ;
12371 char *kwnames[] = {
12372 (char *) "self",(char *) "region", NULL
12373 };
12374
12375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12379 SWIG_POINTER_EXCEPTION | 0)) == -1)
12380 SWIG_fail;
12381 if (arg2 == NULL) {
12382 PyErr_SetString(PyExc_TypeError,"null reference");
12383 SWIG_fail;
12384 }
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12388
12389 wxPyEndAllowThreads(__tstate);
12390 if (PyErr_Occurred()) SWIG_fail;
12391 }
12392 Py_INCREF(Py_None); resultobj = Py_None;
12393 return resultobj;
12394 fail:
12395 return NULL;
12396 }
12397
12398
12399 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj;
12401 wxDC *arg1 = (wxDC *) 0 ;
12402 wxRect *arg2 = 0 ;
12403 wxRect temp2 ;
12404 PyObject * obj0 = 0 ;
12405 PyObject * obj1 = 0 ;
12406 char *kwnames[] = {
12407 (char *) "self",(char *) "rect", NULL
12408 };
12409
12410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12413 {
12414 arg2 = &temp2;
12415 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12416 }
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12420
12421 wxPyEndAllowThreads(__tstate);
12422 if (PyErr_Occurred()) SWIG_fail;
12423 }
12424 Py_INCREF(Py_None); resultobj = Py_None;
12425 return resultobj;
12426 fail:
12427 return NULL;
12428 }
12429
12430
12431 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
12432 PyObject *resultobj;
12433 wxDC *arg1 = (wxDC *) 0 ;
12434 int arg2 ;
12435 wxPoint *arg3 = (wxPoint *) 0 ;
12436 int arg4 = (int) 0 ;
12437 int arg5 = (int) 0 ;
12438 PyObject * obj0 = 0 ;
12439 PyObject * obj1 = 0 ;
12440 PyObject * obj2 = 0 ;
12441 PyObject * obj3 = 0 ;
12442 char *kwnames[] = {
12443 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12444 };
12445
12446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12449 {
12450 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12451 if (arg3 == NULL) SWIG_fail;
12452 }
12453 if (obj2) {
12454 arg4 = (int)SWIG_As_int(obj2);
12455 if (PyErr_Occurred()) SWIG_fail;
12456 }
12457 if (obj3) {
12458 arg5 = (int)SWIG_As_int(obj3);
12459 if (PyErr_Occurred()) SWIG_fail;
12460 }
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 Py_INCREF(Py_None); resultobj = Py_None;
12469 {
12470 if (arg3) delete [] arg3;
12471 }
12472 return resultobj;
12473 fail:
12474 {
12475 if (arg3) delete [] arg3;
12476 }
12477 return NULL;
12478 }
12479
12480
12481 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
12482 PyObject *resultobj;
12483 wxDC *arg1 = (wxDC *) 0 ;
12484 int arg2 ;
12485 wxPoint *arg3 = (wxPoint *) 0 ;
12486 int arg4 = (int) 0 ;
12487 int arg5 = (int) 0 ;
12488 int arg6 = (int) wxODDEVEN_RULE ;
12489 PyObject * obj0 = 0 ;
12490 PyObject * obj1 = 0 ;
12491 PyObject * obj2 = 0 ;
12492 PyObject * obj3 = 0 ;
12493 PyObject * obj4 = 0 ;
12494 char *kwnames[] = {
12495 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12496 };
12497
12498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12501 {
12502 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12503 if (arg3 == NULL) SWIG_fail;
12504 }
12505 if (obj2) {
12506 arg4 = (int)SWIG_As_int(obj2);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 if (obj3) {
12510 arg5 = (int)SWIG_As_int(obj3);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 if (obj4) {
12514 arg6 = (int)SWIG_As_int(obj4);
12515 if (PyErr_Occurred()) SWIG_fail;
12516 }
12517 {
12518 PyThreadState* __tstate = wxPyBeginAllowThreads();
12519 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12520
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 Py_INCREF(Py_None); resultobj = Py_None;
12525 {
12526 if (arg3) delete [] arg3;
12527 }
12528 return resultobj;
12529 fail:
12530 {
12531 if (arg3) delete [] arg3;
12532 }
12533 return NULL;
12534 }
12535
12536
12537 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12538 PyObject *resultobj;
12539 wxDC *arg1 = (wxDC *) 0 ;
12540 wxString *arg2 = 0 ;
12541 wxRect *arg3 = 0 ;
12542 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12543 int arg5 = (int) -1 ;
12544 bool temp2 = false ;
12545 wxRect temp3 ;
12546 PyObject * obj0 = 0 ;
12547 PyObject * obj1 = 0 ;
12548 PyObject * obj2 = 0 ;
12549 PyObject * obj3 = 0 ;
12550 PyObject * obj4 = 0 ;
12551 char *kwnames[] = {
12552 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12553 };
12554
12555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12558 {
12559 arg2 = wxString_in_helper(obj1);
12560 if (arg2 == NULL) SWIG_fail;
12561 temp2 = true;
12562 }
12563 {
12564 arg3 = &temp3;
12565 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12566 }
12567 if (obj3) {
12568 arg4 = (int)SWIG_As_int(obj3);
12569 if (PyErr_Occurred()) SWIG_fail;
12570 }
12571 if (obj4) {
12572 arg5 = (int)SWIG_As_int(obj4);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 }
12575 {
12576 PyThreadState* __tstate = wxPyBeginAllowThreads();
12577 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12578
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 }
12582 Py_INCREF(Py_None); resultobj = Py_None;
12583 {
12584 if (temp2)
12585 delete arg2;
12586 }
12587 return resultobj;
12588 fail:
12589 {
12590 if (temp2)
12591 delete arg2;
12592 }
12593 return NULL;
12594 }
12595
12596
12597 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj;
12599 wxDC *arg1 = (wxDC *) 0 ;
12600 wxString *arg2 = 0 ;
12601 wxBitmap *arg3 = 0 ;
12602 wxRect *arg4 = 0 ;
12603 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12604 int arg6 = (int) -1 ;
12605 wxRect result;
12606 bool temp2 = false ;
12607 wxRect temp4 ;
12608 PyObject * obj0 = 0 ;
12609 PyObject * obj1 = 0 ;
12610 PyObject * obj2 = 0 ;
12611 PyObject * obj3 = 0 ;
12612 PyObject * obj4 = 0 ;
12613 PyObject * obj5 = 0 ;
12614 char *kwnames[] = {
12615 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12616 };
12617
12618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12621 {
12622 arg2 = wxString_in_helper(obj1);
12623 if (arg2 == NULL) SWIG_fail;
12624 temp2 = true;
12625 }
12626 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12627 SWIG_POINTER_EXCEPTION | 0)) == -1)
12628 SWIG_fail;
12629 if (arg3 == NULL) {
12630 PyErr_SetString(PyExc_TypeError,"null reference");
12631 SWIG_fail;
12632 }
12633 {
12634 arg4 = &temp4;
12635 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12636 }
12637 if (obj4) {
12638 arg5 = (int)SWIG_As_int(obj4);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 if (obj5) {
12642 arg6 = (int)SWIG_As_int(obj5);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12648
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 {
12653 wxRect * resultptr;
12654 resultptr = new wxRect((wxRect &) result);
12655 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12656 }
12657 {
12658 if (temp2)
12659 delete arg2;
12660 }
12661 return resultobj;
12662 fail:
12663 {
12664 if (temp2)
12665 delete arg2;
12666 }
12667 return NULL;
12668 }
12669
12670
12671 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
12672 PyObject *resultobj;
12673 wxDC *arg1 = (wxDC *) 0 ;
12674 int arg2 ;
12675 wxPoint *arg3 = (wxPoint *) 0 ;
12676 PyObject * obj0 = 0 ;
12677 PyObject * obj1 = 0 ;
12678 char *kwnames[] = {
12679 (char *) "self",(char *) "points", NULL
12680 };
12681
12682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12685 {
12686 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12687 if (arg3 == NULL) SWIG_fail;
12688 }
12689 {
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 (arg1)->DrawSpline(arg2,arg3);
12692
12693 wxPyEndAllowThreads(__tstate);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 }
12696 Py_INCREF(Py_None); resultobj = Py_None;
12697 {
12698 if (arg3) delete [] arg3;
12699 }
12700 return resultobj;
12701 fail:
12702 {
12703 if (arg3) delete [] arg3;
12704 }
12705 return NULL;
12706 }
12707
12708
12709 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
12710 PyObject *resultobj;
12711 wxDC *arg1 = (wxDC *) 0 ;
12712 PyObject * obj0 = 0 ;
12713 char *kwnames[] = {
12714 (char *) "self", NULL
12715 };
12716
12717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 (arg1)->Clear();
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 Py_INCREF(Py_None); resultobj = Py_None;
12728 return resultobj;
12729 fail:
12730 return NULL;
12731 }
12732
12733
12734 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12735 PyObject *resultobj;
12736 wxDC *arg1 = (wxDC *) 0 ;
12737 wxString *arg2 = 0 ;
12738 bool result;
12739 bool temp2 = false ;
12740 PyObject * obj0 = 0 ;
12741 PyObject * obj1 = 0 ;
12742 char *kwnames[] = {
12743 (char *) "self",(char *) "message", NULL
12744 };
12745
12746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12749 {
12750 arg2 = wxString_in_helper(obj1);
12751 if (arg2 == NULL) SWIG_fail;
12752 temp2 = true;
12753 }
12754 {
12755 PyThreadState* __tstate = wxPyBeginAllowThreads();
12756 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12757
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 {
12762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12763 }
12764 {
12765 if (temp2)
12766 delete arg2;
12767 }
12768 return resultobj;
12769 fail:
12770 {
12771 if (temp2)
12772 delete arg2;
12773 }
12774 return NULL;
12775 }
12776
12777
12778 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12779 PyObject *resultobj;
12780 wxDC *arg1 = (wxDC *) 0 ;
12781 PyObject * obj0 = 0 ;
12782 char *kwnames[] = {
12783 (char *) "self", NULL
12784 };
12785
12786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 (arg1)->EndDoc();
12792
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 Py_INCREF(Py_None); resultobj = Py_None;
12797 return resultobj;
12798 fail:
12799 return NULL;
12800 }
12801
12802
12803 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj;
12805 wxDC *arg1 = (wxDC *) 0 ;
12806 PyObject * obj0 = 0 ;
12807 char *kwnames[] = {
12808 (char *) "self", NULL
12809 };
12810
12811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 (arg1)->StartPage();
12817
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 Py_INCREF(Py_None); resultobj = Py_None;
12822 return resultobj;
12823 fail:
12824 return NULL;
12825 }
12826
12827
12828 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj;
12830 wxDC *arg1 = (wxDC *) 0 ;
12831 PyObject * obj0 = 0 ;
12832 char *kwnames[] = {
12833 (char *) "self", NULL
12834 };
12835
12836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 (arg1)->EndPage();
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 Py_INCREF(Py_None); resultobj = Py_None;
12847 return resultobj;
12848 fail:
12849 return NULL;
12850 }
12851
12852
12853 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
12854 PyObject *resultobj;
12855 wxDC *arg1 = (wxDC *) 0 ;
12856 wxFont *arg2 = 0 ;
12857 PyObject * obj0 = 0 ;
12858 PyObject * obj1 = 0 ;
12859 char *kwnames[] = {
12860 (char *) "self",(char *) "font", NULL
12861 };
12862
12863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12866 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12867 SWIG_POINTER_EXCEPTION | 0)) == -1)
12868 SWIG_fail;
12869 if (arg2 == NULL) {
12870 PyErr_SetString(PyExc_TypeError,"null reference");
12871 SWIG_fail;
12872 }
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 (arg1)->SetFont((wxFont const &)*arg2);
12876
12877 wxPyEndAllowThreads(__tstate);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 Py_INCREF(Py_None); resultobj = Py_None;
12881 return resultobj;
12882 fail:
12883 return NULL;
12884 }
12885
12886
12887 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
12888 PyObject *resultobj;
12889 wxDC *arg1 = (wxDC *) 0 ;
12890 wxPen *arg2 = 0 ;
12891 PyObject * obj0 = 0 ;
12892 PyObject * obj1 = 0 ;
12893 char *kwnames[] = {
12894 (char *) "self",(char *) "pen", NULL
12895 };
12896
12897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12900 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12901 SWIG_POINTER_EXCEPTION | 0)) == -1)
12902 SWIG_fail;
12903 if (arg2 == NULL) {
12904 PyErr_SetString(PyExc_TypeError,"null reference");
12905 SWIG_fail;
12906 }
12907 {
12908 PyThreadState* __tstate = wxPyBeginAllowThreads();
12909 (arg1)->SetPen((wxPen const &)*arg2);
12910
12911 wxPyEndAllowThreads(__tstate);
12912 if (PyErr_Occurred()) SWIG_fail;
12913 }
12914 Py_INCREF(Py_None); resultobj = Py_None;
12915 return resultobj;
12916 fail:
12917 return NULL;
12918 }
12919
12920
12921 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
12922 PyObject *resultobj;
12923 wxDC *arg1 = (wxDC *) 0 ;
12924 wxBrush *arg2 = 0 ;
12925 PyObject * obj0 = 0 ;
12926 PyObject * obj1 = 0 ;
12927 char *kwnames[] = {
12928 (char *) "self",(char *) "brush", NULL
12929 };
12930
12931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12934 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12935 SWIG_POINTER_EXCEPTION | 0)) == -1)
12936 SWIG_fail;
12937 if (arg2 == NULL) {
12938 PyErr_SetString(PyExc_TypeError,"null reference");
12939 SWIG_fail;
12940 }
12941 {
12942 PyThreadState* __tstate = wxPyBeginAllowThreads();
12943 (arg1)->SetBrush((wxBrush const &)*arg2);
12944
12945 wxPyEndAllowThreads(__tstate);
12946 if (PyErr_Occurred()) SWIG_fail;
12947 }
12948 Py_INCREF(Py_None); resultobj = Py_None;
12949 return resultobj;
12950 fail:
12951 return NULL;
12952 }
12953
12954
12955 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
12956 PyObject *resultobj;
12957 wxDC *arg1 = (wxDC *) 0 ;
12958 wxBrush *arg2 = 0 ;
12959 PyObject * obj0 = 0 ;
12960 PyObject * obj1 = 0 ;
12961 char *kwnames[] = {
12962 (char *) "self",(char *) "brush", NULL
12963 };
12964
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12968 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12969 SWIG_POINTER_EXCEPTION | 0)) == -1)
12970 SWIG_fail;
12971 if (arg2 == NULL) {
12972 PyErr_SetString(PyExc_TypeError,"null reference");
12973 SWIG_fail;
12974 }
12975 {
12976 PyThreadState* __tstate = wxPyBeginAllowThreads();
12977 (arg1)->SetBackground((wxBrush const &)*arg2);
12978
12979 wxPyEndAllowThreads(__tstate);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 }
12982 Py_INCREF(Py_None); resultobj = Py_None;
12983 return resultobj;
12984 fail:
12985 return NULL;
12986 }
12987
12988
12989 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
12990 PyObject *resultobj;
12991 wxDC *arg1 = (wxDC *) 0 ;
12992 int arg2 ;
12993 PyObject * obj0 = 0 ;
12994 PyObject * obj1 = 0 ;
12995 char *kwnames[] = {
12996 (char *) "self",(char *) "mode", NULL
12997 };
12998
12999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13002 arg2 = (int)SWIG_As_int(obj1);
13003 if (PyErr_Occurred()) SWIG_fail;
13004 {
13005 PyThreadState* __tstate = wxPyBeginAllowThreads();
13006 (arg1)->SetBackgroundMode(arg2);
13007
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 Py_INCREF(Py_None); resultobj = Py_None;
13012 return resultobj;
13013 fail:
13014 return NULL;
13015 }
13016
13017
13018 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
13019 PyObject *resultobj;
13020 wxDC *arg1 = (wxDC *) 0 ;
13021 wxPalette *arg2 = 0 ;
13022 PyObject * obj0 = 0 ;
13023 PyObject * obj1 = 0 ;
13024 char *kwnames[] = {
13025 (char *) "self",(char *) "palette", NULL
13026 };
13027
13028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13032 SWIG_POINTER_EXCEPTION | 0)) == -1)
13033 SWIG_fail;
13034 if (arg2 == NULL) {
13035 PyErr_SetString(PyExc_TypeError,"null reference");
13036 SWIG_fail;
13037 }
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 (arg1)->SetPalette((wxPalette const &)*arg2);
13041
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 Py_INCREF(Py_None); resultobj = Py_None;
13046 return resultobj;
13047 fail:
13048 return NULL;
13049 }
13050
13051
13052 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
13053 PyObject *resultobj;
13054 wxDC *arg1 = (wxDC *) 0 ;
13055 PyObject * obj0 = 0 ;
13056 char *kwnames[] = {
13057 (char *) "self", NULL
13058 };
13059
13060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 (arg1)->DestroyClippingRegion();
13066
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 Py_INCREF(Py_None); resultobj = Py_None;
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj;
13079 wxDC *arg1 = (wxDC *) 0 ;
13080 int *arg2 = (int *) 0 ;
13081 int *arg3 = (int *) 0 ;
13082 int *arg4 = (int *) 0 ;
13083 int *arg5 = (int *) 0 ;
13084 int temp2 ;
13085 int res2 = 0 ;
13086 int temp3 ;
13087 int res3 = 0 ;
13088 int temp4 ;
13089 int res4 = 0 ;
13090 int temp5 ;
13091 int res5 = 0 ;
13092 PyObject * obj0 = 0 ;
13093 char *kwnames[] = {
13094 (char *) "self", NULL
13095 };
13096
13097 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13098 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13099 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13100 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13104 {
13105 PyThreadState* __tstate = wxPyBeginAllowThreads();
13106 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13107
13108 wxPyEndAllowThreads(__tstate);
13109 if (PyErr_Occurred()) SWIG_fail;
13110 }
13111 Py_INCREF(Py_None); resultobj = Py_None;
13112 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13113 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13114 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13115 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13116 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13117 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13118 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13119 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13120 return resultobj;
13121 fail:
13122 return NULL;
13123 }
13124
13125
13126 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
13127 PyObject *resultobj;
13128 wxDC *arg1 = (wxDC *) 0 ;
13129 wxRect result;
13130 PyObject * obj0 = 0 ;
13131 char *kwnames[] = {
13132 (char *) "self", NULL
13133 };
13134
13135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13138 {
13139 PyThreadState* __tstate = wxPyBeginAllowThreads();
13140 result = wxDC_GetClippingRect(arg1);
13141
13142 wxPyEndAllowThreads(__tstate);
13143 if (PyErr_Occurred()) SWIG_fail;
13144 }
13145 {
13146 wxRect * resultptr;
13147 resultptr = new wxRect((wxRect &) result);
13148 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13149 }
13150 return resultobj;
13151 fail:
13152 return NULL;
13153 }
13154
13155
13156 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
13157 PyObject *resultobj;
13158 wxDC *arg1 = (wxDC *) 0 ;
13159 int result;
13160 PyObject * obj0 = 0 ;
13161 char *kwnames[] = {
13162 (char *) "self", NULL
13163 };
13164
13165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13168 {
13169 PyThreadState* __tstate = wxPyBeginAllowThreads();
13170 result = (int)((wxDC const *)arg1)->GetCharHeight();
13171
13172 wxPyEndAllowThreads(__tstate);
13173 if (PyErr_Occurred()) SWIG_fail;
13174 }
13175 resultobj = SWIG_From_int((int)result);
13176 return resultobj;
13177 fail:
13178 return NULL;
13179 }
13180
13181
13182 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
13183 PyObject *resultobj;
13184 wxDC *arg1 = (wxDC *) 0 ;
13185 int result;
13186 PyObject * obj0 = 0 ;
13187 char *kwnames[] = {
13188 (char *) "self", NULL
13189 };
13190
13191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13194 {
13195 PyThreadState* __tstate = wxPyBeginAllowThreads();
13196 result = (int)((wxDC const *)arg1)->GetCharWidth();
13197
13198 wxPyEndAllowThreads(__tstate);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 resultobj = SWIG_From_int((int)result);
13202 return resultobj;
13203 fail:
13204 return NULL;
13205 }
13206
13207
13208 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13209 PyObject *resultobj;
13210 wxDC *arg1 = (wxDC *) 0 ;
13211 wxString *arg2 = 0 ;
13212 int *arg3 = (int *) 0 ;
13213 int *arg4 = (int *) 0 ;
13214 bool temp2 = false ;
13215 int temp3 ;
13216 int res3 = 0 ;
13217 int temp4 ;
13218 int res4 = 0 ;
13219 PyObject * obj0 = 0 ;
13220 PyObject * obj1 = 0 ;
13221 char *kwnames[] = {
13222 (char *) "self",(char *) "string", NULL
13223 };
13224
13225 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13226 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13230 {
13231 arg2 = wxString_in_helper(obj1);
13232 if (arg2 == NULL) SWIG_fail;
13233 temp2 = true;
13234 }
13235 {
13236 PyThreadState* __tstate = wxPyBeginAllowThreads();
13237 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13238
13239 wxPyEndAllowThreads(__tstate);
13240 if (PyErr_Occurred()) SWIG_fail;
13241 }
13242 Py_INCREF(Py_None); resultobj = Py_None;
13243 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13244 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13245 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13246 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13247 {
13248 if (temp2)
13249 delete arg2;
13250 }
13251 return resultobj;
13252 fail:
13253 {
13254 if (temp2)
13255 delete arg2;
13256 }
13257 return NULL;
13258 }
13259
13260
13261 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13262 PyObject *resultobj;
13263 wxDC *arg1 = (wxDC *) 0 ;
13264 wxString *arg2 = 0 ;
13265 int *arg3 = (int *) 0 ;
13266 int *arg4 = (int *) 0 ;
13267 int *arg5 = (int *) 0 ;
13268 int *arg6 = (int *) 0 ;
13269 wxFont *arg7 = (wxFont *) NULL ;
13270 bool temp2 = false ;
13271 int temp3 ;
13272 int res3 = 0 ;
13273 int temp4 ;
13274 int res4 = 0 ;
13275 int temp5 ;
13276 int res5 = 0 ;
13277 int temp6 ;
13278 int res6 = 0 ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 PyObject * obj2 = 0 ;
13282 char *kwnames[] = {
13283 (char *) "self",(char *) "string",(char *) "font", NULL
13284 };
13285
13286 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13287 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13288 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13289 arg6 = &temp6; res6 = SWIG_NEWOBJ;
13290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13293 {
13294 arg2 = wxString_in_helper(obj1);
13295 if (arg2 == NULL) SWIG_fail;
13296 temp2 = true;
13297 }
13298 if (obj2) {
13299 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13301 }
13302 {
13303 PyThreadState* __tstate = wxPyBeginAllowThreads();
13304 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13305
13306 wxPyEndAllowThreads(__tstate);
13307 if (PyErr_Occurred()) SWIG_fail;
13308 }
13309 Py_INCREF(Py_None); resultobj = Py_None;
13310 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13311 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13312 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13313 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13314 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13315 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13316 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13317 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
13318 {
13319 if (temp2)
13320 delete arg2;
13321 }
13322 return resultobj;
13323 fail:
13324 {
13325 if (temp2)
13326 delete arg2;
13327 }
13328 return NULL;
13329 }
13330
13331
13332 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13333 PyObject *resultobj;
13334 wxDC *arg1 = (wxDC *) 0 ;
13335 wxString *arg2 = 0 ;
13336 int *arg3 = (int *) 0 ;
13337 int *arg4 = (int *) 0 ;
13338 int *arg5 = (int *) 0 ;
13339 wxFont *arg6 = (wxFont *) NULL ;
13340 bool temp2 = false ;
13341 int temp3 ;
13342 int res3 = 0 ;
13343 int temp4 ;
13344 int res4 = 0 ;
13345 int temp5 ;
13346 int res5 = 0 ;
13347 PyObject * obj0 = 0 ;
13348 PyObject * obj1 = 0 ;
13349 PyObject * obj2 = 0 ;
13350 char *kwnames[] = {
13351 (char *) "self",(char *) "text",(char *) "font", NULL
13352 };
13353
13354 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13355 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13356 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13360 {
13361 arg2 = wxString_in_helper(obj1);
13362 if (arg2 == NULL) SWIG_fail;
13363 temp2 = true;
13364 }
13365 if (obj2) {
13366 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13368 }
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13372
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 Py_INCREF(Py_None); resultobj = Py_None;
13377 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13378 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13379 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13380 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13381 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13382 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13383 {
13384 if (temp2)
13385 delete arg2;
13386 }
13387 return resultobj;
13388 fail:
13389 {
13390 if (temp2)
13391 delete arg2;
13392 }
13393 return NULL;
13394 }
13395
13396
13397 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
13398 PyObject *resultobj;
13399 wxDC *arg1 = (wxDC *) 0 ;
13400 wxString *arg2 = 0 ;
13401 wxArrayInt result;
13402 bool temp2 = false ;
13403 PyObject * obj0 = 0 ;
13404 PyObject * obj1 = 0 ;
13405 char *kwnames[] = {
13406 (char *) "self",(char *) "text", NULL
13407 };
13408
13409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13412 {
13413 arg2 = wxString_in_helper(obj1);
13414 if (arg2 == NULL) SWIG_fail;
13415 temp2 = true;
13416 }
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13420
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 {
13425 resultobj = PyList_New(0);
13426 size_t idx;
13427 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13428 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13429 PyList_Append(resultobj, val);
13430 Py_DECREF(val);
13431 }
13432 }
13433 {
13434 if (temp2)
13435 delete arg2;
13436 }
13437 return resultobj;
13438 fail:
13439 {
13440 if (temp2)
13441 delete arg2;
13442 }
13443 return NULL;
13444 }
13445
13446
13447 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
13448 PyObject *resultobj;
13449 wxDC *arg1 = (wxDC *) 0 ;
13450 wxSize result;
13451 PyObject * obj0 = 0 ;
13452 char *kwnames[] = {
13453 (char *) "self", NULL
13454 };
13455
13456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (arg1)->GetSize();
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 {
13467 wxSize * resultptr;
13468 resultptr = new wxSize((wxSize &) result);
13469 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13470 }
13471 return resultobj;
13472 fail:
13473 return NULL;
13474 }
13475
13476
13477 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13478 PyObject *resultobj;
13479 wxDC *arg1 = (wxDC *) 0 ;
13480 int *arg2 = (int *) 0 ;
13481 int *arg3 = (int *) 0 ;
13482 int temp2 ;
13483 int res2 = 0 ;
13484 int temp3 ;
13485 int res3 = 0 ;
13486 PyObject * obj0 = 0 ;
13487 char *kwnames[] = {
13488 (char *) "self", NULL
13489 };
13490
13491 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13492 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 (arg1)->GetSize(arg2,arg3);
13499
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 Py_INCREF(Py_None); resultobj = Py_None;
13504 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13505 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13506 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13507 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13508 return resultobj;
13509 fail:
13510 return NULL;
13511 }
13512
13513
13514 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
13515 PyObject *resultobj;
13516 wxDC *arg1 = (wxDC *) 0 ;
13517 wxSize result;
13518 PyObject * obj0 = 0 ;
13519 char *kwnames[] = {
13520 (char *) "self", NULL
13521 };
13522
13523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = ((wxDC const *)arg1)->GetSizeMM();
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 {
13534 wxSize * resultptr;
13535 resultptr = new wxSize((wxSize &) result);
13536 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13537 }
13538 return resultobj;
13539 fail:
13540 return NULL;
13541 }
13542
13543
13544 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13545 PyObject *resultobj;
13546 wxDC *arg1 = (wxDC *) 0 ;
13547 int *arg2 = (int *) 0 ;
13548 int *arg3 = (int *) 0 ;
13549 int temp2 ;
13550 int res2 = 0 ;
13551 int temp3 ;
13552 int res3 = 0 ;
13553 PyObject * obj0 = 0 ;
13554 char *kwnames[] = {
13555 (char *) "self", NULL
13556 };
13557
13558 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13559 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13566
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 Py_INCREF(Py_None); resultobj = Py_None;
13571 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13572 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13573 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13574 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13575 return resultobj;
13576 fail:
13577 return NULL;
13578 }
13579
13580
13581 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
13582 PyObject *resultobj;
13583 wxDC *arg1 = (wxDC *) 0 ;
13584 int arg2 ;
13585 int result;
13586 PyObject * obj0 = 0 ;
13587 PyObject * obj1 = 0 ;
13588 char *kwnames[] = {
13589 (char *) "self",(char *) "x", NULL
13590 };
13591
13592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13595 arg2 = (int)SWIG_As_int(obj1);
13596 if (PyErr_Occurred()) SWIG_fail;
13597 {
13598 PyThreadState* __tstate = wxPyBeginAllowThreads();
13599 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13600
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_From_int((int)result);
13605 return resultobj;
13606 fail:
13607 return NULL;
13608 }
13609
13610
13611 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
13612 PyObject *resultobj;
13613 wxDC *arg1 = (wxDC *) 0 ;
13614 int arg2 ;
13615 int result;
13616 PyObject * obj0 = 0 ;
13617 PyObject * obj1 = 0 ;
13618 char *kwnames[] = {
13619 (char *) "self",(char *) "y", NULL
13620 };
13621
13622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13625 arg2 = (int)SWIG_As_int(obj1);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13630
13631 wxPyEndAllowThreads(__tstate);
13632 if (PyErr_Occurred()) SWIG_fail;
13633 }
13634 resultobj = SWIG_From_int((int)result);
13635 return resultobj;
13636 fail:
13637 return NULL;
13638 }
13639
13640
13641 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13642 PyObject *resultobj;
13643 wxDC *arg1 = (wxDC *) 0 ;
13644 int arg2 ;
13645 int result;
13646 PyObject * obj0 = 0 ;
13647 PyObject * obj1 = 0 ;
13648 char *kwnames[] = {
13649 (char *) "self",(char *) "x", NULL
13650 };
13651
13652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13655 arg2 = (int)SWIG_As_int(obj1);
13656 if (PyErr_Occurred()) SWIG_fail;
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13660
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 resultobj = SWIG_From_int((int)result);
13665 return resultobj;
13666 fail:
13667 return NULL;
13668 }
13669
13670
13671 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13672 PyObject *resultobj;
13673 wxDC *arg1 = (wxDC *) 0 ;
13674 int arg2 ;
13675 int result;
13676 PyObject * obj0 = 0 ;
13677 PyObject * obj1 = 0 ;
13678 char *kwnames[] = {
13679 (char *) "self",(char *) "y", NULL
13680 };
13681
13682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13685 arg2 = (int)SWIG_As_int(obj1);
13686 if (PyErr_Occurred()) SWIG_fail;
13687 {
13688 PyThreadState* __tstate = wxPyBeginAllowThreads();
13689 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13690
13691 wxPyEndAllowThreads(__tstate);
13692 if (PyErr_Occurred()) SWIG_fail;
13693 }
13694 resultobj = SWIG_From_int((int)result);
13695 return resultobj;
13696 fail:
13697 return NULL;
13698 }
13699
13700
13701 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
13702 PyObject *resultobj;
13703 wxDC *arg1 = (wxDC *) 0 ;
13704 int arg2 ;
13705 int result;
13706 PyObject * obj0 = 0 ;
13707 PyObject * obj1 = 0 ;
13708 char *kwnames[] = {
13709 (char *) "self",(char *) "x", NULL
13710 };
13711
13712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13715 arg2 = (int)SWIG_As_int(obj1);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 {
13718 PyThreadState* __tstate = wxPyBeginAllowThreads();
13719 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13720
13721 wxPyEndAllowThreads(__tstate);
13722 if (PyErr_Occurred()) SWIG_fail;
13723 }
13724 resultobj = SWIG_From_int((int)result);
13725 return resultobj;
13726 fail:
13727 return NULL;
13728 }
13729
13730
13731 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
13732 PyObject *resultobj;
13733 wxDC *arg1 = (wxDC *) 0 ;
13734 int arg2 ;
13735 int result;
13736 PyObject * obj0 = 0 ;
13737 PyObject * obj1 = 0 ;
13738 char *kwnames[] = {
13739 (char *) "self",(char *) "y", NULL
13740 };
13741
13742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13745 arg2 = (int)SWIG_As_int(obj1);
13746 if (PyErr_Occurred()) SWIG_fail;
13747 {
13748 PyThreadState* __tstate = wxPyBeginAllowThreads();
13749 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13750
13751 wxPyEndAllowThreads(__tstate);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 resultobj = SWIG_From_int((int)result);
13755 return resultobj;
13756 fail:
13757 return NULL;
13758 }
13759
13760
13761 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13762 PyObject *resultobj;
13763 wxDC *arg1 = (wxDC *) 0 ;
13764 int arg2 ;
13765 int result;
13766 PyObject * obj0 = 0 ;
13767 PyObject * obj1 = 0 ;
13768 char *kwnames[] = {
13769 (char *) "self",(char *) "x", NULL
13770 };
13771
13772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13775 arg2 = (int)SWIG_As_int(obj1);
13776 if (PyErr_Occurred()) SWIG_fail;
13777 {
13778 PyThreadState* __tstate = wxPyBeginAllowThreads();
13779 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13780
13781 wxPyEndAllowThreads(__tstate);
13782 if (PyErr_Occurred()) SWIG_fail;
13783 }
13784 resultobj = SWIG_From_int((int)result);
13785 return resultobj;
13786 fail:
13787 return NULL;
13788 }
13789
13790
13791 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13792 PyObject *resultobj;
13793 wxDC *arg1 = (wxDC *) 0 ;
13794 int arg2 ;
13795 int result;
13796 PyObject * obj0 = 0 ;
13797 PyObject * obj1 = 0 ;
13798 char *kwnames[] = {
13799 (char *) "self",(char *) "y", NULL
13800 };
13801
13802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13805 arg2 = (int)SWIG_As_int(obj1);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 {
13808 PyThreadState* __tstate = wxPyBeginAllowThreads();
13809 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13810
13811 wxPyEndAllowThreads(__tstate);
13812 if (PyErr_Occurred()) SWIG_fail;
13813 }
13814 resultobj = SWIG_From_int((int)result);
13815 return resultobj;
13816 fail:
13817 return NULL;
13818 }
13819
13820
13821 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13822 PyObject *resultobj;
13823 wxDC *arg1 = (wxDC *) 0 ;
13824 bool result;
13825 PyObject * obj0 = 0 ;
13826 char *kwnames[] = {
13827 (char *) "self", NULL
13828 };
13829
13830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13833 {
13834 PyThreadState* __tstate = wxPyBeginAllowThreads();
13835 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13836
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
13840 {
13841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13842 }
13843 return resultobj;
13844 fail:
13845 return NULL;
13846 }
13847
13848
13849 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13850 PyObject *resultobj;
13851 wxDC *arg1 = (wxDC *) 0 ;
13852 bool result;
13853 PyObject * obj0 = 0 ;
13854 char *kwnames[] = {
13855 (char *) "self", NULL
13856 };
13857
13858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13861 {
13862 PyThreadState* __tstate = wxPyBeginAllowThreads();
13863 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13864
13865 wxPyEndAllowThreads(__tstate);
13866 if (PyErr_Occurred()) SWIG_fail;
13867 }
13868 {
13869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13870 }
13871 return resultobj;
13872 fail:
13873 return NULL;
13874 }
13875
13876
13877 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj;
13879 wxDC *arg1 = (wxDC *) 0 ;
13880 int result;
13881 PyObject * obj0 = 0 ;
13882 char *kwnames[] = {
13883 (char *) "self", NULL
13884 };
13885
13886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13889 {
13890 PyThreadState* __tstate = wxPyBeginAllowThreads();
13891 result = (int)((wxDC const *)arg1)->GetDepth();
13892
13893 wxPyEndAllowThreads(__tstate);
13894 if (PyErr_Occurred()) SWIG_fail;
13895 }
13896 resultobj = SWIG_From_int((int)result);
13897 return resultobj;
13898 fail:
13899 return NULL;
13900 }
13901
13902
13903 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
13904 PyObject *resultobj;
13905 wxDC *arg1 = (wxDC *) 0 ;
13906 wxSize result;
13907 PyObject * obj0 = 0 ;
13908 char *kwnames[] = {
13909 (char *) "self", NULL
13910 };
13911
13912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13915 {
13916 PyThreadState* __tstate = wxPyBeginAllowThreads();
13917 result = ((wxDC const *)arg1)->GetPPI();
13918
13919 wxPyEndAllowThreads(__tstate);
13920 if (PyErr_Occurred()) SWIG_fail;
13921 }
13922 {
13923 wxSize * resultptr;
13924 resultptr = new wxSize((wxSize &) result);
13925 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13926 }
13927 return resultobj;
13928 fail:
13929 return NULL;
13930 }
13931
13932
13933 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
13934 PyObject *resultobj;
13935 wxDC *arg1 = (wxDC *) 0 ;
13936 bool result;
13937 PyObject * obj0 = 0 ;
13938 char *kwnames[] = {
13939 (char *) "self", NULL
13940 };
13941
13942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13945 {
13946 PyThreadState* __tstate = wxPyBeginAllowThreads();
13947 result = (bool)((wxDC const *)arg1)->Ok();
13948
13949 wxPyEndAllowThreads(__tstate);
13950 if (PyErr_Occurred()) SWIG_fail;
13951 }
13952 {
13953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13954 }
13955 return resultobj;
13956 fail:
13957 return NULL;
13958 }
13959
13960
13961 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13962 PyObject *resultobj;
13963 wxDC *arg1 = (wxDC *) 0 ;
13964 int result;
13965 PyObject * obj0 = 0 ;
13966 char *kwnames[] = {
13967 (char *) "self", NULL
13968 };
13969
13970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13976
13977 wxPyEndAllowThreads(__tstate);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 }
13980 resultobj = SWIG_From_int((int)result);
13981 return resultobj;
13982 fail:
13983 return NULL;
13984 }
13985
13986
13987 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13988 PyObject *resultobj;
13989 wxDC *arg1 = (wxDC *) 0 ;
13990 wxBrush *result;
13991 PyObject * obj0 = 0 ;
13992 char *kwnames[] = {
13993 (char *) "self", NULL
13994 };
13995
13996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
14001 {
14002 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14003 result = (wxBrush *) &_result_ref;
14004 }
14005
14006 wxPyEndAllowThreads(__tstate);
14007 if (PyErr_Occurred()) SWIG_fail;
14008 }
14009 {
14010 wxBrush* resultptr = new wxBrush(*result);
14011 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14012 }
14013 return resultobj;
14014 fail:
14015 return NULL;
14016 }
14017
14018
14019 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
14020 PyObject *resultobj;
14021 wxDC *arg1 = (wxDC *) 0 ;
14022 wxBrush *result;
14023 PyObject * obj0 = 0 ;
14024 char *kwnames[] = {
14025 (char *) "self", NULL
14026 };
14027
14028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14031 {
14032 PyThreadState* __tstate = wxPyBeginAllowThreads();
14033 {
14034 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14035 result = (wxBrush *) &_result_ref;
14036 }
14037
14038 wxPyEndAllowThreads(__tstate);
14039 if (PyErr_Occurred()) SWIG_fail;
14040 }
14041 {
14042 wxBrush* resultptr = new wxBrush(*result);
14043 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14044 }
14045 return resultobj;
14046 fail:
14047 return NULL;
14048 }
14049
14050
14051 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
14052 PyObject *resultobj;
14053 wxDC *arg1 = (wxDC *) 0 ;
14054 wxFont *result;
14055 PyObject * obj0 = 0 ;
14056 char *kwnames[] = {
14057 (char *) "self", NULL
14058 };
14059
14060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14063 {
14064 PyThreadState* __tstate = wxPyBeginAllowThreads();
14065 {
14066 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14067 result = (wxFont *) &_result_ref;
14068 }
14069
14070 wxPyEndAllowThreads(__tstate);
14071 if (PyErr_Occurred()) SWIG_fail;
14072 }
14073 {
14074 wxFont* resultptr = new wxFont(*result);
14075 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14076 }
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
14084 PyObject *resultobj;
14085 wxDC *arg1 = (wxDC *) 0 ;
14086 wxPen *result;
14087 PyObject * obj0 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14095 {
14096 PyThreadState* __tstate = wxPyBeginAllowThreads();
14097 {
14098 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14099 result = (wxPen *) &_result_ref;
14100 }
14101
14102 wxPyEndAllowThreads(__tstate);
14103 if (PyErr_Occurred()) SWIG_fail;
14104 }
14105 {
14106 wxPen* resultptr = new wxPen(*result);
14107 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14108 }
14109 return resultobj;
14110 fail:
14111 return NULL;
14112 }
14113
14114
14115 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14116 PyObject *resultobj;
14117 wxDC *arg1 = (wxDC *) 0 ;
14118 wxColour *result;
14119 PyObject * obj0 = 0 ;
14120 char *kwnames[] = {
14121 (char *) "self", NULL
14122 };
14123
14124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14127 {
14128 PyThreadState* __tstate = wxPyBeginAllowThreads();
14129 {
14130 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14131 result = (wxColour *) &_result_ref;
14132 }
14133
14134 wxPyEndAllowThreads(__tstate);
14135 if (PyErr_Occurred()) SWIG_fail;
14136 }
14137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14138 return resultobj;
14139 fail:
14140 return NULL;
14141 }
14142
14143
14144 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14145 PyObject *resultobj;
14146 wxDC *arg1 = (wxDC *) 0 ;
14147 wxColour *result;
14148 PyObject * obj0 = 0 ;
14149 char *kwnames[] = {
14150 (char *) "self", NULL
14151 };
14152
14153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14156 {
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 {
14159 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14160 result = (wxColour *) &_result_ref;
14161 }
14162
14163 wxPyEndAllowThreads(__tstate);
14164 if (PyErr_Occurred()) SWIG_fail;
14165 }
14166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14167 return resultobj;
14168 fail:
14169 return NULL;
14170 }
14171
14172
14173 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14174 PyObject *resultobj;
14175 wxDC *arg1 = (wxDC *) 0 ;
14176 wxColour *arg2 = 0 ;
14177 wxColour temp2 ;
14178 PyObject * obj0 = 0 ;
14179 PyObject * obj1 = 0 ;
14180 char *kwnames[] = {
14181 (char *) "self",(char *) "colour", NULL
14182 };
14183
14184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14187 {
14188 arg2 = &temp2;
14189 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14190 }
14191 {
14192 PyThreadState* __tstate = wxPyBeginAllowThreads();
14193 (arg1)->SetTextForeground((wxColour const &)*arg2);
14194
14195 wxPyEndAllowThreads(__tstate);
14196 if (PyErr_Occurred()) SWIG_fail;
14197 }
14198 Py_INCREF(Py_None); resultobj = Py_None;
14199 return resultobj;
14200 fail:
14201 return NULL;
14202 }
14203
14204
14205 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14206 PyObject *resultobj;
14207 wxDC *arg1 = (wxDC *) 0 ;
14208 wxColour *arg2 = 0 ;
14209 wxColour temp2 ;
14210 PyObject * obj0 = 0 ;
14211 PyObject * obj1 = 0 ;
14212 char *kwnames[] = {
14213 (char *) "self",(char *) "colour", NULL
14214 };
14215
14216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14219 {
14220 arg2 = &temp2;
14221 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14222 }
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 (arg1)->SetTextBackground((wxColour const &)*arg2);
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 Py_INCREF(Py_None); resultobj = Py_None;
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj;
14239 wxDC *arg1 = (wxDC *) 0 ;
14240 int result;
14241 PyObject * obj0 = 0 ;
14242 char *kwnames[] = {
14243 (char *) "self", NULL
14244 };
14245
14246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 result = (int)((wxDC const *)arg1)->GetMapMode();
14252
14253 wxPyEndAllowThreads(__tstate);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 }
14256 resultobj = SWIG_From_int((int)result);
14257 return resultobj;
14258 fail:
14259 return NULL;
14260 }
14261
14262
14263 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14264 PyObject *resultobj;
14265 wxDC *arg1 = (wxDC *) 0 ;
14266 int arg2 ;
14267 PyObject * obj0 = 0 ;
14268 PyObject * obj1 = 0 ;
14269 char *kwnames[] = {
14270 (char *) "self",(char *) "mode", NULL
14271 };
14272
14273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14276 arg2 = (int)SWIG_As_int(obj1);
14277 if (PyErr_Occurred()) SWIG_fail;
14278 {
14279 PyThreadState* __tstate = wxPyBeginAllowThreads();
14280 (arg1)->SetMapMode(arg2);
14281
14282 wxPyEndAllowThreads(__tstate);
14283 if (PyErr_Occurred()) SWIG_fail;
14284 }
14285 Py_INCREF(Py_None); resultobj = Py_None;
14286 return resultobj;
14287 fail:
14288 return NULL;
14289 }
14290
14291
14292 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14293 PyObject *resultobj;
14294 wxDC *arg1 = (wxDC *) 0 ;
14295 double *arg2 = (double *) 0 ;
14296 double *arg3 = (double *) 0 ;
14297 double temp2 ;
14298 int res2 = 0 ;
14299 double temp3 ;
14300 int res3 = 0 ;
14301 PyObject * obj0 = 0 ;
14302 char *kwnames[] = {
14303 (char *) "self", NULL
14304 };
14305
14306 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14307 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14311 {
14312 PyThreadState* __tstate = wxPyBeginAllowThreads();
14313 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14314
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 Py_INCREF(Py_None); resultobj = Py_None;
14319 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14320 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14321 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14322 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14323 return resultobj;
14324 fail:
14325 return NULL;
14326 }
14327
14328
14329 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14330 PyObject *resultobj;
14331 wxDC *arg1 = (wxDC *) 0 ;
14332 double arg2 ;
14333 double arg3 ;
14334 PyObject * obj0 = 0 ;
14335 PyObject * obj1 = 0 ;
14336 PyObject * obj2 = 0 ;
14337 char *kwnames[] = {
14338 (char *) "self",(char *) "x",(char *) "y", NULL
14339 };
14340
14341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14344 arg2 = (double)SWIG_As_double(obj1);
14345 if (PyErr_Occurred()) SWIG_fail;
14346 arg3 = (double)SWIG_As_double(obj2);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 (arg1)->SetUserScale(arg2,arg3);
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 Py_INCREF(Py_None); resultobj = Py_None;
14356 return resultobj;
14357 fail:
14358 return NULL;
14359 }
14360
14361
14362 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14363 PyObject *resultobj;
14364 wxDC *arg1 = (wxDC *) 0 ;
14365 double *arg2 = (double *) 0 ;
14366 double *arg3 = (double *) 0 ;
14367 double temp2 ;
14368 int res2 = 0 ;
14369 double temp3 ;
14370 int res3 = 0 ;
14371 PyObject * obj0 = 0 ;
14372 char *kwnames[] = {
14373 (char *) "self", NULL
14374 };
14375
14376 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14377 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 (arg1)->GetLogicalScale(arg2,arg3);
14384
14385 wxPyEndAllowThreads(__tstate);
14386 if (PyErr_Occurred()) SWIG_fail;
14387 }
14388 Py_INCREF(Py_None); resultobj = Py_None;
14389 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14390 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14391 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14392 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14393 return resultobj;
14394 fail:
14395 return NULL;
14396 }
14397
14398
14399 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14400 PyObject *resultobj;
14401 wxDC *arg1 = (wxDC *) 0 ;
14402 double arg2 ;
14403 double arg3 ;
14404 PyObject * obj0 = 0 ;
14405 PyObject * obj1 = 0 ;
14406 PyObject * obj2 = 0 ;
14407 char *kwnames[] = {
14408 (char *) "self",(char *) "x",(char *) "y", NULL
14409 };
14410
14411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14414 arg2 = (double)SWIG_As_double(obj1);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 arg3 = (double)SWIG_As_double(obj2);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 {
14419 PyThreadState* __tstate = wxPyBeginAllowThreads();
14420 (arg1)->SetLogicalScale(arg2,arg3);
14421
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 Py_INCREF(Py_None); resultobj = Py_None;
14426 return resultobj;
14427 fail:
14428 return NULL;
14429 }
14430
14431
14432 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14433 PyObject *resultobj;
14434 wxDC *arg1 = (wxDC *) 0 ;
14435 wxPoint result;
14436 PyObject * obj0 = 0 ;
14437 char *kwnames[] = {
14438 (char *) "self", NULL
14439 };
14440
14441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14447
14448 wxPyEndAllowThreads(__tstate);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 }
14451 {
14452 wxPoint * resultptr;
14453 resultptr = new wxPoint((wxPoint &) result);
14454 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14455 }
14456 return resultobj;
14457 fail:
14458 return NULL;
14459 }
14460
14461
14462 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14463 PyObject *resultobj;
14464 wxDC *arg1 = (wxDC *) 0 ;
14465 int *arg2 = (int *) 0 ;
14466 int *arg3 = (int *) 0 ;
14467 int temp2 ;
14468 int res2 = 0 ;
14469 int temp3 ;
14470 int res3 = 0 ;
14471 PyObject * obj0 = 0 ;
14472 char *kwnames[] = {
14473 (char *) "self", NULL
14474 };
14475
14476 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14477 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14481 {
14482 PyThreadState* __tstate = wxPyBeginAllowThreads();
14483 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14484
14485 wxPyEndAllowThreads(__tstate);
14486 if (PyErr_Occurred()) SWIG_fail;
14487 }
14488 Py_INCREF(Py_None); resultobj = Py_None;
14489 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14490 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14491 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14492 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14493 return resultobj;
14494 fail:
14495 return NULL;
14496 }
14497
14498
14499 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14500 PyObject *resultobj;
14501 wxDC *arg1 = (wxDC *) 0 ;
14502 int arg2 ;
14503 int arg3 ;
14504 PyObject * obj0 = 0 ;
14505 PyObject * obj1 = 0 ;
14506 PyObject * obj2 = 0 ;
14507 char *kwnames[] = {
14508 (char *) "self",(char *) "x",(char *) "y", NULL
14509 };
14510
14511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14514 arg2 = (int)SWIG_As_int(obj1);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 arg3 = (int)SWIG_As_int(obj2);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 (arg1)->SetLogicalOrigin(arg2,arg3);
14521
14522 wxPyEndAllowThreads(__tstate);
14523 if (PyErr_Occurred()) SWIG_fail;
14524 }
14525 Py_INCREF(Py_None); resultobj = Py_None;
14526 return resultobj;
14527 fail:
14528 return NULL;
14529 }
14530
14531
14532 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14533 PyObject *resultobj;
14534 wxDC *arg1 = (wxDC *) 0 ;
14535 wxPoint *arg2 = 0 ;
14536 wxPoint temp2 ;
14537 PyObject * obj0 = 0 ;
14538 PyObject * obj1 = 0 ;
14539 char *kwnames[] = {
14540 (char *) "self",(char *) "point", NULL
14541 };
14542
14543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14546 {
14547 arg2 = &temp2;
14548 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14549 }
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14553
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 Py_INCREF(Py_None); resultobj = Py_None;
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj;
14566 wxDC *arg1 = (wxDC *) 0 ;
14567 wxPoint result;
14568 PyObject * obj0 = 0 ;
14569 char *kwnames[] = {
14570 (char *) "self", NULL
14571 };
14572
14573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14579
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 {
14584 wxPoint * resultptr;
14585 resultptr = new wxPoint((wxPoint &) result);
14586 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14587 }
14588 return resultobj;
14589 fail:
14590 return NULL;
14591 }
14592
14593
14594 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14595 PyObject *resultobj;
14596 wxDC *arg1 = (wxDC *) 0 ;
14597 int *arg2 = (int *) 0 ;
14598 int *arg3 = (int *) 0 ;
14599 int temp2 ;
14600 int res2 = 0 ;
14601 int temp3 ;
14602 int res3 = 0 ;
14603 PyObject * obj0 = 0 ;
14604 char *kwnames[] = {
14605 (char *) "self", NULL
14606 };
14607
14608 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14609 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14613 {
14614 PyThreadState* __tstate = wxPyBeginAllowThreads();
14615 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14616
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 Py_INCREF(Py_None); resultobj = Py_None;
14621 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14622 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14623 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14624 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14625 return resultobj;
14626 fail:
14627 return NULL;
14628 }
14629
14630
14631 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj;
14633 wxDC *arg1 = (wxDC *) 0 ;
14634 int arg2 ;
14635 int arg3 ;
14636 PyObject * obj0 = 0 ;
14637 PyObject * obj1 = 0 ;
14638 PyObject * obj2 = 0 ;
14639 char *kwnames[] = {
14640 (char *) "self",(char *) "x",(char *) "y", NULL
14641 };
14642
14643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14646 arg2 = (int)SWIG_As_int(obj1);
14647 if (PyErr_Occurred()) SWIG_fail;
14648 arg3 = (int)SWIG_As_int(obj2);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 (arg1)->SetDeviceOrigin(arg2,arg3);
14653
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 Py_INCREF(Py_None); resultobj = Py_None;
14658 return resultobj;
14659 fail:
14660 return NULL;
14661 }
14662
14663
14664 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj;
14666 wxDC *arg1 = (wxDC *) 0 ;
14667 wxPoint *arg2 = 0 ;
14668 wxPoint temp2 ;
14669 PyObject * obj0 = 0 ;
14670 PyObject * obj1 = 0 ;
14671 char *kwnames[] = {
14672 (char *) "self",(char *) "point", NULL
14673 };
14674
14675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14678 {
14679 arg2 = &temp2;
14680 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14681 }
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14685
14686 wxPyEndAllowThreads(__tstate);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 }
14689 Py_INCREF(Py_None); resultobj = Py_None;
14690 return resultobj;
14691 fail:
14692 return NULL;
14693 }
14694
14695
14696 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
14697 PyObject *resultobj;
14698 wxDC *arg1 = (wxDC *) 0 ;
14699 bool arg2 ;
14700 bool arg3 ;
14701 PyObject * obj0 = 0 ;
14702 PyObject * obj1 = 0 ;
14703 PyObject * obj2 = 0 ;
14704 char *kwnames[] = {
14705 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14706 };
14707
14708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14711 arg2 = (bool)SWIG_As_bool(obj1);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 arg3 = (bool)SWIG_As_bool(obj2);
14714 if (PyErr_Occurred()) SWIG_fail;
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 (arg1)->SetAxisOrientation(arg2,arg3);
14718
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 Py_INCREF(Py_None); resultobj = Py_None;
14723 return resultobj;
14724 fail:
14725 return NULL;
14726 }
14727
14728
14729 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14730 PyObject *resultobj;
14731 wxDC *arg1 = (wxDC *) 0 ;
14732 int result;
14733 PyObject * obj0 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14741 {
14742 PyThreadState* __tstate = wxPyBeginAllowThreads();
14743 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14744
14745 wxPyEndAllowThreads(__tstate);
14746 if (PyErr_Occurred()) SWIG_fail;
14747 }
14748 resultobj = SWIG_From_int((int)result);
14749 return resultobj;
14750 fail:
14751 return NULL;
14752 }
14753
14754
14755 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14756 PyObject *resultobj;
14757 wxDC *arg1 = (wxDC *) 0 ;
14758 int arg2 ;
14759 PyObject * obj0 = 0 ;
14760 PyObject * obj1 = 0 ;
14761 char *kwnames[] = {
14762 (char *) "self",(char *) "function", NULL
14763 };
14764
14765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14768 arg2 = (int)SWIG_As_int(obj1);
14769 if (PyErr_Occurred()) SWIG_fail;
14770 {
14771 PyThreadState* __tstate = wxPyBeginAllowThreads();
14772 (arg1)->SetLogicalFunction(arg2);
14773
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 Py_INCREF(Py_None); resultobj = Py_None;
14778 return resultobj;
14779 fail:
14780 return NULL;
14781 }
14782
14783
14784 static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14785 PyObject *resultobj;
14786 wxDC *arg1 = (wxDC *) 0 ;
14787 bool arg2 ;
14788 PyObject * obj0 = 0 ;
14789 PyObject * obj1 = 0 ;
14790 char *kwnames[] = {
14791 (char *) "self",(char *) "optimize", NULL
14792 };
14793
14794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14797 arg2 = (bool)SWIG_As_bool(obj1);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 (arg1)->SetOptimization(arg2);
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 Py_INCREF(Py_None); resultobj = Py_None;
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj;
14815 wxDC *arg1 = (wxDC *) 0 ;
14816 bool result;
14817 PyObject * obj0 = 0 ;
14818 char *kwnames[] = {
14819 (char *) "self", NULL
14820 };
14821
14822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14825 {
14826 PyThreadState* __tstate = wxPyBeginAllowThreads();
14827 result = (bool)(arg1)->GetOptimization();
14828
14829 wxPyEndAllowThreads(__tstate);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
14832 {
14833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14834 }
14835 return resultobj;
14836 fail:
14837 return NULL;
14838 }
14839
14840
14841 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14842 PyObject *resultobj;
14843 wxDC *arg1 = (wxDC *) 0 ;
14844 int arg2 ;
14845 int arg3 ;
14846 PyObject * obj0 = 0 ;
14847 PyObject * obj1 = 0 ;
14848 PyObject * obj2 = 0 ;
14849 char *kwnames[] = {
14850 (char *) "self",(char *) "x",(char *) "y", NULL
14851 };
14852
14853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14856 arg2 = (int)SWIG_As_int(obj1);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 arg3 = (int)SWIG_As_int(obj2);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 {
14861 PyThreadState* __tstate = wxPyBeginAllowThreads();
14862 (arg1)->CalcBoundingBox(arg2,arg3);
14863
14864 wxPyEndAllowThreads(__tstate);
14865 if (PyErr_Occurred()) SWIG_fail;
14866 }
14867 Py_INCREF(Py_None); resultobj = Py_None;
14868 return resultobj;
14869 fail:
14870 return NULL;
14871 }
14872
14873
14874 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14875 PyObject *resultobj;
14876 wxDC *arg1 = (wxDC *) 0 ;
14877 wxPoint *arg2 = 0 ;
14878 wxPoint temp2 ;
14879 PyObject * obj0 = 0 ;
14880 PyObject * obj1 = 0 ;
14881 char *kwnames[] = {
14882 (char *) "self",(char *) "point", NULL
14883 };
14884
14885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14888 {
14889 arg2 = &temp2;
14890 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14891 }
14892 {
14893 PyThreadState* __tstate = wxPyBeginAllowThreads();
14894 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14895
14896 wxPyEndAllowThreads(__tstate);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 Py_INCREF(Py_None); resultobj = Py_None;
14900 return resultobj;
14901 fail:
14902 return NULL;
14903 }
14904
14905
14906 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14907 PyObject *resultobj;
14908 wxDC *arg1 = (wxDC *) 0 ;
14909 PyObject * obj0 = 0 ;
14910 char *kwnames[] = {
14911 (char *) "self", NULL
14912 };
14913
14914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14917 {
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 (arg1)->ResetBoundingBox();
14920
14921 wxPyEndAllowThreads(__tstate);
14922 if (PyErr_Occurred()) SWIG_fail;
14923 }
14924 Py_INCREF(Py_None); resultobj = Py_None;
14925 return resultobj;
14926 fail:
14927 return NULL;
14928 }
14929
14930
14931 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
14932 PyObject *resultobj;
14933 wxDC *arg1 = (wxDC *) 0 ;
14934 int result;
14935 PyObject * obj0 = 0 ;
14936 char *kwnames[] = {
14937 (char *) "self", NULL
14938 };
14939
14940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14943 {
14944 PyThreadState* __tstate = wxPyBeginAllowThreads();
14945 result = (int)((wxDC const *)arg1)->MinX();
14946
14947 wxPyEndAllowThreads(__tstate);
14948 if (PyErr_Occurred()) SWIG_fail;
14949 }
14950 resultobj = SWIG_From_int((int)result);
14951 return resultobj;
14952 fail:
14953 return NULL;
14954 }
14955
14956
14957 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
14958 PyObject *resultobj;
14959 wxDC *arg1 = (wxDC *) 0 ;
14960 int result;
14961 PyObject * obj0 = 0 ;
14962 char *kwnames[] = {
14963 (char *) "self", NULL
14964 };
14965
14966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14969 {
14970 PyThreadState* __tstate = wxPyBeginAllowThreads();
14971 result = (int)((wxDC const *)arg1)->MaxX();
14972
14973 wxPyEndAllowThreads(__tstate);
14974 if (PyErr_Occurred()) SWIG_fail;
14975 }
14976 resultobj = SWIG_From_int((int)result);
14977 return resultobj;
14978 fail:
14979 return NULL;
14980 }
14981
14982
14983 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
14984 PyObject *resultobj;
14985 wxDC *arg1 = (wxDC *) 0 ;
14986 int result;
14987 PyObject * obj0 = 0 ;
14988 char *kwnames[] = {
14989 (char *) "self", NULL
14990 };
14991
14992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14995 {
14996 PyThreadState* __tstate = wxPyBeginAllowThreads();
14997 result = (int)((wxDC const *)arg1)->MinY();
14998
14999 wxPyEndAllowThreads(__tstate);
15000 if (PyErr_Occurred()) SWIG_fail;
15001 }
15002 resultobj = SWIG_From_int((int)result);
15003 return resultobj;
15004 fail:
15005 return NULL;
15006 }
15007
15008
15009 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
15010 PyObject *resultobj;
15011 wxDC *arg1 = (wxDC *) 0 ;
15012 int result;
15013 PyObject * obj0 = 0 ;
15014 char *kwnames[] = {
15015 (char *) "self", NULL
15016 };
15017
15018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15021 {
15022 PyThreadState* __tstate = wxPyBeginAllowThreads();
15023 result = (int)((wxDC const *)arg1)->MaxY();
15024
15025 wxPyEndAllowThreads(__tstate);
15026 if (PyErr_Occurred()) SWIG_fail;
15027 }
15028 resultobj = SWIG_From_int((int)result);
15029 return resultobj;
15030 fail:
15031 return NULL;
15032 }
15033
15034
15035 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15036 PyObject *resultobj;
15037 wxDC *arg1 = (wxDC *) 0 ;
15038 int *arg2 = (int *) 0 ;
15039 int *arg3 = (int *) 0 ;
15040 int *arg4 = (int *) 0 ;
15041 int *arg5 = (int *) 0 ;
15042 int temp2 ;
15043 int res2 = 0 ;
15044 int temp3 ;
15045 int res3 = 0 ;
15046 int temp4 ;
15047 int res4 = 0 ;
15048 int temp5 ;
15049 int res5 = 0 ;
15050 PyObject * obj0 = 0 ;
15051 char *kwnames[] = {
15052 (char *) "self", NULL
15053 };
15054
15055 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15056 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15057 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15058 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15062 {
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15065
15066 wxPyEndAllowThreads(__tstate);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 }
15069 Py_INCREF(Py_None); resultobj = Py_None;
15070 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15071 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15072 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15073 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15074 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15075 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15076 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15077 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15078 return resultobj;
15079 fail:
15080 return NULL;
15081 }
15082
15083
15084 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
15085 PyObject *resultobj;
15086 wxDC *arg1 = (wxDC *) 0 ;
15087 PyObject *arg2 = (PyObject *) 0 ;
15088 PyObject *arg3 = (PyObject *) 0 ;
15089 PyObject *arg4 = (PyObject *) 0 ;
15090 PyObject *result;
15091 PyObject * obj0 = 0 ;
15092 PyObject * obj1 = 0 ;
15093 PyObject * obj2 = 0 ;
15094 PyObject * obj3 = 0 ;
15095 char *kwnames[] = {
15096 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15097 };
15098
15099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15102 arg2 = obj1;
15103 arg3 = obj2;
15104 arg4 = obj3;
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15108
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 resultobj = result;
15113 return resultobj;
15114 fail:
15115 return NULL;
15116 }
15117
15118
15119 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj;
15121 wxDC *arg1 = (wxDC *) 0 ;
15122 PyObject *arg2 = (PyObject *) 0 ;
15123 PyObject *arg3 = (PyObject *) 0 ;
15124 PyObject *arg4 = (PyObject *) 0 ;
15125 PyObject *result;
15126 PyObject * obj0 = 0 ;
15127 PyObject * obj1 = 0 ;
15128 PyObject * obj2 = 0 ;
15129 PyObject * obj3 = 0 ;
15130 char *kwnames[] = {
15131 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15132 };
15133
15134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15137 arg2 = obj1;
15138 arg3 = obj2;
15139 arg4 = obj3;
15140 {
15141 PyThreadState* __tstate = wxPyBeginAllowThreads();
15142 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15143
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 resultobj = result;
15148 return resultobj;
15149 fail:
15150 return NULL;
15151 }
15152
15153
15154 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
15155 PyObject *resultobj;
15156 wxDC *arg1 = (wxDC *) 0 ;
15157 PyObject *arg2 = (PyObject *) 0 ;
15158 PyObject *arg3 = (PyObject *) 0 ;
15159 PyObject *arg4 = (PyObject *) 0 ;
15160 PyObject *result;
15161 PyObject * obj0 = 0 ;
15162 PyObject * obj1 = 0 ;
15163 PyObject * obj2 = 0 ;
15164 PyObject * obj3 = 0 ;
15165 char *kwnames[] = {
15166 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15167 };
15168
15169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15172 arg2 = obj1;
15173 arg3 = obj2;
15174 arg4 = obj3;
15175 {
15176 PyThreadState* __tstate = wxPyBeginAllowThreads();
15177 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15178
15179 wxPyEndAllowThreads(__tstate);
15180 if (PyErr_Occurred()) SWIG_fail;
15181 }
15182 resultobj = result;
15183 return resultobj;
15184 fail:
15185 return NULL;
15186 }
15187
15188
15189 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
15190 PyObject *resultobj;
15191 wxDC *arg1 = (wxDC *) 0 ;
15192 PyObject *arg2 = (PyObject *) 0 ;
15193 PyObject *arg3 = (PyObject *) 0 ;
15194 PyObject *arg4 = (PyObject *) 0 ;
15195 PyObject *result;
15196 PyObject * obj0 = 0 ;
15197 PyObject * obj1 = 0 ;
15198 PyObject * obj2 = 0 ;
15199 PyObject * obj3 = 0 ;
15200 char *kwnames[] = {
15201 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15202 };
15203
15204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15207 arg2 = obj1;
15208 arg3 = obj2;
15209 arg4 = obj3;
15210 {
15211 PyThreadState* __tstate = wxPyBeginAllowThreads();
15212 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15213
15214 wxPyEndAllowThreads(__tstate);
15215 if (PyErr_Occurred()) SWIG_fail;
15216 }
15217 resultobj = result;
15218 return resultobj;
15219 fail:
15220 return NULL;
15221 }
15222
15223
15224 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
15225 PyObject *resultobj;
15226 wxDC *arg1 = (wxDC *) 0 ;
15227 PyObject *arg2 = (PyObject *) 0 ;
15228 PyObject *arg3 = (PyObject *) 0 ;
15229 PyObject *arg4 = (PyObject *) 0 ;
15230 PyObject *result;
15231 PyObject * obj0 = 0 ;
15232 PyObject * obj1 = 0 ;
15233 PyObject * obj2 = 0 ;
15234 PyObject * obj3 = 0 ;
15235 char *kwnames[] = {
15236 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15237 };
15238
15239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15242 arg2 = obj1;
15243 arg3 = obj2;
15244 arg4 = obj3;
15245 {
15246 PyThreadState* __tstate = wxPyBeginAllowThreads();
15247 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15248
15249 wxPyEndAllowThreads(__tstate);
15250 if (PyErr_Occurred()) SWIG_fail;
15251 }
15252 resultobj = result;
15253 return resultobj;
15254 fail:
15255 return NULL;
15256 }
15257
15258
15259 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
15260 PyObject *resultobj;
15261 wxDC *arg1 = (wxDC *) 0 ;
15262 PyObject *arg2 = (PyObject *) 0 ;
15263 PyObject *arg3 = (PyObject *) 0 ;
15264 PyObject *arg4 = (PyObject *) 0 ;
15265 PyObject *arg5 = (PyObject *) 0 ;
15266 PyObject *result;
15267 PyObject * obj0 = 0 ;
15268 PyObject * obj1 = 0 ;
15269 PyObject * obj2 = 0 ;
15270 PyObject * obj3 = 0 ;
15271 PyObject * obj4 = 0 ;
15272 char *kwnames[] = {
15273 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15274 };
15275
15276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15279 arg2 = obj1;
15280 arg3 = obj2;
15281 arg4 = obj3;
15282 arg5 = obj4;
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15286
15287 wxPyEndAllowThreads(__tstate);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 resultobj = result;
15291 return resultobj;
15292 fail:
15293 return NULL;
15294 }
15295
15296
15297 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
15298 PyObject *obj;
15299 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15300 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15301 Py_INCREF(obj);
15302 return Py_BuildValue((char *)"");
15303 }
15304 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
15305 PyObject *resultobj;
15306 wxMemoryDC *result;
15307 char *kwnames[] = {
15308 NULL
15309 };
15310
15311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15312 {
15313 if (!wxPyCheckForApp()) SWIG_fail;
15314 PyThreadState* __tstate = wxPyBeginAllowThreads();
15315 result = (wxMemoryDC *)new wxMemoryDC();
15316
15317 wxPyEndAllowThreads(__tstate);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 }
15320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15321 return resultobj;
15322 fail:
15323 return NULL;
15324 }
15325
15326
15327 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
15328 PyObject *resultobj;
15329 wxDC *arg1 = (wxDC *) 0 ;
15330 wxMemoryDC *result;
15331 PyObject * obj0 = 0 ;
15332 char *kwnames[] = {
15333 (char *) "oldDC", NULL
15334 };
15335
15336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15339 {
15340 if (!wxPyCheckForApp()) SWIG_fail;
15341 PyThreadState* __tstate = wxPyBeginAllowThreads();
15342 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15343
15344 wxPyEndAllowThreads(__tstate);
15345 if (PyErr_Occurred()) SWIG_fail;
15346 }
15347 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15348 return resultobj;
15349 fail:
15350 return NULL;
15351 }
15352
15353
15354 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
15355 PyObject *resultobj;
15356 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15357 wxBitmap *arg2 = 0 ;
15358 PyObject * obj0 = 0 ;
15359 PyObject * obj1 = 0 ;
15360 char *kwnames[] = {
15361 (char *) "self",(char *) "bitmap", NULL
15362 };
15363
15364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15367 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15368 SWIG_POINTER_EXCEPTION | 0)) == -1)
15369 SWIG_fail;
15370 if (arg2 == NULL) {
15371 PyErr_SetString(PyExc_TypeError,"null reference");
15372 SWIG_fail;
15373 }
15374 {
15375 PyThreadState* __tstate = wxPyBeginAllowThreads();
15376 (arg1)->SelectObject((wxBitmap const &)*arg2);
15377
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 Py_INCREF(Py_None); resultobj = Py_None;
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
15389 PyObject *obj;
15390 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15391 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15392 Py_INCREF(obj);
15393 return Py_BuildValue((char *)"");
15394 }
15395 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
15396 PyObject *resultobj;
15397 wxDC *arg1 = (wxDC *) 0 ;
15398 wxBitmap *arg2 = 0 ;
15399 wxBufferedDC *result;
15400 PyObject * obj0 = 0 ;
15401 PyObject * obj1 = 0 ;
15402
15403 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15407 SWIG_POINTER_EXCEPTION | 0)) == -1)
15408 SWIG_fail;
15409 if (arg2 == NULL) {
15410 PyErr_SetString(PyExc_TypeError,"null reference");
15411 SWIG_fail;
15412 }
15413 {
15414 if (!wxPyCheckForApp()) SWIG_fail;
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15417
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15422 return resultobj;
15423 fail:
15424 return NULL;
15425 }
15426
15427
15428 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
15429 PyObject *resultobj;
15430 wxDC *arg1 = (wxDC *) 0 ;
15431 wxSize *arg2 = 0 ;
15432 wxBufferedDC *result;
15433 wxSize temp2 ;
15434 PyObject * obj0 = 0 ;
15435 PyObject * obj1 = 0 ;
15436
15437 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15440 {
15441 arg2 = &temp2;
15442 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15443 }
15444 {
15445 if (!wxPyCheckForApp()) SWIG_fail;
15446 PyThreadState* __tstate = wxPyBeginAllowThreads();
15447 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15448
15449 wxPyEndAllowThreads(__tstate);
15450 if (PyErr_Occurred()) SWIG_fail;
15451 }
15452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15453 return resultobj;
15454 fail:
15455 return NULL;
15456 }
15457
15458
15459 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15460 int argc;
15461 PyObject *argv[3];
15462 int ii;
15463
15464 argc = PyObject_Length(args);
15465 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15466 argv[ii] = PyTuple_GetItem(args,ii);
15467 }
15468 if (argc == 2) {
15469 int _v;
15470 {
15471 void *ptr;
15472 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15473 _v = 0;
15474 PyErr_Clear();
15475 } else {
15476 _v = 1;
15477 }
15478 }
15479 if (_v) {
15480 {
15481 void *ptr;
15482 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15483 _v = 0;
15484 PyErr_Clear();
15485 } else {
15486 _v = 1;
15487 }
15488 }
15489 if (_v) {
15490 return _wrap_new_BufferedDC__SWIG_0(self,args);
15491 }
15492 }
15493 }
15494 if (argc == 2) {
15495 int _v;
15496 {
15497 void *ptr;
15498 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15499 _v = 0;
15500 PyErr_Clear();
15501 } else {
15502 _v = 1;
15503 }
15504 }
15505 if (_v) {
15506 {
15507 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15508 }
15509 if (_v) {
15510 return _wrap_new_BufferedDC__SWIG_1(self,args);
15511 }
15512 }
15513 }
15514
15515 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15516 return NULL;
15517 }
15518
15519
15520 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
15521 PyObject *resultobj;
15522 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15523 PyObject * obj0 = 0 ;
15524 char *kwnames[] = {
15525 (char *) "self", NULL
15526 };
15527
15528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 delete arg1;
15534
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 Py_INCREF(Py_None); resultobj = Py_None;
15539 return resultobj;
15540 fail:
15541 return NULL;
15542 }
15543
15544
15545 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
15546 PyObject *resultobj;
15547 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15548 PyObject * obj0 = 0 ;
15549 char *kwnames[] = {
15550 (char *) "self", NULL
15551 };
15552
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 (arg1)->UnMask();
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 Py_INCREF(Py_None); resultobj = Py_None;
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
15571 PyObject *obj;
15572 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15573 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15574 Py_INCREF(obj);
15575 return Py_BuildValue((char *)"");
15576 }
15577 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15578 PyObject *resultobj;
15579 wxWindow *arg1 = (wxWindow *) 0 ;
15580 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15581 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15582 wxBufferedPaintDC *result;
15583 PyObject * obj0 = 0 ;
15584 PyObject * obj1 = 0 ;
15585 char *kwnames[] = {
15586 (char *) "window",(char *) "buffer", NULL
15587 };
15588
15589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15592 if (obj1) {
15593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15594 SWIG_POINTER_EXCEPTION | 0)) == -1)
15595 SWIG_fail;
15596 if (arg2 == NULL) {
15597 PyErr_SetString(PyExc_TypeError,"null reference");
15598 SWIG_fail;
15599 }
15600 }
15601 {
15602 if (!wxPyCheckForApp()) SWIG_fail;
15603 PyThreadState* __tstate = wxPyBeginAllowThreads();
15604 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15605
15606 wxPyEndAllowThreads(__tstate);
15607 if (PyErr_Occurred()) SWIG_fail;
15608 }
15609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15610 return resultobj;
15611 fail:
15612 return NULL;
15613 }
15614
15615
15616 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
15617 PyObject *obj;
15618 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15619 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15620 Py_INCREF(obj);
15621 return Py_BuildValue((char *)"");
15622 }
15623 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
15624 PyObject *resultobj;
15625 wxScreenDC *result;
15626 char *kwnames[] = {
15627 NULL
15628 };
15629
15630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15631 {
15632 if (!wxPyCheckForApp()) SWIG_fail;
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (wxScreenDC *)new wxScreenDC();
15635
15636 wxPyEndAllowThreads(__tstate);
15637 if (PyErr_Occurred()) SWIG_fail;
15638 }
15639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15640 return resultobj;
15641 fail:
15642 return NULL;
15643 }
15644
15645
15646 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
15647 PyObject *resultobj;
15648 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15649 wxWindow *arg2 = (wxWindow *) 0 ;
15650 bool result;
15651 PyObject * obj0 = 0 ;
15652 PyObject * obj1 = 0 ;
15653 char *kwnames[] = {
15654 (char *) "self",(char *) "window", NULL
15655 };
15656
15657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15662 {
15663 PyThreadState* __tstate = wxPyBeginAllowThreads();
15664 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15665
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
15669 {
15670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15671 }
15672 return resultobj;
15673 fail:
15674 return NULL;
15675 }
15676
15677
15678 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15679 PyObject *resultobj;
15680 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15681 wxRect *arg2 = (wxRect *) NULL ;
15682 bool result;
15683 PyObject * obj0 = 0 ;
15684 PyObject * obj1 = 0 ;
15685 char *kwnames[] = {
15686 (char *) "self",(char *) "rect", NULL
15687 };
15688
15689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15692 if (obj1) {
15693 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15695 }
15696 {
15697 PyThreadState* __tstate = wxPyBeginAllowThreads();
15698 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15699
15700 wxPyEndAllowThreads(__tstate);
15701 if (PyErr_Occurred()) SWIG_fail;
15702 }
15703 {
15704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15705 }
15706 return resultobj;
15707 fail:
15708 return NULL;
15709 }
15710
15711
15712 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15713 PyObject *resultobj;
15714 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15715 bool result;
15716 PyObject * obj0 = 0 ;
15717 char *kwnames[] = {
15718 (char *) "self", NULL
15719 };
15720
15721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15724 {
15725 PyThreadState* __tstate = wxPyBeginAllowThreads();
15726 result = (bool)(arg1)->EndDrawingOnTop();
15727
15728 wxPyEndAllowThreads(__tstate);
15729 if (PyErr_Occurred()) SWIG_fail;
15730 }
15731 {
15732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15733 }
15734 return resultobj;
15735 fail:
15736 return NULL;
15737 }
15738
15739
15740 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
15741 PyObject *obj;
15742 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15743 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15744 Py_INCREF(obj);
15745 return Py_BuildValue((char *)"");
15746 }
15747 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
15748 PyObject *resultobj;
15749 wxWindow *arg1 = (wxWindow *) 0 ;
15750 wxClientDC *result;
15751 PyObject * obj0 = 0 ;
15752 char *kwnames[] = {
15753 (char *) "win", NULL
15754 };
15755
15756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15759 {
15760 if (!wxPyCheckForApp()) SWIG_fail;
15761 PyThreadState* __tstate = wxPyBeginAllowThreads();
15762 result = (wxClientDC *)new wxClientDC(arg1);
15763
15764 wxPyEndAllowThreads(__tstate);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15768 return resultobj;
15769 fail:
15770 return NULL;
15771 }
15772
15773
15774 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
15775 PyObject *obj;
15776 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15777 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15778 Py_INCREF(obj);
15779 return Py_BuildValue((char *)"");
15780 }
15781 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15782 PyObject *resultobj;
15783 wxWindow *arg1 = (wxWindow *) 0 ;
15784 wxPaintDC *result;
15785 PyObject * obj0 = 0 ;
15786 char *kwnames[] = {
15787 (char *) "win", NULL
15788 };
15789
15790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15793 {
15794 if (!wxPyCheckForApp()) SWIG_fail;
15795 PyThreadState* __tstate = wxPyBeginAllowThreads();
15796 result = (wxPaintDC *)new wxPaintDC(arg1);
15797
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15802 return resultobj;
15803 fail:
15804 return NULL;
15805 }
15806
15807
15808 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
15809 PyObject *obj;
15810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15811 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15812 Py_INCREF(obj);
15813 return Py_BuildValue((char *)"");
15814 }
15815 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj;
15817 wxWindow *arg1 = (wxWindow *) 0 ;
15818 wxWindowDC *result;
15819 PyObject * obj0 = 0 ;
15820 char *kwnames[] = {
15821 (char *) "win", NULL
15822 };
15823
15824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15827 {
15828 if (!wxPyCheckForApp()) SWIG_fail;
15829 PyThreadState* __tstate = wxPyBeginAllowThreads();
15830 result = (wxWindowDC *)new wxWindowDC(arg1);
15831
15832 wxPyEndAllowThreads(__tstate);
15833 if (PyErr_Occurred()) SWIG_fail;
15834 }
15835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15836 return resultobj;
15837 fail:
15838 return NULL;
15839 }
15840
15841
15842 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
15843 PyObject *obj;
15844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15845 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15846 Py_INCREF(obj);
15847 return Py_BuildValue((char *)"");
15848 }
15849 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
15850 PyObject *resultobj;
15851 wxDC *arg1 = 0 ;
15852 bool arg2 ;
15853 wxMirrorDC *result;
15854 PyObject * obj0 = 0 ;
15855 PyObject * obj1 = 0 ;
15856 char *kwnames[] = {
15857 (char *) "dc",(char *) "mirror", NULL
15858 };
15859
15860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15862 SWIG_POINTER_EXCEPTION | 0)) == -1)
15863 SWIG_fail;
15864 if (arg1 == NULL) {
15865 PyErr_SetString(PyExc_TypeError,"null reference");
15866 SWIG_fail;
15867 }
15868 arg2 = (bool)SWIG_As_bool(obj1);
15869 if (PyErr_Occurred()) SWIG_fail;
15870 {
15871 if (!wxPyCheckForApp()) SWIG_fail;
15872 PyThreadState* __tstate = wxPyBeginAllowThreads();
15873 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15874
15875 wxPyEndAllowThreads(__tstate);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15879 return resultobj;
15880 fail:
15881 return NULL;
15882 }
15883
15884
15885 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
15886 PyObject *obj;
15887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15888 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15889 Py_INCREF(obj);
15890 return Py_BuildValue((char *)"");
15891 }
15892 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
15893 PyObject *resultobj;
15894 wxPrintData *arg1 = 0 ;
15895 wxPostScriptDC *result;
15896 PyObject * obj0 = 0 ;
15897 char *kwnames[] = {
15898 (char *) "printData", NULL
15899 };
15900
15901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15903 SWIG_POINTER_EXCEPTION | 0)) == -1)
15904 SWIG_fail;
15905 if (arg1 == NULL) {
15906 PyErr_SetString(PyExc_TypeError,"null reference");
15907 SWIG_fail;
15908 }
15909 {
15910 if (!wxPyCheckForApp()) SWIG_fail;
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15913
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15918 return resultobj;
15919 fail:
15920 return NULL;
15921 }
15922
15923
15924 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15925 PyObject *resultobj;
15926 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15927 wxPrintData *result;
15928 PyObject * obj0 = 0 ;
15929 char *kwnames[] = {
15930 (char *) "self", NULL
15931 };
15932
15933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15936 {
15937 PyThreadState* __tstate = wxPyBeginAllowThreads();
15938 {
15939 wxPrintData &_result_ref = (arg1)->GetPrintData();
15940 result = (wxPrintData *) &_result_ref;
15941 }
15942
15943 wxPyEndAllowThreads(__tstate);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 }
15946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15947 return resultobj;
15948 fail:
15949 return NULL;
15950 }
15951
15952
15953 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15954 PyObject *resultobj;
15955 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15956 wxPrintData *arg2 = 0 ;
15957 PyObject * obj0 = 0 ;
15958 PyObject * obj1 = 0 ;
15959 char *kwnames[] = {
15960 (char *) "self",(char *) "data", NULL
15961 };
15962
15963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15967 SWIG_POINTER_EXCEPTION | 0)) == -1)
15968 SWIG_fail;
15969 if (arg2 == NULL) {
15970 PyErr_SetString(PyExc_TypeError,"null reference");
15971 SWIG_fail;
15972 }
15973 {
15974 PyThreadState* __tstate = wxPyBeginAllowThreads();
15975 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15976
15977 wxPyEndAllowThreads(__tstate);
15978 if (PyErr_Occurred()) SWIG_fail;
15979 }
15980 Py_INCREF(Py_None); resultobj = Py_None;
15981 return resultobj;
15982 fail:
15983 return NULL;
15984 }
15985
15986
15987 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj;
15989 int arg1 ;
15990 PyObject * obj0 = 0 ;
15991 char *kwnames[] = {
15992 (char *) "ppi", NULL
15993 };
15994
15995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15996 arg1 = (int)SWIG_As_int(obj0);
15997 if (PyErr_Occurred()) SWIG_fail;
15998 {
15999 PyThreadState* __tstate = wxPyBeginAllowThreads();
16000 wxPostScriptDC::SetResolution(arg1);
16001
16002 wxPyEndAllowThreads(__tstate);
16003 if (PyErr_Occurred()) SWIG_fail;
16004 }
16005 Py_INCREF(Py_None); resultobj = Py_None;
16006 return resultobj;
16007 fail:
16008 return NULL;
16009 }
16010
16011
16012 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
16013 PyObject *resultobj;
16014 int result;
16015 char *kwnames[] = {
16016 NULL
16017 };
16018
16019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16020 {
16021 PyThreadState* __tstate = wxPyBeginAllowThreads();
16022 result = (int)wxPostScriptDC::GetResolution();
16023
16024 wxPyEndAllowThreads(__tstate);
16025 if (PyErr_Occurred()) SWIG_fail;
16026 }
16027 resultobj = SWIG_From_int((int)result);
16028 return resultobj;
16029 fail:
16030 return NULL;
16031 }
16032
16033
16034 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
16035 PyObject *obj;
16036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16037 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16038 Py_INCREF(obj);
16039 return Py_BuildValue((char *)"");
16040 }
16041 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
16042 PyObject *resultobj;
16043 wxString const &arg1_defvalue = wxPyEmptyString ;
16044 wxString *arg1 = (wxString *) &arg1_defvalue ;
16045 wxMetaFile *result;
16046 bool temp1 = false ;
16047 PyObject * obj0 = 0 ;
16048 char *kwnames[] = {
16049 (char *) "filename", NULL
16050 };
16051
16052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16053 if (obj0) {
16054 {
16055 arg1 = wxString_in_helper(obj0);
16056 if (arg1 == NULL) SWIG_fail;
16057 temp1 = true;
16058 }
16059 }
16060 {
16061 if (!wxPyCheckForApp()) SWIG_fail;
16062 PyThreadState* __tstate = wxPyBeginAllowThreads();
16063 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16064
16065 wxPyEndAllowThreads(__tstate);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 }
16068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16069 {
16070 if (temp1)
16071 delete arg1;
16072 }
16073 return resultobj;
16074 fail:
16075 {
16076 if (temp1)
16077 delete arg1;
16078 }
16079 return NULL;
16080 }
16081
16082
16083 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
16084 PyObject *resultobj;
16085 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16086 PyObject * obj0 = 0 ;
16087 char *kwnames[] = {
16088 (char *) "self", NULL
16089 };
16090
16091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16094 {
16095 PyThreadState* __tstate = wxPyBeginAllowThreads();
16096 delete arg1;
16097
16098 wxPyEndAllowThreads(__tstate);
16099 if (PyErr_Occurred()) SWIG_fail;
16100 }
16101 Py_INCREF(Py_None); resultobj = Py_None;
16102 return resultobj;
16103 fail:
16104 return NULL;
16105 }
16106
16107
16108 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
16109 PyObject *resultobj;
16110 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16111 bool result;
16112 PyObject * obj0 = 0 ;
16113 char *kwnames[] = {
16114 (char *) "self", NULL
16115 };
16116
16117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16120 {
16121 PyThreadState* __tstate = wxPyBeginAllowThreads();
16122 result = (bool)(arg1)->Ok();
16123
16124 wxPyEndAllowThreads(__tstate);
16125 if (PyErr_Occurred()) SWIG_fail;
16126 }
16127 {
16128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16129 }
16130 return resultobj;
16131 fail:
16132 return NULL;
16133 }
16134
16135
16136 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
16137 PyObject *resultobj;
16138 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16139 int arg2 = (int) 0 ;
16140 int arg3 = (int) 0 ;
16141 bool result;
16142 PyObject * obj0 = 0 ;
16143 PyObject * obj1 = 0 ;
16144 PyObject * obj2 = 0 ;
16145 char *kwnames[] = {
16146 (char *) "self",(char *) "width",(char *) "height", NULL
16147 };
16148
16149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16152 if (obj1) {
16153 arg2 = (int)SWIG_As_int(obj1);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 if (obj2) {
16157 arg3 = (int)SWIG_As_int(obj2);
16158 if (PyErr_Occurred()) SWIG_fail;
16159 }
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 {
16168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16169 }
16170 return resultobj;
16171 fail:
16172 return NULL;
16173 }
16174
16175
16176 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16177 PyObject *resultobj;
16178 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16179 wxSize result;
16180 PyObject * obj0 = 0 ;
16181 char *kwnames[] = {
16182 (char *) "self", NULL
16183 };
16184
16185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16188 {
16189 PyThreadState* __tstate = wxPyBeginAllowThreads();
16190 result = (arg1)->GetSize();
16191
16192 wxPyEndAllowThreads(__tstate);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 }
16195 {
16196 wxSize * resultptr;
16197 resultptr = new wxSize((wxSize &) result);
16198 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16199 }
16200 return resultobj;
16201 fail:
16202 return NULL;
16203 }
16204
16205
16206 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
16207 PyObject *resultobj;
16208 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16209 int result;
16210 PyObject * obj0 = 0 ;
16211 char *kwnames[] = {
16212 (char *) "self", NULL
16213 };
16214
16215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16218 {
16219 PyThreadState* __tstate = wxPyBeginAllowThreads();
16220 result = (int)(arg1)->GetWidth();
16221
16222 wxPyEndAllowThreads(__tstate);
16223 if (PyErr_Occurred()) SWIG_fail;
16224 }
16225 resultobj = SWIG_From_int((int)result);
16226 return resultobj;
16227 fail:
16228 return NULL;
16229 }
16230
16231
16232 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
16233 PyObject *resultobj;
16234 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16235 int result;
16236 PyObject * obj0 = 0 ;
16237 char *kwnames[] = {
16238 (char *) "self", NULL
16239 };
16240
16241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 result = (int)(arg1)->GetHeight();
16247
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 resultobj = SWIG_From_int((int)result);
16252 return resultobj;
16253 fail:
16254 return NULL;
16255 }
16256
16257
16258 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
16259 PyObject *obj;
16260 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16261 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16262 Py_INCREF(obj);
16263 return Py_BuildValue((char *)"");
16264 }
16265 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
16266 PyObject *resultobj;
16267 wxString const &arg1_defvalue = wxPyEmptyString ;
16268 wxString *arg1 = (wxString *) &arg1_defvalue ;
16269 int arg2 = (int) 0 ;
16270 int arg3 = (int) 0 ;
16271 wxString const &arg4_defvalue = wxPyEmptyString ;
16272 wxString *arg4 = (wxString *) &arg4_defvalue ;
16273 wxMetaFileDC *result;
16274 bool temp1 = false ;
16275 bool temp4 = false ;
16276 PyObject * obj0 = 0 ;
16277 PyObject * obj1 = 0 ;
16278 PyObject * obj2 = 0 ;
16279 PyObject * obj3 = 0 ;
16280 char *kwnames[] = {
16281 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16282 };
16283
16284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16285 if (obj0) {
16286 {
16287 arg1 = wxString_in_helper(obj0);
16288 if (arg1 == NULL) SWIG_fail;
16289 temp1 = true;
16290 }
16291 }
16292 if (obj1) {
16293 arg2 = (int)SWIG_As_int(obj1);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 if (obj2) {
16297 arg3 = (int)SWIG_As_int(obj2);
16298 if (PyErr_Occurred()) SWIG_fail;
16299 }
16300 if (obj3) {
16301 {
16302 arg4 = wxString_in_helper(obj3);
16303 if (arg4 == NULL) SWIG_fail;
16304 temp4 = true;
16305 }
16306 }
16307 {
16308 if (!wxPyCheckForApp()) SWIG_fail;
16309 PyThreadState* __tstate = wxPyBeginAllowThreads();
16310 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16311
16312 wxPyEndAllowThreads(__tstate);
16313 if (PyErr_Occurred()) SWIG_fail;
16314 }
16315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16316 {
16317 if (temp1)
16318 delete arg1;
16319 }
16320 {
16321 if (temp4)
16322 delete arg4;
16323 }
16324 return resultobj;
16325 fail:
16326 {
16327 if (temp1)
16328 delete arg1;
16329 }
16330 {
16331 if (temp4)
16332 delete arg4;
16333 }
16334 return NULL;
16335 }
16336
16337
16338 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
16339 PyObject *resultobj;
16340 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16341 wxMetaFile *result;
16342 PyObject * obj0 = 0 ;
16343 char *kwnames[] = {
16344 (char *) "self", NULL
16345 };
16346
16347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16350 {
16351 PyThreadState* __tstate = wxPyBeginAllowThreads();
16352 result = (wxMetaFile *)(arg1)->Close();
16353
16354 wxPyEndAllowThreads(__tstate);
16355 if (PyErr_Occurred()) SWIG_fail;
16356 }
16357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16358 return resultobj;
16359 fail:
16360 return NULL;
16361 }
16362
16363
16364 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
16365 PyObject *obj;
16366 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16367 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16368 Py_INCREF(obj);
16369 return Py_BuildValue((char *)"");
16370 }
16371 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
16372 PyObject *resultobj;
16373 wxPrintData *arg1 = 0 ;
16374 wxPrinterDC *result;
16375 PyObject * obj0 = 0 ;
16376 char *kwnames[] = {
16377 (char *) "printData", NULL
16378 };
16379
16380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16382 SWIG_POINTER_EXCEPTION | 0)) == -1)
16383 SWIG_fail;
16384 if (arg1 == NULL) {
16385 PyErr_SetString(PyExc_TypeError,"null reference");
16386 SWIG_fail;
16387 }
16388 {
16389 if (!wxPyCheckForApp()) SWIG_fail;
16390 PyThreadState* __tstate = wxPyBeginAllowThreads();
16391 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16392
16393 wxPyEndAllowThreads(__tstate);
16394 if (PyErr_Occurred()) SWIG_fail;
16395 }
16396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16397 return resultobj;
16398 fail:
16399 return NULL;
16400 }
16401
16402
16403 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
16404 PyObject *obj;
16405 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16406 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16407 Py_INCREF(obj);
16408 return Py_BuildValue((char *)"");
16409 }
16410 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16411 PyObject *resultobj;
16412 int arg1 ;
16413 int arg2 ;
16414 int arg3 = (int) true ;
16415 int arg4 = (int) 1 ;
16416 wxImageList *result;
16417 PyObject * obj0 = 0 ;
16418 PyObject * obj1 = 0 ;
16419 PyObject * obj2 = 0 ;
16420 PyObject * obj3 = 0 ;
16421 char *kwnames[] = {
16422 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16423 };
16424
16425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16426 arg1 = (int)SWIG_As_int(obj0);
16427 if (PyErr_Occurred()) SWIG_fail;
16428 arg2 = (int)SWIG_As_int(obj1);
16429 if (PyErr_Occurred()) SWIG_fail;
16430 if (obj2) {
16431 arg3 = (int)SWIG_As_int(obj2);
16432 if (PyErr_Occurred()) SWIG_fail;
16433 }
16434 if (obj3) {
16435 arg4 = (int)SWIG_As_int(obj3);
16436 if (PyErr_Occurred()) SWIG_fail;
16437 }
16438 {
16439 if (!wxPyCheckForApp()) SWIG_fail;
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16442
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 {
16447 resultobj = wxPyMake_wxObject(result, 1);
16448 }
16449 return resultobj;
16450 fail:
16451 return NULL;
16452 }
16453
16454
16455 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16456 PyObject *resultobj;
16457 wxImageList *arg1 = (wxImageList *) 0 ;
16458 PyObject * obj0 = 0 ;
16459 char *kwnames[] = {
16460 (char *) "self", NULL
16461 };
16462
16463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16466 {
16467 PyThreadState* __tstate = wxPyBeginAllowThreads();
16468 delete arg1;
16469
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 Py_INCREF(Py_None); resultobj = Py_None;
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj;
16482 wxImageList *arg1 = (wxImageList *) 0 ;
16483 wxBitmap *arg2 = 0 ;
16484 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16485 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16486 int result;
16487 PyObject * obj0 = 0 ;
16488 PyObject * obj1 = 0 ;
16489 PyObject * obj2 = 0 ;
16490 char *kwnames[] = {
16491 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16492 };
16493
16494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16497 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16498 SWIG_POINTER_EXCEPTION | 0)) == -1)
16499 SWIG_fail;
16500 if (arg2 == NULL) {
16501 PyErr_SetString(PyExc_TypeError,"null reference");
16502 SWIG_fail;
16503 }
16504 if (obj2) {
16505 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16506 SWIG_POINTER_EXCEPTION | 0)) == -1)
16507 SWIG_fail;
16508 if (arg3 == NULL) {
16509 PyErr_SetString(PyExc_TypeError,"null reference");
16510 SWIG_fail;
16511 }
16512 }
16513 {
16514 PyThreadState* __tstate = wxPyBeginAllowThreads();
16515 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16516
16517 wxPyEndAllowThreads(__tstate);
16518 if (PyErr_Occurred()) SWIG_fail;
16519 }
16520 resultobj = SWIG_From_int((int)result);
16521 return resultobj;
16522 fail:
16523 return NULL;
16524 }
16525
16526
16527 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
16528 PyObject *resultobj;
16529 wxImageList *arg1 = (wxImageList *) 0 ;
16530 wxBitmap *arg2 = 0 ;
16531 wxColour *arg3 = 0 ;
16532 int result;
16533 wxColour temp3 ;
16534 PyObject * obj0 = 0 ;
16535 PyObject * obj1 = 0 ;
16536 PyObject * obj2 = 0 ;
16537 char *kwnames[] = {
16538 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16539 };
16540
16541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16545 SWIG_POINTER_EXCEPTION | 0)) == -1)
16546 SWIG_fail;
16547 if (arg2 == NULL) {
16548 PyErr_SetString(PyExc_TypeError,"null reference");
16549 SWIG_fail;
16550 }
16551 {
16552 arg3 = &temp3;
16553 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16554 }
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16558
16559 wxPyEndAllowThreads(__tstate);
16560 if (PyErr_Occurred()) SWIG_fail;
16561 }
16562 resultobj = SWIG_From_int((int)result);
16563 return resultobj;
16564 fail:
16565 return NULL;
16566 }
16567
16568
16569 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
16570 PyObject *resultobj;
16571 wxImageList *arg1 = (wxImageList *) 0 ;
16572 wxIcon *arg2 = 0 ;
16573 int result;
16574 PyObject * obj0 = 0 ;
16575 PyObject * obj1 = 0 ;
16576 char *kwnames[] = {
16577 (char *) "self",(char *) "icon", NULL
16578 };
16579
16580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16583 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16584 SWIG_POINTER_EXCEPTION | 0)) == -1)
16585 SWIG_fail;
16586 if (arg2 == NULL) {
16587 PyErr_SetString(PyExc_TypeError,"null reference");
16588 SWIG_fail;
16589 }
16590 {
16591 PyThreadState* __tstate = wxPyBeginAllowThreads();
16592 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16593
16594 wxPyEndAllowThreads(__tstate);
16595 if (PyErr_Occurred()) SWIG_fail;
16596 }
16597 resultobj = SWIG_From_int((int)result);
16598 return resultobj;
16599 fail:
16600 return NULL;
16601 }
16602
16603
16604 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
16605 PyObject *resultobj;
16606 wxImageList *arg1 = (wxImageList *) 0 ;
16607 int arg2 ;
16608 wxBitmap *arg3 = 0 ;
16609 bool result;
16610 PyObject * obj0 = 0 ;
16611 PyObject * obj1 = 0 ;
16612 PyObject * obj2 = 0 ;
16613 char *kwnames[] = {
16614 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16615 };
16616
16617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16620 arg2 = (int)SWIG_As_int(obj1);
16621 if (PyErr_Occurred()) SWIG_fail;
16622 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16623 SWIG_POINTER_EXCEPTION | 0)) == -1)
16624 SWIG_fail;
16625 if (arg3 == NULL) {
16626 PyErr_SetString(PyExc_TypeError,"null reference");
16627 SWIG_fail;
16628 }
16629 {
16630 PyThreadState* __tstate = wxPyBeginAllowThreads();
16631 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16632
16633 wxPyEndAllowThreads(__tstate);
16634 if (PyErr_Occurred()) SWIG_fail;
16635 }
16636 {
16637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16638 }
16639 return resultobj;
16640 fail:
16641 return NULL;
16642 }
16643
16644
16645 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
16646 PyObject *resultobj;
16647 wxImageList *arg1 = (wxImageList *) 0 ;
16648 int arg2 ;
16649 wxDC *arg3 = 0 ;
16650 int arg4 ;
16651 int arg5 ;
16652 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16653 bool arg7 = (bool) (bool)false ;
16654 bool result;
16655 PyObject * obj0 = 0 ;
16656 PyObject * obj1 = 0 ;
16657 PyObject * obj2 = 0 ;
16658 PyObject * obj3 = 0 ;
16659 PyObject * obj4 = 0 ;
16660 PyObject * obj5 = 0 ;
16661 PyObject * obj6 = 0 ;
16662 char *kwnames[] = {
16663 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16664 };
16665
16666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16669 arg2 = (int)SWIG_As_int(obj1);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16672 SWIG_POINTER_EXCEPTION | 0)) == -1)
16673 SWIG_fail;
16674 if (arg3 == NULL) {
16675 PyErr_SetString(PyExc_TypeError,"null reference");
16676 SWIG_fail;
16677 }
16678 arg4 = (int)SWIG_As_int(obj3);
16679 if (PyErr_Occurred()) SWIG_fail;
16680 arg5 = (int)SWIG_As_int(obj4);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 if (obj5) {
16683 arg6 = (int)SWIG_As_int(obj5);
16684 if (PyErr_Occurred()) SWIG_fail;
16685 }
16686 if (obj6) {
16687 arg7 = (bool)SWIG_As_bool(obj6);
16688 if (PyErr_Occurred()) SWIG_fail;
16689 }
16690 {
16691 PyThreadState* __tstate = wxPyBeginAllowThreads();
16692 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16693
16694 wxPyEndAllowThreads(__tstate);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 }
16697 {
16698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16699 }
16700 return resultobj;
16701 fail:
16702 return NULL;
16703 }
16704
16705
16706 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
16707 PyObject *resultobj;
16708 wxImageList *arg1 = (wxImageList *) 0 ;
16709 int result;
16710 PyObject * obj0 = 0 ;
16711 char *kwnames[] = {
16712 (char *) "self", NULL
16713 };
16714
16715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16718 {
16719 PyThreadState* __tstate = wxPyBeginAllowThreads();
16720 result = (int)(arg1)->GetImageCount();
16721
16722 wxPyEndAllowThreads(__tstate);
16723 if (PyErr_Occurred()) SWIG_fail;
16724 }
16725 resultobj = SWIG_From_int((int)result);
16726 return resultobj;
16727 fail:
16728 return NULL;
16729 }
16730
16731
16732 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
16733 PyObject *resultobj;
16734 wxImageList *arg1 = (wxImageList *) 0 ;
16735 int arg2 ;
16736 bool result;
16737 PyObject * obj0 = 0 ;
16738 PyObject * obj1 = 0 ;
16739 char *kwnames[] = {
16740 (char *) "self",(char *) "index", NULL
16741 };
16742
16743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16746 arg2 = (int)SWIG_As_int(obj1);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 {
16749 PyThreadState* __tstate = wxPyBeginAllowThreads();
16750 result = (bool)(arg1)->Remove(arg2);
16751
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 {
16756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16757 }
16758 return resultobj;
16759 fail:
16760 return NULL;
16761 }
16762
16763
16764 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
16765 PyObject *resultobj;
16766 wxImageList *arg1 = (wxImageList *) 0 ;
16767 bool result;
16768 PyObject * obj0 = 0 ;
16769 char *kwnames[] = {
16770 (char *) "self", NULL
16771 };
16772
16773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16776 {
16777 PyThreadState* __tstate = wxPyBeginAllowThreads();
16778 result = (bool)(arg1)->RemoveAll();
16779
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
16783 {
16784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16785 }
16786 return resultobj;
16787 fail:
16788 return NULL;
16789 }
16790
16791
16792 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16793 PyObject *resultobj;
16794 wxImageList *arg1 = (wxImageList *) 0 ;
16795 int arg2 ;
16796 int *arg3 = 0 ;
16797 int *arg4 = 0 ;
16798 int temp3 ;
16799 int res3 = 0 ;
16800 int temp4 ;
16801 int res4 = 0 ;
16802 PyObject * obj0 = 0 ;
16803 PyObject * obj1 = 0 ;
16804 char *kwnames[] = {
16805 (char *) "self",(char *) "index", NULL
16806 };
16807
16808 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16809 arg4 = &temp4; res4 = SWIG_NEWOBJ;
16810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16813 arg2 = (int)SWIG_As_int(obj1);
16814 if (PyErr_Occurred()) SWIG_fail;
16815 {
16816 PyThreadState* __tstate = wxPyBeginAllowThreads();
16817 (arg1)->GetSize(arg2,*arg3,*arg4);
16818
16819 wxPyEndAllowThreads(__tstate);
16820 if (PyErr_Occurred()) SWIG_fail;
16821 }
16822 Py_INCREF(Py_None); resultobj = Py_None;
16823 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16824 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16825 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16826 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
16827 return resultobj;
16828 fail:
16829 return NULL;
16830 }
16831
16832
16833 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
16834 PyObject *obj;
16835 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16836 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16837 Py_INCREF(obj);
16838 return Py_BuildValue((char *)"");
16839 }
16840 static int _wrap_NORMAL_FONT_set(PyObject *) {
16841 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16842 return 1;
16843 }
16844
16845
16846 static PyObject *_wrap_NORMAL_FONT_get() {
16847 PyObject *pyobj;
16848
16849 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16850 return pyobj;
16851 }
16852
16853
16854 static int _wrap_SMALL_FONT_set(PyObject *) {
16855 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16856 return 1;
16857 }
16858
16859
16860 static PyObject *_wrap_SMALL_FONT_get() {
16861 PyObject *pyobj;
16862
16863 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16864 return pyobj;
16865 }
16866
16867
16868 static int _wrap_ITALIC_FONT_set(PyObject *) {
16869 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16870 return 1;
16871 }
16872
16873
16874 static PyObject *_wrap_ITALIC_FONT_get() {
16875 PyObject *pyobj;
16876
16877 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16878 return pyobj;
16879 }
16880
16881
16882 static int _wrap_SWISS_FONT_set(PyObject *) {
16883 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16884 return 1;
16885 }
16886
16887
16888 static PyObject *_wrap_SWISS_FONT_get() {
16889 PyObject *pyobj;
16890
16891 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16892 return pyobj;
16893 }
16894
16895
16896 static int _wrap_RED_PEN_set(PyObject *) {
16897 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16898 return 1;
16899 }
16900
16901
16902 static PyObject *_wrap_RED_PEN_get() {
16903 PyObject *pyobj;
16904
16905 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16906 return pyobj;
16907 }
16908
16909
16910 static int _wrap_CYAN_PEN_set(PyObject *) {
16911 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16912 return 1;
16913 }
16914
16915
16916 static PyObject *_wrap_CYAN_PEN_get() {
16917 PyObject *pyobj;
16918
16919 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16920 return pyobj;
16921 }
16922
16923
16924 static int _wrap_GREEN_PEN_set(PyObject *) {
16925 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16926 return 1;
16927 }
16928
16929
16930 static PyObject *_wrap_GREEN_PEN_get() {
16931 PyObject *pyobj;
16932
16933 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16934 return pyobj;
16935 }
16936
16937
16938 static int _wrap_BLACK_PEN_set(PyObject *) {
16939 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16940 return 1;
16941 }
16942
16943
16944 static PyObject *_wrap_BLACK_PEN_get() {
16945 PyObject *pyobj;
16946
16947 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16948 return pyobj;
16949 }
16950
16951
16952 static int _wrap_WHITE_PEN_set(PyObject *) {
16953 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16954 return 1;
16955 }
16956
16957
16958 static PyObject *_wrap_WHITE_PEN_get() {
16959 PyObject *pyobj;
16960
16961 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16962 return pyobj;
16963 }
16964
16965
16966 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16967 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16968 return 1;
16969 }
16970
16971
16972 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16973 PyObject *pyobj;
16974
16975 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16976 return pyobj;
16977 }
16978
16979
16980 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16981 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16982 return 1;
16983 }
16984
16985
16986 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16987 PyObject *pyobj;
16988
16989 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16990 return pyobj;
16991 }
16992
16993
16994 static int _wrap_GREY_PEN_set(PyObject *) {
16995 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16996 return 1;
16997 }
16998
16999
17000 static PyObject *_wrap_GREY_PEN_get() {
17001 PyObject *pyobj;
17002
17003 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17004 return pyobj;
17005 }
17006
17007
17008 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
17009 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17010 return 1;
17011 }
17012
17013
17014 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17015 PyObject *pyobj;
17016
17017 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17018 return pyobj;
17019 }
17020
17021
17022 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
17023 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17024 return 1;
17025 }
17026
17027
17028 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17029 PyObject *pyobj;
17030
17031 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17032 return pyobj;
17033 }
17034
17035
17036 static int _wrap_BLUE_BRUSH_set(PyObject *) {
17037 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17038 return 1;
17039 }
17040
17041
17042 static PyObject *_wrap_BLUE_BRUSH_get() {
17043 PyObject *pyobj;
17044
17045 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17046 return pyobj;
17047 }
17048
17049
17050 static int _wrap_GREEN_BRUSH_set(PyObject *) {
17051 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17052 return 1;
17053 }
17054
17055
17056 static PyObject *_wrap_GREEN_BRUSH_get() {
17057 PyObject *pyobj;
17058
17059 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17060 return pyobj;
17061 }
17062
17063
17064 static int _wrap_WHITE_BRUSH_set(PyObject *) {
17065 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17066 return 1;
17067 }
17068
17069
17070 static PyObject *_wrap_WHITE_BRUSH_get() {
17071 PyObject *pyobj;
17072
17073 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17074 return pyobj;
17075 }
17076
17077
17078 static int _wrap_BLACK_BRUSH_set(PyObject *) {
17079 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17080 return 1;
17081 }
17082
17083
17084 static PyObject *_wrap_BLACK_BRUSH_get() {
17085 PyObject *pyobj;
17086
17087 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17088 return pyobj;
17089 }
17090
17091
17092 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
17093 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17094 return 1;
17095 }
17096
17097
17098 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17099 PyObject *pyobj;
17100
17101 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17102 return pyobj;
17103 }
17104
17105
17106 static int _wrap_CYAN_BRUSH_set(PyObject *) {
17107 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17108 return 1;
17109 }
17110
17111
17112 static PyObject *_wrap_CYAN_BRUSH_get() {
17113 PyObject *pyobj;
17114
17115 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17116 return pyobj;
17117 }
17118
17119
17120 static int _wrap_RED_BRUSH_set(PyObject *) {
17121 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17122 return 1;
17123 }
17124
17125
17126 static PyObject *_wrap_RED_BRUSH_get() {
17127 PyObject *pyobj;
17128
17129 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17130 return pyobj;
17131 }
17132
17133
17134 static int _wrap_GREY_BRUSH_set(PyObject *) {
17135 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17136 return 1;
17137 }
17138
17139
17140 static PyObject *_wrap_GREY_BRUSH_get() {
17141 PyObject *pyobj;
17142
17143 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17144 return pyobj;
17145 }
17146
17147
17148 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
17149 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17150 return 1;
17151 }
17152
17153
17154 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17155 PyObject *pyobj;
17156
17157 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17158 return pyobj;
17159 }
17160
17161
17162 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
17163 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17164 return 1;
17165 }
17166
17167
17168 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17169 PyObject *pyobj;
17170
17171 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17172 return pyobj;
17173 }
17174
17175
17176 static int _wrap_BLACK_set(PyObject *) {
17177 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17178 return 1;
17179 }
17180
17181
17182 static PyObject *_wrap_BLACK_get() {
17183 PyObject *pyobj;
17184
17185 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17186 return pyobj;
17187 }
17188
17189
17190 static int _wrap_WHITE_set(PyObject *) {
17191 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17192 return 1;
17193 }
17194
17195
17196 static PyObject *_wrap_WHITE_get() {
17197 PyObject *pyobj;
17198
17199 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17200 return pyobj;
17201 }
17202
17203
17204 static int _wrap_RED_set(PyObject *) {
17205 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17206 return 1;
17207 }
17208
17209
17210 static PyObject *_wrap_RED_get() {
17211 PyObject *pyobj;
17212
17213 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17214 return pyobj;
17215 }
17216
17217
17218 static int _wrap_BLUE_set(PyObject *) {
17219 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17220 return 1;
17221 }
17222
17223
17224 static PyObject *_wrap_BLUE_get() {
17225 PyObject *pyobj;
17226
17227 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17228 return pyobj;
17229 }
17230
17231
17232 static int _wrap_GREEN_set(PyObject *) {
17233 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17234 return 1;
17235 }
17236
17237
17238 static PyObject *_wrap_GREEN_get() {
17239 PyObject *pyobj;
17240
17241 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17242 return pyobj;
17243 }
17244
17245
17246 static int _wrap_CYAN_set(PyObject *) {
17247 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17248 return 1;
17249 }
17250
17251
17252 static PyObject *_wrap_CYAN_get() {
17253 PyObject *pyobj;
17254
17255 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17256 return pyobj;
17257 }
17258
17259
17260 static int _wrap_LIGHT_GREY_set(PyObject *) {
17261 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17262 return 1;
17263 }
17264
17265
17266 static PyObject *_wrap_LIGHT_GREY_get() {
17267 PyObject *pyobj;
17268
17269 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17270 return pyobj;
17271 }
17272
17273
17274 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
17275 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17276 return 1;
17277 }
17278
17279
17280 static PyObject *_wrap_STANDARD_CURSOR_get() {
17281 PyObject *pyobj;
17282
17283 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17284 return pyobj;
17285 }
17286
17287
17288 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
17289 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17290 return 1;
17291 }
17292
17293
17294 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17295 PyObject *pyobj;
17296
17297 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17298 return pyobj;
17299 }
17300
17301
17302 static int _wrap_CROSS_CURSOR_set(PyObject *) {
17303 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17304 return 1;
17305 }
17306
17307
17308 static PyObject *_wrap_CROSS_CURSOR_get() {
17309 PyObject *pyobj;
17310
17311 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17312 return pyobj;
17313 }
17314
17315
17316 static int _wrap_NullBitmap_set(PyObject *) {
17317 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17318 return 1;
17319 }
17320
17321
17322 static PyObject *_wrap_NullBitmap_get() {
17323 PyObject *pyobj;
17324
17325 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17326 return pyobj;
17327 }
17328
17329
17330 static int _wrap_NullIcon_set(PyObject *) {
17331 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17332 return 1;
17333 }
17334
17335
17336 static PyObject *_wrap_NullIcon_get() {
17337 PyObject *pyobj;
17338
17339 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17340 return pyobj;
17341 }
17342
17343
17344 static int _wrap_NullCursor_set(PyObject *) {
17345 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17346 return 1;
17347 }
17348
17349
17350 static PyObject *_wrap_NullCursor_get() {
17351 PyObject *pyobj;
17352
17353 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17354 return pyobj;
17355 }
17356
17357
17358 static int _wrap_NullPen_set(PyObject *) {
17359 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17360 return 1;
17361 }
17362
17363
17364 static PyObject *_wrap_NullPen_get() {
17365 PyObject *pyobj;
17366
17367 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17368 return pyobj;
17369 }
17370
17371
17372 static int _wrap_NullBrush_set(PyObject *) {
17373 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17374 return 1;
17375 }
17376
17377
17378 static PyObject *_wrap_NullBrush_get() {
17379 PyObject *pyobj;
17380
17381 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17382 return pyobj;
17383 }
17384
17385
17386 static int _wrap_NullPalette_set(PyObject *) {
17387 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17388 return 1;
17389 }
17390
17391
17392 static PyObject *_wrap_NullPalette_get() {
17393 PyObject *pyobj;
17394
17395 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17396 return pyobj;
17397 }
17398
17399
17400 static int _wrap_NullFont_set(PyObject *) {
17401 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17402 return 1;
17403 }
17404
17405
17406 static PyObject *_wrap_NullFont_get() {
17407 PyObject *pyobj;
17408
17409 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17410 return pyobj;
17411 }
17412
17413
17414 static int _wrap_NullColour_set(PyObject *) {
17415 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17416 return 1;
17417 }
17418
17419
17420 static PyObject *_wrap_NullColour_get() {
17421 PyObject *pyobj;
17422
17423 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17424 return pyobj;
17425 }
17426
17427
17428 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
17429 PyObject *resultobj;
17430 wxPenList *arg1 = (wxPenList *) 0 ;
17431 wxPen *arg2 = (wxPen *) 0 ;
17432 PyObject * obj0 = 0 ;
17433 PyObject * obj1 = 0 ;
17434 char *kwnames[] = {
17435 (char *) "self",(char *) "pen", NULL
17436 };
17437
17438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17443 {
17444 PyThreadState* __tstate = wxPyBeginAllowThreads();
17445 (arg1)->AddPen(arg2);
17446
17447 wxPyEndAllowThreads(__tstate);
17448 if (PyErr_Occurred()) SWIG_fail;
17449 }
17450 Py_INCREF(Py_None); resultobj = Py_None;
17451 return resultobj;
17452 fail:
17453 return NULL;
17454 }
17455
17456
17457 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
17458 PyObject *resultobj;
17459 wxPenList *arg1 = (wxPenList *) 0 ;
17460 wxColour *arg2 = 0 ;
17461 int arg3 ;
17462 int arg4 ;
17463 wxPen *result;
17464 wxColour temp2 ;
17465 PyObject * obj0 = 0 ;
17466 PyObject * obj1 = 0 ;
17467 PyObject * obj2 = 0 ;
17468 PyObject * obj3 = 0 ;
17469 char *kwnames[] = {
17470 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17471 };
17472
17473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17476 {
17477 arg2 = &temp2;
17478 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17479 }
17480 arg3 = (int)SWIG_As_int(obj2);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 arg4 = (int)SWIG_As_int(obj3);
17483 if (PyErr_Occurred()) SWIG_fail;
17484 {
17485 PyThreadState* __tstate = wxPyBeginAllowThreads();
17486 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17487
17488 wxPyEndAllowThreads(__tstate);
17489 if (PyErr_Occurred()) SWIG_fail;
17490 }
17491 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17492 return resultobj;
17493 fail:
17494 return NULL;
17495 }
17496
17497
17498 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
17499 PyObject *resultobj;
17500 wxPenList *arg1 = (wxPenList *) 0 ;
17501 wxPen *arg2 = (wxPen *) 0 ;
17502 PyObject * obj0 = 0 ;
17503 PyObject * obj1 = 0 ;
17504 char *kwnames[] = {
17505 (char *) "self",(char *) "pen", NULL
17506 };
17507
17508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17511 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17513 {
17514 PyThreadState* __tstate = wxPyBeginAllowThreads();
17515 (arg1)->RemovePen(arg2);
17516
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 Py_INCREF(Py_None); resultobj = Py_None;
17521 return resultobj;
17522 fail:
17523 return NULL;
17524 }
17525
17526
17527 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj;
17529 wxPenList *arg1 = (wxPenList *) 0 ;
17530 int result;
17531 PyObject * obj0 = 0 ;
17532 char *kwnames[] = {
17533 (char *) "self", NULL
17534 };
17535
17536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17539 {
17540 PyThreadState* __tstate = wxPyBeginAllowThreads();
17541 result = (int)(arg1)->GetCount();
17542
17543 wxPyEndAllowThreads(__tstate);
17544 if (PyErr_Occurred()) SWIG_fail;
17545 }
17546 resultobj = SWIG_From_int((int)result);
17547 return resultobj;
17548 fail:
17549 return NULL;
17550 }
17551
17552
17553 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
17554 PyObject *obj;
17555 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17556 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17557 Py_INCREF(obj);
17558 return Py_BuildValue((char *)"");
17559 }
17560 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17561 PyObject *resultobj;
17562 wxBrushList *arg1 = (wxBrushList *) 0 ;
17563 wxBrush *arg2 = (wxBrush *) 0 ;
17564 PyObject * obj0 = 0 ;
17565 PyObject * obj1 = 0 ;
17566 char *kwnames[] = {
17567 (char *) "self",(char *) "brush", NULL
17568 };
17569
17570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17573 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17575 {
17576 PyThreadState* __tstate = wxPyBeginAllowThreads();
17577 (arg1)->AddBrush(arg2);
17578
17579 wxPyEndAllowThreads(__tstate);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 }
17582 Py_INCREF(Py_None); resultobj = Py_None;
17583 return resultobj;
17584 fail:
17585 return NULL;
17586 }
17587
17588
17589 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17590 PyObject *resultobj;
17591 wxBrushList *arg1 = (wxBrushList *) 0 ;
17592 wxColour *arg2 = 0 ;
17593 int arg3 ;
17594 wxBrush *result;
17595 wxColour temp2 ;
17596 PyObject * obj0 = 0 ;
17597 PyObject * obj1 = 0 ;
17598 PyObject * obj2 = 0 ;
17599 char *kwnames[] = {
17600 (char *) "self",(char *) "colour",(char *) "style", NULL
17601 };
17602
17603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17606 {
17607 arg2 = &temp2;
17608 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17609 }
17610 arg3 = (int)SWIG_As_int(obj2);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 {
17613 PyThreadState* __tstate = wxPyBeginAllowThreads();
17614 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17615
17616 wxPyEndAllowThreads(__tstate);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17620 return resultobj;
17621 fail:
17622 return NULL;
17623 }
17624
17625
17626 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17627 PyObject *resultobj;
17628 wxBrushList *arg1 = (wxBrushList *) 0 ;
17629 wxBrush *arg2 = (wxBrush *) 0 ;
17630 PyObject * obj0 = 0 ;
17631 PyObject * obj1 = 0 ;
17632 char *kwnames[] = {
17633 (char *) "self",(char *) "brush", NULL
17634 };
17635
17636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17641 {
17642 PyThreadState* __tstate = wxPyBeginAllowThreads();
17643 (arg1)->RemoveBrush(arg2);
17644
17645 wxPyEndAllowThreads(__tstate);
17646 if (PyErr_Occurred()) SWIG_fail;
17647 }
17648 Py_INCREF(Py_None); resultobj = Py_None;
17649 return resultobj;
17650 fail:
17651 return NULL;
17652 }
17653
17654
17655 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17656 PyObject *resultobj;
17657 wxBrushList *arg1 = (wxBrushList *) 0 ;
17658 int result;
17659 PyObject * obj0 = 0 ;
17660 char *kwnames[] = {
17661 (char *) "self", NULL
17662 };
17663
17664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17667 {
17668 PyThreadState* __tstate = wxPyBeginAllowThreads();
17669 result = (int)(arg1)->GetCount();
17670
17671 wxPyEndAllowThreads(__tstate);
17672 if (PyErr_Occurred()) SWIG_fail;
17673 }
17674 resultobj = SWIG_From_int((int)result);
17675 return resultobj;
17676 fail:
17677 return NULL;
17678 }
17679
17680
17681 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
17682 PyObject *obj;
17683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17684 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17685 Py_INCREF(obj);
17686 return Py_BuildValue((char *)"");
17687 }
17688 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17689 PyObject *resultobj;
17690 wxColourDatabase *result;
17691 char *kwnames[] = {
17692 NULL
17693 };
17694
17695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17696 {
17697 if (!wxPyCheckForApp()) SWIG_fail;
17698 PyThreadState* __tstate = wxPyBeginAllowThreads();
17699 result = (wxColourDatabase *)new wxColourDatabase();
17700
17701 wxPyEndAllowThreads(__tstate);
17702 if (PyErr_Occurred()) SWIG_fail;
17703 }
17704 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17705 return resultobj;
17706 fail:
17707 return NULL;
17708 }
17709
17710
17711 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17712 PyObject *resultobj;
17713 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17714 PyObject * obj0 = 0 ;
17715 char *kwnames[] = {
17716 (char *) "self", NULL
17717 };
17718
17719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17722 {
17723 PyThreadState* __tstate = wxPyBeginAllowThreads();
17724 delete arg1;
17725
17726 wxPyEndAllowThreads(__tstate);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 }
17729 Py_INCREF(Py_None); resultobj = Py_None;
17730 return resultobj;
17731 fail:
17732 return NULL;
17733 }
17734
17735
17736 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
17737 PyObject *resultobj;
17738 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17739 wxString *arg2 = 0 ;
17740 wxColour result;
17741 bool temp2 = false ;
17742 PyObject * obj0 = 0 ;
17743 PyObject * obj1 = 0 ;
17744 char *kwnames[] = {
17745 (char *) "self",(char *) "name", NULL
17746 };
17747
17748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17751 {
17752 arg2 = wxString_in_helper(obj1);
17753 if (arg2 == NULL) SWIG_fail;
17754 temp2 = true;
17755 }
17756 {
17757 PyThreadState* __tstate = wxPyBeginAllowThreads();
17758 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17759
17760 wxPyEndAllowThreads(__tstate);
17761 if (PyErr_Occurred()) SWIG_fail;
17762 }
17763 {
17764 wxColour * resultptr;
17765 resultptr = new wxColour((wxColour &) result);
17766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17767 }
17768 {
17769 if (temp2)
17770 delete arg2;
17771 }
17772 return resultobj;
17773 fail:
17774 {
17775 if (temp2)
17776 delete arg2;
17777 }
17778 return NULL;
17779 }
17780
17781
17782 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
17783 PyObject *resultobj;
17784 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17785 wxColour *arg2 = 0 ;
17786 wxString result;
17787 wxColour temp2 ;
17788 PyObject * obj0 = 0 ;
17789 PyObject * obj1 = 0 ;
17790 char *kwnames[] = {
17791 (char *) "self",(char *) "colour", NULL
17792 };
17793
17794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17797 {
17798 arg2 = &temp2;
17799 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17800 }
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 {
17809 #if wxUSE_UNICODE
17810 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17811 #else
17812 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17813 #endif
17814 }
17815 return resultobj;
17816 fail:
17817 return NULL;
17818 }
17819
17820
17821 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
17822 PyObject *resultobj;
17823 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17824 wxString *arg2 = 0 ;
17825 wxColour *arg3 = 0 ;
17826 bool temp2 = false ;
17827 wxColour temp3 ;
17828 PyObject * obj0 = 0 ;
17829 PyObject * obj1 = 0 ;
17830 PyObject * obj2 = 0 ;
17831 char *kwnames[] = {
17832 (char *) "self",(char *) "name",(char *) "colour", NULL
17833 };
17834
17835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17838 {
17839 arg2 = wxString_in_helper(obj1);
17840 if (arg2 == NULL) SWIG_fail;
17841 temp2 = true;
17842 }
17843 {
17844 arg3 = &temp3;
17845 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17846 }
17847 {
17848 PyThreadState* __tstate = wxPyBeginAllowThreads();
17849 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17850
17851 wxPyEndAllowThreads(__tstate);
17852 if (PyErr_Occurred()) SWIG_fail;
17853 }
17854 Py_INCREF(Py_None); resultobj = Py_None;
17855 {
17856 if (temp2)
17857 delete arg2;
17858 }
17859 return resultobj;
17860 fail:
17861 {
17862 if (temp2)
17863 delete arg2;
17864 }
17865 return NULL;
17866 }
17867
17868
17869 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
17870 PyObject *resultobj;
17871 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17872 wxString *arg2 = 0 ;
17873 int arg3 ;
17874 int arg4 ;
17875 int arg5 ;
17876 bool temp2 = false ;
17877 PyObject * obj0 = 0 ;
17878 PyObject * obj1 = 0 ;
17879 PyObject * obj2 = 0 ;
17880 PyObject * obj3 = 0 ;
17881 PyObject * obj4 = 0 ;
17882 char *kwnames[] = {
17883 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17884 };
17885
17886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17889 {
17890 arg2 = wxString_in_helper(obj1);
17891 if (arg2 == NULL) SWIG_fail;
17892 temp2 = true;
17893 }
17894 arg3 = (int)SWIG_As_int(obj2);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 arg4 = (int)SWIG_As_int(obj3);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 arg5 = (int)SWIG_As_int(obj4);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 {
17901 PyThreadState* __tstate = wxPyBeginAllowThreads();
17902 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17903
17904 wxPyEndAllowThreads(__tstate);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 }
17907 Py_INCREF(Py_None); resultobj = Py_None;
17908 {
17909 if (temp2)
17910 delete arg2;
17911 }
17912 return resultobj;
17913 fail:
17914 {
17915 if (temp2)
17916 delete arg2;
17917 }
17918 return NULL;
17919 }
17920
17921
17922 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
17923 PyObject *obj;
17924 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17925 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17926 Py_INCREF(obj);
17927 return Py_BuildValue((char *)"");
17928 }
17929 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
17930 PyObject *resultobj;
17931 wxFontList *arg1 = (wxFontList *) 0 ;
17932 wxFont *arg2 = (wxFont *) 0 ;
17933 PyObject * obj0 = 0 ;
17934 PyObject * obj1 = 0 ;
17935 char *kwnames[] = {
17936 (char *) "self",(char *) "font", NULL
17937 };
17938
17939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17942 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 (arg1)->AddFont(arg2);
17947
17948 wxPyEndAllowThreads(__tstate);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 Py_INCREF(Py_None); resultobj = Py_None;
17952 return resultobj;
17953 fail:
17954 return NULL;
17955 }
17956
17957
17958 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
17959 PyObject *resultobj;
17960 wxFontList *arg1 = (wxFontList *) 0 ;
17961 int arg2 ;
17962 int arg3 ;
17963 int arg4 ;
17964 int arg5 ;
17965 bool arg6 = (bool) false ;
17966 wxString const &arg7_defvalue = wxPyEmptyString ;
17967 wxString *arg7 = (wxString *) &arg7_defvalue ;
17968 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17969 wxFont *result;
17970 bool temp7 = false ;
17971 PyObject * obj0 = 0 ;
17972 PyObject * obj1 = 0 ;
17973 PyObject * obj2 = 0 ;
17974 PyObject * obj3 = 0 ;
17975 PyObject * obj4 = 0 ;
17976 PyObject * obj5 = 0 ;
17977 PyObject * obj6 = 0 ;
17978 PyObject * obj7 = 0 ;
17979 char *kwnames[] = {
17980 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17981 };
17982
17983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17986 arg2 = (int)SWIG_As_int(obj1);
17987 if (PyErr_Occurred()) SWIG_fail;
17988 arg3 = (int)SWIG_As_int(obj2);
17989 if (PyErr_Occurred()) SWIG_fail;
17990 arg4 = (int)SWIG_As_int(obj3);
17991 if (PyErr_Occurred()) SWIG_fail;
17992 arg5 = (int)SWIG_As_int(obj4);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 if (obj5) {
17995 arg6 = (bool)SWIG_As_bool(obj5);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 if (obj6) {
17999 {
18000 arg7 = wxString_in_helper(obj6);
18001 if (arg7 == NULL) SWIG_fail;
18002 temp7 = true;
18003 }
18004 }
18005 if (obj7) {
18006 arg8 = (int)SWIG_As_int(obj7);
18007 if (PyErr_Occurred()) SWIG_fail;
18008 }
18009 {
18010 PyThreadState* __tstate = wxPyBeginAllowThreads();
18011 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18012
18013 wxPyEndAllowThreads(__tstate);
18014 if (PyErr_Occurred()) SWIG_fail;
18015 }
18016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18017 {
18018 if (temp7)
18019 delete arg7;
18020 }
18021 return resultobj;
18022 fail:
18023 {
18024 if (temp7)
18025 delete arg7;
18026 }
18027 return NULL;
18028 }
18029
18030
18031 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
18032 PyObject *resultobj;
18033 wxFontList *arg1 = (wxFontList *) 0 ;
18034 wxFont *arg2 = (wxFont *) 0 ;
18035 PyObject * obj0 = 0 ;
18036 PyObject * obj1 = 0 ;
18037 char *kwnames[] = {
18038 (char *) "self",(char *) "font", NULL
18039 };
18040
18041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18044 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 (arg1)->RemoveFont(arg2);
18049
18050 wxPyEndAllowThreads(__tstate);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
18053 Py_INCREF(Py_None); resultobj = Py_None;
18054 return resultobj;
18055 fail:
18056 return NULL;
18057 }
18058
18059
18060 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
18061 PyObject *resultobj;
18062 wxFontList *arg1 = (wxFontList *) 0 ;
18063 int result;
18064 PyObject * obj0 = 0 ;
18065 char *kwnames[] = {
18066 (char *) "self", NULL
18067 };
18068
18069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18072 {
18073 PyThreadState* __tstate = wxPyBeginAllowThreads();
18074 result = (int)(arg1)->GetCount();
18075
18076 wxPyEndAllowThreads(__tstate);
18077 if (PyErr_Occurred()) SWIG_fail;
18078 }
18079 resultobj = SWIG_From_int((int)result);
18080 return resultobj;
18081 fail:
18082 return NULL;
18083 }
18084
18085
18086 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
18087 PyObject *obj;
18088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18089 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18090 Py_INCREF(obj);
18091 return Py_BuildValue((char *)"");
18092 }
18093 static int _wrap_TheFontList_set(PyObject *) {
18094 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18095 return 1;
18096 }
18097
18098
18099 static PyObject *_wrap_TheFontList_get() {
18100 PyObject *pyobj;
18101
18102 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18103 return pyobj;
18104 }
18105
18106
18107 static int _wrap_ThePenList_set(PyObject *) {
18108 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18109 return 1;
18110 }
18111
18112
18113 static PyObject *_wrap_ThePenList_get() {
18114 PyObject *pyobj;
18115
18116 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18117 return pyobj;
18118 }
18119
18120
18121 static int _wrap_TheBrushList_set(PyObject *) {
18122 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18123 return 1;
18124 }
18125
18126
18127 static PyObject *_wrap_TheBrushList_get() {
18128 PyObject *pyobj;
18129
18130 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18131 return pyobj;
18132 }
18133
18134
18135 static int _wrap_TheColourDatabase_set(PyObject *) {
18136 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18137 return 1;
18138 }
18139
18140
18141 static PyObject *_wrap_TheColourDatabase_get() {
18142 PyObject *pyobj;
18143
18144 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18145 return pyobj;
18146 }
18147
18148
18149 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
18150 PyObject *resultobj;
18151 wxEffects *result;
18152 char *kwnames[] = {
18153 NULL
18154 };
18155
18156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18157 {
18158 PyThreadState* __tstate = wxPyBeginAllowThreads();
18159 result = (wxEffects *)new wxEffects();
18160
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj;
18173 wxEffects *arg1 = (wxEffects *) 0 ;
18174 wxColour result;
18175 PyObject * obj0 = 0 ;
18176 char *kwnames[] = {
18177 (char *) "self", NULL
18178 };
18179
18180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 result = ((wxEffects const *)arg1)->GetHighlightColour();
18186
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 {
18191 wxColour * resultptr;
18192 resultptr = new wxColour((wxColour &) result);
18193 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18194 }
18195 return resultobj;
18196 fail:
18197 return NULL;
18198 }
18199
18200
18201 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18202 PyObject *resultobj;
18203 wxEffects *arg1 = (wxEffects *) 0 ;
18204 wxColour result;
18205 PyObject * obj0 = 0 ;
18206 char *kwnames[] = {
18207 (char *) "self", NULL
18208 };
18209
18210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18213 {
18214 PyThreadState* __tstate = wxPyBeginAllowThreads();
18215 result = ((wxEffects const *)arg1)->GetLightShadow();
18216
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 {
18221 wxColour * resultptr;
18222 resultptr = new wxColour((wxColour &) result);
18223 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18224 }
18225 return resultobj;
18226 fail:
18227 return NULL;
18228 }
18229
18230
18231 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18232 PyObject *resultobj;
18233 wxEffects *arg1 = (wxEffects *) 0 ;
18234 wxColour result;
18235 PyObject * obj0 = 0 ;
18236 char *kwnames[] = {
18237 (char *) "self", NULL
18238 };
18239
18240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18243 {
18244 PyThreadState* __tstate = wxPyBeginAllowThreads();
18245 result = ((wxEffects const *)arg1)->GetFaceColour();
18246
18247 wxPyEndAllowThreads(__tstate);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 }
18250 {
18251 wxColour * resultptr;
18252 resultptr = new wxColour((wxColour &) result);
18253 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18254 }
18255 return resultobj;
18256 fail:
18257 return NULL;
18258 }
18259
18260
18261 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18262 PyObject *resultobj;
18263 wxEffects *arg1 = (wxEffects *) 0 ;
18264 wxColour result;
18265 PyObject * obj0 = 0 ;
18266 char *kwnames[] = {
18267 (char *) "self", NULL
18268 };
18269
18270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18273 {
18274 PyThreadState* __tstate = wxPyBeginAllowThreads();
18275 result = ((wxEffects const *)arg1)->GetMediumShadow();
18276
18277 wxPyEndAllowThreads(__tstate);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 }
18280 {
18281 wxColour * resultptr;
18282 resultptr = new wxColour((wxColour &) result);
18283 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18284 }
18285 return resultobj;
18286 fail:
18287 return NULL;
18288 }
18289
18290
18291 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj;
18293 wxEffects *arg1 = (wxEffects *) 0 ;
18294 wxColour result;
18295 PyObject * obj0 = 0 ;
18296 char *kwnames[] = {
18297 (char *) "self", NULL
18298 };
18299
18300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18303 {
18304 PyThreadState* __tstate = wxPyBeginAllowThreads();
18305 result = ((wxEffects const *)arg1)->GetDarkShadow();
18306
18307 wxPyEndAllowThreads(__tstate);
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 {
18311 wxColour * resultptr;
18312 resultptr = new wxColour((wxColour &) result);
18313 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18314 }
18315 return resultobj;
18316 fail:
18317 return NULL;
18318 }
18319
18320
18321 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18322 PyObject *resultobj;
18323 wxEffects *arg1 = (wxEffects *) 0 ;
18324 wxColour *arg2 = 0 ;
18325 wxColour temp2 ;
18326 PyObject * obj0 = 0 ;
18327 PyObject * obj1 = 0 ;
18328 char *kwnames[] = {
18329 (char *) "self",(char *) "c", NULL
18330 };
18331
18332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18335 {
18336 arg2 = &temp2;
18337 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18338 }
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18342
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 Py_INCREF(Py_None); resultobj = Py_None;
18347 return resultobj;
18348 fail:
18349 return NULL;
18350 }
18351
18352
18353 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18354 PyObject *resultobj;
18355 wxEffects *arg1 = (wxEffects *) 0 ;
18356 wxColour *arg2 = 0 ;
18357 wxColour temp2 ;
18358 PyObject * obj0 = 0 ;
18359 PyObject * obj1 = 0 ;
18360 char *kwnames[] = {
18361 (char *) "self",(char *) "c", NULL
18362 };
18363
18364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18367 {
18368 arg2 = &temp2;
18369 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18370 }
18371 {
18372 PyThreadState* __tstate = wxPyBeginAllowThreads();
18373 (arg1)->SetLightShadow((wxColour const &)*arg2);
18374
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 Py_INCREF(Py_None); resultobj = Py_None;
18379 return resultobj;
18380 fail:
18381 return NULL;
18382 }
18383
18384
18385 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18386 PyObject *resultobj;
18387 wxEffects *arg1 = (wxEffects *) 0 ;
18388 wxColour *arg2 = 0 ;
18389 wxColour temp2 ;
18390 PyObject * obj0 = 0 ;
18391 PyObject * obj1 = 0 ;
18392 char *kwnames[] = {
18393 (char *) "self",(char *) "c", NULL
18394 };
18395
18396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18399 {
18400 arg2 = &temp2;
18401 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18402 }
18403 {
18404 PyThreadState* __tstate = wxPyBeginAllowThreads();
18405 (arg1)->SetFaceColour((wxColour const &)*arg2);
18406
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 Py_INCREF(Py_None); resultobj = Py_None;
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj;
18419 wxEffects *arg1 = (wxEffects *) 0 ;
18420 wxColour *arg2 = 0 ;
18421 wxColour temp2 ;
18422 PyObject * obj0 = 0 ;
18423 PyObject * obj1 = 0 ;
18424 char *kwnames[] = {
18425 (char *) "self",(char *) "c", NULL
18426 };
18427
18428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18431 {
18432 arg2 = &temp2;
18433 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18434 }
18435 {
18436 PyThreadState* __tstate = wxPyBeginAllowThreads();
18437 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18438
18439 wxPyEndAllowThreads(__tstate);
18440 if (PyErr_Occurred()) SWIG_fail;
18441 }
18442 Py_INCREF(Py_None); resultobj = Py_None;
18443 return resultobj;
18444 fail:
18445 return NULL;
18446 }
18447
18448
18449 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj;
18451 wxEffects *arg1 = (wxEffects *) 0 ;
18452 wxColour *arg2 = 0 ;
18453 wxColour temp2 ;
18454 PyObject * obj0 = 0 ;
18455 PyObject * obj1 = 0 ;
18456 char *kwnames[] = {
18457 (char *) "self",(char *) "c", NULL
18458 };
18459
18460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18463 {
18464 arg2 = &temp2;
18465 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18466 }
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18470
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 Py_INCREF(Py_None); resultobj = Py_None;
18475 return resultobj;
18476 fail:
18477 return NULL;
18478 }
18479
18480
18481 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18482 PyObject *resultobj;
18483 wxEffects *arg1 = (wxEffects *) 0 ;
18484 wxColour *arg2 = 0 ;
18485 wxColour *arg3 = 0 ;
18486 wxColour *arg4 = 0 ;
18487 wxColour *arg5 = 0 ;
18488 wxColour *arg6 = 0 ;
18489 wxColour temp2 ;
18490 wxColour temp3 ;
18491 wxColour temp4 ;
18492 wxColour temp5 ;
18493 wxColour temp6 ;
18494 PyObject * obj0 = 0 ;
18495 PyObject * obj1 = 0 ;
18496 PyObject * obj2 = 0 ;
18497 PyObject * obj3 = 0 ;
18498 PyObject * obj4 = 0 ;
18499 PyObject * obj5 = 0 ;
18500 char *kwnames[] = {
18501 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18502 };
18503
18504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18507 {
18508 arg2 = &temp2;
18509 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18510 }
18511 {
18512 arg3 = &temp3;
18513 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18514 }
18515 {
18516 arg4 = &temp4;
18517 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18518 }
18519 {
18520 arg5 = &temp5;
18521 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18522 }
18523 {
18524 arg6 = &temp6;
18525 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18526 }
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18530
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 Py_INCREF(Py_None); resultobj = Py_None;
18535 return resultobj;
18536 fail:
18537 return NULL;
18538 }
18539
18540
18541 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
18542 PyObject *resultobj;
18543 wxEffects *arg1 = (wxEffects *) 0 ;
18544 wxDC *arg2 = 0 ;
18545 wxRect *arg3 = 0 ;
18546 int arg4 = (int) 1 ;
18547 wxRect temp3 ;
18548 PyObject * obj0 = 0 ;
18549 PyObject * obj1 = 0 ;
18550 PyObject * obj2 = 0 ;
18551 PyObject * obj3 = 0 ;
18552 char *kwnames[] = {
18553 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18554 };
18555
18556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18559 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18560 SWIG_POINTER_EXCEPTION | 0)) == -1)
18561 SWIG_fail;
18562 if (arg2 == NULL) {
18563 PyErr_SetString(PyExc_TypeError,"null reference");
18564 SWIG_fail;
18565 }
18566 {
18567 arg3 = &temp3;
18568 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18569 }
18570 if (obj3) {
18571 arg4 = (int)SWIG_As_int(obj3);
18572 if (PyErr_Occurred()) SWIG_fail;
18573 }
18574 {
18575 PyThreadState* __tstate = wxPyBeginAllowThreads();
18576 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18577
18578 wxPyEndAllowThreads(__tstate);
18579 if (PyErr_Occurred()) SWIG_fail;
18580 }
18581 Py_INCREF(Py_None); resultobj = Py_None;
18582 return resultobj;
18583 fail:
18584 return NULL;
18585 }
18586
18587
18588 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18589 PyObject *resultobj;
18590 wxEffects *arg1 = (wxEffects *) 0 ;
18591 wxRect *arg2 = 0 ;
18592 wxDC *arg3 = 0 ;
18593 wxBitmap *arg4 = 0 ;
18594 bool result;
18595 wxRect temp2 ;
18596 PyObject * obj0 = 0 ;
18597 PyObject * obj1 = 0 ;
18598 PyObject * obj2 = 0 ;
18599 PyObject * obj3 = 0 ;
18600 char *kwnames[] = {
18601 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18602 };
18603
18604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18607 {
18608 arg2 = &temp2;
18609 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18610 }
18611 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18612 SWIG_POINTER_EXCEPTION | 0)) == -1)
18613 SWIG_fail;
18614 if (arg3 == NULL) {
18615 PyErr_SetString(PyExc_TypeError,"null reference");
18616 SWIG_fail;
18617 }
18618 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18619 SWIG_POINTER_EXCEPTION | 0)) == -1)
18620 SWIG_fail;
18621 if (arg4 == NULL) {
18622 PyErr_SetString(PyExc_TypeError,"null reference");
18623 SWIG_fail;
18624 }
18625 {
18626 PyThreadState* __tstate = wxPyBeginAllowThreads();
18627 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18628
18629 wxPyEndAllowThreads(__tstate);
18630 if (PyErr_Occurred()) SWIG_fail;
18631 }
18632 {
18633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18634 }
18635 return resultobj;
18636 fail:
18637 return NULL;
18638 }
18639
18640
18641 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
18642 PyObject *obj;
18643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18644 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18645 Py_INCREF(obj);
18646 return Py_BuildValue((char *)"");
18647 }
18648 static PyMethodDef SwigMethods[] = {
18649 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18650 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18651 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18652 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18653 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18654 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18655 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18656 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18657 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18658 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18659 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18660 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18661 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18662 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18663 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18664 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18665 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18666 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18667 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18668 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18669 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18670 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18671 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18672 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18673 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18674 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18675 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18676 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18677 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18678 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18679 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18680 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18681 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18682 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18683 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18684 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18685 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18686 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18687 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18688 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18689 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18690 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18691 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18692 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18693 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18694 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18695 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18696 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18697 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18698 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18699 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18700 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18701 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18702 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18703 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18704 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18705 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18706 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18707 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18708 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18709 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18710 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18711 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18712 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18713 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18714 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18715 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18716 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18717 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18718 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18719 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18720 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18721 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18722 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18723 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18724 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18725 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18726 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18727 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18728 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18729 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18730 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18731 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18732 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18733 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18734 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18735 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18736 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18737 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18738 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18739 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18740 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18741 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18742 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18743 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18744 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18745 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18746 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18747 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18748 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18749 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18750 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18751 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18752 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18753 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18754 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18755 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18756 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18757 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18758 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18759 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18760 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18761 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18762 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18763 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18764 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18765 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18766 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18767 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18768 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18769 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18770 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18771 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18772 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18773 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18774 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18775 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18776 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18777 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18778 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18779 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18780 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18781 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18782 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18783 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18784 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18785 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18786 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18787 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18788 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18789 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18790 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18791 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18792 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18793 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18794 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18795 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18796 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18797 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18798 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18799 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18800 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18801 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18802 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18803 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18804 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18805 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18806 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18807 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18808 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18809 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18810 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18811 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18812 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18813 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18814 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18815 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18816 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18817 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18818 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18819 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18820 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18821 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18822 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18823 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18824 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18825 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18826 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18827 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18828 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18829 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18830 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18831 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18832 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18833 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18834 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18835 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18836 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18837 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18838 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18839 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18840 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18841 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18842 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18843 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18844 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18845 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18846 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18847 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18848 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18849 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18850 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18851 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18852 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18853 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18854 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18855 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18856 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18857 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18858 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18859 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18860 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18861 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18862 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18863 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18864 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18865 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18866 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18867 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18868 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18869 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18870 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18871 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18872 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18873 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18874 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
18875 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
18876 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18877 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18878 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18879 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18880 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
18881 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL },
18882 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18883 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18884 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18885 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18886 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18887 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18888 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18889 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18890 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18891 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18892 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18893 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
18894 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18895 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18896 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18897 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18898 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18899 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18900 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18901 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18902 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18903 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18904 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18905 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18906 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18907 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18908 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18909 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18910 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
18911 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18912 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18913 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18914 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18915 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18916 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18917 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18918 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
18919 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
18920 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
18921 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
18922 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
18923 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
18924 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
18925 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
18926 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18927 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18928 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
18929 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
18930 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18931 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18932 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18933 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18934 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18935 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18936 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
18937 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
18938 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
18939 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
18940 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
18941 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18942 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
18943 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18944 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18945 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
18946 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
18947 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
18948 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18949 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
18950 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18951 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18952 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18953 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
18954 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18955 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18956 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
18957 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
18958 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
18959 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18960 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18961 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
18962 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18963 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18964 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18965 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
18966 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18967 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
18968 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18969 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
18970 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18971 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
18972 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
18973 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
18974 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18975 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18976 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18977 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18978 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18979 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18980 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18981 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18982 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18983 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
18984 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18985 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
18986 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
18987 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18988 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18989 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18990 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18991 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18992 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
18993 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18994 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
18995 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18996 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
18997 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18998 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18999 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19000 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19001 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19002 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
19003 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
19004 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19005 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19006 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
19007 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19008 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19009 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19010 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
19011 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
19012 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19013 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19014 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19015 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19016 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19017 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19018 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19019 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19020 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19021 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19022 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19023 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19024 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19025 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19026 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
19027 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19028 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19029 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
19030 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19031 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
19032 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
19033 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19034 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19035 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
19036 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
19037 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19038 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19039 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19040 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19041 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19042 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
19043 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19044 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19045 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19046 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19047 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19048 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19049 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19050 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19051 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19052 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19053 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19054 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19055 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19056 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19057 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19058 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19059 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19060 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19061 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19062 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19063 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19064 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19065 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19066 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19067 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
19068 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19069 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19070 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19071 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19072 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19073 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19074 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19075 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
19076 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
19077 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
19078 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
19079 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19080 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
19081 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
19082 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
19083 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
19084 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
19085 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
19086 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
19087 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
19088 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
19089 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
19090 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
19091 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
19092 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
19093 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
19094 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
19095 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19096 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
19097 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
19098 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
19099 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19100 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19101 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
19102 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
19103 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
19104 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19105 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
19106 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
19107 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
19108 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
19109 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
19110 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
19111 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19112 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19113 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19114 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19115 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
19116 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19117 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19118 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19119 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
19120 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19121 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19122 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19123 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
19124 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
19125 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
19126 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
19127 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
19128 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
19129 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19130 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19131 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
19132 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
19133 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19134 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
19135 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
19136 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
19137 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
19138 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
19139 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19140 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
19141 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
19142 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
19143 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
19144 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19145 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
19146 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19147 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19148 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19149 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19150 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
19151 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19152 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19153 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
19154 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
19155 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
19156 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
19157 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
19158 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
19159 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
19160 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
19161 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19162 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
19163 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
19164 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19165 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19166 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19167 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19168 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19169 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19170 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19171 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19172 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19173 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19174 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19175 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19176 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19177 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19178 { NULL, NULL, 0, NULL }
19179 };
19180
19181
19182 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19183
19184 static void *_p_wxControlTo_p_wxWindow(void *x) {
19185 return (void *)((wxWindow *) ((wxControl *) x));
19186 }
19187 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19188 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19189 }
19190 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19191 return (void *)((wxWindow *) ((wxMenuBar *) x));
19192 }
19193 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19194 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19195 }
19196 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19197 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19198 }
19199 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19200 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19201 }
19202 static void *_p_wxPenTo_p_wxObject(void *x) {
19203 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19204 }
19205 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19206 return (void *)((wxObject *) ((wxRegionIterator *) x));
19207 }
19208 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19209 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19210 }
19211 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19212 return (void *)((wxObject *) ((wxSizerItem *) x));
19213 }
19214 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19215 return (void *)((wxObject *) ((wxColourDatabase *) x));
19216 }
19217 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19218 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19219 }
19220 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19221 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19222 }
19223 static void *_p_wxIconTo_p_wxObject(void *x) {
19224 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19225 }
19226 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19227 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19228 }
19229 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19230 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19231 }
19232 static void *_p_wxSizerTo_p_wxObject(void *x) {
19233 return (void *)((wxObject *) ((wxSizer *) x));
19234 }
19235 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19236 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19237 }
19238 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19239 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19240 }
19241 static void *_p_wxPenListTo_p_wxObject(void *x) {
19242 return (void *)((wxObject *) ((wxPenList *) x));
19243 }
19244 static void *_p_wxEventTo_p_wxObject(void *x) {
19245 return (void *)((wxObject *) ((wxEvent *) x));
19246 }
19247 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19248 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19249 }
19250 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19251 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19252 }
19253 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19254 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19255 }
19256 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19257 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19258 }
19259 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19260 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19261 }
19262 static void *_p_wxDCTo_p_wxObject(void *x) {
19263 return (void *)((wxObject *) ((wxDC *) x));
19264 }
19265 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19266 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19267 }
19268 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19269 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19270 }
19271 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19272 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19273 }
19274 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19275 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19276 }
19277 static void *_p_wxControlTo_p_wxObject(void *x) {
19278 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19279 }
19280 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19281 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19282 }
19283 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19284 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19285 }
19286 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19287 return (void *)((wxObject *) ((wxFSFile *) x));
19288 }
19289 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19290 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19291 }
19292 static void *_p_wxRegionTo_p_wxObject(void *x) {
19293 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19294 }
19295 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19296 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19297 }
19298 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19299 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19300 }
19301 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19302 return (void *)((wxObject *) ((wxGDIObject *) x));
19303 }
19304 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19305 return (void *)((wxObject *) ((wxEffects *) x));
19306 }
19307 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19308 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19309 }
19310 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19311 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19312 }
19313 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19314 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19315 }
19316 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19317 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19318 }
19319 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19320 return (void *)((wxObject *) ((wxMenuItem *) x));
19321 }
19322 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19323 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19324 }
19325 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19326 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19327 }
19328 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19329 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19330 }
19331 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19332 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19333 }
19334 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19335 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19336 }
19337 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19338 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19339 }
19340 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19341 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19342 }
19343 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19344 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19345 }
19346 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19347 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19348 }
19349 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19350 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19351 }
19352 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19353 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19354 }
19355 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19356 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19357 }
19358 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19359 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19360 }
19361 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19362 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19363 }
19364 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19365 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19366 }
19367 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19368 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19369 }
19370 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19371 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19372 }
19373 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19374 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19375 }
19376 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19377 return (void *)((wxObject *) ((wxImageHandler *) x));
19378 }
19379 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19380 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19381 }
19382 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19383 return (void *)((wxObject *) ((wxEvtHandler *) x));
19384 }
19385 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19386 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19387 }
19388 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19389 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19390 }
19391 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19392 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19393 }
19394 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19395 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19396 }
19397 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19398 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19399 }
19400 static void *_p_wxImageTo_p_wxObject(void *x) {
19401 return (void *)((wxObject *) ((wxImage *) x));
19402 }
19403 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19404 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19405 }
19406 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19407 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19408 }
19409 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19410 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19411 }
19412 static void *_p_wxImageListTo_p_wxObject(void *x) {
19413 return (void *)((wxObject *) ((wxImageList *) x));
19414 }
19415 static void *_p_wxCursorTo_p_wxObject(void *x) {
19416 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19417 }
19418 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19419 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19420 }
19421 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19422 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19423 }
19424 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19425 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19426 }
19427 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19428 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19429 }
19430 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19431 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19432 }
19433 static void *_p_wxWindowTo_p_wxObject(void *x) {
19434 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19435 }
19436 static void *_p_wxMenuTo_p_wxObject(void *x) {
19437 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19438 }
19439 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19440 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19441 }
19442 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19443 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19444 }
19445 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19446 return (void *)((wxObject *) ((wxBrushList *) x));
19447 }
19448 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19449 return (void *)((wxObject *) ((wxFileSystem *) x));
19450 }
19451 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19452 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19453 }
19454 static void *_p_wxMaskTo_p_wxObject(void *x) {
19455 return (void *)((wxObject *) ((wxMask *) x));
19456 }
19457 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19458 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19459 }
19460 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19461 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19462 }
19463 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19464 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19465 }
19466 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19467 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19468 }
19469 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19470 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19471 }
19472 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19473 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19474 }
19475 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19476 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19477 }
19478 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19479 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19480 }
19481 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19482 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19483 }
19484 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19485 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19486 }
19487 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19488 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19489 }
19490 static void *_p_wxFontTo_p_wxObject(void *x) {
19491 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19492 }
19493 static void *_p_wxBrushTo_p_wxObject(void *x) {
19494 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19495 }
19496 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19497 return (void *)((wxObject *) ((wxMetaFile *) x));
19498 }
19499 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19500 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19501 }
19502 static void *_p_wxColourTo_p_wxObject(void *x) {
19503 return (void *)((wxObject *) ((wxColour *) x));
19504 }
19505 static void *_p_wxFontListTo_p_wxObject(void *x) {
19506 return (void *)((wxObject *) ((wxFontList *) x));
19507 }
19508 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19509 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19510 }
19511 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19512 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19513 }
19514 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19515 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19516 }
19517 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19518 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19519 }
19520 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19521 return (void *)((wxDC *) ((wxScreenDC *) x));
19522 }
19523 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19524 return (void *)((wxDC *) ((wxMirrorDC *) x));
19525 }
19526 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19527 return (void *)((wxDC *) ((wxMemoryDC *) x));
19528 }
19529 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19530 return (void *)((wxDC *) ((wxWindowDC *) x));
19531 }
19532 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19533 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19534 }
19535 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19536 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19537 }
19538 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19539 return (void *)((wxDC *) ((wxClientDC *) x));
19540 }
19541 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19542 return (void *)((wxDC *) ((wxPaintDC *) x));
19543 }
19544 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19545 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19546 }
19547 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19548 return (void *)((wxDC *) ((wxPrinterDC *) x));
19549 }
19550 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19551 return (void *)((wxGDIObject *) ((wxIcon *) x));
19552 }
19553 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19554 return (void *)((wxGDIObject *) ((wxPalette *) x));
19555 }
19556 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19557 return (void *)((wxGDIObject *) ((wxPen *) x));
19558 }
19559 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19560 return (void *)((wxGDIObject *) ((wxFont *) x));
19561 }
19562 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19563 return (void *)((wxGDIObject *) ((wxCursor *) x));
19564 }
19565 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19566 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19567 }
19568 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19569 return (void *)((wxGDIObject *) ((wxRegion *) x));
19570 }
19571 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19572 return (void *)((wxGDIObject *) ((wxBrush *) x));
19573 }
19574 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}};
19575 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}};
19576 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}};
19577 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}};
19578 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}};
19579 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}};
19580 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}};
19581 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}};
19582 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}};
19583 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}};
19584 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}};
19585 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}};
19586 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}};
19587 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}};
19588 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}};
19589 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}};
19590 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}};
19591 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}};
19592 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}};
19593 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}};
19594 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}};
19595 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}};
19596 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}};
19597 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}};
19598 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}};
19599 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}};
19600 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}};
19601 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}};
19602 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}};
19603 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}};
19604 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}};
19605 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}};
19606 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}};
19607 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}};
19608 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}};
19609 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}};
19610 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}};
19611 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}};
19612 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}};
19613 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}};
19614 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}};
19615 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}};
19616 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}};
19617 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}};
19618 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}};
19619 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}};
19620 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}};
19621 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}};
19622 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}};
19623 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}};
19624 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}};
19625 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}};
19626 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}};
19627 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}};
19628 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}};
19629
19630 static swig_type_info *swig_types_initial[] = {
19631 _swigt__p_wxPostScriptDC,
19632 _swigt__p_wxBrush,
19633 _swigt__p_wxColour,
19634 _swigt__p_wxDC,
19635 _swigt__p_wxMirrorDC,
19636 _swigt__p_byte,
19637 _swigt__p_wxPyFontEnumerator,
19638 _swigt__p_char,
19639 _swigt__p_wxIconLocation,
19640 _swigt__p_wxImage,
19641 _swigt__p_wxMetaFileDC,
19642 _swigt__p_wxMask,
19643 _swigt__p_wxSize,
19644 _swigt__p_wxFont,
19645 _swigt__p_wxWindow,
19646 _swigt__p_double,
19647 _swigt__p_wxMemoryDC,
19648 _swigt__p_wxFontMapper,
19649 _swigt__p_wxEffects,
19650 _swigt__p_wxNativeEncodingInfo,
19651 _swigt__p_wxPalette,
19652 _swigt__p_wxBitmap,
19653 _swigt__p_wxObject,
19654 _swigt__p_wxRegionIterator,
19655 _swigt__p_wxRect,
19656 _swigt__p_wxString,
19657 _swigt__p_wxPrinterDC,
19658 _swigt__p_wxIconBundle,
19659 _swigt__p_wxPoint,
19660 _swigt__p_wxDash,
19661 _swigt__p_wxScreenDC,
19662 _swigt__p_wxCursor,
19663 _swigt__p_wxClientDC,
19664 _swigt__p_wxBufferedDC,
19665 _swigt__p_wxImageList,
19666 _swigt__p_unsigned_char,
19667 _swigt__p_wxGDIObject,
19668 _swigt__p_wxIcon,
19669 _swigt__p_wxLocale,
19670 _swigt__p_wxRegion,
19671 _swigt__p_wxLanguageInfo,
19672 _swigt__p_wxConfigBase,
19673 _swigt__p_wxWindowDC,
19674 _swigt__p_wxPrintData,
19675 _swigt__p_wxBrushList,
19676 _swigt__p_wxFontList,
19677 _swigt__p_wxPen,
19678 _swigt__p_wxBufferedPaintDC,
19679 _swigt__p_wxPaintDC,
19680 _swigt__p_wxPenList,
19681 _swigt__p_int,
19682 _swigt__p_wxMetaFile,
19683 _swigt__p_wxNativeFontInfo,
19684 _swigt__p_wxEncodingConverter,
19685 _swigt__p_wxColourDatabase,
19686 0
19687 };
19688
19689
19690 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19691
19692 static swig_const_info swig_const_table[] = {
19693 {0, 0, 0, 0.0, 0, 0}};
19694
19695 #ifdef __cplusplus
19696 }
19697 #endif
19698
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 SWIGEXPORT(void) SWIG_init(void) {
19703 static PyObject *SWIG_globals = 0;
19704 static int typeinit = 0;
19705 PyObject *m, *d;
19706 int i;
19707 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19708 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19709 d = PyModule_GetDict(m);
19710
19711 if (!typeinit) {
19712 for (i = 0; swig_types_initial[i]; i++) {
19713 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19714 }
19715 typeinit = 1;
19716 }
19717 SWIG_InstallConstants(d,swig_const_table);
19718
19719 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
19720 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
19721 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
19722 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
19723 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
19724 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
19725 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
19726 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
19727 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
19728 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
19729 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
19730 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
19731 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
19732 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
19733 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
19734 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
19735 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
19736 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
19737 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
19738 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
19739 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
19740 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
19741 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
19742 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
19743 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
19744 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
19745 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
19746 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
19747 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
19748 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
19749 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
19750 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
19751 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
19752 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
19753 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
19754 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
19755 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
19756 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
19757 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
19758 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
19759 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
19760 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
19761 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
19762 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
19763 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
19764 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
19765 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
19766 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
19767 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
19768 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
19769 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
19770 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
19771 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
19772 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
19773 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
19774 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
19775 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
19776 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
19777 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
19778 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
19779 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
19780 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
19781 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
19782 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
19783 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
19784 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
19785 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
19786 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
19787 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
19788 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
19789 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
19790 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
19791 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
19792 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
19793 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
19794 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
19795 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
19796 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
19797 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
19798 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
19799 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
19800 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
19801 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
19802 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
19803 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
19804 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
19805 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
19806 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
19807 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
19808 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
19809 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
19810 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
19811 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
19812 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
19813 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
19814 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
19815 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
19816 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
19817 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
19818 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
19819 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
19820 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
19821 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
19822 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
19823 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
19824 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
19825 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
19826 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
19827 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
19828 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
19829 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
19830 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
19831 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
19832 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
19833 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
19834 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
19835 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
19836 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
19837 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
19838 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
19839 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
19840 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
19841 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
19842 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
19843 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
19844 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
19845 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
19846
19847 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19848
19849 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
19850 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
19851 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
19852 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
19853 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
19854 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
19855 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
19856 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
19857 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
19858 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
19859 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
19860 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
19861 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
19862 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
19863 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
19864 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
19865 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
19866 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
19867 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
19868 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19869 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
19870 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
19871 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
19872 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
19873 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
19874 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
19875 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
19876 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
19877 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
19878 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
19879 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
19880 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
19881 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
19882 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
19883 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
19884 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
19885 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
19886 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
19887 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
19888 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
19889 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
19890 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
19891 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
19892 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
19893 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19894 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19895 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
19896 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
19897 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
19898 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
19899 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
19900 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
19901 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
19902 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
19903 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
19904 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
19905 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
19906 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
19907 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
19908 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19909 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
19910 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19911 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
19912 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19913 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
19914 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
19915 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
19916 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19917 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19918 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19919 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19920 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19921 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
19922 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
19923 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
19924 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
19925 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
19926 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
19927 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
19928 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
19929 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
19930 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19931 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
19932 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
19933 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
19934 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
19935 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
19936 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
19937 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19938 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
19939 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19940 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19941 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
19942 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
19943 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
19944 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
19945 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
19946 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
19947 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
19948 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
19949 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
19950 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
19951 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
19952 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
19953 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
19954 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
19955 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
19956 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
19957 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
19958 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
19959 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
19960 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
19961 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
19962 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
19963 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
19964 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
19965 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
19966 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
19967 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
19968 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
19969 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
19970 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
19971 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
19972 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
19973 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
19974 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
19975 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
19976 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
19977 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
19978 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
19979 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
19980 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
19981 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19982 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
19983 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
19984 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
19985 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
19986 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
19987 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
19988 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
19989 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
19990 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
19991 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
19992 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19993 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19994 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
19995 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
19996 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
19997 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
19998 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
19999 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
20000 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20001 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
20002 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
20003 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
20004 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
20005 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
20006 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20007 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
20008 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
20009 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
20010 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
20011 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
20012 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20013 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
20014 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
20015 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
20016 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
20017 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
20018 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
20019 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
20020 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
20021 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
20022 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
20023 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
20024 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
20025 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
20026 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
20027 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
20028 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
20029 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20030 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20031 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
20032 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20033 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
20034 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
20035 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
20036 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
20037 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
20038 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
20039 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
20040 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
20041 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20042 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
20043 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
20044 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
20045 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
20046 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
20047 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
20048 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
20049 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
20050 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
20051 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
20052 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
20053 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
20054 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
20055 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
20056 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
20057 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
20058 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
20059 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
20060 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
20061 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
20062 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
20063 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
20064 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
20065 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
20066 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
20067 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
20068 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
20069 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
20070 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
20071 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
20072 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
20073 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
20074 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
20075 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
20076 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
20077 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
20078 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
20079 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
20080 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
20081 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
20082 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
20083 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
20084 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
20085 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
20086 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
20087 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
20088 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
20089 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
20090 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
20091 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
20092 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
20093 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
20094 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
20095 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
20096 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
20097 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
20098 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
20099 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
20100 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
20101 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
20102 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20103 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20104 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20105 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20106 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20107 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20108 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20109 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20110 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20111 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20112 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20113 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20114 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20115 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20116 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20117 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20118 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20119 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20120 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20121 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20122 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20123 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20124 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20125 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20126 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20127 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20128 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20129 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20130 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20131 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20132 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20133 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20134 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20135 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20136 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20137 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20138 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20139 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20140 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20141 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20142 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20143 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20144 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20145 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20146 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20147 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20148 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20149
20150 // Work around a chicken/egg problem in drawlist.cpp
20151 wxPyDrawList_SetAPIPtr();
20152
20153 }
20154