]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
Added default values for some parameters
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_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 #include <wx/image.h>
678
679 static char** ConvertListOfStrings(PyObject* listOfStrings) {
680 char** cArray = NULL;
681 int count;
682
683 if (!PyList_Check(listOfStrings)) {
684 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
685 return NULL;
686 }
687 count = PyList_Size(listOfStrings);
688 cArray = new char*[count];
689
690 for(int x=0; x<count; x++) {
691 // TODO: Need some validation and error checking here
692 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
693 }
694 return cArray;
695 }
696
697
698 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
699 char** cArray = NULL;
700 wxBitmap* bmp;
701
702 cArray = ConvertListOfStrings(listOfStrings);
703 if (! cArray)
704 return NULL;
705 bmp = new wxBitmap(cArray);
706 delete [] cArray;
707 return bmp;
708 }
709 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
710 char* buf;
711 int length;
712 PyString_AsStringAndSize(bits, &buf, &length);
713 return new wxBitmap(buf, width, height, depth);
714 }
715 wxSize wxBitmap_GetSize(wxBitmap *self){
716 wxSize size(self->GetWidth(), self->GetHeight());
717 return size;
718 }
719 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
720 wxMask *mask = new wxMask(*self, colour);
721 self->SetMask(mask);
722 }
723 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
724 self->SetWidth(size.x);
725 self->SetHeight(size.y);
726 }
727 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
728 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
729 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
730 if ( !colour.Ok() )
731 return new wxMask(bitmap, *wxBLACK);
732 else
733 return new wxMask(bitmap, colour);
734 }
735
736 #include <wx/iconbndl.h>
737
738 wxIcon *new_wxIcon(wxBitmap const &bmp){
739 wxIcon* icon = new wxIcon();
740 icon->CopyFromBitmap(bmp);
741 return icon;
742 }
743 wxIcon *new_wxIcon(PyObject *listOfStrings){
744 char** cArray = NULL;
745 wxIcon* icon;
746
747 cArray = ConvertListOfStrings(listOfStrings);
748 if (! cArray)
749 return NULL;
750 icon = new wxIcon(cArray);
751 delete [] cArray;
752 return icon;
753 }
754 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
755
756
757
758 return new wxIconLocation(*filename);
759
760 }
761 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
762
763
764
765 // do nothing
766
767 }
768 int wxIconLocation_GetIndex(wxIconLocation *self){
769
770
771
772 return -1;
773
774 }
775
776 SWIGSTATICINLINE(long)
777 SWIG_As_long(PyObject* obj)
778 {
779 long v;
780 if (!SWIG_AsVal_long(obj, &v)) {
781 /*
782 this is needed to make valgrind/purify happier. the other
783 solution is throw an exception, but since this code should work
784 with plain C ....
785 */
786 memset((void*)&v, 0, sizeof(long));
787 }
788 return v;
789 }
790
791
792 SWIGSTATICINLINE(int)
793 SWIG_Check_long(PyObject* obj)
794 {
795 return SWIG_AsVal_long(obj, (long*)0);
796 }
797
798 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
799 #ifdef __WXGTK__
800 wxCHECK_MSG(false, NULL,
801 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
802 #else
803 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
804 #endif
805 }
806
807
808 void wxRegionIterator_Next(wxRegionIterator *self){
809 (*self) ++;
810 }
811 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
812 return self->operator bool();
813 }
814
815 #include <wx/fontutil.h>
816 #include <wx/fontmap.h>
817 #include <wx/fontenum.h>
818
819 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
820 return self->ToString();
821 }
822
823 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
824 static wxNativeEncodingInfo info;
825 if ( wxGetNativeFontEncoding(encoding, &info) )
826 return &info;
827 else
828 return NULL;
829 }
830
831 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
832 wxFontEncoding alt_enc;
833 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
834 return PyInt_FromLong(alt_enc);
835 else {
836 Py_INCREF(Py_None);
837 return Py_None;
838 }
839 }
840 wxFont *new_wxFont(wxString const &info){
841 wxNativeFontInfo nfi;
842 nfi.FromString(info);
843 return new wxFont(nfi);
844 }
845 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
846 return wxFont::New(pointSize, family, flags, face, encoding);
847 }
848 wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){
849 return wxFontBase::New(pixelSize, family,
850 style, weight, underlined,
851 face, encoding);
852 }
853 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
854 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
855
856 class wxPyFontEnumerator : public wxFontEnumerator {
857 public:
858 wxPyFontEnumerator() {}
859 ~wxPyFontEnumerator() {}
860
861 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
862 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
863
864 PYPRIVATE;
865 };
866
867 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
868 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
869
870
871 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
872 wxArrayString* arr = self->GetEncodings();
873 if (arr)
874 return wxArrayString2PyList_helper(*arr);
875 else
876 return PyList_New(0);
877 }
878 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
879 wxArrayString* arr = self->GetFacenames();
880 if (arr)
881 return wxArrayString2PyList_helper(*arr);
882 else
883 return PyList_New(0);
884 }
885
886 #include <locale.h>
887
888 wxLocale *new_wxLocale(int language,int flags){
889 wxLocale* loc;
890 if (language == -1)
891 loc = new wxLocale();
892 else
893 loc = new wxLocale(language, flags);
894 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
895 // for the floating point conversions and such to work right.
896 #if PY_VERSION_HEX < 0x02040000
897 setlocale(LC_NUMERIC, "C");
898 #endif
899 return loc;
900 }
901 bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort,wxString const &szLocale,bool bLoadDefault,bool bConvertEncoding){
902 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
903 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
904 // for the floating point conversions and such to work right.
905 #if PY_VERSION_HEX < 0x02040000
906 setlocale(LC_NUMERIC, "C");
907 #endif
908 return rc;
909 }
910 bool wxLocale_Init2(wxLocale *self,int language,int flags){
911 bool rc = self->Init(language, flags);
912 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
913 // for the floating point conversions and such to work right.
914 #if PY_VERSION_HEX < 0x02040000
915 setlocale(LC_NUMERIC, "C");
916 #endif
917 return rc;
918 }
919
920 #include "wx/wxPython/pydrawxxx.h"
921
922 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
923 wxColour col;
924 self->GetPixel(x, y, &col);
925 return col;
926 }
927 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
928 wxColour col;
929 self->GetPixel(pt, &col);
930 return col;
931 }
932
933 // See my_fragments.i
934 SWIGSTATICINLINE(int)
935 SWIG_AsVal_double(PyObject *obj, double* val)
936 {
937 if (PyNumber_Check(obj)) {
938 if (val) *val = PyFloat_AsDouble(obj);
939 return 1;
940 }
941 else {
942 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
943 obj->ob_type->tp_name);
944 PyErr_SetObject(PyExc_TypeError, errmsg);
945 Py_DECREF(errmsg);
946 }
947 return 0;
948 }
949
950
951 SWIGSTATICINLINE(double)
952 SWIG_As_double(PyObject* obj)
953 {
954 double v;
955 if (!SWIG_AsVal_double(obj, &v)) {
956 /*
957 this is needed to make valgrind/purify happier. the other
958 solution is throw an exception, but since this code should work
959 with plain C ....
960 */
961 memset((void*)&v, 0, sizeof(double));
962 }
963 return v;
964 }
965
966
967 SWIGSTATICINLINE(int)
968 SWIG_Check_double(PyObject* obj)
969 {
970 return SWIG_AsVal_double(obj, (double*)0);
971 }
972
973 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
974 wxRect rv;
975 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
976 return rv;
977 }
978
979 wxRect wxDC_GetClippingRect(wxDC *self){
980 wxRect rect;
981 self->GetClippingBox(rect);
982 return rect;
983 }
984 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
985 wxArrayInt widths;
986 self->GetPartialTextExtents(text, widths);
987 return widths;
988 }
989
990 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
991 self->SetLogicalOrigin(point.x, point.y);
992 }
993 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
994 self->SetDeviceOrigin(point.x, point.y);
995 }
996 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
997 self->CalcBoundingBox(point.x, point.y);
998 }
999 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1000 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
1001 }
1002 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1003 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
1004 }
1005 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1006 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
1007 }
1008 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1009 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
1010 }
1011 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1012 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
1013 }
1014 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
1015 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
1016 }
1017
1018 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
1019 *x1 = dc->MinX();
1020 *y1 = dc->MinY();
1021 *x2 = dc->MaxX();
1022 *y2 = dc->MaxY();
1023 }
1024
1025
1026 #include <wx/dcbuffer.h>
1027
1028
1029 #include <wx/dcps.h>
1030
1031
1032 class wxMetaFile : public wxObject {
1033 public:
1034 wxMetaFile(const wxString&)
1035 { wxPyRaiseNotImplemented(); }
1036 };
1037
1038 class wxMetaFileDC : public wxClientDC {
1039 public:
1040 wxMetaFileDC(const wxString&, int, int, const wxString&)
1041 { wxPyRaiseNotImplemented(); }
1042 };
1043
1044
1045
1046 class wxPrinterDC : public wxClientDC {
1047 public:
1048 wxPrinterDC(const wxPrintData&)
1049 { wxPyRaiseNotImplemented(); }
1050
1051 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
1052 // { wxPyRaiseNotImplemented(); }
1053 };
1054
1055
1056
1057 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1058 self->AddColour(name, wxColour(red, green, blue));
1059 }
1060
1061 #include <wx/effects.h>
1062
1063 #ifdef __cplusplus
1064 extern "C" {
1065 #endif
1066 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1067 PyObject *resultobj;
1068 wxGDIObject *result;
1069 char *kwnames[] = {
1070 NULL
1071 };
1072
1073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1074 {
1075 if (!wxPyCheckForApp()) SWIG_fail;
1076 PyThreadState* __tstate = wxPyBeginAllowThreads();
1077 result = (wxGDIObject *)new wxGDIObject();
1078
1079 wxPyEndAllowThreads(__tstate);
1080 if (PyErr_Occurred()) SWIG_fail;
1081 }
1082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1083 return resultobj;
1084 fail:
1085 return NULL;
1086 }
1087
1088
1089 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1090 PyObject *resultobj;
1091 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1092 PyObject * obj0 = 0 ;
1093 char *kwnames[] = {
1094 (char *) "self", NULL
1095 };
1096
1097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1100 {
1101 PyThreadState* __tstate = wxPyBeginAllowThreads();
1102 delete arg1;
1103
1104 wxPyEndAllowThreads(__tstate);
1105 if (PyErr_Occurred()) SWIG_fail;
1106 }
1107 Py_INCREF(Py_None); resultobj = Py_None;
1108 return resultobj;
1109 fail:
1110 return NULL;
1111 }
1112
1113
1114 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1115 PyObject *resultobj;
1116 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1117 bool result;
1118 PyObject * obj0 = 0 ;
1119 char *kwnames[] = {
1120 (char *) "self", NULL
1121 };
1122
1123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1126 {
1127 PyThreadState* __tstate = wxPyBeginAllowThreads();
1128 result = (bool)(arg1)->GetVisible();
1129
1130 wxPyEndAllowThreads(__tstate);
1131 if (PyErr_Occurred()) SWIG_fail;
1132 }
1133 {
1134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1135 }
1136 return resultobj;
1137 fail:
1138 return NULL;
1139 }
1140
1141
1142 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1143 PyObject *resultobj;
1144 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1145 bool arg2 ;
1146 PyObject * obj0 = 0 ;
1147 PyObject * obj1 = 0 ;
1148 char *kwnames[] = {
1149 (char *) "self",(char *) "visible", NULL
1150 };
1151
1152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1155 arg2 = (bool)SWIG_As_bool(obj1);
1156 if (PyErr_Occurred()) SWIG_fail;
1157 {
1158 PyThreadState* __tstate = wxPyBeginAllowThreads();
1159 (arg1)->SetVisible(arg2);
1160
1161 wxPyEndAllowThreads(__tstate);
1162 if (PyErr_Occurred()) SWIG_fail;
1163 }
1164 Py_INCREF(Py_None); resultobj = Py_None;
1165 return resultobj;
1166 fail:
1167 return NULL;
1168 }
1169
1170
1171 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1172 PyObject *resultobj;
1173 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1174 bool result;
1175 PyObject * obj0 = 0 ;
1176 char *kwnames[] = {
1177 (char *) "self", NULL
1178 };
1179
1180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1183 {
1184 PyThreadState* __tstate = wxPyBeginAllowThreads();
1185 result = (bool)(arg1)->IsNull();
1186
1187 wxPyEndAllowThreads(__tstate);
1188 if (PyErr_Occurred()) SWIG_fail;
1189 }
1190 {
1191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1192 }
1193 return resultobj;
1194 fail:
1195 return NULL;
1196 }
1197
1198
1199 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1200 PyObject *obj;
1201 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1202 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1203 Py_INCREF(obj);
1204 return Py_BuildValue((char *)"");
1205 }
1206 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1207 PyObject *resultobj;
1208 byte arg1 = (byte) 0 ;
1209 byte arg2 = (byte) 0 ;
1210 byte arg3 = (byte) 0 ;
1211 wxColour *result;
1212 PyObject * obj0 = 0 ;
1213 PyObject * obj1 = 0 ;
1214 PyObject * obj2 = 0 ;
1215 char *kwnames[] = {
1216 (char *) "red",(char *) "green",(char *) "blue", NULL
1217 };
1218
1219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1220 if (obj0) {
1221 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
1222 if (PyErr_Occurred()) SWIG_fail;
1223 }
1224 if (obj1) {
1225 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1226 if (PyErr_Occurred()) SWIG_fail;
1227 }
1228 if (obj2) {
1229 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1230 if (PyErr_Occurred()) SWIG_fail;
1231 }
1232 {
1233 PyThreadState* __tstate = wxPyBeginAllowThreads();
1234 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1235
1236 wxPyEndAllowThreads(__tstate);
1237 if (PyErr_Occurred()) SWIG_fail;
1238 }
1239 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1240 return resultobj;
1241 fail:
1242 return NULL;
1243 }
1244
1245
1246 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1247 PyObject *resultobj;
1248 wxString *arg1 = 0 ;
1249 wxColour *result;
1250 bool temp1 = false ;
1251 PyObject * obj0 = 0 ;
1252 char *kwnames[] = {
1253 (char *) "colorName", NULL
1254 };
1255
1256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1257 {
1258 arg1 = wxString_in_helper(obj0);
1259 if (arg1 == NULL) SWIG_fail;
1260 temp1 = true;
1261 }
1262 {
1263 if (!wxPyCheckForApp()) SWIG_fail;
1264 PyThreadState* __tstate = wxPyBeginAllowThreads();
1265 result = (wxColour *)new wxColour((wxString const &)*arg1);
1266
1267 wxPyEndAllowThreads(__tstate);
1268 if (PyErr_Occurred()) SWIG_fail;
1269 }
1270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1271 {
1272 if (temp1)
1273 delete arg1;
1274 }
1275 return resultobj;
1276 fail:
1277 {
1278 if (temp1)
1279 delete arg1;
1280 }
1281 return NULL;
1282 }
1283
1284
1285 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1286 PyObject *resultobj;
1287 unsigned long arg1 ;
1288 wxColour *result;
1289 PyObject * obj0 = 0 ;
1290 char *kwnames[] = {
1291 (char *) "colRGB", NULL
1292 };
1293
1294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1295 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
1296 if (PyErr_Occurred()) SWIG_fail;
1297 {
1298 PyThreadState* __tstate = wxPyBeginAllowThreads();
1299 result = (wxColour *)new wxColour(arg1);
1300
1301 wxPyEndAllowThreads(__tstate);
1302 if (PyErr_Occurred()) SWIG_fail;
1303 }
1304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1305 return resultobj;
1306 fail:
1307 return NULL;
1308 }
1309
1310
1311 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1312 PyObject *resultobj;
1313 wxColour *arg1 = (wxColour *) 0 ;
1314 PyObject * obj0 = 0 ;
1315 char *kwnames[] = {
1316 (char *) "self", NULL
1317 };
1318
1319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1322 {
1323 PyThreadState* __tstate = wxPyBeginAllowThreads();
1324 delete arg1;
1325
1326 wxPyEndAllowThreads(__tstate);
1327 if (PyErr_Occurred()) SWIG_fail;
1328 }
1329 Py_INCREF(Py_None); resultobj = Py_None;
1330 return resultobj;
1331 fail:
1332 return NULL;
1333 }
1334
1335
1336 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1337 PyObject *resultobj;
1338 wxColour *arg1 = (wxColour *) 0 ;
1339 byte result;
1340 PyObject * obj0 = 0 ;
1341 char *kwnames[] = {
1342 (char *) "self", NULL
1343 };
1344
1345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1348 {
1349 PyThreadState* __tstate = wxPyBeginAllowThreads();
1350 result = (byte)(arg1)->Red();
1351
1352 wxPyEndAllowThreads(__tstate);
1353 if (PyErr_Occurred()) SWIG_fail;
1354 }
1355 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1356 return resultobj;
1357 fail:
1358 return NULL;
1359 }
1360
1361
1362 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1363 PyObject *resultobj;
1364 wxColour *arg1 = (wxColour *) 0 ;
1365 byte result;
1366 PyObject * obj0 = 0 ;
1367 char *kwnames[] = {
1368 (char *) "self", NULL
1369 };
1370
1371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1374 {
1375 PyThreadState* __tstate = wxPyBeginAllowThreads();
1376 result = (byte)(arg1)->Green();
1377
1378 wxPyEndAllowThreads(__tstate);
1379 if (PyErr_Occurred()) SWIG_fail;
1380 }
1381 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1382 return resultobj;
1383 fail:
1384 return NULL;
1385 }
1386
1387
1388 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1389 PyObject *resultobj;
1390 wxColour *arg1 = (wxColour *) 0 ;
1391 byte result;
1392 PyObject * obj0 = 0 ;
1393 char *kwnames[] = {
1394 (char *) "self", NULL
1395 };
1396
1397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1400 {
1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
1402 result = (byte)(arg1)->Blue();
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
1407 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1408 return resultobj;
1409 fail:
1410 return NULL;
1411 }
1412
1413
1414 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1415 PyObject *resultobj;
1416 wxColour *arg1 = (wxColour *) 0 ;
1417 bool result;
1418 PyObject * obj0 = 0 ;
1419 char *kwnames[] = {
1420 (char *) "self", NULL
1421 };
1422
1423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1426 {
1427 PyThreadState* __tstate = wxPyBeginAllowThreads();
1428 result = (bool)(arg1)->Ok();
1429
1430 wxPyEndAllowThreads(__tstate);
1431 if (PyErr_Occurred()) SWIG_fail;
1432 }
1433 {
1434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1435 }
1436 return resultobj;
1437 fail:
1438 return NULL;
1439 }
1440
1441
1442 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxColour *arg1 = (wxColour *) 0 ;
1445 byte arg2 ;
1446 byte arg3 ;
1447 byte arg4 ;
1448 PyObject * obj0 = 0 ;
1449 PyObject * obj1 = 0 ;
1450 PyObject * obj2 = 0 ;
1451 PyObject * obj3 = 0 ;
1452 char *kwnames[] = {
1453 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1454 };
1455
1456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1459 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1460 if (PyErr_Occurred()) SWIG_fail;
1461 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1462 if (PyErr_Occurred()) SWIG_fail;
1463 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1464 if (PyErr_Occurred()) SWIG_fail;
1465 {
1466 PyThreadState* __tstate = wxPyBeginAllowThreads();
1467 (arg1)->Set(arg2,arg3,arg4);
1468
1469 wxPyEndAllowThreads(__tstate);
1470 if (PyErr_Occurred()) SWIG_fail;
1471 }
1472 Py_INCREF(Py_None); resultobj = Py_None;
1473 return resultobj;
1474 fail:
1475 return NULL;
1476 }
1477
1478
1479 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1480 PyObject *resultobj;
1481 wxColour *arg1 = (wxColour *) 0 ;
1482 unsigned long arg2 ;
1483 PyObject * obj0 = 0 ;
1484 PyObject * obj1 = 0 ;
1485 char *kwnames[] = {
1486 (char *) "self",(char *) "colRGB", NULL
1487 };
1488
1489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1492 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
1493 if (PyErr_Occurred()) SWIG_fail;
1494 {
1495 PyThreadState* __tstate = wxPyBeginAllowThreads();
1496 (arg1)->Set(arg2);
1497
1498 wxPyEndAllowThreads(__tstate);
1499 if (PyErr_Occurred()) SWIG_fail;
1500 }
1501 Py_INCREF(Py_None); resultobj = Py_None;
1502 return resultobj;
1503 fail:
1504 return NULL;
1505 }
1506
1507
1508 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1509 PyObject *resultobj;
1510 wxColour *arg1 = (wxColour *) 0 ;
1511 wxString *arg2 = 0 ;
1512 bool temp2 = false ;
1513 PyObject * obj0 = 0 ;
1514 PyObject * obj1 = 0 ;
1515 char *kwnames[] = {
1516 (char *) "self",(char *) "colourName", NULL
1517 };
1518
1519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1522 {
1523 arg2 = wxString_in_helper(obj1);
1524 if (arg2 == NULL) SWIG_fail;
1525 temp2 = true;
1526 }
1527 {
1528 PyThreadState* __tstate = wxPyBeginAllowThreads();
1529 (arg1)->InitFromName((wxString const &)*arg2);
1530
1531 wxPyEndAllowThreads(__tstate);
1532 if (PyErr_Occurred()) SWIG_fail;
1533 }
1534 Py_INCREF(Py_None); resultobj = Py_None;
1535 {
1536 if (temp2)
1537 delete arg2;
1538 }
1539 return resultobj;
1540 fail:
1541 {
1542 if (temp2)
1543 delete arg2;
1544 }
1545 return NULL;
1546 }
1547
1548
1549 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1550 PyObject *resultobj;
1551 wxColour *arg1 = (wxColour *) 0 ;
1552 long result;
1553 PyObject * obj0 = 0 ;
1554 char *kwnames[] = {
1555 (char *) "self", NULL
1556 };
1557
1558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1561 {
1562 PyThreadState* __tstate = wxPyBeginAllowThreads();
1563 result = (long)((wxColour const *)arg1)->GetPixel();
1564
1565 wxPyEndAllowThreads(__tstate);
1566 if (PyErr_Occurred()) SWIG_fail;
1567 }
1568 resultobj = SWIG_From_long((long)result);
1569 return resultobj;
1570 fail:
1571 return NULL;
1572 }
1573
1574
1575 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1576 PyObject *resultobj;
1577 wxColour *arg1 = (wxColour *) 0 ;
1578 wxColour *arg2 = 0 ;
1579 bool result;
1580 wxColour temp2 ;
1581 PyObject * obj0 = 0 ;
1582 PyObject * obj1 = 0 ;
1583 char *kwnames[] = {
1584 (char *) "self",(char *) "colour", NULL
1585 };
1586
1587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1590 {
1591 arg2 = &temp2;
1592 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1593 }
1594 {
1595 PyThreadState* __tstate = wxPyBeginAllowThreads();
1596 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1597
1598 wxPyEndAllowThreads(__tstate);
1599 if (PyErr_Occurred()) SWIG_fail;
1600 }
1601 {
1602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1603 }
1604 return resultobj;
1605 fail:
1606 return NULL;
1607 }
1608
1609
1610 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1611 PyObject *resultobj;
1612 wxColour *arg1 = (wxColour *) 0 ;
1613 wxColour *arg2 = 0 ;
1614 bool result;
1615 wxColour temp2 ;
1616 PyObject * obj0 = 0 ;
1617 PyObject * obj1 = 0 ;
1618 char *kwnames[] = {
1619 (char *) "self",(char *) "colour", NULL
1620 };
1621
1622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1625 {
1626 arg2 = &temp2;
1627 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1628 }
1629 {
1630 PyThreadState* __tstate = wxPyBeginAllowThreads();
1631 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1632
1633 wxPyEndAllowThreads(__tstate);
1634 if (PyErr_Occurred()) SWIG_fail;
1635 }
1636 {
1637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1638 }
1639 return resultobj;
1640 fail:
1641 return NULL;
1642 }
1643
1644
1645 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1646 PyObject *resultobj;
1647 wxColour *arg1 = (wxColour *) 0 ;
1648 PyObject *result;
1649 PyObject * obj0 = 0 ;
1650 char *kwnames[] = {
1651 (char *) "self", NULL
1652 };
1653
1654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1657 {
1658 PyThreadState* __tstate = wxPyBeginAllowThreads();
1659 result = (PyObject *)wxColour_Get(arg1);
1660
1661 wxPyEndAllowThreads(__tstate);
1662 if (PyErr_Occurred()) SWIG_fail;
1663 }
1664 resultobj = result;
1665 return resultobj;
1666 fail:
1667 return NULL;
1668 }
1669
1670
1671 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1672 PyObject *resultobj;
1673 wxColour *arg1 = (wxColour *) 0 ;
1674 unsigned long result;
1675 PyObject * obj0 = 0 ;
1676 char *kwnames[] = {
1677 (char *) "self", NULL
1678 };
1679
1680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1683 {
1684 PyThreadState* __tstate = wxPyBeginAllowThreads();
1685 result = (unsigned long)wxColour_GetRGB(arg1);
1686
1687 wxPyEndAllowThreads(__tstate);
1688 if (PyErr_Occurred()) SWIG_fail;
1689 }
1690 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
1691 return resultobj;
1692 fail:
1693 return NULL;
1694 }
1695
1696
1697 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1698 PyObject *obj;
1699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1700 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1701 Py_INCREF(obj);
1702 return Py_BuildValue((char *)"");
1703 }
1704 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1705 PyObject *resultobj;
1706 int arg1 ;
1707 unsigned char *arg2 = (unsigned char *) 0 ;
1708 unsigned char *arg3 = (unsigned char *) 0 ;
1709 unsigned char *arg4 = (unsigned char *) 0 ;
1710 wxPalette *result;
1711 PyObject * obj0 = 0 ;
1712 PyObject * obj1 = 0 ;
1713 PyObject * obj2 = 0 ;
1714 PyObject * obj3 = 0 ;
1715 char *kwnames[] = {
1716 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1717 };
1718
1719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1720 arg1 = (int)SWIG_As_int(obj0);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1724 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1726 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1728 {
1729 if (!wxPyCheckForApp()) SWIG_fail;
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1737 return resultobj;
1738 fail:
1739 return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxPalette *arg1 = (wxPalette *) 0 ;
1746 PyObject * obj0 = 0 ;
1747 char *kwnames[] = {
1748 (char *) "self", NULL
1749 };
1750
1751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1754 {
1755 PyThreadState* __tstate = wxPyBeginAllowThreads();
1756 delete arg1;
1757
1758 wxPyEndAllowThreads(__tstate);
1759 if (PyErr_Occurred()) SWIG_fail;
1760 }
1761 Py_INCREF(Py_None); resultobj = Py_None;
1762 return resultobj;
1763 fail:
1764 return NULL;
1765 }
1766
1767
1768 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1769 PyObject *resultobj;
1770 wxPalette *arg1 = (wxPalette *) 0 ;
1771 byte arg2 ;
1772 byte arg3 ;
1773 byte arg4 ;
1774 int result;
1775 PyObject * obj0 = 0 ;
1776 PyObject * obj1 = 0 ;
1777 PyObject * obj2 = 0 ;
1778 PyObject * obj3 = 0 ;
1779 char *kwnames[] = {
1780 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1786 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1787 if (PyErr_Occurred()) SWIG_fail;
1788 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1789 if (PyErr_Occurred()) SWIG_fail;
1790 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1791 if (PyErr_Occurred()) SWIG_fail;
1792 {
1793 PyThreadState* __tstate = wxPyBeginAllowThreads();
1794 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1795
1796 wxPyEndAllowThreads(__tstate);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 resultobj = SWIG_From_int((int)result);
1800 return resultobj;
1801 fail:
1802 return NULL;
1803 }
1804
1805
1806 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1807 PyObject *resultobj;
1808 wxPalette *arg1 = (wxPalette *) 0 ;
1809 int arg2 ;
1810 byte *arg3 = (byte *) 0 ;
1811 byte *arg4 = (byte *) 0 ;
1812 byte *arg5 = (byte *) 0 ;
1813 bool result;
1814 byte temp3 ;
1815 int res3 = 0 ;
1816 byte temp4 ;
1817 int res4 = 0 ;
1818 byte temp5 ;
1819 int res5 = 0 ;
1820 PyObject * obj0 = 0 ;
1821 PyObject * obj1 = 0 ;
1822 char *kwnames[] = {
1823 (char *) "self",(char *) "pixel", NULL
1824 };
1825
1826 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1827 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1828 arg5 = &temp5; res5 = SWIG_NEWOBJ;
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1832 arg2 = (int)SWIG_As_int(obj1);
1833 if (PyErr_Occurred()) SWIG_fail;
1834 {
1835 PyThreadState* __tstate = wxPyBeginAllowThreads();
1836 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1837
1838 wxPyEndAllowThreads(__tstate);
1839 if (PyErr_Occurred()) SWIG_fail;
1840 }
1841 {
1842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1843 }
1844 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1845 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1846 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1847 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1848 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1849 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
1850 return resultobj;
1851 fail:
1852 return NULL;
1853 }
1854
1855
1856 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1857 PyObject *resultobj;
1858 wxPalette *arg1 = (wxPalette *) 0 ;
1859 bool result;
1860 PyObject * obj0 = 0 ;
1861 char *kwnames[] = {
1862 (char *) "self", NULL
1863 };
1864
1865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1868 {
1869 PyThreadState* __tstate = wxPyBeginAllowThreads();
1870 result = (bool)(arg1)->Ok();
1871
1872 wxPyEndAllowThreads(__tstate);
1873 if (PyErr_Occurred()) SWIG_fail;
1874 }
1875 {
1876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1877 }
1878 return resultobj;
1879 fail:
1880 return NULL;
1881 }
1882
1883
1884 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1885 PyObject *obj;
1886 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1887 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1888 Py_INCREF(obj);
1889 return Py_BuildValue((char *)"");
1890 }
1891 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1892 PyObject *resultobj;
1893 wxColour *arg1 = 0 ;
1894 int arg2 = (int) 1 ;
1895 int arg3 = (int) wxSOLID ;
1896 wxPen *result;
1897 wxColour temp1 ;
1898 PyObject * obj0 = 0 ;
1899 PyObject * obj1 = 0 ;
1900 PyObject * obj2 = 0 ;
1901 char *kwnames[] = {
1902 (char *) "colour",(char *) "width",(char *) "style", NULL
1903 };
1904
1905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1906 {
1907 arg1 = &temp1;
1908 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1909 }
1910 if (obj1) {
1911 arg2 = (int)SWIG_As_int(obj1);
1912 if (PyErr_Occurred()) SWIG_fail;
1913 }
1914 if (obj2) {
1915 arg3 = (int)SWIG_As_int(obj2);
1916 if (PyErr_Occurred()) SWIG_fail;
1917 }
1918 {
1919 if (!wxPyCheckForApp()) SWIG_fail;
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) SWIG_fail;
1925 }
1926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1927 return resultobj;
1928 fail:
1929 return NULL;
1930 }
1931
1932
1933 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1934 PyObject *resultobj;
1935 wxPen *arg1 = (wxPen *) 0 ;
1936 PyObject * obj0 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "self", NULL
1939 };
1940
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1944 {
1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
1946 delete arg1;
1947
1948 wxPyEndAllowThreads(__tstate);
1949 if (PyErr_Occurred()) SWIG_fail;
1950 }
1951 Py_INCREF(Py_None); resultobj = Py_None;
1952 return resultobj;
1953 fail:
1954 return NULL;
1955 }
1956
1957
1958 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1959 PyObject *resultobj;
1960 wxPen *arg1 = (wxPen *) 0 ;
1961 int result;
1962 PyObject * obj0 = 0 ;
1963 char *kwnames[] = {
1964 (char *) "self", NULL
1965 };
1966
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1970 {
1971 PyThreadState* __tstate = wxPyBeginAllowThreads();
1972 result = (int)(arg1)->GetCap();
1973
1974 wxPyEndAllowThreads(__tstate);
1975 if (PyErr_Occurred()) SWIG_fail;
1976 }
1977 resultobj = SWIG_From_int((int)result);
1978 return resultobj;
1979 fail:
1980 return NULL;
1981 }
1982
1983
1984 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1985 PyObject *resultobj;
1986 wxPen *arg1 = (wxPen *) 0 ;
1987 wxColour result;
1988 PyObject * obj0 = 0 ;
1989 char *kwnames[] = {
1990 (char *) "self", NULL
1991 };
1992
1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1996 {
1997 PyThreadState* __tstate = wxPyBeginAllowThreads();
1998 result = (arg1)->GetColour();
1999
2000 wxPyEndAllowThreads(__tstate);
2001 if (PyErr_Occurred()) SWIG_fail;
2002 }
2003 {
2004 wxColour * resultptr;
2005 resultptr = new wxColour((wxColour &) result);
2006 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2007 }
2008 return resultobj;
2009 fail:
2010 return NULL;
2011 }
2012
2013
2014 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2015 PyObject *resultobj;
2016 wxPen *arg1 = (wxPen *) 0 ;
2017 int result;
2018 PyObject * obj0 = 0 ;
2019 char *kwnames[] = {
2020 (char *) "self", NULL
2021 };
2022
2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
2024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2026 {
2027 PyThreadState* __tstate = wxPyBeginAllowThreads();
2028 result = (int)(arg1)->GetJoin();
2029
2030 wxPyEndAllowThreads(__tstate);
2031 if (PyErr_Occurred()) SWIG_fail;
2032 }
2033 resultobj = SWIG_From_int((int)result);
2034 return resultobj;
2035 fail:
2036 return NULL;
2037 }
2038
2039
2040 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2041 PyObject *resultobj;
2042 wxPen *arg1 = (wxPen *) 0 ;
2043 int result;
2044 PyObject * obj0 = 0 ;
2045 char *kwnames[] = {
2046 (char *) "self", NULL
2047 };
2048
2049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2052 {
2053 PyThreadState* __tstate = wxPyBeginAllowThreads();
2054 result = (int)(arg1)->GetStyle();
2055
2056 wxPyEndAllowThreads(__tstate);
2057 if (PyErr_Occurred()) SWIG_fail;
2058 }
2059 resultobj = SWIG_From_int((int)result);
2060 return resultobj;
2061 fail:
2062 return NULL;
2063 }
2064
2065
2066 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2067 PyObject *resultobj;
2068 wxPen *arg1 = (wxPen *) 0 ;
2069 int result;
2070 PyObject * obj0 = 0 ;
2071 char *kwnames[] = {
2072 (char *) "self", NULL
2073 };
2074
2075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2078 {
2079 PyThreadState* __tstate = wxPyBeginAllowThreads();
2080 result = (int)(arg1)->GetWidth();
2081
2082 wxPyEndAllowThreads(__tstate);
2083 if (PyErr_Occurred()) SWIG_fail;
2084 }
2085 resultobj = SWIG_From_int((int)result);
2086 return resultobj;
2087 fail:
2088 return NULL;
2089 }
2090
2091
2092 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2093 PyObject *resultobj;
2094 wxPen *arg1 = (wxPen *) 0 ;
2095 bool result;
2096 PyObject * obj0 = 0 ;
2097 char *kwnames[] = {
2098 (char *) "self", NULL
2099 };
2100
2101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2104 {
2105 PyThreadState* __tstate = wxPyBeginAllowThreads();
2106 result = (bool)(arg1)->Ok();
2107
2108 wxPyEndAllowThreads(__tstate);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 }
2111 {
2112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2113 }
2114 return resultobj;
2115 fail:
2116 return NULL;
2117 }
2118
2119
2120 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2121 PyObject *resultobj;
2122 wxPen *arg1 = (wxPen *) 0 ;
2123 int arg2 ;
2124 PyObject * obj0 = 0 ;
2125 PyObject * obj1 = 0 ;
2126 char *kwnames[] = {
2127 (char *) "self",(char *) "cap_style", NULL
2128 };
2129
2130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2133 arg2 = (int)SWIG_As_int(obj1);
2134 if (PyErr_Occurred()) SWIG_fail;
2135 {
2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
2137 (arg1)->SetCap(arg2);
2138
2139 wxPyEndAllowThreads(__tstate);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 }
2142 Py_INCREF(Py_None); resultobj = Py_None;
2143 return resultobj;
2144 fail:
2145 return NULL;
2146 }
2147
2148
2149 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2150 PyObject *resultobj;
2151 wxPen *arg1 = (wxPen *) 0 ;
2152 wxColour *arg2 = 0 ;
2153 wxColour temp2 ;
2154 PyObject * obj0 = 0 ;
2155 PyObject * obj1 = 0 ;
2156 char *kwnames[] = {
2157 (char *) "self",(char *) "colour", NULL
2158 };
2159
2160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2163 {
2164 arg2 = &temp2;
2165 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2166 }
2167 {
2168 PyThreadState* __tstate = wxPyBeginAllowThreads();
2169 (arg1)->SetColour(*arg2);
2170
2171 wxPyEndAllowThreads(__tstate);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 Py_INCREF(Py_None); resultobj = Py_None;
2175 return resultobj;
2176 fail:
2177 return NULL;
2178 }
2179
2180
2181 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2182 PyObject *resultobj;
2183 wxPen *arg1 = (wxPen *) 0 ;
2184 int arg2 ;
2185 PyObject * obj0 = 0 ;
2186 PyObject * obj1 = 0 ;
2187 char *kwnames[] = {
2188 (char *) "self",(char *) "join_style", NULL
2189 };
2190
2191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2194 arg2 = (int)SWIG_As_int(obj1);
2195 if (PyErr_Occurred()) SWIG_fail;
2196 {
2197 PyThreadState* __tstate = wxPyBeginAllowThreads();
2198 (arg1)->SetJoin(arg2);
2199
2200 wxPyEndAllowThreads(__tstate);
2201 if (PyErr_Occurred()) SWIG_fail;
2202 }
2203 Py_INCREF(Py_None); resultobj = Py_None;
2204 return resultobj;
2205 fail:
2206 return NULL;
2207 }
2208
2209
2210 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2211 PyObject *resultobj;
2212 wxPen *arg1 = (wxPen *) 0 ;
2213 int arg2 ;
2214 PyObject * obj0 = 0 ;
2215 PyObject * obj1 = 0 ;
2216 char *kwnames[] = {
2217 (char *) "self",(char *) "style", NULL
2218 };
2219
2220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2223 arg2 = (int)SWIG_As_int(obj1);
2224 if (PyErr_Occurred()) SWIG_fail;
2225 {
2226 PyThreadState* __tstate = wxPyBeginAllowThreads();
2227 (arg1)->SetStyle(arg2);
2228
2229 wxPyEndAllowThreads(__tstate);
2230 if (PyErr_Occurred()) SWIG_fail;
2231 }
2232 Py_INCREF(Py_None); resultobj = Py_None;
2233 return resultobj;
2234 fail:
2235 return NULL;
2236 }
2237
2238
2239 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2240 PyObject *resultobj;
2241 wxPen *arg1 = (wxPen *) 0 ;
2242 int arg2 ;
2243 PyObject * obj0 = 0 ;
2244 PyObject * obj1 = 0 ;
2245 char *kwnames[] = {
2246 (char *) "self",(char *) "width", NULL
2247 };
2248
2249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2252 arg2 = (int)SWIG_As_int(obj1);
2253 if (PyErr_Occurred()) SWIG_fail;
2254 {
2255 PyThreadState* __tstate = wxPyBeginAllowThreads();
2256 (arg1)->SetWidth(arg2);
2257
2258 wxPyEndAllowThreads(__tstate);
2259 if (PyErr_Occurred()) SWIG_fail;
2260 }
2261 Py_INCREF(Py_None); resultobj = Py_None;
2262 return resultobj;
2263 fail:
2264 return NULL;
2265 }
2266
2267
2268 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2269 PyObject *resultobj;
2270 wxPen *arg1 = (wxPen *) 0 ;
2271 int arg2 ;
2272 wxDash *arg3 = (wxDash *) 0 ;
2273 PyObject * obj0 = 0 ;
2274 PyObject * obj1 = 0 ;
2275 char *kwnames[] = {
2276 (char *) "self",(char *) "dashes", NULL
2277 };
2278
2279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2282 {
2283 arg2 = PyList_Size(obj1);
2284 arg3 = (wxDash*)byte_LIST_helper(obj1);
2285 if (arg3 == NULL) SWIG_fail;
2286 }
2287 {
2288 PyThreadState* __tstate = wxPyBeginAllowThreads();
2289 (arg1)->SetDashes(arg2,arg3);
2290
2291 wxPyEndAllowThreads(__tstate);
2292 if (PyErr_Occurred()) SWIG_fail;
2293 }
2294 Py_INCREF(Py_None); resultobj = Py_None;
2295 {
2296 if (arg3) delete [] arg3;
2297 }
2298 return resultobj;
2299 fail:
2300 {
2301 if (arg3) delete [] arg3;
2302 }
2303 return NULL;
2304 }
2305
2306
2307 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2308 PyObject *resultobj;
2309 wxPen *arg1 = (wxPen *) 0 ;
2310 PyObject *result;
2311 PyObject * obj0 = 0 ;
2312 char *kwnames[] = {
2313 (char *) "self", NULL
2314 };
2315
2316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2319 {
2320 PyThreadState* __tstate = wxPyBeginAllowThreads();
2321 result = (PyObject *)wxPen_GetDashes(arg1);
2322
2323 wxPyEndAllowThreads(__tstate);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 }
2326 resultobj = result;
2327 return resultobj;
2328 fail:
2329 return NULL;
2330 }
2331
2332
2333 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2334 PyObject *resultobj;
2335 wxPen *arg1 = (wxPen *) 0 ;
2336 PyObject *arg2 = (PyObject *) 0 ;
2337 PyObject *arg3 = (PyObject *) 0 ;
2338 PyObject * obj0 = 0 ;
2339 PyObject * obj1 = 0 ;
2340 PyObject * obj2 = 0 ;
2341 char *kwnames[] = {
2342 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2343 };
2344
2345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2348 arg2 = obj1;
2349 arg3 = obj2;
2350 {
2351 PyThreadState* __tstate = wxPyBeginAllowThreads();
2352 wxPen__SetDashes(arg1,arg2,arg3);
2353
2354 wxPyEndAllowThreads(__tstate);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 Py_INCREF(Py_None); resultobj = Py_None;
2358 return resultobj;
2359 fail:
2360 return NULL;
2361 }
2362
2363
2364 static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
2365 PyObject *resultobj;
2366 wxPen *arg1 = (wxPen *) 0 ;
2367 int result;
2368 PyObject * obj0 = 0 ;
2369 char *kwnames[] = {
2370 (char *) "self", NULL
2371 };
2372
2373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2376 {
2377 PyThreadState* __tstate = wxPyBeginAllowThreads();
2378 result = (int)((wxPen const *)arg1)->GetDashCount();
2379
2380 wxPyEndAllowThreads(__tstate);
2381 if (PyErr_Occurred()) SWIG_fail;
2382 }
2383 resultobj = SWIG_From_int((int)result);
2384 return resultobj;
2385 fail:
2386 return NULL;
2387 }
2388
2389
2390 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2391 PyObject *resultobj;
2392 wxPen *arg1 = (wxPen *) 0 ;
2393 wxPen *arg2 = (wxPen *) 0 ;
2394 bool result;
2395 PyObject * obj0 = 0 ;
2396 PyObject * obj1 = 0 ;
2397 char *kwnames[] = {
2398 (char *) "self",(char *) "other", NULL
2399 };
2400
2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2404 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2406 {
2407 PyThreadState* __tstate = wxPyBeginAllowThreads();
2408 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2409
2410 wxPyEndAllowThreads(__tstate);
2411 if (PyErr_Occurred()) SWIG_fail;
2412 }
2413 {
2414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2415 }
2416 return resultobj;
2417 fail:
2418 return NULL;
2419 }
2420
2421
2422 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2423 PyObject *resultobj;
2424 wxPen *arg1 = (wxPen *) 0 ;
2425 wxPen *arg2 = (wxPen *) 0 ;
2426 bool result;
2427 PyObject * obj0 = 0 ;
2428 PyObject * obj1 = 0 ;
2429 char *kwnames[] = {
2430 (char *) "self",(char *) "other", NULL
2431 };
2432
2433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2438 {
2439 PyThreadState* __tstate = wxPyBeginAllowThreads();
2440 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2441
2442 wxPyEndAllowThreads(__tstate);
2443 if (PyErr_Occurred()) SWIG_fail;
2444 }
2445 {
2446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2447 }
2448 return resultobj;
2449 fail:
2450 return NULL;
2451 }
2452
2453
2454 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2455 PyObject *obj;
2456 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2457 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2458 Py_INCREF(obj);
2459 return Py_BuildValue((char *)"");
2460 }
2461 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2462 PyObject *resultobj;
2463 wxColour *arg1 = 0 ;
2464 int arg2 = (int) wxSOLID ;
2465 wxBrush *result;
2466 wxColour temp1 ;
2467 PyObject * obj0 = 0 ;
2468 PyObject * obj1 = 0 ;
2469 char *kwnames[] = {
2470 (char *) "colour",(char *) "style", NULL
2471 };
2472
2473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2474 {
2475 arg1 = &temp1;
2476 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2477 }
2478 if (obj1) {
2479 arg2 = (int)SWIG_As_int(obj1);
2480 if (PyErr_Occurred()) SWIG_fail;
2481 }
2482 {
2483 if (!wxPyCheckForApp()) SWIG_fail;
2484 PyThreadState* __tstate = wxPyBeginAllowThreads();
2485 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2486
2487 wxPyEndAllowThreads(__tstate);
2488 if (PyErr_Occurred()) SWIG_fail;
2489 }
2490 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2491 return resultobj;
2492 fail:
2493 return NULL;
2494 }
2495
2496
2497 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2498 PyObject *resultobj;
2499 wxBrush *arg1 = (wxBrush *) 0 ;
2500 PyObject * obj0 = 0 ;
2501 char *kwnames[] = {
2502 (char *) "self", NULL
2503 };
2504
2505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2508 {
2509 PyThreadState* __tstate = wxPyBeginAllowThreads();
2510 delete arg1;
2511
2512 wxPyEndAllowThreads(__tstate);
2513 if (PyErr_Occurred()) SWIG_fail;
2514 }
2515 Py_INCREF(Py_None); resultobj = Py_None;
2516 return resultobj;
2517 fail:
2518 return NULL;
2519 }
2520
2521
2522 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2523 PyObject *resultobj;
2524 wxBrush *arg1 = (wxBrush *) 0 ;
2525 wxColour *arg2 = 0 ;
2526 wxColour temp2 ;
2527 PyObject * obj0 = 0 ;
2528 PyObject * obj1 = 0 ;
2529 char *kwnames[] = {
2530 (char *) "self",(char *) "col", NULL
2531 };
2532
2533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2536 {
2537 arg2 = &temp2;
2538 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2539 }
2540 {
2541 PyThreadState* __tstate = wxPyBeginAllowThreads();
2542 (arg1)->SetColour((wxColour const &)*arg2);
2543
2544 wxPyEndAllowThreads(__tstate);
2545 if (PyErr_Occurred()) SWIG_fail;
2546 }
2547 Py_INCREF(Py_None); resultobj = Py_None;
2548 return resultobj;
2549 fail:
2550 return NULL;
2551 }
2552
2553
2554 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2555 PyObject *resultobj;
2556 wxBrush *arg1 = (wxBrush *) 0 ;
2557 int arg2 ;
2558 PyObject * obj0 = 0 ;
2559 PyObject * obj1 = 0 ;
2560 char *kwnames[] = {
2561 (char *) "self",(char *) "style", NULL
2562 };
2563
2564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2567 arg2 = (int)SWIG_As_int(obj1);
2568 if (PyErr_Occurred()) SWIG_fail;
2569 {
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 (arg1)->SetStyle(arg2);
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 Py_INCREF(Py_None); resultobj = Py_None;
2577 return resultobj;
2578 fail:
2579 return NULL;
2580 }
2581
2582
2583 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2584 PyObject *resultobj;
2585 wxBrush *arg1 = (wxBrush *) 0 ;
2586 wxBitmap *arg2 = 0 ;
2587 PyObject * obj0 = 0 ;
2588 PyObject * obj1 = 0 ;
2589 char *kwnames[] = {
2590 (char *) "self",(char *) "stipple", NULL
2591 };
2592
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2596 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2597 SWIG_POINTER_EXCEPTION | 0)) == -1)
2598 SWIG_fail;
2599 if (arg2 == NULL) {
2600 PyErr_SetString(PyExc_TypeError,"null reference");
2601 SWIG_fail;
2602 }
2603 {
2604 PyThreadState* __tstate = wxPyBeginAllowThreads();
2605 (arg1)->SetStipple((wxBitmap const &)*arg2);
2606
2607 wxPyEndAllowThreads(__tstate);
2608 if (PyErr_Occurred()) SWIG_fail;
2609 }
2610 Py_INCREF(Py_None); resultobj = Py_None;
2611 return resultobj;
2612 fail:
2613 return NULL;
2614 }
2615
2616
2617 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2618 PyObject *resultobj;
2619 wxBrush *arg1 = (wxBrush *) 0 ;
2620 wxColour result;
2621 PyObject * obj0 = 0 ;
2622 char *kwnames[] = {
2623 (char *) "self", NULL
2624 };
2625
2626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2629 {
2630 PyThreadState* __tstate = wxPyBeginAllowThreads();
2631 result = ((wxBrush const *)arg1)->GetColour();
2632
2633 wxPyEndAllowThreads(__tstate);
2634 if (PyErr_Occurred()) SWIG_fail;
2635 }
2636 {
2637 wxColour * resultptr;
2638 resultptr = new wxColour((wxColour &) result);
2639 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2640 }
2641 return resultobj;
2642 fail:
2643 return NULL;
2644 }
2645
2646
2647 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2648 PyObject *resultobj;
2649 wxBrush *arg1 = (wxBrush *) 0 ;
2650 int result;
2651 PyObject * obj0 = 0 ;
2652 char *kwnames[] = {
2653 (char *) "self", NULL
2654 };
2655
2656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2659 {
2660 PyThreadState* __tstate = wxPyBeginAllowThreads();
2661 result = (int)((wxBrush const *)arg1)->GetStyle();
2662
2663 wxPyEndAllowThreads(__tstate);
2664 if (PyErr_Occurred()) SWIG_fail;
2665 }
2666 resultobj = SWIG_From_int((int)result);
2667 return resultobj;
2668 fail:
2669 return NULL;
2670 }
2671
2672
2673 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2674 PyObject *resultobj;
2675 wxBrush *arg1 = (wxBrush *) 0 ;
2676 wxBitmap *result;
2677 PyObject * obj0 = 0 ;
2678 char *kwnames[] = {
2679 (char *) "self", NULL
2680 };
2681
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2685 {
2686 PyThreadState* __tstate = wxPyBeginAllowThreads();
2687 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2688
2689 wxPyEndAllowThreads(__tstate);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2693 return resultobj;
2694 fail:
2695 return NULL;
2696 }
2697
2698
2699 static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
2700 PyObject *resultobj;
2701 wxBrush *arg1 = (wxBrush *) 0 ;
2702 bool result;
2703 PyObject * obj0 = 0 ;
2704 char *kwnames[] = {
2705 (char *) "self", NULL
2706 };
2707
2708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",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 = (bool)((wxBrush const *)arg1)->IsHatch();
2714
2715 wxPyEndAllowThreads(__tstate);
2716 if (PyErr_Occurred()) SWIG_fail;
2717 }
2718 {
2719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2720 }
2721 return resultobj;
2722 fail:
2723 return NULL;
2724 }
2725
2726
2727 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2728 PyObject *resultobj;
2729 wxBrush *arg1 = (wxBrush *) 0 ;
2730 bool result;
2731 PyObject * obj0 = 0 ;
2732 char *kwnames[] = {
2733 (char *) "self", NULL
2734 };
2735
2736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2739 {
2740 PyThreadState* __tstate = wxPyBeginAllowThreads();
2741 result = (bool)(arg1)->Ok();
2742
2743 wxPyEndAllowThreads(__tstate);
2744 if (PyErr_Occurred()) SWIG_fail;
2745 }
2746 {
2747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2748 }
2749 return resultobj;
2750 fail:
2751 return NULL;
2752 }
2753
2754
2755 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2756 PyObject *obj;
2757 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2758 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2759 Py_INCREF(obj);
2760 return Py_BuildValue((char *)"");
2761 }
2762 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2763 PyObject *resultobj;
2764 wxString *arg1 = 0 ;
2765 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2766 wxBitmap *result;
2767 bool temp1 = false ;
2768 PyObject * obj0 = 0 ;
2769 PyObject * obj1 = 0 ;
2770 char *kwnames[] = {
2771 (char *) "name",(char *) "type", NULL
2772 };
2773
2774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2775 {
2776 arg1 = wxString_in_helper(obj0);
2777 if (arg1 == NULL) SWIG_fail;
2778 temp1 = true;
2779 }
2780 if (obj1) {
2781 arg2 = (int)SWIG_As_int(obj1);
2782 if (PyErr_Occurred()) SWIG_fail;
2783 }
2784 {
2785 if (!wxPyCheckForApp()) SWIG_fail;
2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
2787 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2788
2789 wxPyEndAllowThreads(__tstate);
2790 if (PyErr_Occurred()) SWIG_fail;
2791 }
2792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2793 {
2794 if (temp1)
2795 delete arg1;
2796 }
2797 return resultobj;
2798 fail:
2799 {
2800 if (temp1)
2801 delete arg1;
2802 }
2803 return NULL;
2804 }
2805
2806
2807 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2808 PyObject *resultobj;
2809 wxBitmap *arg1 = (wxBitmap *) 0 ;
2810 PyObject * obj0 = 0 ;
2811 char *kwnames[] = {
2812 (char *) "self", NULL
2813 };
2814
2815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2818 {
2819 PyThreadState* __tstate = wxPyBeginAllowThreads();
2820 delete arg1;
2821
2822 wxPyEndAllowThreads(__tstate);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 }
2825 Py_INCREF(Py_None); resultobj = Py_None;
2826 return resultobj;
2827 fail:
2828 return NULL;
2829 }
2830
2831
2832 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2833 PyObject *resultobj;
2834 int arg1 ;
2835 int arg2 ;
2836 int arg3 = (int) -1 ;
2837 wxBitmap *result;
2838 PyObject * obj0 = 0 ;
2839 PyObject * obj1 = 0 ;
2840 PyObject * obj2 = 0 ;
2841 char *kwnames[] = {
2842 (char *) "width",(char *) "height",(char *) "depth", NULL
2843 };
2844
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2846 arg1 = (int)SWIG_As_int(obj0);
2847 if (PyErr_Occurred()) SWIG_fail;
2848 arg2 = (int)SWIG_As_int(obj1);
2849 if (PyErr_Occurred()) SWIG_fail;
2850 if (obj2) {
2851 arg3 = (int)SWIG_As_int(obj2);
2852 if (PyErr_Occurred()) SWIG_fail;
2853 }
2854 {
2855 if (!wxPyCheckForApp()) SWIG_fail;
2856 PyThreadState* __tstate = wxPyBeginAllowThreads();
2857 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2858
2859 wxPyEndAllowThreads(__tstate);
2860 if (PyErr_Occurred()) SWIG_fail;
2861 }
2862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2863 return resultobj;
2864 fail:
2865 return NULL;
2866 }
2867
2868
2869 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2870 PyObject *resultobj;
2871 wxIcon *arg1 = 0 ;
2872 wxBitmap *result;
2873 PyObject * obj0 = 0 ;
2874 char *kwnames[] = {
2875 (char *) "icon", NULL
2876 };
2877
2878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2880 SWIG_POINTER_EXCEPTION | 0)) == -1)
2881 SWIG_fail;
2882 if (arg1 == NULL) {
2883 PyErr_SetString(PyExc_TypeError,"null reference");
2884 SWIG_fail;
2885 }
2886 {
2887 if (!wxPyCheckForApp()) SWIG_fail;
2888 PyThreadState* __tstate = wxPyBeginAllowThreads();
2889 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2890
2891 wxPyEndAllowThreads(__tstate);
2892 if (PyErr_Occurred()) SWIG_fail;
2893 }
2894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2895 return resultobj;
2896 fail:
2897 return NULL;
2898 }
2899
2900
2901 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2902 PyObject *resultobj;
2903 wxImage *arg1 = 0 ;
2904 int arg2 = (int) -1 ;
2905 wxBitmap *result;
2906 PyObject * obj0 = 0 ;
2907 PyObject * obj1 = 0 ;
2908 char *kwnames[] = {
2909 (char *) "image",(char *) "depth", NULL
2910 };
2911
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2914 SWIG_POINTER_EXCEPTION | 0)) == -1)
2915 SWIG_fail;
2916 if (arg1 == NULL) {
2917 PyErr_SetString(PyExc_TypeError,"null reference");
2918 SWIG_fail;
2919 }
2920 if (obj1) {
2921 arg2 = (int)SWIG_As_int(obj1);
2922 if (PyErr_Occurred()) SWIG_fail;
2923 }
2924 {
2925 if (!wxPyCheckForApp()) SWIG_fail;
2926 PyThreadState* __tstate = wxPyBeginAllowThreads();
2927 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2928
2929 wxPyEndAllowThreads(__tstate);
2930 if (PyErr_Occurred()) SWIG_fail;
2931 }
2932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2933 return resultobj;
2934 fail:
2935 return NULL;
2936 }
2937
2938
2939 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
2940 PyObject *resultobj;
2941 PyObject *arg1 = (PyObject *) 0 ;
2942 wxBitmap *result;
2943 PyObject * obj0 = 0 ;
2944 char *kwnames[] = {
2945 (char *) "listOfStrings", NULL
2946 };
2947
2948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2949 arg1 = obj0;
2950 {
2951 if (!wxPyCheckForApp()) SWIG_fail;
2952 PyThreadState* __tstate = wxPyBeginAllowThreads();
2953 result = (wxBitmap *)new_wxBitmap(arg1);
2954
2955 wxPyEndAllowThreads(__tstate);
2956 if (PyErr_Occurred()) SWIG_fail;
2957 }
2958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2959 return resultobj;
2960 fail:
2961 return NULL;
2962 }
2963
2964
2965 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
2966 PyObject *resultobj;
2967 PyObject *arg1 = (PyObject *) 0 ;
2968 int arg2 ;
2969 int arg3 ;
2970 int arg4 = (int) 1 ;
2971 wxBitmap *result;
2972 PyObject * obj0 = 0 ;
2973 PyObject * obj1 = 0 ;
2974 PyObject * obj2 = 0 ;
2975 PyObject * obj3 = 0 ;
2976 char *kwnames[] = {
2977 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2978 };
2979
2980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2981 arg1 = obj0;
2982 arg2 = (int)SWIG_As_int(obj1);
2983 if (PyErr_Occurred()) SWIG_fail;
2984 arg3 = (int)SWIG_As_int(obj2);
2985 if (PyErr_Occurred()) SWIG_fail;
2986 if (obj3) {
2987 arg4 = (int)SWIG_As_int(obj3);
2988 if (PyErr_Occurred()) SWIG_fail;
2989 }
2990 {
2991 if (!wxPyCheckForApp()) SWIG_fail;
2992 PyThreadState* __tstate = wxPyBeginAllowThreads();
2993 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2994
2995 wxPyEndAllowThreads(__tstate);
2996 if (PyErr_Occurred()) SWIG_fail;
2997 }
2998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2999 return resultobj;
3000 fail:
3001 return NULL;
3002 }
3003
3004
3005 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3006 PyObject *resultobj;
3007 wxBitmap *arg1 = (wxBitmap *) 0 ;
3008 bool result;
3009 PyObject * obj0 = 0 ;
3010 char *kwnames[] = {
3011 (char *) "self", NULL
3012 };
3013
3014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 result = (bool)(arg1)->Ok();
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) SWIG_fail;
3023 }
3024 {
3025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3026 }
3027 return resultobj;
3028 fail:
3029 return NULL;
3030 }
3031
3032
3033 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3034 PyObject *resultobj;
3035 wxBitmap *arg1 = (wxBitmap *) 0 ;
3036 int result;
3037 PyObject * obj0 = 0 ;
3038 char *kwnames[] = {
3039 (char *) "self", NULL
3040 };
3041
3042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3045 {
3046 PyThreadState* __tstate = wxPyBeginAllowThreads();
3047 result = (int)(arg1)->GetWidth();
3048
3049 wxPyEndAllowThreads(__tstate);
3050 if (PyErr_Occurred()) SWIG_fail;
3051 }
3052 resultobj = SWIG_From_int((int)result);
3053 return resultobj;
3054 fail:
3055 return NULL;
3056 }
3057
3058
3059 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3060 PyObject *resultobj;
3061 wxBitmap *arg1 = (wxBitmap *) 0 ;
3062 int result;
3063 PyObject * obj0 = 0 ;
3064 char *kwnames[] = {
3065 (char *) "self", NULL
3066 };
3067
3068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3071 {
3072 PyThreadState* __tstate = wxPyBeginAllowThreads();
3073 result = (int)(arg1)->GetHeight();
3074
3075 wxPyEndAllowThreads(__tstate);
3076 if (PyErr_Occurred()) SWIG_fail;
3077 }
3078 resultobj = SWIG_From_int((int)result);
3079 return resultobj;
3080 fail:
3081 return NULL;
3082 }
3083
3084
3085 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3086 PyObject *resultobj;
3087 wxBitmap *arg1 = (wxBitmap *) 0 ;
3088 int result;
3089 PyObject * obj0 = 0 ;
3090 char *kwnames[] = {
3091 (char *) "self", NULL
3092 };
3093
3094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3097 {
3098 PyThreadState* __tstate = wxPyBeginAllowThreads();
3099 result = (int)(arg1)->GetDepth();
3100
3101 wxPyEndAllowThreads(__tstate);
3102 if (PyErr_Occurred()) SWIG_fail;
3103 }
3104 resultobj = SWIG_From_int((int)result);
3105 return resultobj;
3106 fail:
3107 return NULL;
3108 }
3109
3110
3111 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3112 PyObject *resultobj;
3113 wxBitmap *arg1 = (wxBitmap *) 0 ;
3114 wxSize result;
3115 PyObject * obj0 = 0 ;
3116 char *kwnames[] = {
3117 (char *) "self", NULL
3118 };
3119
3120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3123 {
3124 PyThreadState* __tstate = wxPyBeginAllowThreads();
3125 result = wxBitmap_GetSize(arg1);
3126
3127 wxPyEndAllowThreads(__tstate);
3128 if (PyErr_Occurred()) SWIG_fail;
3129 }
3130 {
3131 wxSize * resultptr;
3132 resultptr = new wxSize((wxSize &) result);
3133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3134 }
3135 return resultobj;
3136 fail:
3137 return NULL;
3138 }
3139
3140
3141 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3142 PyObject *resultobj;
3143 wxBitmap *arg1 = (wxBitmap *) 0 ;
3144 SwigValueWrapper< wxImage > result;
3145 PyObject * obj0 = 0 ;
3146 char *kwnames[] = {
3147 (char *) "self", NULL
3148 };
3149
3150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3153 {
3154 PyThreadState* __tstate = wxPyBeginAllowThreads();
3155 result = ((wxBitmap const *)arg1)->ConvertToImage();
3156
3157 wxPyEndAllowThreads(__tstate);
3158 if (PyErr_Occurred()) SWIG_fail;
3159 }
3160 {
3161 wxImage * resultptr;
3162 resultptr = new wxImage((wxImage &) result);
3163 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3164 }
3165 return resultobj;
3166 fail:
3167 return NULL;
3168 }
3169
3170
3171 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3172 PyObject *resultobj;
3173 wxBitmap *arg1 = (wxBitmap *) 0 ;
3174 wxMask *result;
3175 PyObject * obj0 = 0 ;
3176 char *kwnames[] = {
3177 (char *) "self", NULL
3178 };
3179
3180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3183 {
3184 PyThreadState* __tstate = wxPyBeginAllowThreads();
3185 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3186
3187 wxPyEndAllowThreads(__tstate);
3188 if (PyErr_Occurred()) SWIG_fail;
3189 }
3190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3191 return resultobj;
3192 fail:
3193 return NULL;
3194 }
3195
3196
3197 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3198 PyObject *resultobj;
3199 wxBitmap *arg1 = (wxBitmap *) 0 ;
3200 wxMask *arg2 = (wxMask *) 0 ;
3201 PyObject * obj0 = 0 ;
3202 PyObject * obj1 = 0 ;
3203 char *kwnames[] = {
3204 (char *) "self",(char *) "mask", NULL
3205 };
3206
3207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3210 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3212 {
3213 PyThreadState* __tstate = wxPyBeginAllowThreads();
3214 (arg1)->SetMask(arg2);
3215
3216 wxPyEndAllowThreads(__tstate);
3217 if (PyErr_Occurred()) SWIG_fail;
3218 }
3219 Py_INCREF(Py_None); resultobj = Py_None;
3220 return resultobj;
3221 fail:
3222 return NULL;
3223 }
3224
3225
3226 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3227 PyObject *resultobj;
3228 wxBitmap *arg1 = (wxBitmap *) 0 ;
3229 wxColour *arg2 = 0 ;
3230 wxColour temp2 ;
3231 PyObject * obj0 = 0 ;
3232 PyObject * obj1 = 0 ;
3233 char *kwnames[] = {
3234 (char *) "self",(char *) "colour", NULL
3235 };
3236
3237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3240 {
3241 arg2 = &temp2;
3242 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3243 }
3244 {
3245 PyThreadState* __tstate = wxPyBeginAllowThreads();
3246 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3247
3248 wxPyEndAllowThreads(__tstate);
3249 if (PyErr_Occurred()) SWIG_fail;
3250 }
3251 Py_INCREF(Py_None); resultobj = Py_None;
3252 return resultobj;
3253 fail:
3254 return NULL;
3255 }
3256
3257
3258 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3259 PyObject *resultobj;
3260 wxBitmap *arg1 = (wxBitmap *) 0 ;
3261 wxRect *arg2 = 0 ;
3262 SwigValueWrapper< wxBitmap > result;
3263 wxRect temp2 ;
3264 PyObject * obj0 = 0 ;
3265 PyObject * obj1 = 0 ;
3266 char *kwnames[] = {
3267 (char *) "self",(char *) "rect", NULL
3268 };
3269
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3273 {
3274 arg2 = &temp2;
3275 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3276 }
3277 {
3278 PyThreadState* __tstate = wxPyBeginAllowThreads();
3279 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3280
3281 wxPyEndAllowThreads(__tstate);
3282 if (PyErr_Occurred()) SWIG_fail;
3283 }
3284 {
3285 wxBitmap * resultptr;
3286 resultptr = new wxBitmap((wxBitmap &) result);
3287 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3288 }
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3296 PyObject *resultobj;
3297 wxBitmap *arg1 = (wxBitmap *) 0 ;
3298 wxString *arg2 = 0 ;
3299 int arg3 ;
3300 wxPalette *arg4 = (wxPalette *) NULL ;
3301 bool result;
3302 bool temp2 = false ;
3303 PyObject * obj0 = 0 ;
3304 PyObject * obj1 = 0 ;
3305 PyObject * obj2 = 0 ;
3306 PyObject * obj3 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3314 {
3315 arg2 = wxString_in_helper(obj1);
3316 if (arg2 == NULL) SWIG_fail;
3317 temp2 = true;
3318 }
3319 arg3 = (int)SWIG_As_int(obj2);
3320 if (PyErr_Occurred()) SWIG_fail;
3321 if (obj3) {
3322 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3324 }
3325 {
3326 PyThreadState* __tstate = wxPyBeginAllowThreads();
3327 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3328
3329 wxPyEndAllowThreads(__tstate);
3330 if (PyErr_Occurred()) SWIG_fail;
3331 }
3332 {
3333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3334 }
3335 {
3336 if (temp2)
3337 delete arg2;
3338 }
3339 return resultobj;
3340 fail:
3341 {
3342 if (temp2)
3343 delete arg2;
3344 }
3345 return NULL;
3346 }
3347
3348
3349 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3350 PyObject *resultobj;
3351 wxBitmap *arg1 = (wxBitmap *) 0 ;
3352 wxString *arg2 = 0 ;
3353 int arg3 ;
3354 bool result;
3355 bool temp2 = false ;
3356 PyObject * obj0 = 0 ;
3357 PyObject * obj1 = 0 ;
3358 PyObject * obj2 = 0 ;
3359 char *kwnames[] = {
3360 (char *) "self",(char *) "name",(char *) "type", NULL
3361 };
3362
3363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3366 {
3367 arg2 = wxString_in_helper(obj1);
3368 if (arg2 == NULL) SWIG_fail;
3369 temp2 = true;
3370 }
3371 arg3 = (int)SWIG_As_int(obj2);
3372 if (PyErr_Occurred()) SWIG_fail;
3373 {
3374 PyThreadState* __tstate = wxPyBeginAllowThreads();
3375 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3376
3377 wxPyEndAllowThreads(__tstate);
3378 if (PyErr_Occurred()) SWIG_fail;
3379 }
3380 {
3381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3382 }
3383 {
3384 if (temp2)
3385 delete arg2;
3386 }
3387 return resultobj;
3388 fail:
3389 {
3390 if (temp2)
3391 delete arg2;
3392 }
3393 return NULL;
3394 }
3395
3396
3397 static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
3398 PyObject *resultobj;
3399 wxBitmap *arg1 = (wxBitmap *) 0 ;
3400 wxPalette *result;
3401 PyObject * obj0 = 0 ;
3402 char *kwnames[] = {
3403 (char *) "self", NULL
3404 };
3405
3406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
3407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3409 {
3410 PyThreadState* __tstate = wxPyBeginAllowThreads();
3411 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
3412
3413 wxPyEndAllowThreads(__tstate);
3414 if (PyErr_Occurred()) SWIG_fail;
3415 }
3416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
3417 return resultobj;
3418 fail:
3419 return NULL;
3420 }
3421
3422
3423 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3424 PyObject *resultobj;
3425 wxBitmap *arg1 = (wxBitmap *) 0 ;
3426 wxIcon *arg2 = 0 ;
3427 bool result;
3428 PyObject * obj0 = 0 ;
3429 PyObject * obj1 = 0 ;
3430 char *kwnames[] = {
3431 (char *) "self",(char *) "icon", NULL
3432 };
3433
3434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3437 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3438 SWIG_POINTER_EXCEPTION | 0)) == -1)
3439 SWIG_fail;
3440 if (arg2 == NULL) {
3441 PyErr_SetString(PyExc_TypeError,"null reference");
3442 SWIG_fail;
3443 }
3444 {
3445 PyThreadState* __tstate = wxPyBeginAllowThreads();
3446 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3447
3448 wxPyEndAllowThreads(__tstate);
3449 if (PyErr_Occurred()) SWIG_fail;
3450 }
3451 {
3452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3453 }
3454 return resultobj;
3455 fail:
3456 return NULL;
3457 }
3458
3459
3460 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3461 PyObject *resultobj;
3462 wxBitmap *arg1 = (wxBitmap *) 0 ;
3463 int arg2 ;
3464 PyObject * obj0 = 0 ;
3465 PyObject * obj1 = 0 ;
3466 char *kwnames[] = {
3467 (char *) "self",(char *) "height", NULL
3468 };
3469
3470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3473 arg2 = (int)SWIG_As_int(obj1);
3474 if (PyErr_Occurred()) SWIG_fail;
3475 {
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 (arg1)->SetHeight(arg2);
3478
3479 wxPyEndAllowThreads(__tstate);
3480 if (PyErr_Occurred()) SWIG_fail;
3481 }
3482 Py_INCREF(Py_None); resultobj = Py_None;
3483 return resultobj;
3484 fail:
3485 return NULL;
3486 }
3487
3488
3489 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3490 PyObject *resultobj;
3491 wxBitmap *arg1 = (wxBitmap *) 0 ;
3492 int arg2 ;
3493 PyObject * obj0 = 0 ;
3494 PyObject * obj1 = 0 ;
3495 char *kwnames[] = {
3496 (char *) "self",(char *) "width", NULL
3497 };
3498
3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3502 arg2 = (int)SWIG_As_int(obj1);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 {
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 (arg1)->SetWidth(arg2);
3507
3508 wxPyEndAllowThreads(__tstate);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 Py_INCREF(Py_None); resultobj = Py_None;
3512 return resultobj;
3513 fail:
3514 return NULL;
3515 }
3516
3517
3518 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3519 PyObject *resultobj;
3520 wxBitmap *arg1 = (wxBitmap *) 0 ;
3521 int arg2 ;
3522 PyObject * obj0 = 0 ;
3523 PyObject * obj1 = 0 ;
3524 char *kwnames[] = {
3525 (char *) "self",(char *) "depth", NULL
3526 };
3527
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3531 arg2 = (int)SWIG_As_int(obj1);
3532 if (PyErr_Occurred()) SWIG_fail;
3533 {
3534 PyThreadState* __tstate = wxPyBeginAllowThreads();
3535 (arg1)->SetDepth(arg2);
3536
3537 wxPyEndAllowThreads(__tstate);
3538 if (PyErr_Occurred()) SWIG_fail;
3539 }
3540 Py_INCREF(Py_None); resultobj = Py_None;
3541 return resultobj;
3542 fail:
3543 return NULL;
3544 }
3545
3546
3547 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3548 PyObject *resultobj;
3549 wxBitmap *arg1 = (wxBitmap *) 0 ;
3550 wxSize *arg2 = 0 ;
3551 wxSize temp2 ;
3552 PyObject * obj0 = 0 ;
3553 PyObject * obj1 = 0 ;
3554 char *kwnames[] = {
3555 (char *) "self",(char *) "size", NULL
3556 };
3557
3558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3561 {
3562 arg2 = &temp2;
3563 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3564 }
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 Py_INCREF(Py_None); resultobj = Py_None;
3573 return resultobj;
3574 fail:
3575 return NULL;
3576 }
3577
3578
3579 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3580 PyObject *resultobj;
3581 wxBitmap *arg1 = (wxBitmap *) 0 ;
3582 wxBitmap *arg2 = (wxBitmap *) 0 ;
3583 bool result;
3584 PyObject * obj0 = 0 ;
3585 PyObject * obj1 = 0 ;
3586 char *kwnames[] = {
3587 (char *) "self",(char *) "other", NULL
3588 };
3589
3590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3595 {
3596 PyThreadState* __tstate = wxPyBeginAllowThreads();
3597 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3598
3599 wxPyEndAllowThreads(__tstate);
3600 if (PyErr_Occurred()) SWIG_fail;
3601 }
3602 {
3603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3604 }
3605 return resultobj;
3606 fail:
3607 return NULL;
3608 }
3609
3610
3611 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3612 PyObject *resultobj;
3613 wxBitmap *arg1 = (wxBitmap *) 0 ;
3614 wxBitmap *arg2 = (wxBitmap *) 0 ;
3615 bool result;
3616 PyObject * obj0 = 0 ;
3617 PyObject * obj1 = 0 ;
3618 char *kwnames[] = {
3619 (char *) "self",(char *) "other", NULL
3620 };
3621
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3627 {
3628 PyThreadState* __tstate = wxPyBeginAllowThreads();
3629 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3630
3631 wxPyEndAllowThreads(__tstate);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 }
3634 {
3635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3636 }
3637 return resultobj;
3638 fail:
3639 return NULL;
3640 }
3641
3642
3643 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3644 PyObject *obj;
3645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3646 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3647 Py_INCREF(obj);
3648 return Py_BuildValue((char *)"");
3649 }
3650 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3651 PyObject *resultobj;
3652 wxBitmap *arg1 = 0 ;
3653 wxColour const &arg2_defvalue = wxNullColour ;
3654 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3655 wxMask *result;
3656 wxColour temp2 ;
3657 PyObject * obj0 = 0 ;
3658 PyObject * obj1 = 0 ;
3659 char *kwnames[] = {
3660 (char *) "bitmap",(char *) "colour", NULL
3661 };
3662
3663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3665 SWIG_POINTER_EXCEPTION | 0)) == -1)
3666 SWIG_fail;
3667 if (arg1 == NULL) {
3668 PyErr_SetString(PyExc_TypeError,"null reference");
3669 SWIG_fail;
3670 }
3671 if (obj1) {
3672 {
3673 arg2 = &temp2;
3674 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3675 }
3676 }
3677 {
3678 if (!wxPyCheckForApp()) SWIG_fail;
3679 PyThreadState* __tstate = wxPyBeginAllowThreads();
3680 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3681
3682 wxPyEndAllowThreads(__tstate);
3683 if (PyErr_Occurred()) SWIG_fail;
3684 }
3685 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3686 return resultobj;
3687 fail:
3688 return NULL;
3689 }
3690
3691
3692 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3693 PyObject *obj;
3694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3695 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3696 Py_INCREF(obj);
3697 return Py_BuildValue((char *)"");
3698 }
3699 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3700 PyObject *resultobj;
3701 wxString *arg1 = 0 ;
3702 int arg2 ;
3703 int arg3 = (int) -1 ;
3704 int arg4 = (int) -1 ;
3705 wxIcon *result;
3706 bool temp1 = false ;
3707 PyObject * obj0 = 0 ;
3708 PyObject * obj1 = 0 ;
3709 PyObject * obj2 = 0 ;
3710 PyObject * obj3 = 0 ;
3711 char *kwnames[] = {
3712 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3713 };
3714
3715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3716 {
3717 arg1 = wxString_in_helper(obj0);
3718 if (arg1 == NULL) SWIG_fail;
3719 temp1 = true;
3720 }
3721 arg2 = (int)SWIG_As_int(obj1);
3722 if (PyErr_Occurred()) SWIG_fail;
3723 if (obj2) {
3724 arg3 = (int)SWIG_As_int(obj2);
3725 if (PyErr_Occurred()) SWIG_fail;
3726 }
3727 if (obj3) {
3728 arg4 = (int)SWIG_As_int(obj3);
3729 if (PyErr_Occurred()) SWIG_fail;
3730 }
3731 {
3732 if (!wxPyCheckForApp()) SWIG_fail;
3733 PyThreadState* __tstate = wxPyBeginAllowThreads();
3734 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3735
3736 wxPyEndAllowThreads(__tstate);
3737 if (PyErr_Occurred()) SWIG_fail;
3738 }
3739 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3740 {
3741 if (temp1)
3742 delete arg1;
3743 }
3744 return resultobj;
3745 fail:
3746 {
3747 if (temp1)
3748 delete arg1;
3749 }
3750 return NULL;
3751 }
3752
3753
3754 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3755 PyObject *resultobj;
3756 wxIcon *arg1 = (wxIcon *) 0 ;
3757 PyObject * obj0 = 0 ;
3758 char *kwnames[] = {
3759 (char *) "self", NULL
3760 };
3761
3762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3765 {
3766 PyThreadState* __tstate = wxPyBeginAllowThreads();
3767 delete arg1;
3768
3769 wxPyEndAllowThreads(__tstate);
3770 if (PyErr_Occurred()) SWIG_fail;
3771 }
3772 Py_INCREF(Py_None); resultobj = Py_None;
3773 return resultobj;
3774 fail:
3775 return NULL;
3776 }
3777
3778
3779 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3780 PyObject *resultobj;
3781 wxIcon *result;
3782 char *kwnames[] = {
3783 NULL
3784 };
3785
3786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3787 {
3788 if (!wxPyCheckForApp()) SWIG_fail;
3789 PyThreadState* __tstate = wxPyBeginAllowThreads();
3790 result = (wxIcon *)new wxIcon();
3791
3792 wxPyEndAllowThreads(__tstate);
3793 if (PyErr_Occurred()) SWIG_fail;
3794 }
3795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3796 return resultobj;
3797 fail:
3798 return NULL;
3799 }
3800
3801
3802 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3803 PyObject *resultobj;
3804 wxIconLocation *arg1 = 0 ;
3805 wxIcon *result;
3806 PyObject * obj0 = 0 ;
3807 char *kwnames[] = {
3808 (char *) "loc", NULL
3809 };
3810
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3813 SWIG_POINTER_EXCEPTION | 0)) == -1)
3814 SWIG_fail;
3815 if (arg1 == NULL) {
3816 PyErr_SetString(PyExc_TypeError,"null reference");
3817 SWIG_fail;
3818 }
3819 {
3820 if (!wxPyCheckForApp()) SWIG_fail;
3821 PyThreadState* __tstate = wxPyBeginAllowThreads();
3822 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3823
3824 wxPyEndAllowThreads(__tstate);
3825 if (PyErr_Occurred()) SWIG_fail;
3826 }
3827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3828 return resultobj;
3829 fail:
3830 return NULL;
3831 }
3832
3833
3834 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3835 PyObject *resultobj;
3836 wxBitmap *arg1 = 0 ;
3837 wxIcon *result;
3838 PyObject * obj0 = 0 ;
3839 char *kwnames[] = {
3840 (char *) "bmp", NULL
3841 };
3842
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3845 SWIG_POINTER_EXCEPTION | 0)) == -1)
3846 SWIG_fail;
3847 if (arg1 == NULL) {
3848 PyErr_SetString(PyExc_TypeError,"null reference");
3849 SWIG_fail;
3850 }
3851 {
3852 if (!wxPyCheckForApp()) SWIG_fail;
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
3859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3860 return resultobj;
3861 fail:
3862 return NULL;
3863 }
3864
3865
3866 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3867 PyObject *resultobj;
3868 PyObject *arg1 = (PyObject *) 0 ;
3869 wxIcon *result;
3870 PyObject * obj0 = 0 ;
3871 char *kwnames[] = {
3872 (char *) "listOfStrings", NULL
3873 };
3874
3875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3876 arg1 = obj0;
3877 {
3878 if (!wxPyCheckForApp()) SWIG_fail;
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 result = (wxIcon *)new_wxIcon(arg1);
3881
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3886 return resultobj;
3887 fail:
3888 return NULL;
3889 }
3890
3891
3892 static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3893 PyObject *resultobj;
3894 wxIcon *arg1 = (wxIcon *) 0 ;
3895 wxString *arg2 = 0 ;
3896 int arg3 ;
3897 bool result;
3898 bool temp2 = false ;
3899 PyObject * obj0 = 0 ;
3900 PyObject * obj1 = 0 ;
3901 PyObject * obj2 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "self",(char *) "name",(char *) "type", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3909 {
3910 arg2 = wxString_in_helper(obj1);
3911 if (arg2 == NULL) SWIG_fail;
3912 temp2 = true;
3913 }
3914 arg3 = (int)SWIG_As_int(obj2);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 {
3917 PyThreadState* __tstate = wxPyBeginAllowThreads();
3918 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3919
3920 wxPyEndAllowThreads(__tstate);
3921 if (PyErr_Occurred()) SWIG_fail;
3922 }
3923 {
3924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3925 }
3926 {
3927 if (temp2)
3928 delete arg2;
3929 }
3930 return resultobj;
3931 fail:
3932 {
3933 if (temp2)
3934 delete arg2;
3935 }
3936 return NULL;
3937 }
3938
3939
3940 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3941 PyObject *resultobj;
3942 wxIcon *arg1 = (wxIcon *) 0 ;
3943 bool result;
3944 PyObject * obj0 = 0 ;
3945 char *kwnames[] = {
3946 (char *) "self", NULL
3947 };
3948
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3952 {
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 result = (bool)(arg1)->Ok();
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 {
3960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3961 }
3962 return resultobj;
3963 fail:
3964 return NULL;
3965 }
3966
3967
3968 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3969 PyObject *resultobj;
3970 wxIcon *arg1 = (wxIcon *) 0 ;
3971 int result;
3972 PyObject * obj0 = 0 ;
3973 char *kwnames[] = {
3974 (char *) "self", NULL
3975 };
3976
3977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 result = (int)(arg1)->GetWidth();
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 resultobj = SWIG_From_int((int)result);
3988 return resultobj;
3989 fail:
3990 return NULL;
3991 }
3992
3993
3994 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxIcon *arg1 = (wxIcon *) 0 ;
3997 int result;
3998 PyObject * obj0 = 0 ;
3999 char *kwnames[] = {
4000 (char *) "self", NULL
4001 };
4002
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 result = (int)(arg1)->GetHeight();
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 resultobj = SWIG_From_int((int)result);
4014 return resultobj;
4015 fail:
4016 return NULL;
4017 }
4018
4019
4020 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4021 PyObject *resultobj;
4022 wxIcon *arg1 = (wxIcon *) 0 ;
4023 int result;
4024 PyObject * obj0 = 0 ;
4025 char *kwnames[] = {
4026 (char *) "self", NULL
4027 };
4028
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 result = (int)(arg1)->GetDepth();
4035
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_From_int((int)result);
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj;
4048 wxIcon *arg1 = (wxIcon *) 0 ;
4049 int arg2 ;
4050 PyObject * obj0 = 0 ;
4051 PyObject * obj1 = 0 ;
4052 char *kwnames[] = {
4053 (char *) "self",(char *) "w", NULL
4054 };
4055
4056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4059 arg2 = (int)SWIG_As_int(obj1);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 {
4062 PyThreadState* __tstate = wxPyBeginAllowThreads();
4063 (arg1)->SetWidth(arg2);
4064
4065 wxPyEndAllowThreads(__tstate);
4066 if (PyErr_Occurred()) SWIG_fail;
4067 }
4068 Py_INCREF(Py_None); resultobj = Py_None;
4069 return resultobj;
4070 fail:
4071 return NULL;
4072 }
4073
4074
4075 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4076 PyObject *resultobj;
4077 wxIcon *arg1 = (wxIcon *) 0 ;
4078 int arg2 ;
4079 PyObject * obj0 = 0 ;
4080 PyObject * obj1 = 0 ;
4081 char *kwnames[] = {
4082 (char *) "self",(char *) "h", NULL
4083 };
4084
4085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4088 arg2 = (int)SWIG_As_int(obj1);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 (arg1)->SetHeight(arg2);
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 Py_INCREF(Py_None); resultobj = Py_None;
4098 return resultobj;
4099 fail:
4100 return NULL;
4101 }
4102
4103
4104 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4105 PyObject *resultobj;
4106 wxIcon *arg1 = (wxIcon *) 0 ;
4107 int arg2 ;
4108 PyObject * obj0 = 0 ;
4109 PyObject * obj1 = 0 ;
4110 char *kwnames[] = {
4111 (char *) "self",(char *) "d", NULL
4112 };
4113
4114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4117 arg2 = (int)SWIG_As_int(obj1);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 {
4120 PyThreadState* __tstate = wxPyBeginAllowThreads();
4121 (arg1)->SetDepth(arg2);
4122
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 Py_INCREF(Py_None); resultobj = Py_None;
4127 return resultobj;
4128 fail:
4129 return NULL;
4130 }
4131
4132
4133 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj;
4135 wxIcon *arg1 = (wxIcon *) 0 ;
4136 wxBitmap *arg2 = 0 ;
4137 PyObject * obj0 = 0 ;
4138 PyObject * obj1 = 0 ;
4139 char *kwnames[] = {
4140 (char *) "self",(char *) "bmp", NULL
4141 };
4142
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4146 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4147 SWIG_POINTER_EXCEPTION | 0)) == -1)
4148 SWIG_fail;
4149 if (arg2 == NULL) {
4150 PyErr_SetString(PyExc_TypeError,"null reference");
4151 SWIG_fail;
4152 }
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 Py_INCREF(Py_None); resultobj = Py_None;
4161 return resultobj;
4162 fail:
4163 return NULL;
4164 }
4165
4166
4167 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
4168 PyObject *obj;
4169 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4170 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4171 Py_INCREF(obj);
4172 return Py_BuildValue((char *)"");
4173 }
4174 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4177 int arg2 = (int) 0 ;
4178 wxIconLocation *result;
4179 bool temp1 = false ;
4180 PyObject * obj0 = 0 ;
4181 PyObject * obj1 = 0 ;
4182 char *kwnames[] = {
4183 (char *) "filename",(char *) "num", NULL
4184 };
4185
4186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4187 if (obj0) {
4188 {
4189 arg1 = wxString_in_helper(obj0);
4190 if (arg1 == NULL) SWIG_fail;
4191 temp1 = true;
4192 }
4193 }
4194 if (obj1) {
4195 arg2 = (int)SWIG_As_int(obj1);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 }
4198 {
4199 PyThreadState* __tstate = wxPyBeginAllowThreads();
4200 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4201
4202 wxPyEndAllowThreads(__tstate);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4206 {
4207 if (temp1)
4208 delete arg1;
4209 }
4210 return resultobj;
4211 fail:
4212 {
4213 if (temp1)
4214 delete arg1;
4215 }
4216 return NULL;
4217 }
4218
4219
4220 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4221 PyObject *resultobj;
4222 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4223 PyObject * obj0 = 0 ;
4224 char *kwnames[] = {
4225 (char *) "self", NULL
4226 };
4227
4228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 delete arg1;
4234
4235 wxPyEndAllowThreads(__tstate);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 Py_INCREF(Py_None); resultobj = Py_None;
4239 return resultobj;
4240 fail:
4241 return NULL;
4242 }
4243
4244
4245 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4246 PyObject *resultobj;
4247 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4248 bool result;
4249 PyObject * obj0 = 0 ;
4250 char *kwnames[] = {
4251 (char *) "self", NULL
4252 };
4253
4254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4257 {
4258 PyThreadState* __tstate = wxPyBeginAllowThreads();
4259 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4260
4261 wxPyEndAllowThreads(__tstate);
4262 if (PyErr_Occurred()) SWIG_fail;
4263 }
4264 {
4265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4266 }
4267 return resultobj;
4268 fail:
4269 return NULL;
4270 }
4271
4272
4273 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4274 PyObject *resultobj;
4275 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4276 wxString *arg2 = 0 ;
4277 bool temp2 = false ;
4278 PyObject * obj0 = 0 ;
4279 PyObject * obj1 = 0 ;
4280 char *kwnames[] = {
4281 (char *) "self",(char *) "filename", NULL
4282 };
4283
4284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4287 {
4288 arg2 = wxString_in_helper(obj1);
4289 if (arg2 == NULL) SWIG_fail;
4290 temp2 = true;
4291 }
4292 {
4293 PyThreadState* __tstate = wxPyBeginAllowThreads();
4294 (arg1)->SetFileName((wxString const &)*arg2);
4295
4296 wxPyEndAllowThreads(__tstate);
4297 if (PyErr_Occurred()) SWIG_fail;
4298 }
4299 Py_INCREF(Py_None); resultobj = Py_None;
4300 {
4301 if (temp2)
4302 delete arg2;
4303 }
4304 return resultobj;
4305 fail:
4306 {
4307 if (temp2)
4308 delete arg2;
4309 }
4310 return NULL;
4311 }
4312
4313
4314 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj;
4316 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4317 wxString *result;
4318 PyObject * obj0 = 0 ;
4319 char *kwnames[] = {
4320 (char *) "self", NULL
4321 };
4322
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4326 {
4327 PyThreadState* __tstate = wxPyBeginAllowThreads();
4328 {
4329 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4330 result = (wxString *) &_result_ref;
4331 }
4332
4333 wxPyEndAllowThreads(__tstate);
4334 if (PyErr_Occurred()) SWIG_fail;
4335 }
4336 {
4337 #if wxUSE_UNICODE
4338 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4339 #else
4340 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4341 #endif
4342 }
4343 return resultobj;
4344 fail:
4345 return NULL;
4346 }
4347
4348
4349 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4350 PyObject *resultobj;
4351 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4352 int arg2 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char *kwnames[] = {
4356 (char *) "self",(char *) "num", NULL
4357 };
4358
4359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4362 arg2 = (int)SWIG_As_int(obj1);
4363 if (PyErr_Occurred()) SWIG_fail;
4364 {
4365 PyThreadState* __tstate = wxPyBeginAllowThreads();
4366 wxIconLocation_SetIndex(arg1,arg2);
4367
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 Py_INCREF(Py_None); resultobj = Py_None;
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4379 PyObject *resultobj;
4380 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4381 int result;
4382 PyObject * obj0 = 0 ;
4383 char *kwnames[] = {
4384 (char *) "self", NULL
4385 };
4386
4387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4390 {
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 result = (int)wxIconLocation_GetIndex(arg1);
4393
4394 wxPyEndAllowThreads(__tstate);
4395 if (PyErr_Occurred()) SWIG_fail;
4396 }
4397 resultobj = SWIG_From_int((int)result);
4398 return resultobj;
4399 fail:
4400 return NULL;
4401 }
4402
4403
4404 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4405 PyObject *obj;
4406 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4407 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4408 Py_INCREF(obj);
4409 return Py_BuildValue((char *)"");
4410 }
4411 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4412 PyObject *resultobj;
4413 wxIconBundle *result;
4414 char *kwnames[] = {
4415 NULL
4416 };
4417
4418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4419 {
4420 PyThreadState* __tstate = wxPyBeginAllowThreads();
4421 result = (wxIconBundle *)new wxIconBundle();
4422
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4427 return resultobj;
4428 fail:
4429 return NULL;
4430 }
4431
4432
4433 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4434 PyObject *resultobj;
4435 wxString *arg1 = 0 ;
4436 long arg2 ;
4437 wxIconBundle *result;
4438 bool temp1 = false ;
4439 PyObject * obj0 = 0 ;
4440 PyObject * obj1 = 0 ;
4441 char *kwnames[] = {
4442 (char *) "file",(char *) "type", NULL
4443 };
4444
4445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4446 {
4447 arg1 = wxString_in_helper(obj0);
4448 if (arg1 == NULL) SWIG_fail;
4449 temp1 = true;
4450 }
4451 arg2 = (long)SWIG_As_long(obj1);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4456
4457 wxPyEndAllowThreads(__tstate);
4458 if (PyErr_Occurred()) SWIG_fail;
4459 }
4460 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4461 {
4462 if (temp1)
4463 delete arg1;
4464 }
4465 return resultobj;
4466 fail:
4467 {
4468 if (temp1)
4469 delete arg1;
4470 }
4471 return NULL;
4472 }
4473
4474
4475 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj;
4477 wxIcon *arg1 = 0 ;
4478 wxIconBundle *result;
4479 PyObject * obj0 = 0 ;
4480 char *kwnames[] = {
4481 (char *) "icon", NULL
4482 };
4483
4484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4486 SWIG_POINTER_EXCEPTION | 0)) == -1)
4487 SWIG_fail;
4488 if (arg1 == NULL) {
4489 PyErr_SetString(PyExc_TypeError,"null reference");
4490 SWIG_fail;
4491 }
4492 {
4493 PyThreadState* __tstate = wxPyBeginAllowThreads();
4494 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4495
4496 wxPyEndAllowThreads(__tstate);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4500 return resultobj;
4501 fail:
4502 return NULL;
4503 }
4504
4505
4506 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4507 PyObject *resultobj;
4508 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4509 PyObject * obj0 = 0 ;
4510 char *kwnames[] = {
4511 (char *) "self", NULL
4512 };
4513
4514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4517 {
4518 PyThreadState* __tstate = wxPyBeginAllowThreads();
4519 delete arg1;
4520
4521 wxPyEndAllowThreads(__tstate);
4522 if (PyErr_Occurred()) SWIG_fail;
4523 }
4524 Py_INCREF(Py_None); resultobj = Py_None;
4525 return resultobj;
4526 fail:
4527 return NULL;
4528 }
4529
4530
4531 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4532 PyObject *resultobj;
4533 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4534 wxIcon *arg2 = 0 ;
4535 PyObject * obj0 = 0 ;
4536 PyObject * obj1 = 0 ;
4537 char *kwnames[] = {
4538 (char *) "self",(char *) "icon", NULL
4539 };
4540
4541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4545 SWIG_POINTER_EXCEPTION | 0)) == -1)
4546 SWIG_fail;
4547 if (arg2 == NULL) {
4548 PyErr_SetString(PyExc_TypeError,"null reference");
4549 SWIG_fail;
4550 }
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 (arg1)->AddIcon((wxIcon const &)*arg2);
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 Py_INCREF(Py_None); resultobj = Py_None;
4559 return resultobj;
4560 fail:
4561 return NULL;
4562 }
4563
4564
4565 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4566 PyObject *resultobj;
4567 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4568 wxString *arg2 = 0 ;
4569 long arg3 ;
4570 bool temp2 = false ;
4571 PyObject * obj0 = 0 ;
4572 PyObject * obj1 = 0 ;
4573 PyObject * obj2 = 0 ;
4574 char *kwnames[] = {
4575 (char *) "self",(char *) "file",(char *) "type", NULL
4576 };
4577
4578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4581 {
4582 arg2 = wxString_in_helper(obj1);
4583 if (arg2 == NULL) SWIG_fail;
4584 temp2 = true;
4585 }
4586 arg3 = (long)SWIG_As_long(obj2);
4587 if (PyErr_Occurred()) SWIG_fail;
4588 {
4589 PyThreadState* __tstate = wxPyBeginAllowThreads();
4590 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4591
4592 wxPyEndAllowThreads(__tstate);
4593 if (PyErr_Occurred()) SWIG_fail;
4594 }
4595 Py_INCREF(Py_None); resultobj = Py_None;
4596 {
4597 if (temp2)
4598 delete arg2;
4599 }
4600 return resultobj;
4601 fail:
4602 {
4603 if (temp2)
4604 delete arg2;
4605 }
4606 return NULL;
4607 }
4608
4609
4610 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4611 PyObject *resultobj;
4612 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4613 wxSize *arg2 = 0 ;
4614 wxIcon *result;
4615 wxSize temp2 ;
4616 PyObject * obj0 = 0 ;
4617 PyObject * obj1 = 0 ;
4618 char *kwnames[] = {
4619 (char *) "self",(char *) "size", NULL
4620 };
4621
4622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4625 {
4626 arg2 = &temp2;
4627 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4628 }
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 {
4632 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4633 result = (wxIcon *) &_result_ref;
4634 }
4635
4636 wxPyEndAllowThreads(__tstate);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 {
4640 wxIcon* resultptr = new wxIcon(*result);
4641 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4642 }
4643 return resultobj;
4644 fail:
4645 return NULL;
4646 }
4647
4648
4649 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4650 PyObject *obj;
4651 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4652 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4653 Py_INCREF(obj);
4654 return Py_BuildValue((char *)"");
4655 }
4656 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj;
4658 wxString *arg1 = (wxString *) 0 ;
4659 long arg2 ;
4660 int arg3 = (int) 0 ;
4661 int arg4 = (int) 0 ;
4662 wxCursor *result;
4663 bool temp1 = false ;
4664 PyObject * obj0 = 0 ;
4665 PyObject * obj1 = 0 ;
4666 PyObject * obj2 = 0 ;
4667 PyObject * obj3 = 0 ;
4668 char *kwnames[] = {
4669 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4670 };
4671
4672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4673 {
4674 arg1 = wxString_in_helper(obj0);
4675 if (arg1 == NULL) SWIG_fail;
4676 temp1 = true;
4677 }
4678 arg2 = (long)SWIG_As_long(obj1);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 if (obj2) {
4681 arg3 = (int)SWIG_As_int(obj2);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
4684 if (obj3) {
4685 arg4 = (int)SWIG_As_int(obj3);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 {
4689 if (!wxPyCheckForApp()) SWIG_fail;
4690 PyThreadState* __tstate = wxPyBeginAllowThreads();
4691 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4692
4693 wxPyEndAllowThreads(__tstate);
4694 if (PyErr_Occurred()) SWIG_fail;
4695 }
4696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4697 {
4698 if (temp1)
4699 delete arg1;
4700 }
4701 return resultobj;
4702 fail:
4703 {
4704 if (temp1)
4705 delete arg1;
4706 }
4707 return NULL;
4708 }
4709
4710
4711 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4712 PyObject *resultobj;
4713 wxCursor *arg1 = (wxCursor *) 0 ;
4714 PyObject * obj0 = 0 ;
4715 char *kwnames[] = {
4716 (char *) "self", NULL
4717 };
4718
4719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4722 {
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 delete arg1;
4725
4726 wxPyEndAllowThreads(__tstate);
4727 if (PyErr_Occurred()) SWIG_fail;
4728 }
4729 Py_INCREF(Py_None); resultobj = Py_None;
4730 return resultobj;
4731 fail:
4732 return NULL;
4733 }
4734
4735
4736 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4737 PyObject *resultobj;
4738 int arg1 ;
4739 wxCursor *result;
4740 PyObject * obj0 = 0 ;
4741 char *kwnames[] = {
4742 (char *) "id", NULL
4743 };
4744
4745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4746 arg1 = (int)SWIG_As_int(obj0);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 {
4749 if (!wxPyCheckForApp()) SWIG_fail;
4750 PyThreadState* __tstate = wxPyBeginAllowThreads();
4751 result = (wxCursor *)new wxCursor(arg1);
4752
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4757 return resultobj;
4758 fail:
4759 return NULL;
4760 }
4761
4762
4763 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4764 PyObject *resultobj;
4765 wxImage *arg1 = 0 ;
4766 wxCursor *result;
4767 PyObject * obj0 = 0 ;
4768 char *kwnames[] = {
4769 (char *) "image", NULL
4770 };
4771
4772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4774 SWIG_POINTER_EXCEPTION | 0)) == -1)
4775 SWIG_fail;
4776 if (arg1 == NULL) {
4777 PyErr_SetString(PyExc_TypeError,"null reference");
4778 SWIG_fail;
4779 }
4780 {
4781 if (!wxPyCheckForApp()) SWIG_fail;
4782 PyThreadState* __tstate = wxPyBeginAllowThreads();
4783 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4784
4785 wxPyEndAllowThreads(__tstate);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 }
4788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4789 return resultobj;
4790 fail:
4791 return NULL;
4792 }
4793
4794
4795 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4796 PyObject *resultobj;
4797 wxCursor *arg1 = (wxCursor *) 0 ;
4798 bool result;
4799 PyObject * obj0 = 0 ;
4800 char *kwnames[] = {
4801 (char *) "self", NULL
4802 };
4803
4804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (bool)(arg1)->Ok();
4810
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 {
4815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4816 }
4817 return resultobj;
4818 fail:
4819 return NULL;
4820 }
4821
4822
4823 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
4824 PyObject *obj;
4825 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4826 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4827 Py_INCREF(obj);
4828 return Py_BuildValue((char *)"");
4829 }
4830 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj;
4832 int arg1 = (int) 0 ;
4833 int arg2 = (int) 0 ;
4834 int arg3 = (int) 0 ;
4835 int arg4 = (int) 0 ;
4836 wxRegion *result;
4837 PyObject * obj0 = 0 ;
4838 PyObject * obj1 = 0 ;
4839 PyObject * obj2 = 0 ;
4840 PyObject * obj3 = 0 ;
4841 char *kwnames[] = {
4842 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4843 };
4844
4845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4846 if (obj0) {
4847 arg1 = (int)SWIG_As_int(obj0);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 if (obj1) {
4851 arg2 = (int)SWIG_As_int(obj1);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 if (obj2) {
4855 arg3 = (int)SWIG_As_int(obj2);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 if (obj3) {
4859 arg4 = (int)SWIG_As_int(obj3);
4860 if (PyErr_Occurred()) SWIG_fail;
4861 }
4862 {
4863 if (!wxPyCheckForApp()) SWIG_fail;
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4866
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4871 return resultobj;
4872 fail:
4873 return NULL;
4874 }
4875
4876
4877 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj;
4879 wxBitmap *arg1 = 0 ;
4880 wxRegion *result;
4881 PyObject * obj0 = 0 ;
4882 char *kwnames[] = {
4883 (char *) "bmp", NULL
4884 };
4885
4886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4888 SWIG_POINTER_EXCEPTION | 0)) == -1)
4889 SWIG_fail;
4890 if (arg1 == NULL) {
4891 PyErr_SetString(PyExc_TypeError,"null reference");
4892 SWIG_fail;
4893 }
4894 {
4895 if (!wxPyCheckForApp()) SWIG_fail;
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4898
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4903 return resultobj;
4904 fail:
4905 return NULL;
4906 }
4907
4908
4909 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
4910 PyObject *resultobj;
4911 wxBitmap *arg1 = 0 ;
4912 wxColour *arg2 = 0 ;
4913 int arg3 = (int) 0 ;
4914 wxRegion *result;
4915 wxColour temp2 ;
4916 PyObject * obj0 = 0 ;
4917 PyObject * obj1 = 0 ;
4918 PyObject * obj2 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
4924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4925 SWIG_POINTER_EXCEPTION | 0)) == -1)
4926 SWIG_fail;
4927 if (arg1 == NULL) {
4928 PyErr_SetString(PyExc_TypeError,"null reference");
4929 SWIG_fail;
4930 }
4931 {
4932 arg2 = &temp2;
4933 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4934 }
4935 if (obj2) {
4936 arg3 = (int)SWIG_As_int(obj2);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 {
4940 if (!wxPyCheckForApp()) SWIG_fail;
4941 PyThreadState* __tstate = wxPyBeginAllowThreads();
4942 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4943
4944 wxPyEndAllowThreads(__tstate);
4945 if (PyErr_Occurred()) SWIG_fail;
4946 }
4947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4948 return resultobj;
4949 fail:
4950 return NULL;
4951 }
4952
4953
4954 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
4955 PyObject *resultobj;
4956 int arg1 ;
4957 wxPoint *arg2 = (wxPoint *) 0 ;
4958 int arg3 = (int) wxWINDING_RULE ;
4959 wxRegion *result;
4960 PyObject * obj0 = 0 ;
4961 PyObject * obj1 = 0 ;
4962 char *kwnames[] = {
4963 (char *) "points",(char *) "fillStyle", NULL
4964 };
4965
4966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4967 {
4968 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4969 if (arg2 == NULL) SWIG_fail;
4970 }
4971 if (obj1) {
4972 arg3 = (int)SWIG_As_int(obj1);
4973 if (PyErr_Occurred()) SWIG_fail;
4974 }
4975 {
4976 if (!wxPyCheckForApp()) SWIG_fail;
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4979
4980 wxPyEndAllowThreads(__tstate);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4984 {
4985 if (arg2) delete [] arg2;
4986 }
4987 return resultobj;
4988 fail:
4989 {
4990 if (arg2) delete [] arg2;
4991 }
4992 return NULL;
4993 }
4994
4995
4996 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 wxRegion *arg1 = (wxRegion *) 0 ;
4999 PyObject * obj0 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "self", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 delete arg1;
5010
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 Py_INCREF(Py_None); resultobj = Py_None;
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj;
5023 wxRegion *arg1 = (wxRegion *) 0 ;
5024 PyObject * obj0 = 0 ;
5025 char *kwnames[] = {
5026 (char *) "self", NULL
5027 };
5028
5029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 (arg1)->Clear();
5035
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 Py_INCREF(Py_None); resultobj = Py_None;
5040 return resultobj;
5041 fail:
5042 return NULL;
5043 }
5044
5045
5046 static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
5047 PyObject *resultobj;
5048 wxRegion *arg1 = (wxRegion *) 0 ;
5049 int arg2 ;
5050 int arg3 ;
5051 bool result;
5052 PyObject * obj0 = 0 ;
5053 PyObject * obj1 = 0 ;
5054 PyObject * obj2 = 0 ;
5055 char *kwnames[] = {
5056 (char *) "self",(char *) "x",(char *) "y", NULL
5057 };
5058
5059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5062 arg2 = (int)SWIG_As_int(obj1);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 arg3 = (int)SWIG_As_int(obj2);
5065 if (PyErr_Occurred()) SWIG_fail;
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 result = (bool)(arg1)->Offset(arg2,arg3);
5069
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 {
5074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5075 }
5076 return resultobj;
5077 fail:
5078 return NULL;
5079 }
5080
5081
5082 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
5083 PyObject *resultobj;
5084 wxRegion *arg1 = (wxRegion *) 0 ;
5085 int arg2 ;
5086 int arg3 ;
5087 int result;
5088 PyObject * obj0 = 0 ;
5089 PyObject * obj1 = 0 ;
5090 PyObject * obj2 = 0 ;
5091 char *kwnames[] = {
5092 (char *) "self",(char *) "x",(char *) "y", NULL
5093 };
5094
5095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5098 arg2 = (int)SWIG_As_int(obj1);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 arg3 = (int)SWIG_As_int(obj2);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 result = (int)(arg1)->Contains(arg2,arg3);
5105
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 }
5109 resultobj = SWIG_From_int((int)result);
5110 return resultobj;
5111 fail:
5112 return NULL;
5113 }
5114
5115
5116 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
5117 PyObject *resultobj;
5118 wxRegion *arg1 = (wxRegion *) 0 ;
5119 wxPoint *arg2 = 0 ;
5120 int result;
5121 wxPoint temp2 ;
5122 PyObject * obj0 = 0 ;
5123 PyObject * obj1 = 0 ;
5124 char *kwnames[] = {
5125 (char *) "self",(char *) "pt", NULL
5126 };
5127
5128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5131 {
5132 arg2 = &temp2;
5133 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5134 }
5135 {
5136 PyThreadState* __tstate = wxPyBeginAllowThreads();
5137 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5138
5139 wxPyEndAllowThreads(__tstate);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 }
5142 resultobj = SWIG_From_int((int)result);
5143 return resultobj;
5144 fail:
5145 return NULL;
5146 }
5147
5148
5149 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
5150 PyObject *resultobj;
5151 wxRegion *arg1 = (wxRegion *) 0 ;
5152 wxRect *arg2 = 0 ;
5153 int result;
5154 wxRect temp2 ;
5155 PyObject * obj0 = 0 ;
5156 PyObject * obj1 = 0 ;
5157 char *kwnames[] = {
5158 (char *) "self",(char *) "rect", NULL
5159 };
5160
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5164 {
5165 arg2 = &temp2;
5166 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5167 }
5168 {
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5171
5172 wxPyEndAllowThreads(__tstate);
5173 if (PyErr_Occurred()) SWIG_fail;
5174 }
5175 resultobj = SWIG_From_int((int)result);
5176 return resultobj;
5177 fail:
5178 return NULL;
5179 }
5180
5181
5182 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
5183 PyObject *resultobj;
5184 wxRegion *arg1 = (wxRegion *) 0 ;
5185 int arg2 ;
5186 int arg3 ;
5187 int arg4 ;
5188 int arg5 ;
5189 int result;
5190 PyObject * obj0 = 0 ;
5191 PyObject * obj1 = 0 ;
5192 PyObject * obj2 = 0 ;
5193 PyObject * obj3 = 0 ;
5194 PyObject * obj4 = 0 ;
5195 char *kwnames[] = {
5196 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5197 };
5198
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5202 arg2 = (int)SWIG_As_int(obj1);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 arg3 = (int)SWIG_As_int(obj2);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 arg4 = (int)SWIG_As_int(obj3);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 arg5 = (int)SWIG_As_int(obj4);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 {
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5213
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 resultobj = SWIG_From_int((int)result);
5218 return resultobj;
5219 fail:
5220 return NULL;
5221 }
5222
5223
5224 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
5225 PyObject *resultobj;
5226 wxRegion *arg1 = (wxRegion *) 0 ;
5227 wxRect result;
5228 PyObject * obj0 = 0 ;
5229 char *kwnames[] = {
5230 (char *) "self", NULL
5231 };
5232
5233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5236 {
5237 PyThreadState* __tstate = wxPyBeginAllowThreads();
5238 result = (arg1)->GetBox();
5239
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
5243 {
5244 wxRect * resultptr;
5245 resultptr = new wxRect((wxRect &) result);
5246 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5247 }
5248 return resultobj;
5249 fail:
5250 return NULL;
5251 }
5252
5253
5254 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5255 PyObject *resultobj;
5256 wxRegion *arg1 = (wxRegion *) 0 ;
5257 int arg2 ;
5258 int arg3 ;
5259 int arg4 ;
5260 int arg5 ;
5261 bool result;
5262 PyObject * obj0 = 0 ;
5263 PyObject * obj1 = 0 ;
5264 PyObject * obj2 = 0 ;
5265 PyObject * obj3 = 0 ;
5266 PyObject * obj4 = 0 ;
5267 char *kwnames[] = {
5268 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5269 };
5270
5271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5274 arg2 = (int)SWIG_As_int(obj1);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 arg3 = (int)SWIG_As_int(obj2);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 arg4 = (int)SWIG_As_int(obj3);
5279 if (PyErr_Occurred()) SWIG_fail;
5280 arg5 = (int)SWIG_As_int(obj4);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 {
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5285
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
5289 {
5290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5291 }
5292 return resultobj;
5293 fail:
5294 return NULL;
5295 }
5296
5297
5298 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxRegion *arg1 = (wxRegion *) 0 ;
5301 wxRect *arg2 = 0 ;
5302 bool result;
5303 wxRect temp2 ;
5304 PyObject * obj0 = 0 ;
5305 PyObject * obj1 = 0 ;
5306 char *kwnames[] = {
5307 (char *) "self",(char *) "rect", NULL
5308 };
5309
5310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5313 {
5314 arg2 = &temp2;
5315 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5316 }
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5320
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 {
5325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5326 }
5327 return resultobj;
5328 fail:
5329 return NULL;
5330 }
5331
5332
5333 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5334 PyObject *resultobj;
5335 wxRegion *arg1 = (wxRegion *) 0 ;
5336 wxRegion *arg2 = 0 ;
5337 bool result;
5338 PyObject * obj0 = 0 ;
5339 PyObject * obj1 = 0 ;
5340 char *kwnames[] = {
5341 (char *) "self",(char *) "region", NULL
5342 };
5343
5344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5347 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5348 SWIG_POINTER_EXCEPTION | 0)) == -1)
5349 SWIG_fail;
5350 if (arg2 == NULL) {
5351 PyErr_SetString(PyExc_TypeError,"null reference");
5352 SWIG_fail;
5353 }
5354 {
5355 PyThreadState* __tstate = wxPyBeginAllowThreads();
5356 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5357
5358 wxPyEndAllowThreads(__tstate);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 }
5361 {
5362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5363 }
5364 return resultobj;
5365 fail:
5366 return NULL;
5367 }
5368
5369
5370 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5371 PyObject *resultobj;
5372 wxRegion *arg1 = (wxRegion *) 0 ;
5373 bool result;
5374 PyObject * obj0 = 0 ;
5375 char *kwnames[] = {
5376 (char *) "self", NULL
5377 };
5378
5379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5382 {
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 result = (bool)(arg1)->IsEmpty();
5385
5386 wxPyEndAllowThreads(__tstate);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 }
5389 {
5390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5391 }
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj;
5400 wxRegion *arg1 = (wxRegion *) 0 ;
5401 int arg2 ;
5402 int arg3 ;
5403 int arg4 ;
5404 int arg5 ;
5405 bool result;
5406 PyObject * obj0 = 0 ;
5407 PyObject * obj1 = 0 ;
5408 PyObject * obj2 = 0 ;
5409 PyObject * obj3 = 0 ;
5410 PyObject * obj4 = 0 ;
5411 char *kwnames[] = {
5412 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5413 };
5414
5415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5418 arg2 = (int)SWIG_As_int(obj1);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 arg3 = (int)SWIG_As_int(obj2);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 arg4 = (int)SWIG_As_int(obj3);
5423 if (PyErr_Occurred()) SWIG_fail;
5424 arg5 = (int)SWIG_As_int(obj4);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5429
5430 wxPyEndAllowThreads(__tstate);
5431 if (PyErr_Occurred()) SWIG_fail;
5432 }
5433 {
5434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5435 }
5436 return resultobj;
5437 fail:
5438 return NULL;
5439 }
5440
5441
5442 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
5443 PyObject *resultobj;
5444 wxRegion *arg1 = (wxRegion *) 0 ;
5445 wxRect *arg2 = 0 ;
5446 bool result;
5447 wxRect temp2 ;
5448 PyObject * obj0 = 0 ;
5449 PyObject * obj1 = 0 ;
5450 char *kwnames[] = {
5451 (char *) "self",(char *) "rect", NULL
5452 };
5453
5454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5457 {
5458 arg2 = &temp2;
5459 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5460 }
5461 {
5462 PyThreadState* __tstate = wxPyBeginAllowThreads();
5463 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5464
5465 wxPyEndAllowThreads(__tstate);
5466 if (PyErr_Occurred()) SWIG_fail;
5467 }
5468 {
5469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5470 }
5471 return resultobj;
5472 fail:
5473 return NULL;
5474 }
5475
5476
5477 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5478 PyObject *resultobj;
5479 wxRegion *arg1 = (wxRegion *) 0 ;
5480 wxRegion *arg2 = 0 ;
5481 bool result;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 char *kwnames[] = {
5485 (char *) "self",(char *) "region", NULL
5486 };
5487
5488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5492 SWIG_POINTER_EXCEPTION | 0)) == -1)
5493 SWIG_fail;
5494 if (arg2 == NULL) {
5495 PyErr_SetString(PyExc_TypeError,"null reference");
5496 SWIG_fail;
5497 }
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5501
5502 wxPyEndAllowThreads(__tstate);
5503 if (PyErr_Occurred()) SWIG_fail;
5504 }
5505 {
5506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5507 }
5508 return resultobj;
5509 fail:
5510 return NULL;
5511 }
5512
5513
5514 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj;
5516 wxRegion *arg1 = (wxRegion *) 0 ;
5517 int arg2 ;
5518 int arg3 ;
5519 int arg4 ;
5520 int arg5 ;
5521 bool result;
5522 PyObject * obj0 = 0 ;
5523 PyObject * obj1 = 0 ;
5524 PyObject * obj2 = 0 ;
5525 PyObject * obj3 = 0 ;
5526 PyObject * obj4 = 0 ;
5527 char *kwnames[] = {
5528 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5529 };
5530
5531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5534 arg2 = (int)SWIG_As_int(obj1);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 arg3 = (int)SWIG_As_int(obj2);
5537 if (PyErr_Occurred()) SWIG_fail;
5538 arg4 = (int)SWIG_As_int(obj3);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 arg5 = (int)SWIG_As_int(obj4);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5545
5546 wxPyEndAllowThreads(__tstate);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
5549 {
5550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5551 }
5552 return resultobj;
5553 fail:
5554 return NULL;
5555 }
5556
5557
5558 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
5559 PyObject *resultobj;
5560 wxRegion *arg1 = (wxRegion *) 0 ;
5561 wxRect *arg2 = 0 ;
5562 bool result;
5563 wxRect temp2 ;
5564 PyObject * obj0 = 0 ;
5565 PyObject * obj1 = 0 ;
5566 char *kwnames[] = {
5567 (char *) "self",(char *) "rect", NULL
5568 };
5569
5570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5573 {
5574 arg2 = &temp2;
5575 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5576 }
5577 {
5578 PyThreadState* __tstate = wxPyBeginAllowThreads();
5579 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5580
5581 wxPyEndAllowThreads(__tstate);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 }
5584 {
5585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5586 }
5587 return resultobj;
5588 fail:
5589 return NULL;
5590 }
5591
5592
5593 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5594 PyObject *resultobj;
5595 wxRegion *arg1 = (wxRegion *) 0 ;
5596 wxRegion *arg2 = 0 ;
5597 bool result;
5598 PyObject * obj0 = 0 ;
5599 PyObject * obj1 = 0 ;
5600 char *kwnames[] = {
5601 (char *) "self",(char *) "region", NULL
5602 };
5603
5604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5607 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5608 SWIG_POINTER_EXCEPTION | 0)) == -1)
5609 SWIG_fail;
5610 if (arg2 == NULL) {
5611 PyErr_SetString(PyExc_TypeError,"null reference");
5612 SWIG_fail;
5613 }
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5617
5618 wxPyEndAllowThreads(__tstate);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 }
5621 {
5622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5623 }
5624 return resultobj;
5625 fail:
5626 return NULL;
5627 }
5628
5629
5630 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
5631 PyObject *resultobj;
5632 wxRegion *arg1 = (wxRegion *) 0 ;
5633 int arg2 ;
5634 int arg3 ;
5635 int arg4 ;
5636 int arg5 ;
5637 bool result;
5638 PyObject * obj0 = 0 ;
5639 PyObject * obj1 = 0 ;
5640 PyObject * obj2 = 0 ;
5641 PyObject * obj3 = 0 ;
5642 PyObject * obj4 = 0 ;
5643 char *kwnames[] = {
5644 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5645 };
5646
5647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5650 arg2 = (int)SWIG_As_int(obj1);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 arg3 = (int)SWIG_As_int(obj2);
5653 if (PyErr_Occurred()) SWIG_fail;
5654 arg4 = (int)SWIG_As_int(obj3);
5655 if (PyErr_Occurred()) SWIG_fail;
5656 arg5 = (int)SWIG_As_int(obj4);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 {
5659 PyThreadState* __tstate = wxPyBeginAllowThreads();
5660 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5661
5662 wxPyEndAllowThreads(__tstate);
5663 if (PyErr_Occurred()) SWIG_fail;
5664 }
5665 {
5666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5667 }
5668 return resultobj;
5669 fail:
5670 return NULL;
5671 }
5672
5673
5674 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
5675 PyObject *resultobj;
5676 wxRegion *arg1 = (wxRegion *) 0 ;
5677 wxRect *arg2 = 0 ;
5678 bool result;
5679 wxRect temp2 ;
5680 PyObject * obj0 = 0 ;
5681 PyObject * obj1 = 0 ;
5682 char *kwnames[] = {
5683 (char *) "self",(char *) "rect", NULL
5684 };
5685
5686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5689 {
5690 arg2 = &temp2;
5691 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5692 }
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 {
5701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5702 }
5703 return resultobj;
5704 fail:
5705 return NULL;
5706 }
5707
5708
5709 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5710 PyObject *resultobj;
5711 wxRegion *arg1 = (wxRegion *) 0 ;
5712 wxRegion *arg2 = 0 ;
5713 bool result;
5714 PyObject * obj0 = 0 ;
5715 PyObject * obj1 = 0 ;
5716 char *kwnames[] = {
5717 (char *) "self",(char *) "region", NULL
5718 };
5719
5720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5723 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5724 SWIG_POINTER_EXCEPTION | 0)) == -1)
5725 SWIG_fail;
5726 if (arg2 == NULL) {
5727 PyErr_SetString(PyExc_TypeError,"null reference");
5728 SWIG_fail;
5729 }
5730 {
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
5732 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5733
5734 wxPyEndAllowThreads(__tstate);
5735 if (PyErr_Occurred()) SWIG_fail;
5736 }
5737 {
5738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5739 }
5740 return resultobj;
5741 fail:
5742 return NULL;
5743 }
5744
5745
5746 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5747 PyObject *resultobj;
5748 wxRegion *arg1 = (wxRegion *) 0 ;
5749 SwigValueWrapper< wxBitmap > result;
5750 PyObject * obj0 = 0 ;
5751 char *kwnames[] = {
5752 (char *) "self", NULL
5753 };
5754
5755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 result = (arg1)->ConvertToBitmap();
5761
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 {
5766 wxBitmap * resultptr;
5767 resultptr = new wxBitmap((wxBitmap &) result);
5768 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5769 }
5770 return resultobj;
5771 fail:
5772 return NULL;
5773 }
5774
5775
5776 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5777 PyObject *resultobj;
5778 wxRegion *arg1 = (wxRegion *) 0 ;
5779 wxBitmap *arg2 = 0 ;
5780 bool result;
5781 PyObject * obj0 = 0 ;
5782 PyObject * obj1 = 0 ;
5783 char *kwnames[] = {
5784 (char *) "self",(char *) "bmp", NULL
5785 };
5786
5787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5791 SWIG_POINTER_EXCEPTION | 0)) == -1)
5792 SWIG_fail;
5793 if (arg2 == NULL) {
5794 PyErr_SetString(PyExc_TypeError,"null reference");
5795 SWIG_fail;
5796 }
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5800
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 {
5805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5806 }
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj;
5815 wxRegion *arg1 = (wxRegion *) 0 ;
5816 wxBitmap *arg2 = 0 ;
5817 wxColour *arg3 = 0 ;
5818 int arg4 = (int) 0 ;
5819 bool result;
5820 wxColour temp3 ;
5821 PyObject * obj0 = 0 ;
5822 PyObject * obj1 = 0 ;
5823 PyObject * obj2 = 0 ;
5824 PyObject * obj3 = 0 ;
5825 char *kwnames[] = {
5826 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5827 };
5828
5829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5832 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5833 SWIG_POINTER_EXCEPTION | 0)) == -1)
5834 SWIG_fail;
5835 if (arg2 == NULL) {
5836 PyErr_SetString(PyExc_TypeError,"null reference");
5837 SWIG_fail;
5838 }
5839 {
5840 arg3 = &temp3;
5841 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5842 }
5843 if (obj3) {
5844 arg4 = (int)SWIG_As_int(obj3);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 }
5847 {
5848 PyThreadState* __tstate = wxPyBeginAllowThreads();
5849 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5850
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 {
5855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5856 }
5857 return resultobj;
5858 fail:
5859 return NULL;
5860 }
5861
5862
5863 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
5864 PyObject *obj;
5865 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5866 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5867 Py_INCREF(obj);
5868 return Py_BuildValue((char *)"");
5869 }
5870 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj;
5872 wxRegion *arg1 = 0 ;
5873 wxRegionIterator *result;
5874 PyObject * obj0 = 0 ;
5875 char *kwnames[] = {
5876 (char *) "region", NULL
5877 };
5878
5879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5881 SWIG_POINTER_EXCEPTION | 0)) == -1)
5882 SWIG_fail;
5883 if (arg1 == NULL) {
5884 PyErr_SetString(PyExc_TypeError,"null reference");
5885 SWIG_fail;
5886 }
5887 {
5888 if (!wxPyCheckForApp()) SWIG_fail;
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5891
5892 wxPyEndAllowThreads(__tstate);
5893 if (PyErr_Occurred()) SWIG_fail;
5894 }
5895 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5896 return resultobj;
5897 fail:
5898 return NULL;
5899 }
5900
5901
5902 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5903 PyObject *resultobj;
5904 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5905 PyObject * obj0 = 0 ;
5906 char *kwnames[] = {
5907 (char *) "self", NULL
5908 };
5909
5910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 delete arg1;
5916
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 Py_INCREF(Py_None); resultobj = Py_None;
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj;
5929 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5930 int result;
5931 PyObject * obj0 = 0 ;
5932 char *kwnames[] = {
5933 (char *) "self", NULL
5934 };
5935
5936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5939 {
5940 PyThreadState* __tstate = wxPyBeginAllowThreads();
5941 result = (int)(arg1)->GetX();
5942
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 }
5946 resultobj = SWIG_From_int((int)result);
5947 return resultobj;
5948 fail:
5949 return NULL;
5950 }
5951
5952
5953 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5954 PyObject *resultobj;
5955 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5956 int result;
5957 PyObject * obj0 = 0 ;
5958 char *kwnames[] = {
5959 (char *) "self", NULL
5960 };
5961
5962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5965 {
5966 PyThreadState* __tstate = wxPyBeginAllowThreads();
5967 result = (int)(arg1)->GetY();
5968
5969 wxPyEndAllowThreads(__tstate);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 }
5972 resultobj = SWIG_From_int((int)result);
5973 return resultobj;
5974 fail:
5975 return NULL;
5976 }
5977
5978
5979 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
5980 PyObject *resultobj;
5981 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5982 int result;
5983 PyObject * obj0 = 0 ;
5984 char *kwnames[] = {
5985 (char *) "self", NULL
5986 };
5987
5988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 result = (int)(arg1)->GetW();
5994
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 resultobj = SWIG_From_int((int)result);
5999 return resultobj;
6000 fail:
6001 return NULL;
6002 }
6003
6004
6005 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
6006 PyObject *resultobj;
6007 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6008 int result;
6009 PyObject * obj0 = 0 ;
6010 char *kwnames[] = {
6011 (char *) "self", NULL
6012 };
6013
6014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6017 {
6018 PyThreadState* __tstate = wxPyBeginAllowThreads();
6019 result = (int)(arg1)->GetWidth();
6020
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_From_int((int)result);
6025 return resultobj;
6026 fail:
6027 return NULL;
6028 }
6029
6030
6031 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj;
6033 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6034 int result;
6035 PyObject * obj0 = 0 ;
6036 char *kwnames[] = {
6037 (char *) "self", NULL
6038 };
6039
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6043 {
6044 PyThreadState* __tstate = wxPyBeginAllowThreads();
6045 result = (int)(arg1)->GetH();
6046
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 resultobj = SWIG_From_int((int)result);
6051 return resultobj;
6052 fail:
6053 return NULL;
6054 }
6055
6056
6057 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
6058 PyObject *resultobj;
6059 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6060 int result;
6061 PyObject * obj0 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "self", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6069 {
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 result = (int)(arg1)->GetHeight();
6072
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 resultobj = SWIG_From_int((int)result);
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj;
6085 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6086 wxRect result;
6087 PyObject * obj0 = 0 ;
6088 char *kwnames[] = {
6089 (char *) "self", NULL
6090 };
6091
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 result = (arg1)->GetRect();
6098
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 {
6103 wxRect * resultptr;
6104 resultptr = new wxRect((wxRect &) result);
6105 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6106 }
6107 return resultobj;
6108 fail:
6109 return NULL;
6110 }
6111
6112
6113 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
6114 PyObject *resultobj;
6115 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6116 bool result;
6117 PyObject * obj0 = 0 ;
6118 char *kwnames[] = {
6119 (char *) "self", NULL
6120 };
6121
6122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6125 {
6126 PyThreadState* __tstate = wxPyBeginAllowThreads();
6127 result = (bool)(arg1)->HaveRects();
6128
6129 wxPyEndAllowThreads(__tstate);
6130 if (PyErr_Occurred()) SWIG_fail;
6131 }
6132 {
6133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6134 }
6135 return resultobj;
6136 fail:
6137 return NULL;
6138 }
6139
6140
6141 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj;
6143 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6144 PyObject * obj0 = 0 ;
6145 char *kwnames[] = {
6146 (char *) "self", NULL
6147 };
6148
6149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6152 {
6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
6154 (arg1)->Reset();
6155
6156 wxPyEndAllowThreads(__tstate);
6157 if (PyErr_Occurred()) SWIG_fail;
6158 }
6159 Py_INCREF(Py_None); resultobj = Py_None;
6160 return resultobj;
6161 fail:
6162 return NULL;
6163 }
6164
6165
6166 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
6167 PyObject *resultobj;
6168 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6169 PyObject * obj0 = 0 ;
6170 char *kwnames[] = {
6171 (char *) "self", NULL
6172 };
6173
6174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6177 {
6178 PyThreadState* __tstate = wxPyBeginAllowThreads();
6179 wxRegionIterator_Next(arg1);
6180
6181 wxPyEndAllowThreads(__tstate);
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 Py_INCREF(Py_None); resultobj = Py_None;
6185 return resultobj;
6186 fail:
6187 return NULL;
6188 }
6189
6190
6191 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
6192 PyObject *resultobj;
6193 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6194 bool result;
6195 PyObject * obj0 = 0 ;
6196 char *kwnames[] = {
6197 (char *) "self", NULL
6198 };
6199
6200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 result = (bool)wxRegionIterator___nonzero__(arg1);
6206
6207 wxPyEndAllowThreads(__tstate);
6208 if (PyErr_Occurred()) SWIG_fail;
6209 }
6210 {
6211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6212 }
6213 return resultobj;
6214 fail:
6215 return NULL;
6216 }
6217
6218
6219 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
6220 PyObject *obj;
6221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6222 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6223 Py_INCREF(obj);
6224 return Py_BuildValue((char *)"");
6225 }
6226 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxNativeFontInfo *result;
6229 char *kwnames[] = {
6230 NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6234 {
6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
6236 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6237
6238 wxPyEndAllowThreads(__tstate);
6239 if (PyErr_Occurred()) SWIG_fail;
6240 }
6241 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6242 return resultobj;
6243 fail:
6244 return NULL;
6245 }
6246
6247
6248 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6249 PyObject *resultobj;
6250 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6251 PyObject * obj0 = 0 ;
6252 char *kwnames[] = {
6253 (char *) "self", NULL
6254 };
6255
6256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",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 delete arg1;
6262
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 Py_INCREF(Py_None); resultobj = Py_None;
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6276 PyObject * obj0 = 0 ;
6277 char *kwnames[] = {
6278 (char *) "self", NULL
6279 };
6280
6281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6284 {
6285 PyThreadState* __tstate = wxPyBeginAllowThreads();
6286 (arg1)->Init();
6287
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 Py_INCREF(Py_None); resultobj = Py_None;
6292 return resultobj;
6293 fail:
6294 return NULL;
6295 }
6296
6297
6298 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6299 PyObject *resultobj;
6300 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6301 wxFont *arg2 = 0 ;
6302 PyObject * obj0 = 0 ;
6303 PyObject * obj1 = 0 ;
6304 char *kwnames[] = {
6305 (char *) "self",(char *) "font", NULL
6306 };
6307
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6312 SWIG_POINTER_EXCEPTION | 0)) == -1)
6313 SWIG_fail;
6314 if (arg2 == NULL) {
6315 PyErr_SetString(PyExc_TypeError,"null reference");
6316 SWIG_fail;
6317 }
6318 {
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 (arg1)->InitFromFont((wxFont const &)*arg2);
6321
6322 wxPyEndAllowThreads(__tstate);
6323 if (PyErr_Occurred()) SWIG_fail;
6324 }
6325 Py_INCREF(Py_None); resultobj = Py_None;
6326 return resultobj;
6327 fail:
6328 return NULL;
6329 }
6330
6331
6332 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6333 PyObject *resultobj;
6334 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6335 int result;
6336 PyObject * obj0 = 0 ;
6337 char *kwnames[] = {
6338 (char *) "self", NULL
6339 };
6340
6341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6347
6348 wxPyEndAllowThreads(__tstate);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 resultobj = SWIG_From_int((int)result);
6352 return resultobj;
6353 fail:
6354 return NULL;
6355 }
6356
6357
6358 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj;
6360 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6361 int result;
6362 PyObject * obj0 = 0 ;
6363 char *kwnames[] = {
6364 (char *) "self", NULL
6365 };
6366
6367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6370 {
6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
6372 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6373
6374 wxPyEndAllowThreads(__tstate);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 resultobj = SWIG_From_int((int)result);
6378 return resultobj;
6379 fail:
6380 return NULL;
6381 }
6382
6383
6384 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6385 PyObject *resultobj;
6386 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6387 int result;
6388 PyObject * obj0 = 0 ;
6389 char *kwnames[] = {
6390 (char *) "self", NULL
6391 };
6392
6393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6396 {
6397 PyThreadState* __tstate = wxPyBeginAllowThreads();
6398 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6399
6400 wxPyEndAllowThreads(__tstate);
6401 if (PyErr_Occurred()) SWIG_fail;
6402 }
6403 resultobj = SWIG_From_int((int)result);
6404 return resultobj;
6405 fail:
6406 return NULL;
6407 }
6408
6409
6410 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6411 PyObject *resultobj;
6412 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6413 bool result;
6414 PyObject * obj0 = 0 ;
6415 char *kwnames[] = {
6416 (char *) "self", NULL
6417 };
6418
6419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6422 {
6423 PyThreadState* __tstate = wxPyBeginAllowThreads();
6424 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6425
6426 wxPyEndAllowThreads(__tstate);
6427 if (PyErr_Occurred()) SWIG_fail;
6428 }
6429 {
6430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6431 }
6432 return resultobj;
6433 fail:
6434 return NULL;
6435 }
6436
6437
6438 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6439 PyObject *resultobj;
6440 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6441 wxString result;
6442 PyObject * obj0 = 0 ;
6443 char *kwnames[] = {
6444 (char *) "self", NULL
6445 };
6446
6447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6450 {
6451 PyThreadState* __tstate = wxPyBeginAllowThreads();
6452 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6453
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 {
6458 #if wxUSE_UNICODE
6459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6460 #else
6461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6462 #endif
6463 }
6464 return resultobj;
6465 fail:
6466 return NULL;
6467 }
6468
6469
6470 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6471 PyObject *resultobj;
6472 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6473 int result;
6474 PyObject * obj0 = 0 ;
6475 char *kwnames[] = {
6476 (char *) "self", NULL
6477 };
6478
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_From_int((int)result);
6490 return resultobj;
6491 fail:
6492 return NULL;
6493 }
6494
6495
6496 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6497 PyObject *resultobj;
6498 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6499 int result;
6500 PyObject * obj0 = 0 ;
6501 char *kwnames[] = {
6502 (char *) "self", NULL
6503 };
6504
6505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6511
6512 wxPyEndAllowThreads(__tstate);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 resultobj = SWIG_From_int((int)result);
6516 return resultobj;
6517 fail:
6518 return NULL;
6519 }
6520
6521
6522 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6523 PyObject *resultobj;
6524 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6525 int arg2 ;
6526 PyObject * obj0 = 0 ;
6527 PyObject * obj1 = 0 ;
6528 char *kwnames[] = {
6529 (char *) "self",(char *) "pointsize", NULL
6530 };
6531
6532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6535 arg2 = (int)SWIG_As_int(obj1);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 {
6538 PyThreadState* __tstate = wxPyBeginAllowThreads();
6539 (arg1)->SetPointSize(arg2);
6540
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 Py_INCREF(Py_None); resultobj = Py_None;
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj;
6553 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6554 int arg2 ;
6555 PyObject * obj0 = 0 ;
6556 PyObject * obj1 = 0 ;
6557 char *kwnames[] = {
6558 (char *) "self",(char *) "style", NULL
6559 };
6560
6561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6564 arg2 = (int)SWIG_As_int(obj1);
6565 if (PyErr_Occurred()) SWIG_fail;
6566 {
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 (arg1)->SetStyle((wxFontStyle )arg2);
6569
6570 wxPyEndAllowThreads(__tstate);
6571 if (PyErr_Occurred()) SWIG_fail;
6572 }
6573 Py_INCREF(Py_None); resultobj = Py_None;
6574 return resultobj;
6575 fail:
6576 return NULL;
6577 }
6578
6579
6580 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6581 PyObject *resultobj;
6582 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6583 int arg2 ;
6584 PyObject * obj0 = 0 ;
6585 PyObject * obj1 = 0 ;
6586 char *kwnames[] = {
6587 (char *) "self",(char *) "weight", NULL
6588 };
6589
6590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6593 arg2 = (int)SWIG_As_int(obj1);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 {
6596 PyThreadState* __tstate = wxPyBeginAllowThreads();
6597 (arg1)->SetWeight((wxFontWeight )arg2);
6598
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 Py_INCREF(Py_None); resultobj = Py_None;
6603 return resultobj;
6604 fail:
6605 return NULL;
6606 }
6607
6608
6609 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6610 PyObject *resultobj;
6611 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6612 bool arg2 ;
6613 PyObject * obj0 = 0 ;
6614 PyObject * obj1 = 0 ;
6615 char *kwnames[] = {
6616 (char *) "self",(char *) "underlined", NULL
6617 };
6618
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6622 arg2 = (bool)SWIG_As_bool(obj1);
6623 if (PyErr_Occurred()) SWIG_fail;
6624 {
6625 PyThreadState* __tstate = wxPyBeginAllowThreads();
6626 (arg1)->SetUnderlined(arg2);
6627
6628 wxPyEndAllowThreads(__tstate);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 Py_INCREF(Py_None); resultobj = Py_None;
6632 return resultobj;
6633 fail:
6634 return NULL;
6635 }
6636
6637
6638 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6639 PyObject *resultobj;
6640 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6641 wxString arg2 ;
6642 PyObject * obj0 = 0 ;
6643 PyObject * obj1 = 0 ;
6644 char *kwnames[] = {
6645 (char *) "self",(char *) "facename", NULL
6646 };
6647
6648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6651 {
6652 wxString* sptr = wxString_in_helper(obj1);
6653 if (sptr == NULL) SWIG_fail;
6654 arg2 = *sptr;
6655 delete sptr;
6656 }
6657 {
6658 PyThreadState* __tstate = wxPyBeginAllowThreads();
6659 (arg1)->SetFaceName(arg2);
6660
6661 wxPyEndAllowThreads(__tstate);
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 Py_INCREF(Py_None); resultobj = Py_None;
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj;
6673 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6674 int arg2 ;
6675 PyObject * obj0 = 0 ;
6676 PyObject * obj1 = 0 ;
6677 char *kwnames[] = {
6678 (char *) "self",(char *) "family", NULL
6679 };
6680
6681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6684 arg2 = (int)SWIG_As_int(obj1);
6685 if (PyErr_Occurred()) SWIG_fail;
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 (arg1)->SetFamily((wxFontFamily )arg2);
6689
6690 wxPyEndAllowThreads(__tstate);
6691 if (PyErr_Occurred()) SWIG_fail;
6692 }
6693 Py_INCREF(Py_None); resultobj = Py_None;
6694 return resultobj;
6695 fail:
6696 return NULL;
6697 }
6698
6699
6700 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6701 PyObject *resultobj;
6702 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6703 int arg2 ;
6704 PyObject * obj0 = 0 ;
6705 PyObject * obj1 = 0 ;
6706 char *kwnames[] = {
6707 (char *) "self",(char *) "encoding", NULL
6708 };
6709
6710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6713 arg2 = (int)SWIG_As_int(obj1);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 {
6716 PyThreadState* __tstate = wxPyBeginAllowThreads();
6717 (arg1)->SetEncoding((wxFontEncoding )arg2);
6718
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 Py_INCREF(Py_None); resultobj = Py_None;
6723 return resultobj;
6724 fail:
6725 return NULL;
6726 }
6727
6728
6729 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6730 PyObject *resultobj;
6731 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6732 wxString *arg2 = 0 ;
6733 bool result;
6734 bool temp2 = false ;
6735 PyObject * obj0 = 0 ;
6736 PyObject * obj1 = 0 ;
6737 char *kwnames[] = {
6738 (char *) "self",(char *) "s", NULL
6739 };
6740
6741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6744 {
6745 arg2 = wxString_in_helper(obj1);
6746 if (arg2 == NULL) SWIG_fail;
6747 temp2 = true;
6748 }
6749 {
6750 PyThreadState* __tstate = wxPyBeginAllowThreads();
6751 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6752
6753 wxPyEndAllowThreads(__tstate);
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 {
6757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6758 }
6759 {
6760 if (temp2)
6761 delete arg2;
6762 }
6763 return resultobj;
6764 fail:
6765 {
6766 if (temp2)
6767 delete arg2;
6768 }
6769 return NULL;
6770 }
6771
6772
6773 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6776 wxString result;
6777 PyObject * obj0 = 0 ;
6778 char *kwnames[] = {
6779 (char *) "self", NULL
6780 };
6781
6782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6785 {
6786 PyThreadState* __tstate = wxPyBeginAllowThreads();
6787 result = ((wxNativeFontInfo const *)arg1)->ToString();
6788
6789 wxPyEndAllowThreads(__tstate);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 }
6792 {
6793 #if wxUSE_UNICODE
6794 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6795 #else
6796 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6797 #endif
6798 }
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj;
6807 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6808 wxString result;
6809 PyObject * obj0 = 0 ;
6810 char *kwnames[] = {
6811 (char *) "self", NULL
6812 };
6813
6814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6817 {
6818 PyThreadState* __tstate = wxPyBeginAllowThreads();
6819 result = wxNativeFontInfo___str__(arg1);
6820
6821 wxPyEndAllowThreads(__tstate);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 {
6825 #if wxUSE_UNICODE
6826 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6827 #else
6828 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6829 #endif
6830 }
6831 return resultobj;
6832 fail:
6833 return NULL;
6834 }
6835
6836
6837 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6838 PyObject *resultobj;
6839 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6840 wxString *arg2 = 0 ;
6841 bool result;
6842 bool temp2 = false ;
6843 PyObject * obj0 = 0 ;
6844 PyObject * obj1 = 0 ;
6845 char *kwnames[] = {
6846 (char *) "self",(char *) "s", NULL
6847 };
6848
6849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6852 {
6853 arg2 = wxString_in_helper(obj1);
6854 if (arg2 == NULL) SWIG_fail;
6855 temp2 = true;
6856 }
6857 {
6858 PyThreadState* __tstate = wxPyBeginAllowThreads();
6859 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6860
6861 wxPyEndAllowThreads(__tstate);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 {
6865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6866 }
6867 {
6868 if (temp2)
6869 delete arg2;
6870 }
6871 return resultobj;
6872 fail:
6873 {
6874 if (temp2)
6875 delete arg2;
6876 }
6877 return NULL;
6878 }
6879
6880
6881 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj;
6883 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6884 wxString result;
6885 PyObject * obj0 = 0 ;
6886 char *kwnames[] = {
6887 (char *) "self", NULL
6888 };
6889
6890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6893 {
6894 PyThreadState* __tstate = wxPyBeginAllowThreads();
6895 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6896
6897 wxPyEndAllowThreads(__tstate);
6898 if (PyErr_Occurred()) SWIG_fail;
6899 }
6900 {
6901 #if wxUSE_UNICODE
6902 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6903 #else
6904 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6905 #endif
6906 }
6907 return resultobj;
6908 fail:
6909 return NULL;
6910 }
6911
6912
6913 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
6914 PyObject *obj;
6915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6916 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6917 Py_INCREF(obj);
6918 return Py_BuildValue((char *)"");
6919 }
6920 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
6921 PyObject *resultobj;
6922 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6923 wxString *arg2 = (wxString *) 0 ;
6924 bool temp2 = false ;
6925 PyObject * obj0 = 0 ;
6926 PyObject * obj1 = 0 ;
6927 char *kwnames[] = {
6928 (char *) "self",(char *) "facename", NULL
6929 };
6930
6931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6934 {
6935 arg2 = wxString_in_helper(obj1);
6936 if (arg2 == NULL) SWIG_fail;
6937 temp2 = true;
6938 }
6939 if (arg1) (arg1)->facename = *arg2;
6940
6941 Py_INCREF(Py_None); resultobj = Py_None;
6942 {
6943 if (temp2)
6944 delete arg2;
6945 }
6946 return resultobj;
6947 fail:
6948 {
6949 if (temp2)
6950 delete arg2;
6951 }
6952 return NULL;
6953 }
6954
6955
6956 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
6957 PyObject *resultobj;
6958 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6959 wxString *result;
6960 PyObject * obj0 = 0 ;
6961 char *kwnames[] = {
6962 (char *) "self", NULL
6963 };
6964
6965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6968 result = (wxString *)& ((arg1)->facename);
6969
6970 {
6971 #if wxUSE_UNICODE
6972 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6973 #else
6974 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6975 #endif
6976 }
6977 return resultobj;
6978 fail:
6979 return NULL;
6980 }
6981
6982
6983 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
6984 PyObject *resultobj;
6985 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6986 int arg2 ;
6987 PyObject * obj0 = 0 ;
6988 PyObject * obj1 = 0 ;
6989 char *kwnames[] = {
6990 (char *) "self",(char *) "encoding", NULL
6991 };
6992
6993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6996 arg2 = (int)SWIG_As_int(obj1);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6999
7000 Py_INCREF(Py_None); resultobj = Py_None;
7001 return resultobj;
7002 fail:
7003 return NULL;
7004 }
7005
7006
7007 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
7008 PyObject *resultobj;
7009 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7010 int result;
7011 PyObject * obj0 = 0 ;
7012 char *kwnames[] = {
7013 (char *) "self", NULL
7014 };
7015
7016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7019 result = (int) ((arg1)->encoding);
7020
7021 resultobj = SWIG_From_int((int)result);
7022 return resultobj;
7023 fail:
7024 return NULL;
7025 }
7026
7027
7028 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7029 PyObject *resultobj;
7030 wxNativeEncodingInfo *result;
7031 char *kwnames[] = {
7032 NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7036 {
7037 PyThreadState* __tstate = wxPyBeginAllowThreads();
7038 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7039
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7044 return resultobj;
7045 fail:
7046 return NULL;
7047 }
7048
7049
7050 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7051 PyObject *resultobj;
7052 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7053 PyObject * obj0 = 0 ;
7054 char *kwnames[] = {
7055 (char *) "self", NULL
7056 };
7057
7058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7061 {
7062 PyThreadState* __tstate = wxPyBeginAllowThreads();
7063 delete arg1;
7064
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 Py_INCREF(Py_None); resultobj = Py_None;
7069 return resultobj;
7070 fail:
7071 return NULL;
7072 }
7073
7074
7075 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
7076 PyObject *resultobj;
7077 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7078 wxString *arg2 = 0 ;
7079 bool result;
7080 bool temp2 = false ;
7081 PyObject * obj0 = 0 ;
7082 PyObject * obj1 = 0 ;
7083 char *kwnames[] = {
7084 (char *) "self",(char *) "s", NULL
7085 };
7086
7087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7090 {
7091 arg2 = wxString_in_helper(obj1);
7092 if (arg2 == NULL) SWIG_fail;
7093 temp2 = true;
7094 }
7095 {
7096 PyThreadState* __tstate = wxPyBeginAllowThreads();
7097 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7098
7099 wxPyEndAllowThreads(__tstate);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 {
7103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7104 }
7105 {
7106 if (temp2)
7107 delete arg2;
7108 }
7109 return resultobj;
7110 fail:
7111 {
7112 if (temp2)
7113 delete arg2;
7114 }
7115 return NULL;
7116 }
7117
7118
7119 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
7120 PyObject *resultobj;
7121 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7122 wxString result;
7123 PyObject * obj0 = 0 ;
7124 char *kwnames[] = {
7125 (char *) "self", NULL
7126 };
7127
7128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7131 {
7132 PyThreadState* __tstate = wxPyBeginAllowThreads();
7133 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7134
7135 wxPyEndAllowThreads(__tstate);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 {
7139 #if wxUSE_UNICODE
7140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7141 #else
7142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7143 #endif
7144 }
7145 return resultobj;
7146 fail:
7147 return NULL;
7148 }
7149
7150
7151 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
7152 PyObject *obj;
7153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7154 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7155 Py_INCREF(obj);
7156 return Py_BuildValue((char *)"");
7157 }
7158 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7159 PyObject *resultobj;
7160 int arg1 ;
7161 wxNativeEncodingInfo *result;
7162 PyObject * obj0 = 0 ;
7163 char *kwnames[] = {
7164 (char *) "encoding", NULL
7165 };
7166
7167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7168 arg1 = (int)SWIG_As_int(obj0);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 {
7171 PyThreadState* __tstate = wxPyBeginAllowThreads();
7172 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7173
7174 wxPyEndAllowThreads(__tstate);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7178 return resultobj;
7179 fail:
7180 return NULL;
7181 }
7182
7183
7184 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7185 PyObject *resultobj;
7186 wxNativeEncodingInfo *arg1 = 0 ;
7187 bool result;
7188 PyObject * obj0 = 0 ;
7189 char *kwnames[] = {
7190 (char *) "info", NULL
7191 };
7192
7193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7195 SWIG_POINTER_EXCEPTION | 0)) == -1)
7196 SWIG_fail;
7197 if (arg1 == NULL) {
7198 PyErr_SetString(PyExc_TypeError,"null reference");
7199 SWIG_fail;
7200 }
7201 {
7202 PyThreadState* __tstate = wxPyBeginAllowThreads();
7203 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7204
7205 wxPyEndAllowThreads(__tstate);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 {
7209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7210 }
7211 return resultobj;
7212 fail:
7213 return NULL;
7214 }
7215
7216
7217 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7218 PyObject *resultobj;
7219 wxFontMapper *result;
7220 char *kwnames[] = {
7221 NULL
7222 };
7223
7224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7225 {
7226 PyThreadState* __tstate = wxPyBeginAllowThreads();
7227 result = (wxFontMapper *)new wxFontMapper();
7228
7229 wxPyEndAllowThreads(__tstate);
7230 if (PyErr_Occurred()) SWIG_fail;
7231 }
7232 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7233 return resultobj;
7234 fail:
7235 return NULL;
7236 }
7237
7238
7239 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7240 PyObject *resultobj;
7241 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7242 PyObject * obj0 = 0 ;
7243 char *kwnames[] = {
7244 (char *) "self", NULL
7245 };
7246
7247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 delete arg1;
7253
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 Py_INCREF(Py_None); resultobj = Py_None;
7258 return resultobj;
7259 fail:
7260 return NULL;
7261 }
7262
7263
7264 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
7265 PyObject *resultobj;
7266 wxFontMapper *result;
7267 char *kwnames[] = {
7268 NULL
7269 };
7270
7271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 result = (wxFontMapper *)wxFontMapper::Get();
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7280 return resultobj;
7281 fail:
7282 return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7289 wxFontMapper *result;
7290 PyObject * obj0 = 0 ;
7291 char *kwnames[] = {
7292 (char *) "mapper", NULL
7293 };
7294
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7298 {
7299 PyThreadState* __tstate = wxPyBeginAllowThreads();
7300 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7301
7302 wxPyEndAllowThreads(__tstate);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7306 return resultobj;
7307 fail:
7308 return NULL;
7309 }
7310
7311
7312 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7313 PyObject *resultobj;
7314 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7315 wxString *arg2 = 0 ;
7316 bool arg3 = (bool) true ;
7317 int result;
7318 bool temp2 = false ;
7319 PyObject * obj0 = 0 ;
7320 PyObject * obj1 = 0 ;
7321 PyObject * obj2 = 0 ;
7322 char *kwnames[] = {
7323 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7324 };
7325
7326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7329 {
7330 arg2 = wxString_in_helper(obj1);
7331 if (arg2 == NULL) SWIG_fail;
7332 temp2 = true;
7333 }
7334 if (obj2) {
7335 arg3 = (bool)SWIG_As_bool(obj2);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 resultobj = SWIG_From_int((int)result);
7346 {
7347 if (temp2)
7348 delete arg2;
7349 }
7350 return resultobj;
7351 fail:
7352 {
7353 if (temp2)
7354 delete arg2;
7355 }
7356 return NULL;
7357 }
7358
7359
7360 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
7361 PyObject *resultobj;
7362 size_t result;
7363 char *kwnames[] = {
7364 NULL
7365 };
7366
7367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7368 {
7369 PyThreadState* __tstate = wxPyBeginAllowThreads();
7370 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7371
7372 wxPyEndAllowThreads(__tstate);
7373 if (PyErr_Occurred()) SWIG_fail;
7374 }
7375 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7376 return resultobj;
7377 fail:
7378 return NULL;
7379 }
7380
7381
7382 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7383 PyObject *resultobj;
7384 size_t arg1 ;
7385 int result;
7386 PyObject * obj0 = 0 ;
7387 char *kwnames[] = {
7388 (char *) "n", NULL
7389 };
7390
7391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7392 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
7393 if (PyErr_Occurred()) SWIG_fail;
7394 {
7395 PyThreadState* __tstate = wxPyBeginAllowThreads();
7396 result = (int)wxFontMapper::GetEncoding(arg1);
7397
7398 wxPyEndAllowThreads(__tstate);
7399 if (PyErr_Occurred()) SWIG_fail;
7400 }
7401 resultobj = SWIG_From_int((int)result);
7402 return resultobj;
7403 fail:
7404 return NULL;
7405 }
7406
7407
7408 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
7409 PyObject *resultobj;
7410 int arg1 ;
7411 wxString result;
7412 PyObject * obj0 = 0 ;
7413 char *kwnames[] = {
7414 (char *) "encoding", NULL
7415 };
7416
7417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7418 arg1 = (int)SWIG_As_int(obj0);
7419 if (PyErr_Occurred()) SWIG_fail;
7420 {
7421 PyThreadState* __tstate = wxPyBeginAllowThreads();
7422 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7423
7424 wxPyEndAllowThreads(__tstate);
7425 if (PyErr_Occurred()) SWIG_fail;
7426 }
7427 {
7428 #if wxUSE_UNICODE
7429 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7430 #else
7431 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7432 #endif
7433 }
7434 return resultobj;
7435 fail:
7436 return NULL;
7437 }
7438
7439
7440 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj;
7442 int arg1 ;
7443 wxString result;
7444 PyObject * obj0 = 0 ;
7445 char *kwnames[] = {
7446 (char *) "encoding", NULL
7447 };
7448
7449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7450 arg1 = (int)SWIG_As_int(obj0);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 {
7453 PyThreadState* __tstate = wxPyBeginAllowThreads();
7454 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7455
7456 wxPyEndAllowThreads(__tstate);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 {
7460 #if wxUSE_UNICODE
7461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7462 #else
7463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7464 #endif
7465 }
7466 return resultobj;
7467 fail:
7468 return NULL;
7469 }
7470
7471
7472 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
7473 PyObject *resultobj;
7474 wxString *arg1 = 0 ;
7475 int result;
7476 bool temp1 = false ;
7477 PyObject * obj0 = 0 ;
7478 char *kwnames[] = {
7479 (char *) "name", NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7483 {
7484 arg1 = wxString_in_helper(obj0);
7485 if (arg1 == NULL) SWIG_fail;
7486 temp1 = true;
7487 }
7488 {
7489 PyThreadState* __tstate = wxPyBeginAllowThreads();
7490 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7491
7492 wxPyEndAllowThreads(__tstate);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 resultobj = SWIG_From_int((int)result);
7496 {
7497 if (temp1)
7498 delete arg1;
7499 }
7500 return resultobj;
7501 fail:
7502 {
7503 if (temp1)
7504 delete arg1;
7505 }
7506 return NULL;
7507 }
7508
7509
7510 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
7511 PyObject *resultobj;
7512 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7513 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7514 PyObject * obj0 = 0 ;
7515 PyObject * obj1 = 0 ;
7516 char *kwnames[] = {
7517 (char *) "self",(char *) "config", NULL
7518 };
7519
7520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7523 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7525 {
7526 PyThreadState* __tstate = wxPyBeginAllowThreads();
7527 (arg1)->SetConfig(arg2);
7528
7529 wxPyEndAllowThreads(__tstate);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 Py_INCREF(Py_None); resultobj = Py_None;
7533 return resultobj;
7534 fail:
7535 return NULL;
7536 }
7537
7538
7539 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7540 PyObject *resultobj;
7541 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7542 wxString *arg2 = 0 ;
7543 bool temp2 = false ;
7544 PyObject * obj0 = 0 ;
7545 PyObject * obj1 = 0 ;
7546 char *kwnames[] = {
7547 (char *) "self",(char *) "prefix", NULL
7548 };
7549
7550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7553 {
7554 arg2 = wxString_in_helper(obj1);
7555 if (arg2 == NULL) SWIG_fail;
7556 temp2 = true;
7557 }
7558 {
7559 PyThreadState* __tstate = wxPyBeginAllowThreads();
7560 (arg1)->SetConfigPath((wxString const &)*arg2);
7561
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 Py_INCREF(Py_None); resultobj = Py_None;
7566 {
7567 if (temp2)
7568 delete arg2;
7569 }
7570 return resultobj;
7571 fail:
7572 {
7573 if (temp2)
7574 delete arg2;
7575 }
7576 return NULL;
7577 }
7578
7579
7580 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7581 PyObject *resultobj;
7582 wxString result;
7583 char *kwnames[] = {
7584 NULL
7585 };
7586
7587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7588 {
7589 PyThreadState* __tstate = wxPyBeginAllowThreads();
7590 result = wxFontMapper::GetDefaultConfigPath();
7591
7592 wxPyEndAllowThreads(__tstate);
7593 if (PyErr_Occurred()) SWIG_fail;
7594 }
7595 {
7596 #if wxUSE_UNICODE
7597 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7598 #else
7599 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7600 #endif
7601 }
7602 return resultobj;
7603 fail:
7604 return NULL;
7605 }
7606
7607
7608 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7609 PyObject *resultobj;
7610 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7611 int arg2 ;
7612 wxString const &arg3_defvalue = wxPyEmptyString ;
7613 wxString *arg3 = (wxString *) &arg3_defvalue ;
7614 bool arg4 = (bool) true ;
7615 PyObject *result;
7616 bool temp3 = false ;
7617 PyObject * obj0 = 0 ;
7618 PyObject * obj1 = 0 ;
7619 PyObject * obj2 = 0 ;
7620 PyObject * obj3 = 0 ;
7621 char *kwnames[] = {
7622 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7628 arg2 = (int)SWIG_As_int(obj1);
7629 if (PyErr_Occurred()) SWIG_fail;
7630 if (obj2) {
7631 {
7632 arg3 = wxString_in_helper(obj2);
7633 if (arg3 == NULL) SWIG_fail;
7634 temp3 = true;
7635 }
7636 }
7637 if (obj3) {
7638 arg4 = (bool)SWIG_As_bool(obj3);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 {
7642 PyThreadState* __tstate = wxPyBeginAllowThreads();
7643 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7644
7645 wxPyEndAllowThreads(__tstate);
7646 if (PyErr_Occurred()) SWIG_fail;
7647 }
7648 resultobj = result;
7649 {
7650 if (temp3)
7651 delete arg3;
7652 }
7653 return resultobj;
7654 fail:
7655 {
7656 if (temp3)
7657 delete arg3;
7658 }
7659 return NULL;
7660 }
7661
7662
7663 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
7664 PyObject *resultobj;
7665 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7666 int arg2 ;
7667 wxString const &arg3_defvalue = wxPyEmptyString ;
7668 wxString *arg3 = (wxString *) &arg3_defvalue ;
7669 bool result;
7670 bool temp3 = false ;
7671 PyObject * obj0 = 0 ;
7672 PyObject * obj1 = 0 ;
7673 PyObject * obj2 = 0 ;
7674 char *kwnames[] = {
7675 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7676 };
7677
7678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7681 arg2 = (int)SWIG_As_int(obj1);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 if (obj2) {
7684 {
7685 arg3 = wxString_in_helper(obj2);
7686 if (arg3 == NULL) SWIG_fail;
7687 temp3 = true;
7688 }
7689 }
7690 {
7691 PyThreadState* __tstate = wxPyBeginAllowThreads();
7692 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7693
7694 wxPyEndAllowThreads(__tstate);
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 {
7698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7699 }
7700 {
7701 if (temp3)
7702 delete arg3;
7703 }
7704 return resultobj;
7705 fail:
7706 {
7707 if (temp3)
7708 delete arg3;
7709 }
7710 return NULL;
7711 }
7712
7713
7714 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
7715 PyObject *resultobj;
7716 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7717 wxWindow *arg2 = (wxWindow *) 0 ;
7718 PyObject * obj0 = 0 ;
7719 PyObject * obj1 = 0 ;
7720 char *kwnames[] = {
7721 (char *) "self",(char *) "parent", NULL
7722 };
7723
7724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 (arg1)->SetDialogParent(arg2);
7732
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 Py_INCREF(Py_None); resultobj = Py_None;
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj;
7745 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7746 wxString *arg2 = 0 ;
7747 bool temp2 = false ;
7748 PyObject * obj0 = 0 ;
7749 PyObject * obj1 = 0 ;
7750 char *kwnames[] = {
7751 (char *) "self",(char *) "title", NULL
7752 };
7753
7754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7757 {
7758 arg2 = wxString_in_helper(obj1);
7759 if (arg2 == NULL) SWIG_fail;
7760 temp2 = true;
7761 }
7762 {
7763 PyThreadState* __tstate = wxPyBeginAllowThreads();
7764 (arg1)->SetDialogTitle((wxString const &)*arg2);
7765
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 Py_INCREF(Py_None); resultobj = Py_None;
7770 {
7771 if (temp2)
7772 delete arg2;
7773 }
7774 return resultobj;
7775 fail:
7776 {
7777 if (temp2)
7778 delete arg2;
7779 }
7780 return NULL;
7781 }
7782
7783
7784 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
7785 PyObject *obj;
7786 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7787 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7788 Py_INCREF(obj);
7789 return Py_BuildValue((char *)"");
7790 }
7791 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7792 PyObject *resultobj;
7793 int arg1 ;
7794 int arg2 ;
7795 int arg3 ;
7796 int arg4 ;
7797 bool arg5 = (bool) false ;
7798 wxString const &arg6_defvalue = wxPyEmptyString ;
7799 wxString *arg6 = (wxString *) &arg6_defvalue ;
7800 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7801 wxFont *result;
7802 bool temp6 = false ;
7803 PyObject * obj0 = 0 ;
7804 PyObject * obj1 = 0 ;
7805 PyObject * obj2 = 0 ;
7806 PyObject * obj3 = 0 ;
7807 PyObject * obj4 = 0 ;
7808 PyObject * obj5 = 0 ;
7809 PyObject * obj6 = 0 ;
7810 char *kwnames[] = {
7811 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7812 };
7813
7814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7815 arg1 = (int)SWIG_As_int(obj0);
7816 if (PyErr_Occurred()) SWIG_fail;
7817 arg2 = (int)SWIG_As_int(obj1);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 arg3 = (int)SWIG_As_int(obj2);
7820 if (PyErr_Occurred()) SWIG_fail;
7821 arg4 = (int)SWIG_As_int(obj3);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 if (obj4) {
7824 arg5 = (bool)SWIG_As_bool(obj4);
7825 if (PyErr_Occurred()) SWIG_fail;
7826 }
7827 if (obj5) {
7828 {
7829 arg6 = wxString_in_helper(obj5);
7830 if (arg6 == NULL) SWIG_fail;
7831 temp6 = true;
7832 }
7833 }
7834 if (obj6) {
7835 arg7 = (int)SWIG_As_int(obj6);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 {
7839 if (!wxPyCheckForApp()) SWIG_fail;
7840 PyThreadState* __tstate = wxPyBeginAllowThreads();
7841 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7842
7843 wxPyEndAllowThreads(__tstate);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7847 {
7848 if (temp6)
7849 delete arg6;
7850 }
7851 return resultobj;
7852 fail:
7853 {
7854 if (temp6)
7855 delete arg6;
7856 }
7857 return NULL;
7858 }
7859
7860
7861 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7862 PyObject *resultobj;
7863 wxFont *arg1 = (wxFont *) 0 ;
7864 PyObject * obj0 = 0 ;
7865 char *kwnames[] = {
7866 (char *) "self", NULL
7867 };
7868
7869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7872 {
7873 PyThreadState* __tstate = wxPyBeginAllowThreads();
7874 delete arg1;
7875
7876 wxPyEndAllowThreads(__tstate);
7877 if (PyErr_Occurred()) SWIG_fail;
7878 }
7879 Py_INCREF(Py_None); resultobj = Py_None;
7880 return resultobj;
7881 fail:
7882 return NULL;
7883 }
7884
7885
7886 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7887 PyObject *resultobj;
7888 wxNativeFontInfo *arg1 = 0 ;
7889 wxFont *result;
7890 PyObject * obj0 = 0 ;
7891 char *kwnames[] = {
7892 (char *) "info", NULL
7893 };
7894
7895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7897 SWIG_POINTER_EXCEPTION | 0)) == -1)
7898 SWIG_fail;
7899 if (arg1 == NULL) {
7900 PyErr_SetString(PyExc_TypeError,"null reference");
7901 SWIG_fail;
7902 }
7903 {
7904 if (!wxPyCheckForApp()) SWIG_fail;
7905 PyThreadState* __tstate = wxPyBeginAllowThreads();
7906 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7907
7908 wxPyEndAllowThreads(__tstate);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7912 return resultobj;
7913 fail:
7914 return NULL;
7915 }
7916
7917
7918 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj;
7920 wxString *arg1 = 0 ;
7921 wxFont *result;
7922 bool temp1 = false ;
7923 PyObject * obj0 = 0 ;
7924 char *kwnames[] = {
7925 (char *) "info", NULL
7926 };
7927
7928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7929 {
7930 arg1 = wxString_in_helper(obj0);
7931 if (arg1 == NULL) SWIG_fail;
7932 temp1 = true;
7933 }
7934 {
7935 if (!wxPyCheckForApp()) SWIG_fail;
7936 PyThreadState* __tstate = wxPyBeginAllowThreads();
7937 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7938
7939 wxPyEndAllowThreads(__tstate);
7940 if (PyErr_Occurred()) SWIG_fail;
7941 }
7942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7943 {
7944 if (temp1)
7945 delete arg1;
7946 }
7947 return resultobj;
7948 fail:
7949 {
7950 if (temp1)
7951 delete arg1;
7952 }
7953 return NULL;
7954 }
7955
7956
7957 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
7958 PyObject *resultobj;
7959 int arg1 ;
7960 int arg2 ;
7961 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7962 wxString const &arg4_defvalue = wxPyEmptyString ;
7963 wxString *arg4 = (wxString *) &arg4_defvalue ;
7964 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7965 wxFont *result;
7966 bool temp4 = false ;
7967 PyObject * obj0 = 0 ;
7968 PyObject * obj1 = 0 ;
7969 PyObject * obj2 = 0 ;
7970 PyObject * obj3 = 0 ;
7971 PyObject * obj4 = 0 ;
7972 char *kwnames[] = {
7973 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7974 };
7975
7976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7977 arg1 = (int)SWIG_As_int(obj0);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 arg2 = (int)SWIG_As_int(obj1);
7980 if (PyErr_Occurred()) SWIG_fail;
7981 if (obj2) {
7982 arg3 = (int)SWIG_As_int(obj2);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 if (obj3) {
7986 {
7987 arg4 = wxString_in_helper(obj3);
7988 if (arg4 == NULL) SWIG_fail;
7989 temp4 = true;
7990 }
7991 }
7992 if (obj4) {
7993 arg5 = (int)SWIG_As_int(obj4);
7994 if (PyErr_Occurred()) SWIG_fail;
7995 }
7996 {
7997 if (!wxPyCheckForApp()) SWIG_fail;
7998 PyThreadState* __tstate = wxPyBeginAllowThreads();
7999 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8000
8001 wxPyEndAllowThreads(__tstate);
8002 if (PyErr_Occurred()) SWIG_fail;
8003 }
8004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8005 {
8006 if (temp4)
8007 delete arg4;
8008 }
8009 return resultobj;
8010 fail:
8011 {
8012 if (temp4)
8013 delete arg4;
8014 }
8015 return NULL;
8016 }
8017
8018
8019 static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8020 PyObject *resultobj;
8021 wxSize *arg1 = 0 ;
8022 int arg2 ;
8023 int arg3 ;
8024 int arg4 ;
8025 bool arg5 = (bool) false ;
8026 wxString const &arg6_defvalue = wxEmptyString ;
8027 wxString *arg6 = (wxString *) &arg6_defvalue ;
8028 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8029 wxFont *result;
8030 wxSize temp1 ;
8031 bool temp6 = false ;
8032 PyObject * obj0 = 0 ;
8033 PyObject * obj1 = 0 ;
8034 PyObject * obj2 = 0 ;
8035 PyObject * obj3 = 0 ;
8036 PyObject * obj4 = 0 ;
8037 PyObject * obj5 = 0 ;
8038 PyObject * obj6 = 0 ;
8039 char *kwnames[] = {
8040 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
8041 };
8042
8043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8044 {
8045 arg1 = &temp1;
8046 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
8047 }
8048 arg2 = (int)SWIG_As_int(obj1);
8049 if (PyErr_Occurred()) SWIG_fail;
8050 arg3 = (int)SWIG_As_int(obj2);
8051 if (PyErr_Occurred()) SWIG_fail;
8052 arg4 = (int)SWIG_As_int(obj3);
8053 if (PyErr_Occurred()) SWIG_fail;
8054 if (obj4) {
8055 arg5 = (bool)SWIG_As_bool(obj4);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 if (obj5) {
8059 {
8060 arg6 = wxString_in_helper(obj5);
8061 if (arg6 == NULL) SWIG_fail;
8062 temp6 = true;
8063 }
8064 }
8065 if (obj6) {
8066 arg7 = (int)SWIG_As_int(obj6);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 }
8069 {
8070 if (!wxPyCheckForApp()) SWIG_fail;
8071 PyThreadState* __tstate = wxPyBeginAllowThreads();
8072 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8073
8074 wxPyEndAllowThreads(__tstate);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8078 {
8079 if (temp6)
8080 delete arg6;
8081 }
8082 return resultobj;
8083 fail:
8084 {
8085 if (temp6)
8086 delete arg6;
8087 }
8088 return NULL;
8089 }
8090
8091
8092 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
8093 PyObject *resultobj;
8094 wxFont *arg1 = (wxFont *) 0 ;
8095 bool result;
8096 PyObject * obj0 = 0 ;
8097 char *kwnames[] = {
8098 (char *) "self", NULL
8099 };
8100
8101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8104 {
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 result = (bool)((wxFont const *)arg1)->Ok();
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 {
8112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8113 }
8114 return resultobj;
8115 fail:
8116 return NULL;
8117 }
8118
8119
8120 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
8121 PyObject *resultobj;
8122 wxFont *arg1 = (wxFont *) 0 ;
8123 wxFont *arg2 = (wxFont *) 0 ;
8124 bool result;
8125 PyObject * obj0 = 0 ;
8126 PyObject * obj1 = 0 ;
8127 char *kwnames[] = {
8128 (char *) "self",(char *) "other", NULL
8129 };
8130
8131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 {
8144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8145 }
8146 return resultobj;
8147 fail:
8148 return NULL;
8149 }
8150
8151
8152 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
8153 PyObject *resultobj;
8154 wxFont *arg1 = (wxFont *) 0 ;
8155 wxFont *arg2 = (wxFont *) 0 ;
8156 bool result;
8157 PyObject * obj0 = 0 ;
8158 PyObject * obj1 = 0 ;
8159 char *kwnames[] = {
8160 (char *) "self",(char *) "other", NULL
8161 };
8162
8163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8166 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8168 {
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8171
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 {
8176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8177 }
8178 return resultobj;
8179 fail:
8180 return NULL;
8181 }
8182
8183
8184 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8185 PyObject *resultobj;
8186 wxFont *arg1 = (wxFont *) 0 ;
8187 int result;
8188 PyObject * obj0 = 0 ;
8189 char *kwnames[] = {
8190 (char *) "self", NULL
8191 };
8192
8193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8196 {
8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
8198 result = (int)((wxFont const *)arg1)->GetPointSize();
8199
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 resultobj = SWIG_From_int((int)result);
8204 return resultobj;
8205 fail:
8206 return NULL;
8207 }
8208
8209
8210 static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj;
8212 wxFont *arg1 = (wxFont *) 0 ;
8213 wxSize result;
8214 PyObject * obj0 = 0 ;
8215 char *kwnames[] = {
8216 (char *) "self", NULL
8217 };
8218
8219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
8220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8222 {
8223 PyThreadState* __tstate = wxPyBeginAllowThreads();
8224 result = ((wxFont const *)arg1)->GetPixelSize();
8225
8226 wxPyEndAllowThreads(__tstate);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 }
8229 {
8230 wxSize * resultptr;
8231 resultptr = new wxSize((wxSize &) result);
8232 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
8233 }
8234 return resultobj;
8235 fail:
8236 return NULL;
8237 }
8238
8239
8240 static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
8241 PyObject *resultobj;
8242 wxFont *arg1 = (wxFont *) 0 ;
8243 bool result;
8244 PyObject * obj0 = 0 ;
8245 char *kwnames[] = {
8246 (char *) "self", NULL
8247 };
8248
8249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
8250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8252 {
8253 PyThreadState* __tstate = wxPyBeginAllowThreads();
8254 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
8255
8256 wxPyEndAllowThreads(__tstate);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 }
8259 {
8260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8261 }
8262 return resultobj;
8263 fail:
8264 return NULL;
8265 }
8266
8267
8268 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8269 PyObject *resultobj;
8270 wxFont *arg1 = (wxFont *) 0 ;
8271 int result;
8272 PyObject * obj0 = 0 ;
8273 char *kwnames[] = {
8274 (char *) "self", NULL
8275 };
8276
8277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8280 {
8281 PyThreadState* __tstate = wxPyBeginAllowThreads();
8282 result = (int)((wxFont const *)arg1)->GetFamily();
8283
8284 wxPyEndAllowThreads(__tstate);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 resultobj = SWIG_From_int((int)result);
8288 return resultobj;
8289 fail:
8290 return NULL;
8291 }
8292
8293
8294 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8295 PyObject *resultobj;
8296 wxFont *arg1 = (wxFont *) 0 ;
8297 int result;
8298 PyObject * obj0 = 0 ;
8299 char *kwnames[] = {
8300 (char *) "self", NULL
8301 };
8302
8303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8306 {
8307 PyThreadState* __tstate = wxPyBeginAllowThreads();
8308 result = (int)((wxFont const *)arg1)->GetStyle();
8309
8310 wxPyEndAllowThreads(__tstate);
8311 if (PyErr_Occurred()) SWIG_fail;
8312 }
8313 resultobj = SWIG_From_int((int)result);
8314 return resultobj;
8315 fail:
8316 return NULL;
8317 }
8318
8319
8320 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8321 PyObject *resultobj;
8322 wxFont *arg1 = (wxFont *) 0 ;
8323 int result;
8324 PyObject * obj0 = 0 ;
8325 char *kwnames[] = {
8326 (char *) "self", NULL
8327 };
8328
8329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8332 {
8333 PyThreadState* __tstate = wxPyBeginAllowThreads();
8334 result = (int)((wxFont const *)arg1)->GetWeight();
8335
8336 wxPyEndAllowThreads(__tstate);
8337 if (PyErr_Occurred()) SWIG_fail;
8338 }
8339 resultobj = SWIG_From_int((int)result);
8340 return resultobj;
8341 fail:
8342 return NULL;
8343 }
8344
8345
8346 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8347 PyObject *resultobj;
8348 wxFont *arg1 = (wxFont *) 0 ;
8349 bool result;
8350 PyObject * obj0 = 0 ;
8351 char *kwnames[] = {
8352 (char *) "self", NULL
8353 };
8354
8355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8358 {
8359 PyThreadState* __tstate = wxPyBeginAllowThreads();
8360 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8361
8362 wxPyEndAllowThreads(__tstate);
8363 if (PyErr_Occurred()) SWIG_fail;
8364 }
8365 {
8366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8367 }
8368 return resultobj;
8369 fail:
8370 return NULL;
8371 }
8372
8373
8374 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8375 PyObject *resultobj;
8376 wxFont *arg1 = (wxFont *) 0 ;
8377 wxString result;
8378 PyObject * obj0 = 0 ;
8379 char *kwnames[] = {
8380 (char *) "self", NULL
8381 };
8382
8383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8386 {
8387 PyThreadState* __tstate = wxPyBeginAllowThreads();
8388 result = ((wxFont const *)arg1)->GetFaceName();
8389
8390 wxPyEndAllowThreads(__tstate);
8391 if (PyErr_Occurred()) SWIG_fail;
8392 }
8393 {
8394 #if wxUSE_UNICODE
8395 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8396 #else
8397 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8398 #endif
8399 }
8400 return resultobj;
8401 fail:
8402 return NULL;
8403 }
8404
8405
8406 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8407 PyObject *resultobj;
8408 wxFont *arg1 = (wxFont *) 0 ;
8409 int result;
8410 PyObject * obj0 = 0 ;
8411 char *kwnames[] = {
8412 (char *) "self", NULL
8413 };
8414
8415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8418 {
8419 PyThreadState* __tstate = wxPyBeginAllowThreads();
8420 result = (int)((wxFont const *)arg1)->GetEncoding();
8421
8422 wxPyEndAllowThreads(__tstate);
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 resultobj = SWIG_From_int((int)result);
8426 return resultobj;
8427 fail:
8428 return NULL;
8429 }
8430
8431
8432 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8433 PyObject *resultobj;
8434 wxFont *arg1 = (wxFont *) 0 ;
8435 wxNativeFontInfo *result;
8436 PyObject * obj0 = 0 ;
8437 char *kwnames[] = {
8438 (char *) "self", NULL
8439 };
8440
8441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8444 {
8445 PyThreadState* __tstate = wxPyBeginAllowThreads();
8446 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8447
8448 wxPyEndAllowThreads(__tstate);
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8452 return resultobj;
8453 fail:
8454 return NULL;
8455 }
8456
8457
8458 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8459 PyObject *resultobj;
8460 wxFont *arg1 = (wxFont *) 0 ;
8461 bool result;
8462 PyObject * obj0 = 0 ;
8463 char *kwnames[] = {
8464 (char *) "self", NULL
8465 };
8466
8467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8470 {
8471 PyThreadState* __tstate = wxPyBeginAllowThreads();
8472 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8473
8474 wxPyEndAllowThreads(__tstate);
8475 if (PyErr_Occurred()) SWIG_fail;
8476 }
8477 {
8478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8479 }
8480 return resultobj;
8481 fail:
8482 return NULL;
8483 }
8484
8485
8486 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8487 PyObject *resultobj;
8488 wxFont *arg1 = (wxFont *) 0 ;
8489 wxString result;
8490 PyObject * obj0 = 0 ;
8491 char *kwnames[] = {
8492 (char *) "self", NULL
8493 };
8494
8495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8498 {
8499 PyThreadState* __tstate = wxPyBeginAllowThreads();
8500 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8501
8502 wxPyEndAllowThreads(__tstate);
8503 if (PyErr_Occurred()) SWIG_fail;
8504 }
8505 {
8506 #if wxUSE_UNICODE
8507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8508 #else
8509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8510 #endif
8511 }
8512 return resultobj;
8513 fail:
8514 return NULL;
8515 }
8516
8517
8518 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8519 PyObject *resultobj;
8520 wxFont *arg1 = (wxFont *) 0 ;
8521 wxString result;
8522 PyObject * obj0 = 0 ;
8523 char *kwnames[] = {
8524 (char *) "self", NULL
8525 };
8526
8527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8530 {
8531 PyThreadState* __tstate = wxPyBeginAllowThreads();
8532 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8533
8534 wxPyEndAllowThreads(__tstate);
8535 if (PyErr_Occurred()) SWIG_fail;
8536 }
8537 {
8538 #if wxUSE_UNICODE
8539 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8540 #else
8541 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8542 #endif
8543 }
8544 return resultobj;
8545 fail:
8546 return NULL;
8547 }
8548
8549
8550 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8551 PyObject *resultobj;
8552 wxFont *arg1 = (wxFont *) 0 ;
8553 int arg2 ;
8554 PyObject * obj0 = 0 ;
8555 PyObject * obj1 = 0 ;
8556 char *kwnames[] = {
8557 (char *) "self",(char *) "pointSize", NULL
8558 };
8559
8560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8563 arg2 = (int)SWIG_As_int(obj1);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 {
8566 PyThreadState* __tstate = wxPyBeginAllowThreads();
8567 (arg1)->SetPointSize(arg2);
8568
8569 wxPyEndAllowThreads(__tstate);
8570 if (PyErr_Occurred()) SWIG_fail;
8571 }
8572 Py_INCREF(Py_None); resultobj = Py_None;
8573 return resultobj;
8574 fail:
8575 return NULL;
8576 }
8577
8578
8579 static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8580 PyObject *resultobj;
8581 wxFont *arg1 = (wxFont *) 0 ;
8582 wxSize *arg2 = 0 ;
8583 wxSize temp2 ;
8584 PyObject * obj0 = 0 ;
8585 PyObject * obj1 = 0 ;
8586 char *kwnames[] = {
8587 (char *) "self",(char *) "pixelSize", NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
8591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8593 {
8594 arg2 = &temp2;
8595 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8596 }
8597 {
8598 PyThreadState* __tstate = wxPyBeginAllowThreads();
8599 (arg1)->SetPixelSize((wxSize const &)*arg2);
8600
8601 wxPyEndAllowThreads(__tstate);
8602 if (PyErr_Occurred()) SWIG_fail;
8603 }
8604 Py_INCREF(Py_None); resultobj = Py_None;
8605 return resultobj;
8606 fail:
8607 return NULL;
8608 }
8609
8610
8611 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8612 PyObject *resultobj;
8613 wxFont *arg1 = (wxFont *) 0 ;
8614 int arg2 ;
8615 PyObject * obj0 = 0 ;
8616 PyObject * obj1 = 0 ;
8617 char *kwnames[] = {
8618 (char *) "self",(char *) "family", NULL
8619 };
8620
8621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8624 arg2 = (int)SWIG_As_int(obj1);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 (arg1)->SetFamily(arg2);
8629
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 Py_INCREF(Py_None); resultobj = Py_None;
8634 return resultobj;
8635 fail:
8636 return NULL;
8637 }
8638
8639
8640 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj;
8642 wxFont *arg1 = (wxFont *) 0 ;
8643 int arg2 ;
8644 PyObject * obj0 = 0 ;
8645 PyObject * obj1 = 0 ;
8646 char *kwnames[] = {
8647 (char *) "self",(char *) "style", NULL
8648 };
8649
8650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8653 arg2 = (int)SWIG_As_int(obj1);
8654 if (PyErr_Occurred()) SWIG_fail;
8655 {
8656 PyThreadState* __tstate = wxPyBeginAllowThreads();
8657 (arg1)->SetStyle(arg2);
8658
8659 wxPyEndAllowThreads(__tstate);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 Py_INCREF(Py_None); resultobj = Py_None;
8663 return resultobj;
8664 fail:
8665 return NULL;
8666 }
8667
8668
8669 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8670 PyObject *resultobj;
8671 wxFont *arg1 = (wxFont *) 0 ;
8672 int arg2 ;
8673 PyObject * obj0 = 0 ;
8674 PyObject * obj1 = 0 ;
8675 char *kwnames[] = {
8676 (char *) "self",(char *) "weight", NULL
8677 };
8678
8679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8682 arg2 = (int)SWIG_As_int(obj1);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 {
8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
8686 (arg1)->SetWeight(arg2);
8687
8688 wxPyEndAllowThreads(__tstate);
8689 if (PyErr_Occurred()) SWIG_fail;
8690 }
8691 Py_INCREF(Py_None); resultobj = Py_None;
8692 return resultobj;
8693 fail:
8694 return NULL;
8695 }
8696
8697
8698 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8699 PyObject *resultobj;
8700 wxFont *arg1 = (wxFont *) 0 ;
8701 wxString *arg2 = 0 ;
8702 bool temp2 = false ;
8703 PyObject * obj0 = 0 ;
8704 PyObject * obj1 = 0 ;
8705 char *kwnames[] = {
8706 (char *) "self",(char *) "faceName", NULL
8707 };
8708
8709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8712 {
8713 arg2 = wxString_in_helper(obj1);
8714 if (arg2 == NULL) SWIG_fail;
8715 temp2 = true;
8716 }
8717 {
8718 PyThreadState* __tstate = wxPyBeginAllowThreads();
8719 (arg1)->SetFaceName((wxString const &)*arg2);
8720
8721 wxPyEndAllowThreads(__tstate);
8722 if (PyErr_Occurred()) SWIG_fail;
8723 }
8724 Py_INCREF(Py_None); resultobj = Py_None;
8725 {
8726 if (temp2)
8727 delete arg2;
8728 }
8729 return resultobj;
8730 fail:
8731 {
8732 if (temp2)
8733 delete arg2;
8734 }
8735 return NULL;
8736 }
8737
8738
8739 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8740 PyObject *resultobj;
8741 wxFont *arg1 = (wxFont *) 0 ;
8742 bool arg2 ;
8743 PyObject * obj0 = 0 ;
8744 PyObject * obj1 = 0 ;
8745 char *kwnames[] = {
8746 (char *) "self",(char *) "underlined", NULL
8747 };
8748
8749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8752 arg2 = (bool)SWIG_As_bool(obj1);
8753 if (PyErr_Occurred()) SWIG_fail;
8754 {
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 (arg1)->SetUnderlined(arg2);
8757
8758 wxPyEndAllowThreads(__tstate);
8759 if (PyErr_Occurred()) SWIG_fail;
8760 }
8761 Py_INCREF(Py_None); resultobj = Py_None;
8762 return resultobj;
8763 fail:
8764 return NULL;
8765 }
8766
8767
8768 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8769 PyObject *resultobj;
8770 wxFont *arg1 = (wxFont *) 0 ;
8771 int arg2 ;
8772 PyObject * obj0 = 0 ;
8773 PyObject * obj1 = 0 ;
8774 char *kwnames[] = {
8775 (char *) "self",(char *) "encoding", NULL
8776 };
8777
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8781 arg2 = (int)SWIG_As_int(obj1);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 {
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
8785 (arg1)->SetEncoding((wxFontEncoding )arg2);
8786
8787 wxPyEndAllowThreads(__tstate);
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
8790 Py_INCREF(Py_None); resultobj = Py_None;
8791 return resultobj;
8792 fail:
8793 return NULL;
8794 }
8795
8796
8797 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8798 PyObject *resultobj;
8799 wxFont *arg1 = (wxFont *) 0 ;
8800 wxNativeFontInfo *arg2 = 0 ;
8801 PyObject * obj0 = 0 ;
8802 PyObject * obj1 = 0 ;
8803 char *kwnames[] = {
8804 (char *) "self",(char *) "info", NULL
8805 };
8806
8807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8810 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8811 SWIG_POINTER_EXCEPTION | 0)) == -1)
8812 SWIG_fail;
8813 if (arg2 == NULL) {
8814 PyErr_SetString(PyExc_TypeError,"null reference");
8815 SWIG_fail;
8816 }
8817 {
8818 PyThreadState* __tstate = wxPyBeginAllowThreads();
8819 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8820
8821 wxPyEndAllowThreads(__tstate);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 }
8824 Py_INCREF(Py_None); resultobj = Py_None;
8825 return resultobj;
8826 fail:
8827 return NULL;
8828 }
8829
8830
8831 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
8832 PyObject *resultobj;
8833 wxFont *arg1 = (wxFont *) 0 ;
8834 wxString *arg2 = 0 ;
8835 bool temp2 = false ;
8836 PyObject * obj0 = 0 ;
8837 PyObject * obj1 = 0 ;
8838 char *kwnames[] = {
8839 (char *) "self",(char *) "info", NULL
8840 };
8841
8842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8845 {
8846 arg2 = wxString_in_helper(obj1);
8847 if (arg2 == NULL) SWIG_fail;
8848 temp2 = true;
8849 }
8850 {
8851 PyThreadState* __tstate = wxPyBeginAllowThreads();
8852 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8853
8854 wxPyEndAllowThreads(__tstate);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 Py_INCREF(Py_None); resultobj = Py_None;
8858 {
8859 if (temp2)
8860 delete arg2;
8861 }
8862 return resultobj;
8863 fail:
8864 {
8865 if (temp2)
8866 delete arg2;
8867 }
8868 return NULL;
8869 }
8870
8871
8872 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj;
8874 wxFont *arg1 = (wxFont *) 0 ;
8875 wxString *arg2 = 0 ;
8876 bool temp2 = false ;
8877 PyObject * obj0 = 0 ;
8878 PyObject * obj1 = 0 ;
8879 char *kwnames[] = {
8880 (char *) "self",(char *) "info", NULL
8881 };
8882
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8886 {
8887 arg2 = wxString_in_helper(obj1);
8888 if (arg2 == NULL) SWIG_fail;
8889 temp2 = true;
8890 }
8891 {
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
8893 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8894
8895 wxPyEndAllowThreads(__tstate);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 Py_INCREF(Py_None); resultobj = Py_None;
8899 {
8900 if (temp2)
8901 delete arg2;
8902 }
8903 return resultobj;
8904 fail:
8905 {
8906 if (temp2)
8907 delete arg2;
8908 }
8909 return NULL;
8910 }
8911
8912
8913 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
8914 PyObject *resultobj;
8915 wxFont *arg1 = (wxFont *) 0 ;
8916 wxString result;
8917 PyObject * obj0 = 0 ;
8918 char *kwnames[] = {
8919 (char *) "self", NULL
8920 };
8921
8922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 result = ((wxFont const *)arg1)->GetFamilyString();
8928
8929 wxPyEndAllowThreads(__tstate);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 {
8933 #if wxUSE_UNICODE
8934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8935 #else
8936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8937 #endif
8938 }
8939 return resultobj;
8940 fail:
8941 return NULL;
8942 }
8943
8944
8945 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
8946 PyObject *resultobj;
8947 wxFont *arg1 = (wxFont *) 0 ;
8948 wxString result;
8949 PyObject * obj0 = 0 ;
8950 char *kwnames[] = {
8951 (char *) "self", NULL
8952 };
8953
8954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 result = ((wxFont const *)arg1)->GetStyleString();
8960
8961 wxPyEndAllowThreads(__tstate);
8962 if (PyErr_Occurred()) SWIG_fail;
8963 }
8964 {
8965 #if wxUSE_UNICODE
8966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8967 #else
8968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8969 #endif
8970 }
8971 return resultobj;
8972 fail:
8973 return NULL;
8974 }
8975
8976
8977 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
8978 PyObject *resultobj;
8979 wxFont *arg1 = (wxFont *) 0 ;
8980 wxString result;
8981 PyObject * obj0 = 0 ;
8982 char *kwnames[] = {
8983 (char *) "self", NULL
8984 };
8985
8986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8989 {
8990 PyThreadState* __tstate = wxPyBeginAllowThreads();
8991 result = ((wxFont const *)arg1)->GetWeightString();
8992
8993 wxPyEndAllowThreads(__tstate);
8994 if (PyErr_Occurred()) SWIG_fail;
8995 }
8996 {
8997 #if wxUSE_UNICODE
8998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8999 #else
9000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9001 #endif
9002 }
9003 return resultobj;
9004 fail:
9005 return NULL;
9006 }
9007
9008
9009 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
9010 PyObject *resultobj;
9011 wxFont *arg1 = (wxFont *) 0 ;
9012 bool arg2 = (bool) true ;
9013 PyObject * obj0 = 0 ;
9014 PyObject * obj1 = 0 ;
9015 char *kwnames[] = {
9016 (char *) "self",(char *) "no", NULL
9017 };
9018
9019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9022 if (obj1) {
9023 arg2 = (bool)SWIG_As_bool(obj1);
9024 if (PyErr_Occurred()) SWIG_fail;
9025 }
9026 {
9027 PyThreadState* __tstate = wxPyBeginAllowThreads();
9028 (arg1)->SetNoAntiAliasing(arg2);
9029
9030 wxPyEndAllowThreads(__tstate);
9031 if (PyErr_Occurred()) SWIG_fail;
9032 }
9033 Py_INCREF(Py_None); resultobj = Py_None;
9034 return resultobj;
9035 fail:
9036 return NULL;
9037 }
9038
9039
9040 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
9041 PyObject *resultobj;
9042 wxFont *arg1 = (wxFont *) 0 ;
9043 bool result;
9044 PyObject * obj0 = 0 ;
9045 char *kwnames[] = {
9046 (char *) "self", NULL
9047 };
9048
9049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9052 {
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
9055
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 {
9060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9061 }
9062 return resultobj;
9063 fail:
9064 return NULL;
9065 }
9066
9067
9068 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj;
9070 int result;
9071 char *kwnames[] = {
9072 NULL
9073 };
9074
9075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9076 {
9077 if (!wxPyCheckForApp()) SWIG_fail;
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 result = (int)wxFont::GetDefaultEncoding();
9080
9081 wxPyEndAllowThreads(__tstate);
9082 if (PyErr_Occurred()) SWIG_fail;
9083 }
9084 resultobj = SWIG_From_int((int)result);
9085 return resultobj;
9086 fail:
9087 return NULL;
9088 }
9089
9090
9091 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9092 PyObject *resultobj;
9093 int arg1 ;
9094 PyObject * obj0 = 0 ;
9095 char *kwnames[] = {
9096 (char *) "encoding", NULL
9097 };
9098
9099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9100 arg1 = (int)SWIG_As_int(obj0);
9101 if (PyErr_Occurred()) SWIG_fail;
9102 {
9103 if (!wxPyCheckForApp()) SWIG_fail;
9104 PyThreadState* __tstate = wxPyBeginAllowThreads();
9105 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9106
9107 wxPyEndAllowThreads(__tstate);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 Py_INCREF(Py_None); resultobj = Py_None;
9111 return resultobj;
9112 fail:
9113 return NULL;
9114 }
9115
9116
9117 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
9118 PyObject *obj;
9119 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9120 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9121 Py_INCREF(obj);
9122 return Py_BuildValue((char *)"");
9123 }
9124 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
9125 PyObject *resultobj;
9126 wxPyFontEnumerator *result;
9127 char *kwnames[] = {
9128 NULL
9129 };
9130
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9132 {
9133 if (!wxPyCheckForApp()) SWIG_fail;
9134 PyThreadState* __tstate = wxPyBeginAllowThreads();
9135 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9136
9137 wxPyEndAllowThreads(__tstate);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
9140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9141 return resultobj;
9142 fail:
9143 return NULL;
9144 }
9145
9146
9147 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
9148 PyObject *resultobj;
9149 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9150 PyObject * obj0 = 0 ;
9151 char *kwnames[] = {
9152 (char *) "self", NULL
9153 };
9154
9155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9158 {
9159 PyThreadState* __tstate = wxPyBeginAllowThreads();
9160 delete arg1;
9161
9162 wxPyEndAllowThreads(__tstate);
9163 if (PyErr_Occurred()) SWIG_fail;
9164 }
9165 Py_INCREF(Py_None); resultobj = Py_None;
9166 return resultobj;
9167 fail:
9168 return NULL;
9169 }
9170
9171
9172 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9173 PyObject *resultobj;
9174 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9175 PyObject *arg2 = (PyObject *) 0 ;
9176 PyObject *arg3 = (PyObject *) 0 ;
9177 bool arg4 ;
9178 PyObject * obj0 = 0 ;
9179 PyObject * obj1 = 0 ;
9180 PyObject * obj2 = 0 ;
9181 PyObject * obj3 = 0 ;
9182 char *kwnames[] = {
9183 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9184 };
9185
9186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9189 arg2 = obj1;
9190 arg3 = obj2;
9191 arg4 = (bool)SWIG_As_bool(obj3);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 {
9194 PyThreadState* __tstate = wxPyBeginAllowThreads();
9195 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9196
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 Py_INCREF(Py_None); resultobj = Py_None;
9201 return resultobj;
9202 fail:
9203 return NULL;
9204 }
9205
9206
9207 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9208 PyObject *resultobj;
9209 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9210 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9211 bool arg3 = (bool) false ;
9212 bool result;
9213 PyObject * obj0 = 0 ;
9214 PyObject * obj1 = 0 ;
9215 PyObject * obj2 = 0 ;
9216 char *kwnames[] = {
9217 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9218 };
9219
9220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9223 if (obj1) {
9224 arg2 = (int)SWIG_As_int(obj1);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 }
9227 if (obj2) {
9228 arg3 = (bool)SWIG_As_bool(obj2);
9229 if (PyErr_Occurred()) SWIG_fail;
9230 }
9231 {
9232 PyThreadState* __tstate = wxPyBeginAllowThreads();
9233 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9234
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 {
9239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9240 }
9241 return resultobj;
9242 fail:
9243 return NULL;
9244 }
9245
9246
9247 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9248 PyObject *resultobj;
9249 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9250 wxString const &arg2_defvalue = wxPyEmptyString ;
9251 wxString *arg2 = (wxString *) &arg2_defvalue ;
9252 bool result;
9253 bool temp2 = false ;
9254 PyObject * obj0 = 0 ;
9255 PyObject * obj1 = 0 ;
9256 char *kwnames[] = {
9257 (char *) "self",(char *) "facename", NULL
9258 };
9259
9260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9263 if (obj1) {
9264 {
9265 arg2 = wxString_in_helper(obj1);
9266 if (arg2 == NULL) SWIG_fail;
9267 temp2 = true;
9268 }
9269 }
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9273
9274 wxPyEndAllowThreads(__tstate);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 }
9277 {
9278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9279 }
9280 {
9281 if (temp2)
9282 delete arg2;
9283 }
9284 return resultobj;
9285 fail:
9286 {
9287 if (temp2)
9288 delete arg2;
9289 }
9290 return NULL;
9291 }
9292
9293
9294 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9295 PyObject *resultobj;
9296 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9297 PyObject *result;
9298 PyObject * obj0 = 0 ;
9299 char *kwnames[] = {
9300 (char *) "self", NULL
9301 };
9302
9303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9306 {
9307 PyThreadState* __tstate = wxPyBeginAllowThreads();
9308 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9309
9310 wxPyEndAllowThreads(__tstate);
9311 if (PyErr_Occurred()) SWIG_fail;
9312 }
9313 resultobj = result;
9314 return resultobj;
9315 fail:
9316 return NULL;
9317 }
9318
9319
9320 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9321 PyObject *resultobj;
9322 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9323 PyObject *result;
9324 PyObject * obj0 = 0 ;
9325 char *kwnames[] = {
9326 (char *) "self", NULL
9327 };
9328
9329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9332 {
9333 PyThreadState* __tstate = wxPyBeginAllowThreads();
9334 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9335
9336 wxPyEndAllowThreads(__tstate);
9337 if (PyErr_Occurred()) SWIG_fail;
9338 }
9339 resultobj = result;
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
9347 PyObject *obj;
9348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9349 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9350 Py_INCREF(obj);
9351 return Py_BuildValue((char *)"");
9352 }
9353 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj;
9355 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9356 int arg2 ;
9357 PyObject * obj0 = 0 ;
9358 PyObject * obj1 = 0 ;
9359 char *kwnames[] = {
9360 (char *) "self",(char *) "Language", NULL
9361 };
9362
9363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9366 arg2 = (int)SWIG_As_int(obj1);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 if (arg1) (arg1)->Language = arg2;
9369
9370 Py_INCREF(Py_None); resultobj = Py_None;
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj;
9379 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9380 int result;
9381 PyObject * obj0 = 0 ;
9382 char *kwnames[] = {
9383 (char *) "self", NULL
9384 };
9385
9386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9389 result = (int) ((arg1)->Language);
9390
9391 resultobj = SWIG_From_int((int)result);
9392 return resultobj;
9393 fail:
9394 return NULL;
9395 }
9396
9397
9398 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
9399 PyObject *resultobj;
9400 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9401 wxString *arg2 = (wxString *) 0 ;
9402 bool temp2 = false ;
9403 PyObject * obj0 = 0 ;
9404 PyObject * obj1 = 0 ;
9405 char *kwnames[] = {
9406 (char *) "self",(char *) "CanonicalName", NULL
9407 };
9408
9409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9412 {
9413 arg2 = wxString_in_helper(obj1);
9414 if (arg2 == NULL) SWIG_fail;
9415 temp2 = true;
9416 }
9417 if (arg1) (arg1)->CanonicalName = *arg2;
9418
9419 Py_INCREF(Py_None); resultobj = Py_None;
9420 {
9421 if (temp2)
9422 delete arg2;
9423 }
9424 return resultobj;
9425 fail:
9426 {
9427 if (temp2)
9428 delete arg2;
9429 }
9430 return NULL;
9431 }
9432
9433
9434 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
9435 PyObject *resultobj;
9436 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9437 wxString *result;
9438 PyObject * obj0 = 0 ;
9439 char *kwnames[] = {
9440 (char *) "self", NULL
9441 };
9442
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9446 result = (wxString *)& ((arg1)->CanonicalName);
9447
9448 {
9449 #if wxUSE_UNICODE
9450 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9451 #else
9452 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9453 #endif
9454 }
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
9462 PyObject *resultobj;
9463 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9464 wxString *arg2 = (wxString *) 0 ;
9465 bool temp2 = false ;
9466 PyObject * obj0 = 0 ;
9467 PyObject * obj1 = 0 ;
9468 char *kwnames[] = {
9469 (char *) "self",(char *) "Description", NULL
9470 };
9471
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9475 {
9476 arg2 = wxString_in_helper(obj1);
9477 if (arg2 == NULL) SWIG_fail;
9478 temp2 = true;
9479 }
9480 if (arg1) (arg1)->Description = *arg2;
9481
9482 Py_INCREF(Py_None); resultobj = Py_None;
9483 {
9484 if (temp2)
9485 delete arg2;
9486 }
9487 return resultobj;
9488 fail:
9489 {
9490 if (temp2)
9491 delete arg2;
9492 }
9493 return NULL;
9494 }
9495
9496
9497 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj;
9499 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9500 wxString *result;
9501 PyObject * obj0 = 0 ;
9502 char *kwnames[] = {
9503 (char *) "self", NULL
9504 };
9505
9506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9509 result = (wxString *)& ((arg1)->Description);
9510
9511 {
9512 #if wxUSE_UNICODE
9513 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9514 #else
9515 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9516 #endif
9517 }
9518 return resultobj;
9519 fail:
9520 return NULL;
9521 }
9522
9523
9524 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
9525 PyObject *obj;
9526 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9527 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9528 Py_INCREF(obj);
9529 return Py_BuildValue((char *)"");
9530 }
9531 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9532 PyObject *resultobj;
9533 int arg1 = (int) -1 ;
9534 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9535 wxLocale *result;
9536 PyObject * obj0 = 0 ;
9537 PyObject * obj1 = 0 ;
9538 char *kwnames[] = {
9539 (char *) "language",(char *) "flags", NULL
9540 };
9541
9542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9543 if (obj0) {
9544 arg1 = (int)SWIG_As_int(obj0);
9545 if (PyErr_Occurred()) SWIG_fail;
9546 }
9547 if (obj1) {
9548 arg2 = (int)SWIG_As_int(obj1);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 result = (wxLocale *)new_wxLocale(arg1,arg2);
9554
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9559 return resultobj;
9560 fail:
9561 return NULL;
9562 }
9563
9564
9565 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9566 PyObject *resultobj;
9567 wxLocale *arg1 = (wxLocale *) 0 ;
9568 PyObject * obj0 = 0 ;
9569 char *kwnames[] = {
9570 (char *) "self", NULL
9571 };
9572
9573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9576 {
9577 PyThreadState* __tstate = wxPyBeginAllowThreads();
9578 delete arg1;
9579
9580 wxPyEndAllowThreads(__tstate);
9581 if (PyErr_Occurred()) SWIG_fail;
9582 }
9583 Py_INCREF(Py_None); resultobj = Py_None;
9584 return resultobj;
9585 fail:
9586 return NULL;
9587 }
9588
9589
9590 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
9591 PyObject *resultobj;
9592 wxLocale *arg1 = (wxLocale *) 0 ;
9593 wxString *arg2 = 0 ;
9594 wxString const &arg3_defvalue = wxPyEmptyString ;
9595 wxString *arg3 = (wxString *) &arg3_defvalue ;
9596 wxString const &arg4_defvalue = wxPyEmptyString ;
9597 wxString *arg4 = (wxString *) &arg4_defvalue ;
9598 bool arg5 = (bool) true ;
9599 bool arg6 = (bool) false ;
9600 bool result;
9601 bool temp2 = false ;
9602 bool temp3 = false ;
9603 bool temp4 = false ;
9604 PyObject * obj0 = 0 ;
9605 PyObject * obj1 = 0 ;
9606 PyObject * obj2 = 0 ;
9607 PyObject * obj3 = 0 ;
9608 PyObject * obj4 = 0 ;
9609 PyObject * obj5 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9612 };
9613
9614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9617 {
9618 arg2 = wxString_in_helper(obj1);
9619 if (arg2 == NULL) SWIG_fail;
9620 temp2 = true;
9621 }
9622 if (obj2) {
9623 {
9624 arg3 = wxString_in_helper(obj2);
9625 if (arg3 == NULL) SWIG_fail;
9626 temp3 = true;
9627 }
9628 }
9629 if (obj3) {
9630 {
9631 arg4 = wxString_in_helper(obj3);
9632 if (arg4 == NULL) SWIG_fail;
9633 temp4 = true;
9634 }
9635 }
9636 if (obj4) {
9637 arg5 = (bool)SWIG_As_bool(obj4);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 }
9640 if (obj5) {
9641 arg6 = (bool)SWIG_As_bool(obj5);
9642 if (PyErr_Occurred()) SWIG_fail;
9643 }
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9647
9648 wxPyEndAllowThreads(__tstate);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 {
9652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9653 }
9654 {
9655 if (temp2)
9656 delete arg2;
9657 }
9658 {
9659 if (temp3)
9660 delete arg3;
9661 }
9662 {
9663 if (temp4)
9664 delete arg4;
9665 }
9666 return resultobj;
9667 fail:
9668 {
9669 if (temp2)
9670 delete arg2;
9671 }
9672 {
9673 if (temp3)
9674 delete arg3;
9675 }
9676 {
9677 if (temp4)
9678 delete arg4;
9679 }
9680 return NULL;
9681 }
9682
9683
9684 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj;
9686 wxLocale *arg1 = (wxLocale *) 0 ;
9687 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9688 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9689 bool result;
9690 PyObject * obj0 = 0 ;
9691 PyObject * obj1 = 0 ;
9692 PyObject * obj2 = 0 ;
9693 char *kwnames[] = {
9694 (char *) "self",(char *) "language",(char *) "flags", NULL
9695 };
9696
9697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9700 if (obj1) {
9701 arg2 = (int)SWIG_As_int(obj1);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 if (obj2) {
9705 arg3 = (int)SWIG_As_int(obj2);
9706 if (PyErr_Occurred()) SWIG_fail;
9707 }
9708 {
9709 PyThreadState* __tstate = wxPyBeginAllowThreads();
9710 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
9711
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 {
9716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9717 }
9718 return resultobj;
9719 fail:
9720 return NULL;
9721 }
9722
9723
9724 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9725 PyObject *resultobj;
9726 int result;
9727 char *kwnames[] = {
9728 NULL
9729 };
9730
9731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9732 {
9733 PyThreadState* __tstate = wxPyBeginAllowThreads();
9734 result = (int)wxLocale::GetSystemLanguage();
9735
9736 wxPyEndAllowThreads(__tstate);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 resultobj = SWIG_From_int((int)result);
9740 return resultobj;
9741 fail:
9742 return NULL;
9743 }
9744
9745
9746 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9747 PyObject *resultobj;
9748 int result;
9749 char *kwnames[] = {
9750 NULL
9751 };
9752
9753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9754 {
9755 PyThreadState* __tstate = wxPyBeginAllowThreads();
9756 result = (int)wxLocale::GetSystemEncoding();
9757
9758 wxPyEndAllowThreads(__tstate);
9759 if (PyErr_Occurred()) SWIG_fail;
9760 }
9761 resultobj = SWIG_From_int((int)result);
9762 return resultobj;
9763 fail:
9764 return NULL;
9765 }
9766
9767
9768 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9769 PyObject *resultobj;
9770 wxString result;
9771 char *kwnames[] = {
9772 NULL
9773 };
9774
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 result = wxLocale::GetSystemEncodingName();
9779
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 {
9784 #if wxUSE_UNICODE
9785 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9786 #else
9787 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9788 #endif
9789 }
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj;
9798 wxLocale *arg1 = (wxLocale *) 0 ;
9799 bool result;
9800 PyObject * obj0 = 0 ;
9801 char *kwnames[] = {
9802 (char *) "self", NULL
9803 };
9804
9805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9808 {
9809 PyThreadState* __tstate = wxPyBeginAllowThreads();
9810 result = (bool)((wxLocale const *)arg1)->IsOk();
9811
9812 wxPyEndAllowThreads(__tstate);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 {
9816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9817 }
9818 return resultobj;
9819 fail:
9820 return NULL;
9821 }
9822
9823
9824 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9825 PyObject *resultobj;
9826 wxLocale *arg1 = (wxLocale *) 0 ;
9827 wxString result;
9828 PyObject * obj0 = 0 ;
9829 char *kwnames[] = {
9830 (char *) "self", NULL
9831 };
9832
9833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9836 {
9837 PyThreadState* __tstate = wxPyBeginAllowThreads();
9838 result = ((wxLocale const *)arg1)->GetLocale();
9839
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 {
9844 #if wxUSE_UNICODE
9845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9846 #else
9847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9848 #endif
9849 }
9850 return resultobj;
9851 fail:
9852 return NULL;
9853 }
9854
9855
9856 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9857 PyObject *resultobj;
9858 wxLocale *arg1 = (wxLocale *) 0 ;
9859 int result;
9860 PyObject * obj0 = 0 ;
9861 char *kwnames[] = {
9862 (char *) "self", NULL
9863 };
9864
9865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9868 {
9869 PyThreadState* __tstate = wxPyBeginAllowThreads();
9870 result = (int)((wxLocale const *)arg1)->GetLanguage();
9871
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 resultobj = SWIG_From_int((int)result);
9876 return resultobj;
9877 fail:
9878 return NULL;
9879 }
9880
9881
9882 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj;
9884 wxLocale *arg1 = (wxLocale *) 0 ;
9885 wxString result;
9886 PyObject * obj0 = 0 ;
9887 char *kwnames[] = {
9888 (char *) "self", NULL
9889 };
9890
9891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 result = ((wxLocale const *)arg1)->GetSysName();
9897
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 {
9902 #if wxUSE_UNICODE
9903 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9904 #else
9905 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9906 #endif
9907 }
9908 return resultobj;
9909 fail:
9910 return NULL;
9911 }
9912
9913
9914 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
9915 PyObject *resultobj;
9916 wxLocale *arg1 = (wxLocale *) 0 ;
9917 wxString result;
9918 PyObject * obj0 = 0 ;
9919 char *kwnames[] = {
9920 (char *) "self", NULL
9921 };
9922
9923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9926 {
9927 PyThreadState* __tstate = wxPyBeginAllowThreads();
9928 result = ((wxLocale const *)arg1)->GetCanonicalName();
9929
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 {
9934 #if wxUSE_UNICODE
9935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9936 #else
9937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9938 #endif
9939 }
9940 return resultobj;
9941 fail:
9942 return NULL;
9943 }
9944
9945
9946 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj;
9948 wxString *arg1 = 0 ;
9949 bool temp1 = false ;
9950 PyObject * obj0 = 0 ;
9951 char *kwnames[] = {
9952 (char *) "prefix", NULL
9953 };
9954
9955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9956 {
9957 arg1 = wxString_in_helper(obj0);
9958 if (arg1 == NULL) SWIG_fail;
9959 temp1 = true;
9960 }
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9964
9965 wxPyEndAllowThreads(__tstate);
9966 if (PyErr_Occurred()) SWIG_fail;
9967 }
9968 Py_INCREF(Py_None); resultobj = Py_None;
9969 {
9970 if (temp1)
9971 delete arg1;
9972 }
9973 return resultobj;
9974 fail:
9975 {
9976 if (temp1)
9977 delete arg1;
9978 }
9979 return NULL;
9980 }
9981
9982
9983 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj;
9985 wxLocale *arg1 = (wxLocale *) 0 ;
9986 wxString *arg2 = 0 ;
9987 bool result;
9988 bool temp2 = false ;
9989 PyObject * obj0 = 0 ;
9990 PyObject * obj1 = 0 ;
9991 char *kwnames[] = {
9992 (char *) "self",(char *) "szDomain", NULL
9993 };
9994
9995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9998 {
9999 arg2 = wxString_in_helper(obj1);
10000 if (arg2 == NULL) SWIG_fail;
10001 temp2 = true;
10002 }
10003 {
10004 PyThreadState* __tstate = wxPyBeginAllowThreads();
10005 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10006
10007 wxPyEndAllowThreads(__tstate);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 {
10011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10012 }
10013 {
10014 if (temp2)
10015 delete arg2;
10016 }
10017 return resultobj;
10018 fail:
10019 {
10020 if (temp2)
10021 delete arg2;
10022 }
10023 return NULL;
10024 }
10025
10026
10027 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
10028 PyObject *resultobj;
10029 wxLocale *arg1 = (wxLocale *) 0 ;
10030 wxString *arg2 = 0 ;
10031 bool result;
10032 bool temp2 = false ;
10033 PyObject * obj0 = 0 ;
10034 PyObject * obj1 = 0 ;
10035 char *kwnames[] = {
10036 (char *) "self",(char *) "szDomain", NULL
10037 };
10038
10039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10042 {
10043 arg2 = wxString_in_helper(obj1);
10044 if (arg2 == NULL) SWIG_fail;
10045 temp2 = true;
10046 }
10047 {
10048 PyThreadState* __tstate = wxPyBeginAllowThreads();
10049 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10050
10051 wxPyEndAllowThreads(__tstate);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 {
10055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10056 }
10057 {
10058 if (temp2)
10059 delete arg2;
10060 }
10061 return resultobj;
10062 fail:
10063 {
10064 if (temp2)
10065 delete arg2;
10066 }
10067 return NULL;
10068 }
10069
10070
10071 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10072 PyObject *resultobj;
10073 int arg1 ;
10074 wxLanguageInfo *result;
10075 PyObject * obj0 = 0 ;
10076 char *kwnames[] = {
10077 (char *) "lang", NULL
10078 };
10079
10080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10081 arg1 = (int)SWIG_As_int(obj0);
10082 if (PyErr_Occurred()) SWIG_fail;
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10086
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10091 return resultobj;
10092 fail:
10093 return NULL;
10094 }
10095
10096
10097 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
10098 PyObject *resultobj;
10099 int arg1 ;
10100 wxString result;
10101 PyObject * obj0 = 0 ;
10102 char *kwnames[] = {
10103 (char *) "lang", NULL
10104 };
10105
10106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10107 arg1 = (int)SWIG_As_int(obj0);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 {
10110 PyThreadState* __tstate = wxPyBeginAllowThreads();
10111 result = wxLocale::GetLanguageName(arg1);
10112
10113 wxPyEndAllowThreads(__tstate);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 {
10117 #if wxUSE_UNICODE
10118 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10119 #else
10120 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10121 #endif
10122 }
10123 return resultobj;
10124 fail:
10125 return NULL;
10126 }
10127
10128
10129 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10130 PyObject *resultobj;
10131 wxString *arg1 = 0 ;
10132 wxLanguageInfo *result;
10133 bool temp1 = false ;
10134 PyObject * obj0 = 0 ;
10135 char *kwnames[] = {
10136 (char *) "locale", NULL
10137 };
10138
10139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10140 {
10141 arg1 = wxString_in_helper(obj0);
10142 if (arg1 == NULL) SWIG_fail;
10143 temp1 = true;
10144 }
10145 {
10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
10147 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10148
10149 wxPyEndAllowThreads(__tstate);
10150 if (PyErr_Occurred()) SWIG_fail;
10151 }
10152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10153 {
10154 if (temp1)
10155 delete arg1;
10156 }
10157 return resultobj;
10158 fail:
10159 {
10160 if (temp1)
10161 delete arg1;
10162 }
10163 return NULL;
10164 }
10165
10166
10167 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj;
10169 wxLanguageInfo *arg1 = 0 ;
10170 PyObject * obj0 = 0 ;
10171 char *kwnames[] = {
10172 (char *) "info", NULL
10173 };
10174
10175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10177 SWIG_POINTER_EXCEPTION | 0)) == -1)
10178 SWIG_fail;
10179 if (arg1 == NULL) {
10180 PyErr_SetString(PyExc_TypeError,"null reference");
10181 SWIG_fail;
10182 }
10183 {
10184 PyThreadState* __tstate = wxPyBeginAllowThreads();
10185 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10186
10187 wxPyEndAllowThreads(__tstate);
10188 if (PyErr_Occurred()) SWIG_fail;
10189 }
10190 Py_INCREF(Py_None); resultobj = Py_None;
10191 return resultobj;
10192 fail:
10193 return NULL;
10194 }
10195
10196
10197 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10198 PyObject *resultobj;
10199 wxLocale *arg1 = (wxLocale *) 0 ;
10200 wxString *arg2 = 0 ;
10201 wxString const &arg3_defvalue = wxPyEmptyString ;
10202 wxString *arg3 = (wxString *) &arg3_defvalue ;
10203 wxString result;
10204 bool temp2 = false ;
10205 bool temp3 = false ;
10206 PyObject * obj0 = 0 ;
10207 PyObject * obj1 = 0 ;
10208 PyObject * obj2 = 0 ;
10209 char *kwnames[] = {
10210 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10211 };
10212
10213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10216 {
10217 arg2 = wxString_in_helper(obj1);
10218 if (arg2 == NULL) SWIG_fail;
10219 temp2 = true;
10220 }
10221 if (obj2) {
10222 {
10223 arg3 = wxString_in_helper(obj2);
10224 if (arg3 == NULL) SWIG_fail;
10225 temp3 = true;
10226 }
10227 }
10228 {
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10231
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 {
10236 #if wxUSE_UNICODE
10237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10238 #else
10239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10240 #endif
10241 }
10242 {
10243 if (temp2)
10244 delete arg2;
10245 }
10246 {
10247 if (temp3)
10248 delete arg3;
10249 }
10250 return resultobj;
10251 fail:
10252 {
10253 if (temp2)
10254 delete arg2;
10255 }
10256 {
10257 if (temp3)
10258 delete arg3;
10259 }
10260 return NULL;
10261 }
10262
10263
10264 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
10265 PyObject *resultobj;
10266 wxLocale *arg1 = (wxLocale *) 0 ;
10267 wxString *result;
10268 PyObject * obj0 = 0 ;
10269 char *kwnames[] = {
10270 (char *) "self", NULL
10271 };
10272
10273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 {
10279 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10280 result = (wxString *) &_result_ref;
10281 }
10282
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 {
10287 #if wxUSE_UNICODE
10288 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10289 #else
10290 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10291 #endif
10292 }
10293 return resultobj;
10294 fail:
10295 return NULL;
10296 }
10297
10298
10299 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
10300 PyObject *obj;
10301 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10302 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10303 Py_INCREF(obj);
10304 return Py_BuildValue((char *)"");
10305 }
10306 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
10307 PyObject *resultobj;
10308 wxLocale *result;
10309 char *kwnames[] = {
10310 NULL
10311 };
10312
10313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10314 {
10315 PyThreadState* __tstate = wxPyBeginAllowThreads();
10316 result = (wxLocale *)wxGetLocale();
10317
10318 wxPyEndAllowThreads(__tstate);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 }
10321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10322 return resultobj;
10323 fail:
10324 return NULL;
10325 }
10326
10327
10328 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
10329 PyObject *resultobj;
10330 wxString *arg1 = 0 ;
10331 wxString result;
10332 bool temp1 = false ;
10333 PyObject * obj0 = 0 ;
10334
10335 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10336 {
10337 arg1 = wxString_in_helper(obj0);
10338 if (arg1 == NULL) SWIG_fail;
10339 temp1 = true;
10340 }
10341 {
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 result = wxGetTranslation((wxString const &)*arg1);
10344
10345 wxPyEndAllowThreads(__tstate);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 }
10348 {
10349 #if wxUSE_UNICODE
10350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10351 #else
10352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10353 #endif
10354 }
10355 {
10356 if (temp1)
10357 delete arg1;
10358 }
10359 return resultobj;
10360 fail:
10361 {
10362 if (temp1)
10363 delete arg1;
10364 }
10365 return NULL;
10366 }
10367
10368
10369 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
10370 PyObject *resultobj;
10371 wxString *arg1 = 0 ;
10372 wxString *arg2 = 0 ;
10373 size_t arg3 ;
10374 wxString result;
10375 bool temp1 = false ;
10376 bool temp2 = false ;
10377 PyObject * obj0 = 0 ;
10378 PyObject * obj1 = 0 ;
10379 PyObject * obj2 = 0 ;
10380
10381 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10382 {
10383 arg1 = wxString_in_helper(obj0);
10384 if (arg1 == NULL) SWIG_fail;
10385 temp1 = true;
10386 }
10387 {
10388 arg2 = wxString_in_helper(obj1);
10389 if (arg2 == NULL) SWIG_fail;
10390 temp2 = true;
10391 }
10392 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 {
10402 #if wxUSE_UNICODE
10403 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10404 #else
10405 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10406 #endif
10407 }
10408 {
10409 if (temp1)
10410 delete arg1;
10411 }
10412 {
10413 if (temp2)
10414 delete arg2;
10415 }
10416 return resultobj;
10417 fail:
10418 {
10419 if (temp1)
10420 delete arg1;
10421 }
10422 {
10423 if (temp2)
10424 delete arg2;
10425 }
10426 return NULL;
10427 }
10428
10429
10430 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10431 int argc;
10432 PyObject *argv[4];
10433 int ii;
10434
10435 argc = PyObject_Length(args);
10436 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10437 argv[ii] = PyTuple_GetItem(args,ii);
10438 }
10439 if (argc == 1) {
10440 int _v;
10441 {
10442 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10443 }
10444 if (_v) {
10445 return _wrap_GetTranslation__SWIG_0(self,args);
10446 }
10447 }
10448 if (argc == 3) {
10449 int _v;
10450 {
10451 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10452 }
10453 if (_v) {
10454 {
10455 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10456 }
10457 if (_v) {
10458 _v = SWIG_Check_unsigned_SS_long(argv[2]);
10459 if (_v) {
10460 return _wrap_GetTranslation__SWIG_1(self,args);
10461 }
10462 }
10463 }
10464 }
10465
10466 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10467 return NULL;
10468 }
10469
10470
10471 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10472 PyObject *resultobj;
10473 wxEncodingConverter *result;
10474 char *kwnames[] = {
10475 NULL
10476 };
10477
10478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10479 {
10480 PyThreadState* __tstate = wxPyBeginAllowThreads();
10481 result = (wxEncodingConverter *)new wxEncodingConverter();
10482
10483 wxPyEndAllowThreads(__tstate);
10484 if (PyErr_Occurred()) SWIG_fail;
10485 }
10486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10487 return resultobj;
10488 fail:
10489 return NULL;
10490 }
10491
10492
10493 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10494 PyObject *resultobj;
10495 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10496 PyObject * obj0 = 0 ;
10497 char *kwnames[] = {
10498 (char *) "self", NULL
10499 };
10500
10501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 delete arg1;
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 Py_INCREF(Py_None); resultobj = Py_None;
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj;
10520 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10521 int arg2 ;
10522 int arg3 ;
10523 int arg4 = (int) wxCONVERT_STRICT ;
10524 bool result;
10525 PyObject * obj0 = 0 ;
10526 PyObject * obj1 = 0 ;
10527 PyObject * obj2 = 0 ;
10528 PyObject * obj3 = 0 ;
10529 char *kwnames[] = {
10530 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10531 };
10532
10533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10536 arg2 = (int)SWIG_As_int(obj1);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 arg3 = (int)SWIG_As_int(obj2);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 if (obj3) {
10541 arg4 = (int)SWIG_As_int(obj3);
10542 if (PyErr_Occurred()) SWIG_fail;
10543 }
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10547
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 {
10552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10553 }
10554 return resultobj;
10555 fail:
10556 return NULL;
10557 }
10558
10559
10560 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
10561 PyObject *resultobj;
10562 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10563 wxString *arg2 = 0 ;
10564 wxString result;
10565 bool temp2 = false ;
10566 PyObject * obj0 = 0 ;
10567 PyObject * obj1 = 0 ;
10568 char *kwnames[] = {
10569 (char *) "self",(char *) "input", NULL
10570 };
10571
10572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10575 {
10576 arg2 = wxString_in_helper(obj1);
10577 if (arg2 == NULL) SWIG_fail;
10578 temp2 = true;
10579 }
10580 {
10581 PyThreadState* __tstate = wxPyBeginAllowThreads();
10582 result = (arg1)->Convert((wxString const &)*arg2);
10583
10584 wxPyEndAllowThreads(__tstate);
10585 if (PyErr_Occurred()) SWIG_fail;
10586 }
10587 {
10588 #if wxUSE_UNICODE
10589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10590 #else
10591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10592 #endif
10593 }
10594 {
10595 if (temp2)
10596 delete arg2;
10597 }
10598 return resultobj;
10599 fail:
10600 {
10601 if (temp2)
10602 delete arg2;
10603 }
10604 return NULL;
10605 }
10606
10607
10608 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10609 PyObject *resultobj;
10610 int arg1 ;
10611 int arg2 = (int) wxPLATFORM_CURRENT ;
10612 wxFontEncodingArray result;
10613 PyObject * obj0 = 0 ;
10614 PyObject * obj1 = 0 ;
10615 char *kwnames[] = {
10616 (char *) "enc",(char *) "platform", NULL
10617 };
10618
10619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10620 arg1 = (int)SWIG_As_int(obj0);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 if (obj1) {
10623 arg2 = (int)SWIG_As_int(obj1);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10629
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 {
10634 resultobj = PyList_New(0);
10635 for (size_t i=0; i < (&result)->GetCount(); i++) {
10636 PyObject* number = PyInt_FromLong((&result)->Item(i));
10637 PyList_Append(resultobj, number);
10638 Py_DECREF(number);
10639 }
10640 }
10641 return resultobj;
10642 fail:
10643 return NULL;
10644 }
10645
10646
10647 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10648 PyObject *resultobj;
10649 int arg1 ;
10650 wxFontEncodingArray result;
10651 PyObject * obj0 = 0 ;
10652 char *kwnames[] = {
10653 (char *) "enc", NULL
10654 };
10655
10656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10657 arg1 = (int)SWIG_As_int(obj0);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10662
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 {
10667 resultobj = PyList_New(0);
10668 for (size_t i=0; i < (&result)->GetCount(); i++) {
10669 PyObject* number = PyInt_FromLong((&result)->Item(i));
10670 PyList_Append(resultobj, number);
10671 Py_DECREF(number);
10672 }
10673 }
10674 return resultobj;
10675 fail:
10676 return NULL;
10677 }
10678
10679
10680 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
10681 PyObject *resultobj;
10682 int arg1 ;
10683 int arg2 ;
10684 bool result;
10685 PyObject * obj0 = 0 ;
10686 PyObject * obj1 = 0 ;
10687 char *kwnames[] = {
10688 (char *) "encIn",(char *) "encOut", NULL
10689 };
10690
10691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10692 arg1 = (int)SWIG_As_int(obj0);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 arg2 = (int)SWIG_As_int(obj1);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 {
10697 PyThreadState* __tstate = wxPyBeginAllowThreads();
10698 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10699
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 {
10704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10705 }
10706 return resultobj;
10707 fail:
10708 return NULL;
10709 }
10710
10711
10712 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
10713 PyObject *obj;
10714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10715 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10716 Py_INCREF(obj);
10717 return Py_BuildValue((char *)"");
10718 }
10719 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj;
10721 wxDC *arg1 = (wxDC *) 0 ;
10722 PyObject * obj0 = 0 ;
10723 char *kwnames[] = {
10724 (char *) "self", NULL
10725 };
10726
10727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
10732 delete arg1;
10733
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 Py_INCREF(Py_None); resultobj = Py_None;
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj;
10746 wxDC *arg1 = (wxDC *) 0 ;
10747 PyObject * obj0 = 0 ;
10748 char *kwnames[] = {
10749 (char *) "self", NULL
10750 };
10751
10752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10755 {
10756 PyThreadState* __tstate = wxPyBeginAllowThreads();
10757 (arg1)->BeginDrawing();
10758
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 Py_INCREF(Py_None); resultobj = Py_None;
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj;
10771 wxDC *arg1 = (wxDC *) 0 ;
10772 PyObject * obj0 = 0 ;
10773 char *kwnames[] = {
10774 (char *) "self", NULL
10775 };
10776
10777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10780 {
10781 PyThreadState* __tstate = wxPyBeginAllowThreads();
10782 (arg1)->EndDrawing();
10783
10784 wxPyEndAllowThreads(__tstate);
10785 if (PyErr_Occurred()) SWIG_fail;
10786 }
10787 Py_INCREF(Py_None); resultobj = Py_None;
10788 return resultobj;
10789 fail:
10790 return NULL;
10791 }
10792
10793
10794 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
10795 PyObject *resultobj;
10796 wxDC *arg1 = (wxDC *) 0 ;
10797 int arg2 ;
10798 int arg3 ;
10799 wxColour *arg4 = 0 ;
10800 int arg5 = (int) wxFLOOD_SURFACE ;
10801 bool result;
10802 wxColour temp4 ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 PyObject * obj2 = 0 ;
10806 PyObject * obj3 = 0 ;
10807 PyObject * obj4 = 0 ;
10808 char *kwnames[] = {
10809 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10810 };
10811
10812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10815 arg2 = (int)SWIG_As_int(obj1);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 arg3 = (int)SWIG_As_int(obj2);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 {
10820 arg4 = &temp4;
10821 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10822 }
10823 if (obj4) {
10824 arg5 = (int)SWIG_As_int(obj4);
10825 if (PyErr_Occurred()) SWIG_fail;
10826 }
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10830
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 {
10835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10836 }
10837 return resultobj;
10838 fail:
10839 return NULL;
10840 }
10841
10842
10843 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj;
10845 wxDC *arg1 = (wxDC *) 0 ;
10846 wxPoint *arg2 = 0 ;
10847 wxColour *arg3 = 0 ;
10848 int arg4 = (int) wxFLOOD_SURFACE ;
10849 bool result;
10850 wxPoint temp2 ;
10851 wxColour temp3 ;
10852 PyObject * obj0 = 0 ;
10853 PyObject * obj1 = 0 ;
10854 PyObject * obj2 = 0 ;
10855 PyObject * obj3 = 0 ;
10856 char *kwnames[] = {
10857 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10858 };
10859
10860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10863 {
10864 arg2 = &temp2;
10865 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10866 }
10867 {
10868 arg3 = &temp3;
10869 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10870 }
10871 if (obj3) {
10872 arg4 = (int)SWIG_As_int(obj3);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 {
10876 PyThreadState* __tstate = wxPyBeginAllowThreads();
10877 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10878
10879 wxPyEndAllowThreads(__tstate);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 {
10883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10884 }
10885 return resultobj;
10886 fail:
10887 return NULL;
10888 }
10889
10890
10891 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
10892 PyObject *resultobj;
10893 wxDC *arg1 = (wxDC *) 0 ;
10894 int arg2 ;
10895 int arg3 ;
10896 wxColour result;
10897 PyObject * obj0 = 0 ;
10898 PyObject * obj1 = 0 ;
10899 PyObject * obj2 = 0 ;
10900 char *kwnames[] = {
10901 (char *) "self",(char *) "x",(char *) "y", NULL
10902 };
10903
10904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10907 arg2 = (int)SWIG_As_int(obj1);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 arg3 = (int)SWIG_As_int(obj2);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 {
10912 PyThreadState* __tstate = wxPyBeginAllowThreads();
10913 result = wxDC_GetPixel(arg1,arg2,arg3);
10914
10915 wxPyEndAllowThreads(__tstate);
10916 if (PyErr_Occurred()) SWIG_fail;
10917 }
10918 {
10919 wxColour * resultptr;
10920 resultptr = new wxColour((wxColour &) result);
10921 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10922 }
10923 return resultobj;
10924 fail:
10925 return NULL;
10926 }
10927
10928
10929 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj;
10931 wxDC *arg1 = (wxDC *) 0 ;
10932 wxPoint *arg2 = 0 ;
10933 wxColour result;
10934 wxPoint temp2 ;
10935 PyObject * obj0 = 0 ;
10936 PyObject * obj1 = 0 ;
10937 char *kwnames[] = {
10938 (char *) "self",(char *) "pt", NULL
10939 };
10940
10941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10944 {
10945 arg2 = &temp2;
10946 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10951
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 {
10956 wxColour * resultptr;
10957 resultptr = new wxColour((wxColour &) result);
10958 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10959 }
10960 return resultobj;
10961 fail:
10962 return NULL;
10963 }
10964
10965
10966 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
10967 PyObject *resultobj;
10968 wxDC *arg1 = (wxDC *) 0 ;
10969 int arg2 ;
10970 int arg3 ;
10971 int arg4 ;
10972 int arg5 ;
10973 PyObject * obj0 = 0 ;
10974 PyObject * obj1 = 0 ;
10975 PyObject * obj2 = 0 ;
10976 PyObject * obj3 = 0 ;
10977 PyObject * obj4 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10985 arg2 = (int)SWIG_As_int(obj1);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 arg3 = (int)SWIG_As_int(obj2);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 arg4 = (int)SWIG_As_int(obj3);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 arg5 = (int)SWIG_As_int(obj4);
10992 if (PyErr_Occurred()) SWIG_fail;
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 Py_INCREF(Py_None); resultobj = Py_None;
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxDC *arg1 = (wxDC *) 0 ;
11010 wxPoint *arg2 = 0 ;
11011 wxPoint *arg3 = 0 ;
11012 wxPoint temp2 ;
11013 wxPoint temp3 ;
11014 PyObject * obj0 = 0 ;
11015 PyObject * obj1 = 0 ;
11016 PyObject * obj2 = 0 ;
11017 char *kwnames[] = {
11018 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11019 };
11020
11021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11024 {
11025 arg2 = &temp2;
11026 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11027 }
11028 {
11029 arg3 = &temp3;
11030 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11031 }
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11035
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 }
11039 Py_INCREF(Py_None); resultobj = Py_None;
11040 return resultobj;
11041 fail:
11042 return NULL;
11043 }
11044
11045
11046 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
11047 PyObject *resultobj;
11048 wxDC *arg1 = (wxDC *) 0 ;
11049 int arg2 ;
11050 int arg3 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 PyObject * obj2 = 0 ;
11054 char *kwnames[] = {
11055 (char *) "self",(char *) "x",(char *) "y", NULL
11056 };
11057
11058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
11059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11061 arg2 = (int)SWIG_As_int(obj1);
11062 if (PyErr_Occurred()) SWIG_fail;
11063 arg3 = (int)SWIG_As_int(obj2);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 {
11066 PyThreadState* __tstate = wxPyBeginAllowThreads();
11067 (arg1)->CrossHair(arg2,arg3);
11068
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 Py_INCREF(Py_None); resultobj = Py_None;
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11080 PyObject *resultobj;
11081 wxDC *arg1 = (wxDC *) 0 ;
11082 wxPoint *arg2 = 0 ;
11083 wxPoint temp2 ;
11084 PyObject * obj0 = 0 ;
11085 PyObject * obj1 = 0 ;
11086 char *kwnames[] = {
11087 (char *) "self",(char *) "pt", NULL
11088 };
11089
11090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
11091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11093 {
11094 arg2 = &temp2;
11095 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11096 }
11097 {
11098 PyThreadState* __tstate = wxPyBeginAllowThreads();
11099 (arg1)->CrossHair((wxPoint const &)*arg2);
11100
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 Py_INCREF(Py_None); resultobj = Py_None;
11105 return resultobj;
11106 fail:
11107 return NULL;
11108 }
11109
11110
11111 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
11112 PyObject *resultobj;
11113 wxDC *arg1 = (wxDC *) 0 ;
11114 int arg2 ;
11115 int arg3 ;
11116 int arg4 ;
11117 int arg5 ;
11118 int arg6 ;
11119 int arg7 ;
11120 PyObject * obj0 = 0 ;
11121 PyObject * obj1 = 0 ;
11122 PyObject * obj2 = 0 ;
11123 PyObject * obj3 = 0 ;
11124 PyObject * obj4 = 0 ;
11125 PyObject * obj5 = 0 ;
11126 PyObject * obj6 = 0 ;
11127 char *kwnames[] = {
11128 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11129 };
11130
11131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11134 arg2 = (int)SWIG_As_int(obj1);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 arg3 = (int)SWIG_As_int(obj2);
11137 if (PyErr_Occurred()) SWIG_fail;
11138 arg4 = (int)SWIG_As_int(obj3);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 arg5 = (int)SWIG_As_int(obj4);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 arg6 = (int)SWIG_As_int(obj5);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 arg7 = (int)SWIG_As_int(obj6);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 {
11147 PyThreadState* __tstate = wxPyBeginAllowThreads();
11148 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11149
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 }
11153 Py_INCREF(Py_None); resultobj = Py_None;
11154 return resultobj;
11155 fail:
11156 return NULL;
11157 }
11158
11159
11160 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11161 PyObject *resultobj;
11162 wxDC *arg1 = (wxDC *) 0 ;
11163 wxPoint *arg2 = 0 ;
11164 wxPoint *arg3 = 0 ;
11165 wxPoint *arg4 = 0 ;
11166 wxPoint temp2 ;
11167 wxPoint temp3 ;
11168 wxPoint temp4 ;
11169 PyObject * obj0 = 0 ;
11170 PyObject * obj1 = 0 ;
11171 PyObject * obj2 = 0 ;
11172 PyObject * obj3 = 0 ;
11173 char *kwnames[] = {
11174 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
11175 };
11176
11177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11180 {
11181 arg2 = &temp2;
11182 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11183 }
11184 {
11185 arg3 = &temp3;
11186 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11187 }
11188 {
11189 arg4 = &temp4;
11190 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11191 }
11192 {
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11195
11196 wxPyEndAllowThreads(__tstate);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 Py_INCREF(Py_None); resultobj = Py_None;
11200 return resultobj;
11201 fail:
11202 return NULL;
11203 }
11204
11205
11206 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
11207 PyObject *resultobj;
11208 wxDC *arg1 = (wxDC *) 0 ;
11209 int arg2 ;
11210 int arg3 ;
11211 int arg4 ;
11212 int arg5 ;
11213 PyObject * obj0 = 0 ;
11214 PyObject * obj1 = 0 ;
11215 PyObject * obj2 = 0 ;
11216 PyObject * obj3 = 0 ;
11217 PyObject * obj4 = 0 ;
11218 char *kwnames[] = {
11219 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11220 };
11221
11222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11225 arg2 = (int)SWIG_As_int(obj1);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 arg3 = (int)SWIG_As_int(obj2);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 arg4 = (int)SWIG_As_int(obj3);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 arg5 = (int)SWIG_As_int(obj4);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 {
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
11235 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11236
11237 wxPyEndAllowThreads(__tstate);
11238 if (PyErr_Occurred()) SWIG_fail;
11239 }
11240 Py_INCREF(Py_None); resultobj = Py_None;
11241 return resultobj;
11242 fail:
11243 return NULL;
11244 }
11245
11246
11247 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
11248 PyObject *resultobj;
11249 wxDC *arg1 = (wxDC *) 0 ;
11250 wxRect *arg2 = 0 ;
11251 wxRect temp2 ;
11252 PyObject * obj0 = 0 ;
11253 PyObject * obj1 = 0 ;
11254 char *kwnames[] = {
11255 (char *) "self",(char *) "rect", NULL
11256 };
11257
11258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11261 {
11262 arg2 = &temp2;
11263 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11264 }
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11268
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 Py_INCREF(Py_None); resultobj = Py_None;
11273 return resultobj;
11274 fail:
11275 return NULL;
11276 }
11277
11278
11279 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
11280 PyObject *resultobj;
11281 wxDC *arg1 = (wxDC *) 0 ;
11282 int arg2 ;
11283 int arg3 ;
11284 int arg4 ;
11285 int arg5 ;
11286 double arg6 ;
11287 double arg7 ;
11288 PyObject * obj0 = 0 ;
11289 PyObject * obj1 = 0 ;
11290 PyObject * obj2 = 0 ;
11291 PyObject * obj3 = 0 ;
11292 PyObject * obj4 = 0 ;
11293 PyObject * obj5 = 0 ;
11294 PyObject * obj6 = 0 ;
11295 char *kwnames[] = {
11296 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
11297 };
11298
11299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11302 arg2 = (int)SWIG_As_int(obj1);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 arg3 = (int)SWIG_As_int(obj2);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 arg4 = (int)SWIG_As_int(obj3);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 arg5 = (int)SWIG_As_int(obj4);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 arg6 = (double)SWIG_As_double(obj5);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 arg7 = (double)SWIG_As_double(obj6);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 Py_INCREF(Py_None); resultobj = Py_None;
11322 return resultobj;
11323 fail:
11324 return NULL;
11325 }
11326
11327
11328 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11329 PyObject *resultobj;
11330 wxDC *arg1 = (wxDC *) 0 ;
11331 wxPoint *arg2 = 0 ;
11332 wxSize *arg3 = 0 ;
11333 double arg4 ;
11334 double arg5 ;
11335 wxPoint temp2 ;
11336 wxSize temp3 ;
11337 PyObject * obj0 = 0 ;
11338 PyObject * obj1 = 0 ;
11339 PyObject * obj2 = 0 ;
11340 PyObject * obj3 = 0 ;
11341 PyObject * obj4 = 0 ;
11342 char *kwnames[] = {
11343 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
11344 };
11345
11346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11349 {
11350 arg2 = &temp2;
11351 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11352 }
11353 {
11354 arg3 = &temp3;
11355 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11356 }
11357 arg4 = (double)SWIG_As_double(obj3);
11358 if (PyErr_Occurred()) SWIG_fail;
11359 arg5 = (double)SWIG_As_double(obj4);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11364
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 Py_INCREF(Py_None); resultobj = Py_None;
11369 return resultobj;
11370 fail:
11371 return NULL;
11372 }
11373
11374
11375 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11376 PyObject *resultobj;
11377 wxDC *arg1 = (wxDC *) 0 ;
11378 int arg2 ;
11379 int arg3 ;
11380 PyObject * obj0 = 0 ;
11381 PyObject * obj1 = 0 ;
11382 PyObject * obj2 = 0 ;
11383 char *kwnames[] = {
11384 (char *) "self",(char *) "x",(char *) "y", NULL
11385 };
11386
11387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11390 arg2 = (int)SWIG_As_int(obj1);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 arg3 = (int)SWIG_As_int(obj2);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 (arg1)->DrawPoint(arg2,arg3);
11397
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 Py_INCREF(Py_None); resultobj = Py_None;
11402 return resultobj;
11403 fail:
11404 return NULL;
11405 }
11406
11407
11408 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11409 PyObject *resultobj;
11410 wxDC *arg1 = (wxDC *) 0 ;
11411 wxPoint *arg2 = 0 ;
11412 wxPoint temp2 ;
11413 PyObject * obj0 = 0 ;
11414 PyObject * obj1 = 0 ;
11415 char *kwnames[] = {
11416 (char *) "self",(char *) "pt", NULL
11417 };
11418
11419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11422 {
11423 arg2 = &temp2;
11424 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11425 }
11426 {
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 (arg1)->DrawPoint((wxPoint const &)*arg2);
11429
11430 wxPyEndAllowThreads(__tstate);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 Py_INCREF(Py_None); resultobj = Py_None;
11434 return resultobj;
11435 fail:
11436 return NULL;
11437 }
11438
11439
11440 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11441 PyObject *resultobj;
11442 wxDC *arg1 = (wxDC *) 0 ;
11443 int arg2 ;
11444 int arg3 ;
11445 int arg4 ;
11446 int arg5 ;
11447 PyObject * obj0 = 0 ;
11448 PyObject * obj1 = 0 ;
11449 PyObject * obj2 = 0 ;
11450 PyObject * obj3 = 0 ;
11451 PyObject * obj4 = 0 ;
11452 char *kwnames[] = {
11453 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11454 };
11455
11456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11459 arg2 = (int)SWIG_As_int(obj1);
11460 if (PyErr_Occurred()) SWIG_fail;
11461 arg3 = (int)SWIG_As_int(obj2);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 arg4 = (int)SWIG_As_int(obj3);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 arg5 = (int)SWIG_As_int(obj4);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 {
11468 PyThreadState* __tstate = wxPyBeginAllowThreads();
11469 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11470
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 Py_INCREF(Py_None); resultobj = Py_None;
11475 return resultobj;
11476 fail:
11477 return NULL;
11478 }
11479
11480
11481 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11482 PyObject *resultobj;
11483 wxDC *arg1 = (wxDC *) 0 ;
11484 wxRect *arg2 = 0 ;
11485 wxRect temp2 ;
11486 PyObject * obj0 = 0 ;
11487 PyObject * obj1 = 0 ;
11488 char *kwnames[] = {
11489 (char *) "self",(char *) "rect", NULL
11490 };
11491
11492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11495 {
11496 arg2 = &temp2;
11497 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11498 }
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 (arg1)->DrawRectangle((wxRect const &)*arg2);
11502
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 Py_INCREF(Py_None); resultobj = Py_None;
11507 return resultobj;
11508 fail:
11509 return NULL;
11510 }
11511
11512
11513 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11514 PyObject *resultobj;
11515 wxDC *arg1 = (wxDC *) 0 ;
11516 wxPoint *arg2 = 0 ;
11517 wxSize *arg3 = 0 ;
11518 wxPoint temp2 ;
11519 wxSize temp3 ;
11520 PyObject * obj0 = 0 ;
11521 PyObject * obj1 = 0 ;
11522 PyObject * obj2 = 0 ;
11523 char *kwnames[] = {
11524 (char *) "self",(char *) "pt",(char *) "sz", NULL
11525 };
11526
11527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11530 {
11531 arg2 = &temp2;
11532 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11533 }
11534 {
11535 arg3 = &temp3;
11536 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11537 }
11538 {
11539 PyThreadState* __tstate = wxPyBeginAllowThreads();
11540 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11541
11542 wxPyEndAllowThreads(__tstate);
11543 if (PyErr_Occurred()) SWIG_fail;
11544 }
11545 Py_INCREF(Py_None); resultobj = Py_None;
11546 return resultobj;
11547 fail:
11548 return NULL;
11549 }
11550
11551
11552 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11553 PyObject *resultobj;
11554 wxDC *arg1 = (wxDC *) 0 ;
11555 int arg2 ;
11556 int arg3 ;
11557 int arg4 ;
11558 int arg5 ;
11559 double arg6 ;
11560 PyObject * obj0 = 0 ;
11561 PyObject * obj1 = 0 ;
11562 PyObject * obj2 = 0 ;
11563 PyObject * obj3 = 0 ;
11564 PyObject * obj4 = 0 ;
11565 PyObject * obj5 = 0 ;
11566 char *kwnames[] = {
11567 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11568 };
11569
11570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11573 arg2 = (int)SWIG_As_int(obj1);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 arg3 = (int)SWIG_As_int(obj2);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 arg4 = (int)SWIG_As_int(obj3);
11578 if (PyErr_Occurred()) SWIG_fail;
11579 arg5 = (int)SWIG_As_int(obj4);
11580 if (PyErr_Occurred()) SWIG_fail;
11581 arg6 = (double)SWIG_As_double(obj5);
11582 if (PyErr_Occurred()) SWIG_fail;
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11586
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 Py_INCREF(Py_None); resultobj = Py_None;
11591 return resultobj;
11592 fail:
11593 return NULL;
11594 }
11595
11596
11597 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11598 PyObject *resultobj;
11599 wxDC *arg1 = (wxDC *) 0 ;
11600 wxRect *arg2 = 0 ;
11601 double arg3 ;
11602 wxRect temp2 ;
11603 PyObject * obj0 = 0 ;
11604 PyObject * obj1 = 0 ;
11605 PyObject * obj2 = 0 ;
11606 char *kwnames[] = {
11607 (char *) "self",(char *) "r",(char *) "radius", NULL
11608 };
11609
11610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11613 {
11614 arg2 = &temp2;
11615 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11616 }
11617 arg3 = (double)SWIG_As_double(obj2);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11622
11623 wxPyEndAllowThreads(__tstate);
11624 if (PyErr_Occurred()) SWIG_fail;
11625 }
11626 Py_INCREF(Py_None); resultobj = Py_None;
11627 return resultobj;
11628 fail:
11629 return NULL;
11630 }
11631
11632
11633 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj;
11635 wxDC *arg1 = (wxDC *) 0 ;
11636 wxPoint *arg2 = 0 ;
11637 wxSize *arg3 = 0 ;
11638 double arg4 ;
11639 wxPoint temp2 ;
11640 wxSize temp3 ;
11641 PyObject * obj0 = 0 ;
11642 PyObject * obj1 = 0 ;
11643 PyObject * obj2 = 0 ;
11644 PyObject * obj3 = 0 ;
11645 char *kwnames[] = {
11646 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11647 };
11648
11649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11652 {
11653 arg2 = &temp2;
11654 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11655 }
11656 {
11657 arg3 = &temp3;
11658 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11659 }
11660 arg4 = (double)SWIG_As_double(obj3);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 {
11663 PyThreadState* __tstate = wxPyBeginAllowThreads();
11664 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11665
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 }
11669 Py_INCREF(Py_None); resultobj = Py_None;
11670 return resultobj;
11671 fail:
11672 return NULL;
11673 }
11674
11675
11676 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
11677 PyObject *resultobj;
11678 wxDC *arg1 = (wxDC *) 0 ;
11679 int arg2 ;
11680 int arg3 ;
11681 int arg4 ;
11682 PyObject * obj0 = 0 ;
11683 PyObject * obj1 = 0 ;
11684 PyObject * obj2 = 0 ;
11685 PyObject * obj3 = 0 ;
11686 char *kwnames[] = {
11687 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11688 };
11689
11690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11693 arg2 = (int)SWIG_As_int(obj1);
11694 if (PyErr_Occurred()) SWIG_fail;
11695 arg3 = (int)SWIG_As_int(obj2);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 arg4 = (int)SWIG_As_int(obj3);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 {
11700 PyThreadState* __tstate = wxPyBeginAllowThreads();
11701 (arg1)->DrawCircle(arg2,arg3,arg4);
11702
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 Py_INCREF(Py_None); resultobj = Py_None;
11707 return resultobj;
11708 fail:
11709 return NULL;
11710 }
11711
11712
11713 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
11714 PyObject *resultobj;
11715 wxDC *arg1 = (wxDC *) 0 ;
11716 wxPoint *arg2 = 0 ;
11717 int arg3 ;
11718 wxPoint temp2 ;
11719 PyObject * obj0 = 0 ;
11720 PyObject * obj1 = 0 ;
11721 PyObject * obj2 = 0 ;
11722 char *kwnames[] = {
11723 (char *) "self",(char *) "pt",(char *) "radius", NULL
11724 };
11725
11726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11729 {
11730 arg2 = &temp2;
11731 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11732 }
11733 arg3 = (int)SWIG_As_int(obj2);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 {
11736 PyThreadState* __tstate = wxPyBeginAllowThreads();
11737 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11738
11739 wxPyEndAllowThreads(__tstate);
11740 if (PyErr_Occurred()) SWIG_fail;
11741 }
11742 Py_INCREF(Py_None); resultobj = Py_None;
11743 return resultobj;
11744 fail:
11745 return NULL;
11746 }
11747
11748
11749 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
11750 PyObject *resultobj;
11751 wxDC *arg1 = (wxDC *) 0 ;
11752 int arg2 ;
11753 int arg3 ;
11754 int arg4 ;
11755 int arg5 ;
11756 PyObject * obj0 = 0 ;
11757 PyObject * obj1 = 0 ;
11758 PyObject * obj2 = 0 ;
11759 PyObject * obj3 = 0 ;
11760 PyObject * obj4 = 0 ;
11761 char *kwnames[] = {
11762 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11763 };
11764
11765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11768 arg2 = (int)SWIG_As_int(obj1);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 arg3 = (int)SWIG_As_int(obj2);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 arg4 = (int)SWIG_As_int(obj3);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 arg5 = (int)SWIG_As_int(obj4);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 {
11777 PyThreadState* __tstate = wxPyBeginAllowThreads();
11778 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11779
11780 wxPyEndAllowThreads(__tstate);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 }
11783 Py_INCREF(Py_None); resultobj = Py_None;
11784 return resultobj;
11785 fail:
11786 return NULL;
11787 }
11788
11789
11790 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
11791 PyObject *resultobj;
11792 wxDC *arg1 = (wxDC *) 0 ;
11793 wxRect *arg2 = 0 ;
11794 wxRect temp2 ;
11795 PyObject * obj0 = 0 ;
11796 PyObject * obj1 = 0 ;
11797 char *kwnames[] = {
11798 (char *) "self",(char *) "rect", NULL
11799 };
11800
11801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11804 {
11805 arg2 = &temp2;
11806 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11807 }
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 (arg1)->DrawEllipse((wxRect const &)*arg2);
11811
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 Py_INCREF(Py_None); resultobj = Py_None;
11816 return resultobj;
11817 fail:
11818 return NULL;
11819 }
11820
11821
11822 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11823 PyObject *resultobj;
11824 wxDC *arg1 = (wxDC *) 0 ;
11825 wxPoint *arg2 = 0 ;
11826 wxSize *arg3 = 0 ;
11827 wxPoint temp2 ;
11828 wxSize temp3 ;
11829 PyObject * obj0 = 0 ;
11830 PyObject * obj1 = 0 ;
11831 PyObject * obj2 = 0 ;
11832 char *kwnames[] = {
11833 (char *) "self",(char *) "pt",(char *) "sz", NULL
11834 };
11835
11836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11839 {
11840 arg2 = &temp2;
11841 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11842 }
11843 {
11844 arg3 = &temp3;
11845 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11846 }
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11850
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
11854 Py_INCREF(Py_None); resultobj = Py_None;
11855 return resultobj;
11856 fail:
11857 return NULL;
11858 }
11859
11860
11861 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11862 PyObject *resultobj;
11863 wxDC *arg1 = (wxDC *) 0 ;
11864 wxIcon *arg2 = 0 ;
11865 int arg3 ;
11866 int arg4 ;
11867 PyObject * obj0 = 0 ;
11868 PyObject * obj1 = 0 ;
11869 PyObject * obj2 = 0 ;
11870 PyObject * obj3 = 0 ;
11871 char *kwnames[] = {
11872 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11873 };
11874
11875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11879 SWIG_POINTER_EXCEPTION | 0)) == -1)
11880 SWIG_fail;
11881 if (arg2 == NULL) {
11882 PyErr_SetString(PyExc_TypeError,"null reference");
11883 SWIG_fail;
11884 }
11885 arg3 = (int)SWIG_As_int(obj2);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 arg4 = (int)SWIG_As_int(obj3);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 {
11890 PyThreadState* __tstate = wxPyBeginAllowThreads();
11891 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11892
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 Py_INCREF(Py_None); resultobj = Py_None;
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 wxDC *arg1 = (wxDC *) 0 ;
11906 wxIcon *arg2 = 0 ;
11907 wxPoint *arg3 = 0 ;
11908 wxPoint temp3 ;
11909 PyObject * obj0 = 0 ;
11910 PyObject * obj1 = 0 ;
11911 PyObject * obj2 = 0 ;
11912 char *kwnames[] = {
11913 (char *) "self",(char *) "icon",(char *) "pt", NULL
11914 };
11915
11916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11920 SWIG_POINTER_EXCEPTION | 0)) == -1)
11921 SWIG_fail;
11922 if (arg2 == NULL) {
11923 PyErr_SetString(PyExc_TypeError,"null reference");
11924 SWIG_fail;
11925 }
11926 {
11927 arg3 = &temp3;
11928 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11929 }
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11933
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 Py_INCREF(Py_None); resultobj = Py_None;
11938 return resultobj;
11939 fail:
11940 return NULL;
11941 }
11942
11943
11944 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11945 PyObject *resultobj;
11946 wxDC *arg1 = (wxDC *) 0 ;
11947 wxBitmap *arg2 = 0 ;
11948 int arg3 ;
11949 int arg4 ;
11950 bool arg5 = (bool) false ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 PyObject * obj2 = 0 ;
11954 PyObject * obj3 = 0 ;
11955 PyObject * obj4 = 0 ;
11956 char *kwnames[] = {
11957 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11958 };
11959
11960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11963 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11964 SWIG_POINTER_EXCEPTION | 0)) == -1)
11965 SWIG_fail;
11966 if (arg2 == NULL) {
11967 PyErr_SetString(PyExc_TypeError,"null reference");
11968 SWIG_fail;
11969 }
11970 arg3 = (int)SWIG_As_int(obj2);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 arg4 = (int)SWIG_As_int(obj3);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 if (obj4) {
11975 arg5 = (bool)SWIG_As_bool(obj4);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 {
11979 PyThreadState* __tstate = wxPyBeginAllowThreads();
11980 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11981
11982 wxPyEndAllowThreads(__tstate);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 Py_INCREF(Py_None); resultobj = Py_None;
11986 return resultobj;
11987 fail:
11988 return NULL;
11989 }
11990
11991
11992 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11993 PyObject *resultobj;
11994 wxDC *arg1 = (wxDC *) 0 ;
11995 wxBitmap *arg2 = 0 ;
11996 wxPoint *arg3 = 0 ;
11997 bool arg4 = (bool) false ;
11998 wxPoint temp3 ;
11999 PyObject * obj0 = 0 ;
12000 PyObject * obj1 = 0 ;
12001 PyObject * obj2 = 0 ;
12002 PyObject * obj3 = 0 ;
12003 char *kwnames[] = {
12004 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12005 };
12006
12007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12010 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12011 SWIG_POINTER_EXCEPTION | 0)) == -1)
12012 SWIG_fail;
12013 if (arg2 == NULL) {
12014 PyErr_SetString(PyExc_TypeError,"null reference");
12015 SWIG_fail;
12016 }
12017 {
12018 arg3 = &temp3;
12019 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12020 }
12021 if (obj3) {
12022 arg4 = (bool)SWIG_As_bool(obj3);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12028
12029 wxPyEndAllowThreads(__tstate);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 }
12032 Py_INCREF(Py_None); resultobj = Py_None;
12033 return resultobj;
12034 fail:
12035 return NULL;
12036 }
12037
12038
12039 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj;
12041 wxDC *arg1 = (wxDC *) 0 ;
12042 wxString *arg2 = 0 ;
12043 int arg3 ;
12044 int arg4 ;
12045 bool temp2 = false ;
12046 PyObject * obj0 = 0 ;
12047 PyObject * obj1 = 0 ;
12048 PyObject * obj2 = 0 ;
12049 PyObject * obj3 = 0 ;
12050 char *kwnames[] = {
12051 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12052 };
12053
12054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12057 {
12058 arg2 = wxString_in_helper(obj1);
12059 if (arg2 == NULL) SWIG_fail;
12060 temp2 = true;
12061 }
12062 arg3 = (int)SWIG_As_int(obj2);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 arg4 = (int)SWIG_As_int(obj3);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 {
12067 PyThreadState* __tstate = wxPyBeginAllowThreads();
12068 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12069
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 Py_INCREF(Py_None); resultobj = Py_None;
12074 {
12075 if (temp2)
12076 delete arg2;
12077 }
12078 return resultobj;
12079 fail:
12080 {
12081 if (temp2)
12082 delete arg2;
12083 }
12084 return NULL;
12085 }
12086
12087
12088 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12089 PyObject *resultobj;
12090 wxDC *arg1 = (wxDC *) 0 ;
12091 wxString *arg2 = 0 ;
12092 wxPoint *arg3 = 0 ;
12093 bool temp2 = false ;
12094 wxPoint temp3 ;
12095 PyObject * obj0 = 0 ;
12096 PyObject * obj1 = 0 ;
12097 PyObject * obj2 = 0 ;
12098 char *kwnames[] = {
12099 (char *) "self",(char *) "text",(char *) "pt", NULL
12100 };
12101
12102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12105 {
12106 arg2 = wxString_in_helper(obj1);
12107 if (arg2 == NULL) SWIG_fail;
12108 temp2 = true;
12109 }
12110 {
12111 arg3 = &temp3;
12112 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12113 }
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12117
12118 wxPyEndAllowThreads(__tstate);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 Py_INCREF(Py_None); resultobj = Py_None;
12122 {
12123 if (temp2)
12124 delete arg2;
12125 }
12126 return resultobj;
12127 fail:
12128 {
12129 if (temp2)
12130 delete arg2;
12131 }
12132 return NULL;
12133 }
12134
12135
12136 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
12137 PyObject *resultobj;
12138 wxDC *arg1 = (wxDC *) 0 ;
12139 wxString *arg2 = 0 ;
12140 int arg3 ;
12141 int arg4 ;
12142 double arg5 ;
12143 bool temp2 = false ;
12144 PyObject * obj0 = 0 ;
12145 PyObject * obj1 = 0 ;
12146 PyObject * obj2 = 0 ;
12147 PyObject * obj3 = 0 ;
12148 PyObject * obj4 = 0 ;
12149 char *kwnames[] = {
12150 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12151 };
12152
12153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12156 {
12157 arg2 = wxString_in_helper(obj1);
12158 if (arg2 == NULL) SWIG_fail;
12159 temp2 = true;
12160 }
12161 arg3 = (int)SWIG_As_int(obj2);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 arg4 = (int)SWIG_As_int(obj3);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 arg5 = (double)SWIG_As_double(obj4);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 {
12168 PyThreadState* __tstate = wxPyBeginAllowThreads();
12169 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12170
12171 wxPyEndAllowThreads(__tstate);
12172 if (PyErr_Occurred()) SWIG_fail;
12173 }
12174 Py_INCREF(Py_None); resultobj = Py_None;
12175 {
12176 if (temp2)
12177 delete arg2;
12178 }
12179 return resultobj;
12180 fail:
12181 {
12182 if (temp2)
12183 delete arg2;
12184 }
12185 return NULL;
12186 }
12187
12188
12189 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12190 PyObject *resultobj;
12191 wxDC *arg1 = (wxDC *) 0 ;
12192 wxString *arg2 = 0 ;
12193 wxPoint *arg3 = 0 ;
12194 double arg4 ;
12195 bool temp2 = false ;
12196 wxPoint temp3 ;
12197 PyObject * obj0 = 0 ;
12198 PyObject * obj1 = 0 ;
12199 PyObject * obj2 = 0 ;
12200 PyObject * obj3 = 0 ;
12201 char *kwnames[] = {
12202 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12203 };
12204
12205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12208 {
12209 arg2 = wxString_in_helper(obj1);
12210 if (arg2 == NULL) SWIG_fail;
12211 temp2 = true;
12212 }
12213 {
12214 arg3 = &temp3;
12215 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12216 }
12217 arg4 = (double)SWIG_As_double(obj3);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 {
12220 PyThreadState* __tstate = wxPyBeginAllowThreads();
12221 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12222
12223 wxPyEndAllowThreads(__tstate);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 }
12226 Py_INCREF(Py_None); resultobj = Py_None;
12227 {
12228 if (temp2)
12229 delete arg2;
12230 }
12231 return resultobj;
12232 fail:
12233 {
12234 if (temp2)
12235 delete arg2;
12236 }
12237 return NULL;
12238 }
12239
12240
12241 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
12242 PyObject *resultobj;
12243 wxDC *arg1 = (wxDC *) 0 ;
12244 int arg2 ;
12245 int arg3 ;
12246 int arg4 ;
12247 int arg5 ;
12248 wxDC *arg6 = (wxDC *) 0 ;
12249 int arg7 ;
12250 int arg8 ;
12251 int arg9 = (int) wxCOPY ;
12252 bool arg10 = (bool) false ;
12253 int arg11 = (int) -1 ;
12254 int arg12 = (int) -1 ;
12255 bool result;
12256 PyObject * obj0 = 0 ;
12257 PyObject * obj1 = 0 ;
12258 PyObject * obj2 = 0 ;
12259 PyObject * obj3 = 0 ;
12260 PyObject * obj4 = 0 ;
12261 PyObject * obj5 = 0 ;
12262 PyObject * obj6 = 0 ;
12263 PyObject * obj7 = 0 ;
12264 PyObject * obj8 = 0 ;
12265 PyObject * obj9 = 0 ;
12266 PyObject * obj10 = 0 ;
12267 PyObject * obj11 = 0 ;
12268 char *kwnames[] = {
12269 (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
12270 };
12271
12272 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;
12273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12275 arg2 = (int)SWIG_As_int(obj1);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 arg3 = (int)SWIG_As_int(obj2);
12278 if (PyErr_Occurred()) SWIG_fail;
12279 arg4 = (int)SWIG_As_int(obj3);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 arg5 = (int)SWIG_As_int(obj4);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12285 arg7 = (int)SWIG_As_int(obj6);
12286 if (PyErr_Occurred()) SWIG_fail;
12287 arg8 = (int)SWIG_As_int(obj7);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 if (obj8) {
12290 arg9 = (int)SWIG_As_int(obj8);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 if (obj9) {
12294 arg10 = (bool)SWIG_As_bool(obj9);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 if (obj10) {
12298 arg11 = (int)SWIG_As_int(obj10);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 if (obj11) {
12302 arg12 = (int)SWIG_As_int(obj11);
12303 if (PyErr_Occurred()) SWIG_fail;
12304 }
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12308
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 {
12313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12314 }
12315 return resultobj;
12316 fail:
12317 return NULL;
12318 }
12319
12320
12321 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj;
12323 wxDC *arg1 = (wxDC *) 0 ;
12324 wxPoint *arg2 = 0 ;
12325 wxSize *arg3 = 0 ;
12326 wxDC *arg4 = (wxDC *) 0 ;
12327 wxPoint *arg5 = 0 ;
12328 int arg6 = (int) wxCOPY ;
12329 bool arg7 = (bool) false ;
12330 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12331 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12332 bool result;
12333 wxPoint temp2 ;
12334 wxSize temp3 ;
12335 wxPoint temp5 ;
12336 wxPoint temp8 ;
12337 PyObject * obj0 = 0 ;
12338 PyObject * obj1 = 0 ;
12339 PyObject * obj2 = 0 ;
12340 PyObject * obj3 = 0 ;
12341 PyObject * obj4 = 0 ;
12342 PyObject * obj5 = 0 ;
12343 PyObject * obj6 = 0 ;
12344 PyObject * obj7 = 0 ;
12345 char *kwnames[] = {
12346 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12347 };
12348
12349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12352 {
12353 arg2 = &temp2;
12354 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12355 }
12356 {
12357 arg3 = &temp3;
12358 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12359 }
12360 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12362 {
12363 arg5 = &temp5;
12364 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12365 }
12366 if (obj5) {
12367 arg6 = (int)SWIG_As_int(obj5);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 if (obj6) {
12371 arg7 = (bool)SWIG_As_bool(obj6);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 if (obj7) {
12375 {
12376 arg8 = &temp8;
12377 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12378 }
12379 }
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12383
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 {
12388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12389 }
12390 return resultobj;
12391 fail:
12392 return NULL;
12393 }
12394
12395
12396 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12397 PyObject *resultobj;
12398 wxDC *arg1 = (wxDC *) 0 ;
12399 int arg2 ;
12400 int arg3 ;
12401 int arg4 ;
12402 int arg5 ;
12403 PyObject * obj0 = 0 ;
12404 PyObject * obj1 = 0 ;
12405 PyObject * obj2 = 0 ;
12406 PyObject * obj3 = 0 ;
12407 PyObject * obj4 = 0 ;
12408 char *kwnames[] = {
12409 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12410 };
12411
12412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12415 arg2 = (int)SWIG_As_int(obj1);
12416 if (PyErr_Occurred()) SWIG_fail;
12417 arg3 = (int)SWIG_As_int(obj2);
12418 if (PyErr_Occurred()) SWIG_fail;
12419 arg4 = (int)SWIG_As_int(obj3);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 arg5 = (int)SWIG_As_int(obj4);
12422 if (PyErr_Occurred()) SWIG_fail;
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12426
12427 wxPyEndAllowThreads(__tstate);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 }
12430 Py_INCREF(Py_None); resultobj = Py_None;
12431 return resultobj;
12432 fail:
12433 return NULL;
12434 }
12435
12436
12437 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12438 PyObject *resultobj;
12439 wxDC *arg1 = (wxDC *) 0 ;
12440 wxPoint *arg2 = 0 ;
12441 wxSize *arg3 = 0 ;
12442 wxPoint temp2 ;
12443 wxSize temp3 ;
12444 PyObject * obj0 = 0 ;
12445 PyObject * obj1 = 0 ;
12446 PyObject * obj2 = 0 ;
12447 char *kwnames[] = {
12448 (char *) "self",(char *) "pt",(char *) "sz", NULL
12449 };
12450
12451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12454 {
12455 arg2 = &temp2;
12456 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12457 }
12458 {
12459 arg3 = &temp3;
12460 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12461 }
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12465
12466 wxPyEndAllowThreads(__tstate);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
12469 Py_INCREF(Py_None); resultobj = Py_None;
12470 return resultobj;
12471 fail:
12472 return NULL;
12473 }
12474
12475
12476 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12477 PyObject *resultobj;
12478 wxDC *arg1 = (wxDC *) 0 ;
12479 wxRegion *arg2 = 0 ;
12480 PyObject * obj0 = 0 ;
12481 PyObject * obj1 = 0 ;
12482 char *kwnames[] = {
12483 (char *) "self",(char *) "region", NULL
12484 };
12485
12486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12490 SWIG_POINTER_EXCEPTION | 0)) == -1)
12491 SWIG_fail;
12492 if (arg2 == NULL) {
12493 PyErr_SetString(PyExc_TypeError,"null reference");
12494 SWIG_fail;
12495 }
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 Py_INCREF(Py_None); resultobj = Py_None;
12504 return resultobj;
12505 fail:
12506 return NULL;
12507 }
12508
12509
12510 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxDC *arg1 = (wxDC *) 0 ;
12513 wxRect *arg2 = 0 ;
12514 wxRect temp2 ;
12515 PyObject * obj0 = 0 ;
12516 PyObject * obj1 = 0 ;
12517 char *kwnames[] = {
12518 (char *) "self",(char *) "rect", NULL
12519 };
12520
12521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12524 {
12525 arg2 = &temp2;
12526 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12527 }
12528 {
12529 PyThreadState* __tstate = wxPyBeginAllowThreads();
12530 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12531
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 Py_INCREF(Py_None); resultobj = Py_None;
12536 return resultobj;
12537 fail:
12538 return NULL;
12539 }
12540
12541
12542 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
12543 PyObject *resultobj;
12544 wxDC *arg1 = (wxDC *) 0 ;
12545 int arg2 ;
12546 wxPoint *arg3 = (wxPoint *) 0 ;
12547 int arg4 = (int) 0 ;
12548 int arg5 = (int) 0 ;
12549 PyObject * obj0 = 0 ;
12550 PyObject * obj1 = 0 ;
12551 PyObject * obj2 = 0 ;
12552 PyObject * obj3 = 0 ;
12553 char *kwnames[] = {
12554 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12555 };
12556
12557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12560 {
12561 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12562 if (arg3 == NULL) SWIG_fail;
12563 }
12564 if (obj2) {
12565 arg4 = (int)SWIG_As_int(obj2);
12566 if (PyErr_Occurred()) SWIG_fail;
12567 }
12568 if (obj3) {
12569 arg5 = (int)SWIG_As_int(obj3);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12575
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 Py_INCREF(Py_None); resultobj = Py_None;
12580 {
12581 if (arg3) delete [] arg3;
12582 }
12583 return resultobj;
12584 fail:
12585 {
12586 if (arg3) delete [] arg3;
12587 }
12588 return NULL;
12589 }
12590
12591
12592 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
12593 PyObject *resultobj;
12594 wxDC *arg1 = (wxDC *) 0 ;
12595 int arg2 ;
12596 wxPoint *arg3 = (wxPoint *) 0 ;
12597 int arg4 = (int) 0 ;
12598 int arg5 = (int) 0 ;
12599 int arg6 = (int) wxODDEVEN_RULE ;
12600 PyObject * obj0 = 0 ;
12601 PyObject * obj1 = 0 ;
12602 PyObject * obj2 = 0 ;
12603 PyObject * obj3 = 0 ;
12604 PyObject * obj4 = 0 ;
12605 char *kwnames[] = {
12606 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12607 };
12608
12609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12612 {
12613 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12614 if (arg3 == NULL) SWIG_fail;
12615 }
12616 if (obj2) {
12617 arg4 = (int)SWIG_As_int(obj2);
12618 if (PyErr_Occurred()) SWIG_fail;
12619 }
12620 if (obj3) {
12621 arg5 = (int)SWIG_As_int(obj3);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 if (obj4) {
12625 arg6 = (int)SWIG_As_int(obj4);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12631
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 Py_INCREF(Py_None); resultobj = Py_None;
12636 {
12637 if (arg3) delete [] arg3;
12638 }
12639 return resultobj;
12640 fail:
12641 {
12642 if (arg3) delete [] arg3;
12643 }
12644 return NULL;
12645 }
12646
12647
12648 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 wxDC *arg1 = (wxDC *) 0 ;
12651 wxString *arg2 = 0 ;
12652 wxRect *arg3 = 0 ;
12653 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12654 int arg5 = (int) -1 ;
12655 bool temp2 = false ;
12656 wxRect temp3 ;
12657 PyObject * obj0 = 0 ;
12658 PyObject * obj1 = 0 ;
12659 PyObject * obj2 = 0 ;
12660 PyObject * obj3 = 0 ;
12661 PyObject * obj4 = 0 ;
12662 char *kwnames[] = {
12663 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12664 };
12665
12666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12669 {
12670 arg2 = wxString_in_helper(obj1);
12671 if (arg2 == NULL) SWIG_fail;
12672 temp2 = true;
12673 }
12674 {
12675 arg3 = &temp3;
12676 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12677 }
12678 if (obj3) {
12679 arg4 = (int)SWIG_As_int(obj3);
12680 if (PyErr_Occurred()) SWIG_fail;
12681 }
12682 if (obj4) {
12683 arg5 = (int)SWIG_As_int(obj4);
12684 if (PyErr_Occurred()) SWIG_fail;
12685 }
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12689
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 Py_INCREF(Py_None); resultobj = Py_None;
12694 {
12695 if (temp2)
12696 delete arg2;
12697 }
12698 return resultobj;
12699 fail:
12700 {
12701 if (temp2)
12702 delete arg2;
12703 }
12704 return NULL;
12705 }
12706
12707
12708 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12709 PyObject *resultobj;
12710 wxDC *arg1 = (wxDC *) 0 ;
12711 wxString *arg2 = 0 ;
12712 wxBitmap *arg3 = 0 ;
12713 wxRect *arg4 = 0 ;
12714 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12715 int arg6 = (int) -1 ;
12716 wxRect result;
12717 bool temp2 = false ;
12718 wxRect temp4 ;
12719 PyObject * obj0 = 0 ;
12720 PyObject * obj1 = 0 ;
12721 PyObject * obj2 = 0 ;
12722 PyObject * obj3 = 0 ;
12723 PyObject * obj4 = 0 ;
12724 PyObject * obj5 = 0 ;
12725 char *kwnames[] = {
12726 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12727 };
12728
12729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12732 {
12733 arg2 = wxString_in_helper(obj1);
12734 if (arg2 == NULL) SWIG_fail;
12735 temp2 = true;
12736 }
12737 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12738 SWIG_POINTER_EXCEPTION | 0)) == -1)
12739 SWIG_fail;
12740 if (arg3 == NULL) {
12741 PyErr_SetString(PyExc_TypeError,"null reference");
12742 SWIG_fail;
12743 }
12744 {
12745 arg4 = &temp4;
12746 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12747 }
12748 if (obj4) {
12749 arg5 = (int)SWIG_As_int(obj4);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 if (obj5) {
12753 arg6 = (int)SWIG_As_int(obj5);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 {
12757 PyThreadState* __tstate = wxPyBeginAllowThreads();
12758 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12759
12760 wxPyEndAllowThreads(__tstate);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 {
12764 wxRect * resultptr;
12765 resultptr = new wxRect((wxRect &) result);
12766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12767 }
12768 {
12769 if (temp2)
12770 delete arg2;
12771 }
12772 return resultobj;
12773 fail:
12774 {
12775 if (temp2)
12776 delete arg2;
12777 }
12778 return NULL;
12779 }
12780
12781
12782 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
12783 PyObject *resultobj;
12784 wxDC *arg1 = (wxDC *) 0 ;
12785 int arg2 ;
12786 wxPoint *arg3 = (wxPoint *) 0 ;
12787 PyObject * obj0 = 0 ;
12788 PyObject * obj1 = 0 ;
12789 char *kwnames[] = {
12790 (char *) "self",(char *) "points", NULL
12791 };
12792
12793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12796 {
12797 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12798 if (arg3 == NULL) SWIG_fail;
12799 }
12800 {
12801 PyThreadState* __tstate = wxPyBeginAllowThreads();
12802 (arg1)->DrawSpline(arg2,arg3);
12803
12804 wxPyEndAllowThreads(__tstate);
12805 if (PyErr_Occurred()) SWIG_fail;
12806 }
12807 Py_INCREF(Py_None); resultobj = Py_None;
12808 {
12809 if (arg3) delete [] arg3;
12810 }
12811 return resultobj;
12812 fail:
12813 {
12814 if (arg3) delete [] arg3;
12815 }
12816 return NULL;
12817 }
12818
12819
12820 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
12821 PyObject *resultobj;
12822 wxDC *arg1 = (wxDC *) 0 ;
12823 PyObject * obj0 = 0 ;
12824 char *kwnames[] = {
12825 (char *) "self", NULL
12826 };
12827
12828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12831 {
12832 PyThreadState* __tstate = wxPyBeginAllowThreads();
12833 (arg1)->Clear();
12834
12835 wxPyEndAllowThreads(__tstate);
12836 if (PyErr_Occurred()) SWIG_fail;
12837 }
12838 Py_INCREF(Py_None); resultobj = Py_None;
12839 return resultobj;
12840 fail:
12841 return NULL;
12842 }
12843
12844
12845 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12846 PyObject *resultobj;
12847 wxDC *arg1 = (wxDC *) 0 ;
12848 wxString *arg2 = 0 ;
12849 bool result;
12850 bool temp2 = false ;
12851 PyObject * obj0 = 0 ;
12852 PyObject * obj1 = 0 ;
12853 char *kwnames[] = {
12854 (char *) "self",(char *) "message", NULL
12855 };
12856
12857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12860 {
12861 arg2 = wxString_in_helper(obj1);
12862 if (arg2 == NULL) SWIG_fail;
12863 temp2 = true;
12864 }
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12868
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 {
12873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12874 }
12875 {
12876 if (temp2)
12877 delete arg2;
12878 }
12879 return resultobj;
12880 fail:
12881 {
12882 if (temp2)
12883 delete arg2;
12884 }
12885 return NULL;
12886 }
12887
12888
12889 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12890 PyObject *resultobj;
12891 wxDC *arg1 = (wxDC *) 0 ;
12892 PyObject * obj0 = 0 ;
12893 char *kwnames[] = {
12894 (char *) "self", NULL
12895 };
12896
12897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12900 {
12901 PyThreadState* __tstate = wxPyBeginAllowThreads();
12902 (arg1)->EndDoc();
12903
12904 wxPyEndAllowThreads(__tstate);
12905 if (PyErr_Occurred()) SWIG_fail;
12906 }
12907 Py_INCREF(Py_None); resultobj = Py_None;
12908 return resultobj;
12909 fail:
12910 return NULL;
12911 }
12912
12913
12914 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
12915 PyObject *resultobj;
12916 wxDC *arg1 = (wxDC *) 0 ;
12917 PyObject * obj0 = 0 ;
12918 char *kwnames[] = {
12919 (char *) "self", NULL
12920 };
12921
12922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 (arg1)->StartPage();
12928
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 Py_INCREF(Py_None); resultobj = Py_None;
12933 return resultobj;
12934 fail:
12935 return NULL;
12936 }
12937
12938
12939 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
12940 PyObject *resultobj;
12941 wxDC *arg1 = (wxDC *) 0 ;
12942 PyObject * obj0 = 0 ;
12943 char *kwnames[] = {
12944 (char *) "self", NULL
12945 };
12946
12947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 (arg1)->EndPage();
12953
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 Py_INCREF(Py_None); resultobj = Py_None;
12958 return resultobj;
12959 fail:
12960 return NULL;
12961 }
12962
12963
12964 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj;
12966 wxDC *arg1 = (wxDC *) 0 ;
12967 wxFont *arg2 = 0 ;
12968 PyObject * obj0 = 0 ;
12969 PyObject * obj1 = 0 ;
12970 char *kwnames[] = {
12971 (char *) "self",(char *) "font", NULL
12972 };
12973
12974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12977 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12978 SWIG_POINTER_EXCEPTION | 0)) == -1)
12979 SWIG_fail;
12980 if (arg2 == NULL) {
12981 PyErr_SetString(PyExc_TypeError,"null reference");
12982 SWIG_fail;
12983 }
12984 {
12985 PyThreadState* __tstate = wxPyBeginAllowThreads();
12986 (arg1)->SetFont((wxFont const &)*arg2);
12987
12988 wxPyEndAllowThreads(__tstate);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 Py_INCREF(Py_None); resultobj = Py_None;
12992 return resultobj;
12993 fail:
12994 return NULL;
12995 }
12996
12997
12998 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
12999 PyObject *resultobj;
13000 wxDC *arg1 = (wxDC *) 0 ;
13001 wxPen *arg2 = 0 ;
13002 PyObject * obj0 = 0 ;
13003 PyObject * obj1 = 0 ;
13004 char *kwnames[] = {
13005 (char *) "self",(char *) "pen", NULL
13006 };
13007
13008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13011 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13012 SWIG_POINTER_EXCEPTION | 0)) == -1)
13013 SWIG_fail;
13014 if (arg2 == NULL) {
13015 PyErr_SetString(PyExc_TypeError,"null reference");
13016 SWIG_fail;
13017 }
13018 {
13019 PyThreadState* __tstate = wxPyBeginAllowThreads();
13020 (arg1)->SetPen((wxPen const &)*arg2);
13021
13022 wxPyEndAllowThreads(__tstate);
13023 if (PyErr_Occurred()) SWIG_fail;
13024 }
13025 Py_INCREF(Py_None); resultobj = Py_None;
13026 return resultobj;
13027 fail:
13028 return NULL;
13029 }
13030
13031
13032 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
13033 PyObject *resultobj;
13034 wxDC *arg1 = (wxDC *) 0 ;
13035 wxBrush *arg2 = 0 ;
13036 PyObject * obj0 = 0 ;
13037 PyObject * obj1 = 0 ;
13038 char *kwnames[] = {
13039 (char *) "self",(char *) "brush", NULL
13040 };
13041
13042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13046 SWIG_POINTER_EXCEPTION | 0)) == -1)
13047 SWIG_fail;
13048 if (arg2 == NULL) {
13049 PyErr_SetString(PyExc_TypeError,"null reference");
13050 SWIG_fail;
13051 }
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 (arg1)->SetBrush((wxBrush const &)*arg2);
13055
13056 wxPyEndAllowThreads(__tstate);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 Py_INCREF(Py_None); resultobj = Py_None;
13060 return resultobj;
13061 fail:
13062 return NULL;
13063 }
13064
13065
13066 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13067 PyObject *resultobj;
13068 wxDC *arg1 = (wxDC *) 0 ;
13069 wxBrush *arg2 = 0 ;
13070 PyObject * obj0 = 0 ;
13071 PyObject * obj1 = 0 ;
13072 char *kwnames[] = {
13073 (char *) "self",(char *) "brush", NULL
13074 };
13075
13076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13079 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13080 SWIG_POINTER_EXCEPTION | 0)) == -1)
13081 SWIG_fail;
13082 if (arg2 == NULL) {
13083 PyErr_SetString(PyExc_TypeError,"null reference");
13084 SWIG_fail;
13085 }
13086 {
13087 PyThreadState* __tstate = wxPyBeginAllowThreads();
13088 (arg1)->SetBackground((wxBrush const &)*arg2);
13089
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 Py_INCREF(Py_None); resultobj = Py_None;
13094 return resultobj;
13095 fail:
13096 return NULL;
13097 }
13098
13099
13100 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13101 PyObject *resultobj;
13102 wxDC *arg1 = (wxDC *) 0 ;
13103 int arg2 ;
13104 PyObject * obj0 = 0 ;
13105 PyObject * obj1 = 0 ;
13106 char *kwnames[] = {
13107 (char *) "self",(char *) "mode", NULL
13108 };
13109
13110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13113 arg2 = (int)SWIG_As_int(obj1);
13114 if (PyErr_Occurred()) SWIG_fail;
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 (arg1)->SetBackgroundMode(arg2);
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 Py_INCREF(Py_None); resultobj = Py_None;
13123 return resultobj;
13124 fail:
13125 return NULL;
13126 }
13127
13128
13129 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxDC *arg1 = (wxDC *) 0 ;
13132 wxPalette *arg2 = 0 ;
13133 PyObject * obj0 = 0 ;
13134 PyObject * obj1 = 0 ;
13135 char *kwnames[] = {
13136 (char *) "self",(char *) "palette", NULL
13137 };
13138
13139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13143 SWIG_POINTER_EXCEPTION | 0)) == -1)
13144 SWIG_fail;
13145 if (arg2 == NULL) {
13146 PyErr_SetString(PyExc_TypeError,"null reference");
13147 SWIG_fail;
13148 }
13149 {
13150 PyThreadState* __tstate = wxPyBeginAllowThreads();
13151 (arg1)->SetPalette((wxPalette const &)*arg2);
13152
13153 wxPyEndAllowThreads(__tstate);
13154 if (PyErr_Occurred()) SWIG_fail;
13155 }
13156 Py_INCREF(Py_None); resultobj = Py_None;
13157 return resultobj;
13158 fail:
13159 return NULL;
13160 }
13161
13162
13163 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj;
13165 wxDC *arg1 = (wxDC *) 0 ;
13166 PyObject * obj0 = 0 ;
13167 char *kwnames[] = {
13168 (char *) "self", NULL
13169 };
13170
13171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 (arg1)->DestroyClippingRegion();
13177
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 Py_INCREF(Py_None); resultobj = Py_None;
13182 return resultobj;
13183 fail:
13184 return NULL;
13185 }
13186
13187
13188 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj;
13190 wxDC *arg1 = (wxDC *) 0 ;
13191 int *arg2 = (int *) 0 ;
13192 int *arg3 = (int *) 0 ;
13193 int *arg4 = (int *) 0 ;
13194 int *arg5 = (int *) 0 ;
13195 int temp2 ;
13196 int res2 = 0 ;
13197 int temp3 ;
13198 int res3 = 0 ;
13199 int temp4 ;
13200 int res4 = 0 ;
13201 int temp5 ;
13202 int res5 = 0 ;
13203 PyObject * obj0 = 0 ;
13204 char *kwnames[] = {
13205 (char *) "self", NULL
13206 };
13207
13208 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13209 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13210 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13211 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13215 {
13216 PyThreadState* __tstate = wxPyBeginAllowThreads();
13217 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13218
13219 wxPyEndAllowThreads(__tstate);
13220 if (PyErr_Occurred()) SWIG_fail;
13221 }
13222 Py_INCREF(Py_None); resultobj = Py_None;
13223 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13224 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13225 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13226 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13227 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13228 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13229 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13230 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13231 return resultobj;
13232 fail:
13233 return NULL;
13234 }
13235
13236
13237 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
13238 PyObject *resultobj;
13239 wxDC *arg1 = (wxDC *) 0 ;
13240 wxRect result;
13241 PyObject * obj0 = 0 ;
13242 char *kwnames[] = {
13243 (char *) "self", NULL
13244 };
13245
13246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 result = wxDC_GetClippingRect(arg1);
13252
13253 wxPyEndAllowThreads(__tstate);
13254 if (PyErr_Occurred()) SWIG_fail;
13255 }
13256 {
13257 wxRect * resultptr;
13258 resultptr = new wxRect((wxRect &) result);
13259 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13260 }
13261 return resultobj;
13262 fail:
13263 return NULL;
13264 }
13265
13266
13267 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
13268 PyObject *resultobj;
13269 wxDC *arg1 = (wxDC *) 0 ;
13270 int result;
13271 PyObject * obj0 = 0 ;
13272 char *kwnames[] = {
13273 (char *) "self", NULL
13274 };
13275
13276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 result = (int)((wxDC const *)arg1)->GetCharHeight();
13282
13283 wxPyEndAllowThreads(__tstate);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 }
13286 resultobj = SWIG_From_int((int)result);
13287 return resultobj;
13288 fail:
13289 return NULL;
13290 }
13291
13292
13293 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
13294 PyObject *resultobj;
13295 wxDC *arg1 = (wxDC *) 0 ;
13296 int result;
13297 PyObject * obj0 = 0 ;
13298 char *kwnames[] = {
13299 (char *) "self", NULL
13300 };
13301
13302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13305 {
13306 PyThreadState* __tstate = wxPyBeginAllowThreads();
13307 result = (int)((wxDC const *)arg1)->GetCharWidth();
13308
13309 wxPyEndAllowThreads(__tstate);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 resultobj = SWIG_From_int((int)result);
13313 return resultobj;
13314 fail:
13315 return NULL;
13316 }
13317
13318
13319 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13320 PyObject *resultobj;
13321 wxDC *arg1 = (wxDC *) 0 ;
13322 wxString *arg2 = 0 ;
13323 int *arg3 = (int *) 0 ;
13324 int *arg4 = (int *) 0 ;
13325 bool temp2 = false ;
13326 int temp3 ;
13327 int res3 = 0 ;
13328 int temp4 ;
13329 int res4 = 0 ;
13330 PyObject * obj0 = 0 ;
13331 PyObject * obj1 = 0 ;
13332 char *kwnames[] = {
13333 (char *) "self",(char *) "string", NULL
13334 };
13335
13336 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13337 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13341 {
13342 arg2 = wxString_in_helper(obj1);
13343 if (arg2 == NULL) SWIG_fail;
13344 temp2 = true;
13345 }
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 Py_INCREF(Py_None); resultobj = Py_None;
13354 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13355 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13356 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13357 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13358 {
13359 if (temp2)
13360 delete arg2;
13361 }
13362 return resultobj;
13363 fail:
13364 {
13365 if (temp2)
13366 delete arg2;
13367 }
13368 return NULL;
13369 }
13370
13371
13372 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13373 PyObject *resultobj;
13374 wxDC *arg1 = (wxDC *) 0 ;
13375 wxString *arg2 = 0 ;
13376 int *arg3 = (int *) 0 ;
13377 int *arg4 = (int *) 0 ;
13378 int *arg5 = (int *) 0 ;
13379 int *arg6 = (int *) 0 ;
13380 wxFont *arg7 = (wxFont *) NULL ;
13381 bool temp2 = false ;
13382 int temp3 ;
13383 int res3 = 0 ;
13384 int temp4 ;
13385 int res4 = 0 ;
13386 int temp5 ;
13387 int res5 = 0 ;
13388 int temp6 ;
13389 int res6 = 0 ;
13390 PyObject * obj0 = 0 ;
13391 PyObject * obj1 = 0 ;
13392 PyObject * obj2 = 0 ;
13393 char *kwnames[] = {
13394 (char *) "self",(char *) "string",(char *) "font", NULL
13395 };
13396
13397 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13398 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13399 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13400 arg6 = &temp6; res6 = SWIG_NEWOBJ;
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13404 {
13405 arg2 = wxString_in_helper(obj1);
13406 if (arg2 == NULL) SWIG_fail;
13407 temp2 = true;
13408 }
13409 if (obj2) {
13410 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13412 }
13413 {
13414 PyThreadState* __tstate = wxPyBeginAllowThreads();
13415 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13416
13417 wxPyEndAllowThreads(__tstate);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 }
13420 Py_INCREF(Py_None); resultobj = Py_None;
13421 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13422 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13423 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13424 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13425 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13426 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13427 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13428 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
13429 {
13430 if (temp2)
13431 delete arg2;
13432 }
13433 return resultobj;
13434 fail:
13435 {
13436 if (temp2)
13437 delete arg2;
13438 }
13439 return NULL;
13440 }
13441
13442
13443 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13444 PyObject *resultobj;
13445 wxDC *arg1 = (wxDC *) 0 ;
13446 wxString *arg2 = 0 ;
13447 int *arg3 = (int *) 0 ;
13448 int *arg4 = (int *) 0 ;
13449 int *arg5 = (int *) 0 ;
13450 wxFont *arg6 = (wxFont *) NULL ;
13451 bool temp2 = false ;
13452 int temp3 ;
13453 int res3 = 0 ;
13454 int temp4 ;
13455 int res4 = 0 ;
13456 int temp5 ;
13457 int res5 = 0 ;
13458 PyObject * obj0 = 0 ;
13459 PyObject * obj1 = 0 ;
13460 PyObject * obj2 = 0 ;
13461 char *kwnames[] = {
13462 (char *) "self",(char *) "text",(char *) "font", NULL
13463 };
13464
13465 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13466 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13467 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13471 {
13472 arg2 = wxString_in_helper(obj1);
13473 if (arg2 == NULL) SWIG_fail;
13474 temp2 = true;
13475 }
13476 if (obj2) {
13477 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13479 }
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13483
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 Py_INCREF(Py_None); resultobj = Py_None;
13488 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13489 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13490 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13491 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13492 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13493 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13494 {
13495 if (temp2)
13496 delete arg2;
13497 }
13498 return resultobj;
13499 fail:
13500 {
13501 if (temp2)
13502 delete arg2;
13503 }
13504 return NULL;
13505 }
13506
13507
13508 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
13509 PyObject *resultobj;
13510 wxDC *arg1 = (wxDC *) 0 ;
13511 wxString *arg2 = 0 ;
13512 wxArrayInt result;
13513 bool temp2 = false ;
13514 PyObject * obj0 = 0 ;
13515 PyObject * obj1 = 0 ;
13516 char *kwnames[] = {
13517 (char *) "self",(char *) "text", NULL
13518 };
13519
13520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13523 {
13524 arg2 = wxString_in_helper(obj1);
13525 if (arg2 == NULL) SWIG_fail;
13526 temp2 = true;
13527 }
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13531
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 {
13536 resultobj = PyList_New(0);
13537 size_t idx;
13538 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13539 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13540 PyList_Append(resultobj, val);
13541 Py_DECREF(val);
13542 }
13543 }
13544 {
13545 if (temp2)
13546 delete arg2;
13547 }
13548 return resultobj;
13549 fail:
13550 {
13551 if (temp2)
13552 delete arg2;
13553 }
13554 return NULL;
13555 }
13556
13557
13558 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
13559 PyObject *resultobj;
13560 wxDC *arg1 = (wxDC *) 0 ;
13561 wxSize result;
13562 PyObject * obj0 = 0 ;
13563 char *kwnames[] = {
13564 (char *) "self", NULL
13565 };
13566
13567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13570 {
13571 PyThreadState* __tstate = wxPyBeginAllowThreads();
13572 result = (arg1)->GetSize();
13573
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 {
13578 wxSize * resultptr;
13579 resultptr = new wxSize((wxSize &) result);
13580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13581 }
13582 return resultobj;
13583 fail:
13584 return NULL;
13585 }
13586
13587
13588 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13589 PyObject *resultobj;
13590 wxDC *arg1 = (wxDC *) 0 ;
13591 int *arg2 = (int *) 0 ;
13592 int *arg3 = (int *) 0 ;
13593 int temp2 ;
13594 int res2 = 0 ;
13595 int temp3 ;
13596 int res3 = 0 ;
13597 PyObject * obj0 = 0 ;
13598 char *kwnames[] = {
13599 (char *) "self", NULL
13600 };
13601
13602 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13603 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13607 {
13608 PyThreadState* __tstate = wxPyBeginAllowThreads();
13609 (arg1)->GetSize(arg2,arg3);
13610
13611 wxPyEndAllowThreads(__tstate);
13612 if (PyErr_Occurred()) SWIG_fail;
13613 }
13614 Py_INCREF(Py_None); resultobj = Py_None;
13615 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13616 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13617 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13618 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13619 return resultobj;
13620 fail:
13621 return NULL;
13622 }
13623
13624
13625 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
13626 PyObject *resultobj;
13627 wxDC *arg1 = (wxDC *) 0 ;
13628 wxSize result;
13629 PyObject * obj0 = 0 ;
13630 char *kwnames[] = {
13631 (char *) "self", NULL
13632 };
13633
13634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = ((wxDC const *)arg1)->GetSizeMM();
13640
13641 wxPyEndAllowThreads(__tstate);
13642 if (PyErr_Occurred()) SWIG_fail;
13643 }
13644 {
13645 wxSize * resultptr;
13646 resultptr = new wxSize((wxSize &) result);
13647 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13648 }
13649 return resultobj;
13650 fail:
13651 return NULL;
13652 }
13653
13654
13655 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13656 PyObject *resultobj;
13657 wxDC *arg1 = (wxDC *) 0 ;
13658 int *arg2 = (int *) 0 ;
13659 int *arg3 = (int *) 0 ;
13660 int temp2 ;
13661 int res2 = 0 ;
13662 int temp3 ;
13663 int res3 = 0 ;
13664 PyObject * obj0 = 0 ;
13665 char *kwnames[] = {
13666 (char *) "self", NULL
13667 };
13668
13669 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13670 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13674 {
13675 PyThreadState* __tstate = wxPyBeginAllowThreads();
13676 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13677
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 Py_INCREF(Py_None); resultobj = Py_None;
13682 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13683 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13684 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13685 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13686 return resultobj;
13687 fail:
13688 return NULL;
13689 }
13690
13691
13692 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
13693 PyObject *resultobj;
13694 wxDC *arg1 = (wxDC *) 0 ;
13695 int arg2 ;
13696 int result;
13697 PyObject * obj0 = 0 ;
13698 PyObject * obj1 = 0 ;
13699 char *kwnames[] = {
13700 (char *) "self",(char *) "x", NULL
13701 };
13702
13703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13706 arg2 = (int)SWIG_As_int(obj1);
13707 if (PyErr_Occurred()) SWIG_fail;
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13711
13712 wxPyEndAllowThreads(__tstate);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 }
13715 resultobj = SWIG_From_int((int)result);
13716 return resultobj;
13717 fail:
13718 return NULL;
13719 }
13720
13721
13722 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj;
13724 wxDC *arg1 = (wxDC *) 0 ;
13725 int arg2 ;
13726 int result;
13727 PyObject * obj0 = 0 ;
13728 PyObject * obj1 = 0 ;
13729 char *kwnames[] = {
13730 (char *) "self",(char *) "y", NULL
13731 };
13732
13733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13736 arg2 = (int)SWIG_As_int(obj1);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 {
13739 PyThreadState* __tstate = wxPyBeginAllowThreads();
13740 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13741
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 resultobj = SWIG_From_int((int)result);
13746 return resultobj;
13747 fail:
13748 return NULL;
13749 }
13750
13751
13752 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj;
13754 wxDC *arg1 = (wxDC *) 0 ;
13755 int arg2 ;
13756 int result;
13757 PyObject * obj0 = 0 ;
13758 PyObject * obj1 = 0 ;
13759 char *kwnames[] = {
13760 (char *) "self",(char *) "x", NULL
13761 };
13762
13763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13766 arg2 = (int)SWIG_As_int(obj1);
13767 if (PyErr_Occurred()) SWIG_fail;
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13771
13772 wxPyEndAllowThreads(__tstate);
13773 if (PyErr_Occurred()) SWIG_fail;
13774 }
13775 resultobj = SWIG_From_int((int)result);
13776 return resultobj;
13777 fail:
13778 return NULL;
13779 }
13780
13781
13782 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13783 PyObject *resultobj;
13784 wxDC *arg1 = (wxDC *) 0 ;
13785 int arg2 ;
13786 int result;
13787 PyObject * obj0 = 0 ;
13788 PyObject * obj1 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self",(char *) "y", NULL
13791 };
13792
13793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13796 arg2 = (int)SWIG_As_int(obj1);
13797 if (PyErr_Occurred()) SWIG_fail;
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 resultobj = SWIG_From_int((int)result);
13806 return resultobj;
13807 fail:
13808 return NULL;
13809 }
13810
13811
13812 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj;
13814 wxDC *arg1 = (wxDC *) 0 ;
13815 int arg2 ;
13816 int result;
13817 PyObject * obj0 = 0 ;
13818 PyObject * obj1 = 0 ;
13819 char *kwnames[] = {
13820 (char *) "self",(char *) "x", NULL
13821 };
13822
13823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13826 arg2 = (int)SWIG_As_int(obj1);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13831
13832 wxPyEndAllowThreads(__tstate);
13833 if (PyErr_Occurred()) SWIG_fail;
13834 }
13835 resultobj = SWIG_From_int((int)result);
13836 return resultobj;
13837 fail:
13838 return NULL;
13839 }
13840
13841
13842 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
13843 PyObject *resultobj;
13844 wxDC *arg1 = (wxDC *) 0 ;
13845 int arg2 ;
13846 int result;
13847 PyObject * obj0 = 0 ;
13848 PyObject * obj1 = 0 ;
13849 char *kwnames[] = {
13850 (char *) "self",(char *) "y", NULL
13851 };
13852
13853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13856 arg2 = (int)SWIG_As_int(obj1);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 {
13859 PyThreadState* __tstate = wxPyBeginAllowThreads();
13860 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13861
13862 wxPyEndAllowThreads(__tstate);
13863 if (PyErr_Occurred()) SWIG_fail;
13864 }
13865 resultobj = SWIG_From_int((int)result);
13866 return resultobj;
13867 fail:
13868 return NULL;
13869 }
13870
13871
13872 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13873 PyObject *resultobj;
13874 wxDC *arg1 = (wxDC *) 0 ;
13875 int arg2 ;
13876 int result;
13877 PyObject * obj0 = 0 ;
13878 PyObject * obj1 = 0 ;
13879 char *kwnames[] = {
13880 (char *) "self",(char *) "x", NULL
13881 };
13882
13883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13886 arg2 = (int)SWIG_As_int(obj1);
13887 if (PyErr_Occurred()) SWIG_fail;
13888 {
13889 PyThreadState* __tstate = wxPyBeginAllowThreads();
13890 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13891
13892 wxPyEndAllowThreads(__tstate);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 resultobj = SWIG_From_int((int)result);
13896 return resultobj;
13897 fail:
13898 return NULL;
13899 }
13900
13901
13902 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj;
13904 wxDC *arg1 = (wxDC *) 0 ;
13905 int arg2 ;
13906 int result;
13907 PyObject * obj0 = 0 ;
13908 PyObject * obj1 = 0 ;
13909 char *kwnames[] = {
13910 (char *) "self",(char *) "y", NULL
13911 };
13912
13913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13916 arg2 = (int)SWIG_As_int(obj1);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13921
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 resultobj = SWIG_From_int((int)result);
13926 return resultobj;
13927 fail:
13928 return NULL;
13929 }
13930
13931
13932 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj;
13934 wxDC *arg1 = (wxDC *) 0 ;
13935 bool result;
13936 PyObject * obj0 = 0 ;
13937 char *kwnames[] = {
13938 (char *) "self", NULL
13939 };
13940
13941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13944 {
13945 PyThreadState* __tstate = wxPyBeginAllowThreads();
13946 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13947
13948 wxPyEndAllowThreads(__tstate);
13949 if (PyErr_Occurred()) SWIG_fail;
13950 }
13951 {
13952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13953 }
13954 return resultobj;
13955 fail:
13956 return NULL;
13957 }
13958
13959
13960 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13961 PyObject *resultobj;
13962 wxDC *arg1 = (wxDC *) 0 ;
13963 bool result;
13964 PyObject * obj0 = 0 ;
13965 char *kwnames[] = {
13966 (char *) "self", NULL
13967 };
13968
13969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13972 {
13973 PyThreadState* __tstate = wxPyBeginAllowThreads();
13974 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13975
13976 wxPyEndAllowThreads(__tstate);
13977 if (PyErr_Occurred()) SWIG_fail;
13978 }
13979 {
13980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13981 }
13982 return resultobj;
13983 fail:
13984 return NULL;
13985 }
13986
13987
13988 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
13989 PyObject *resultobj;
13990 wxDC *arg1 = (wxDC *) 0 ;
13991 int result;
13992 PyObject * obj0 = 0 ;
13993 char *kwnames[] = {
13994 (char *) "self", NULL
13995 };
13996
13997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14000 {
14001 PyThreadState* __tstate = wxPyBeginAllowThreads();
14002 result = (int)((wxDC const *)arg1)->GetDepth();
14003
14004 wxPyEndAllowThreads(__tstate);
14005 if (PyErr_Occurred()) SWIG_fail;
14006 }
14007 resultobj = SWIG_From_int((int)result);
14008 return resultobj;
14009 fail:
14010 return NULL;
14011 }
14012
14013
14014 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
14015 PyObject *resultobj;
14016 wxDC *arg1 = (wxDC *) 0 ;
14017 wxSize result;
14018 PyObject * obj0 = 0 ;
14019 char *kwnames[] = {
14020 (char *) "self", NULL
14021 };
14022
14023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14026 {
14027 PyThreadState* __tstate = wxPyBeginAllowThreads();
14028 result = ((wxDC const *)arg1)->GetPPI();
14029
14030 wxPyEndAllowThreads(__tstate);
14031 if (PyErr_Occurred()) SWIG_fail;
14032 }
14033 {
14034 wxSize * resultptr;
14035 resultptr = new wxSize((wxSize &) result);
14036 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14037 }
14038 return resultobj;
14039 fail:
14040 return NULL;
14041 }
14042
14043
14044 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
14045 PyObject *resultobj;
14046 wxDC *arg1 = (wxDC *) 0 ;
14047 bool result;
14048 PyObject * obj0 = 0 ;
14049 char *kwnames[] = {
14050 (char *) "self", NULL
14051 };
14052
14053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14056 {
14057 PyThreadState* __tstate = wxPyBeginAllowThreads();
14058 result = (bool)((wxDC const *)arg1)->Ok();
14059
14060 wxPyEndAllowThreads(__tstate);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 }
14063 {
14064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14065 }
14066 return resultobj;
14067 fail:
14068 return NULL;
14069 }
14070
14071
14072 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
14073 PyObject *resultobj;
14074 wxDC *arg1 = (wxDC *) 0 ;
14075 int result;
14076 PyObject * obj0 = 0 ;
14077 char *kwnames[] = {
14078 (char *) "self", NULL
14079 };
14080
14081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14084 {
14085 PyThreadState* __tstate = wxPyBeginAllowThreads();
14086 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14087
14088 wxPyEndAllowThreads(__tstate);
14089 if (PyErr_Occurred()) SWIG_fail;
14090 }
14091 resultobj = SWIG_From_int((int)result);
14092 return resultobj;
14093 fail:
14094 return NULL;
14095 }
14096
14097
14098 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14099 PyObject *resultobj;
14100 wxDC *arg1 = (wxDC *) 0 ;
14101 wxBrush *result;
14102 PyObject * obj0 = 0 ;
14103 char *kwnames[] = {
14104 (char *) "self", NULL
14105 };
14106
14107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14110 {
14111 PyThreadState* __tstate = wxPyBeginAllowThreads();
14112 {
14113 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14114 result = (wxBrush *) &_result_ref;
14115 }
14116
14117 wxPyEndAllowThreads(__tstate);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 }
14120 {
14121 wxBrush* resultptr = new wxBrush(*result);
14122 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14123 }
14124 return resultobj;
14125 fail:
14126 return NULL;
14127 }
14128
14129
14130 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
14131 PyObject *resultobj;
14132 wxDC *arg1 = (wxDC *) 0 ;
14133 wxBrush *result;
14134 PyObject * obj0 = 0 ;
14135 char *kwnames[] = {
14136 (char *) "self", NULL
14137 };
14138
14139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14142 {
14143 PyThreadState* __tstate = wxPyBeginAllowThreads();
14144 {
14145 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14146 result = (wxBrush *) &_result_ref;
14147 }
14148
14149 wxPyEndAllowThreads(__tstate);
14150 if (PyErr_Occurred()) SWIG_fail;
14151 }
14152 {
14153 wxBrush* resultptr = new wxBrush(*result);
14154 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14155 }
14156 return resultobj;
14157 fail:
14158 return NULL;
14159 }
14160
14161
14162 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
14163 PyObject *resultobj;
14164 wxDC *arg1 = (wxDC *) 0 ;
14165 wxFont *result;
14166 PyObject * obj0 = 0 ;
14167 char *kwnames[] = {
14168 (char *) "self", NULL
14169 };
14170
14171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14174 {
14175 PyThreadState* __tstate = wxPyBeginAllowThreads();
14176 {
14177 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14178 result = (wxFont *) &_result_ref;
14179 }
14180
14181 wxPyEndAllowThreads(__tstate);
14182 if (PyErr_Occurred()) SWIG_fail;
14183 }
14184 {
14185 wxFont* resultptr = new wxFont(*result);
14186 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14187 }
14188 return resultobj;
14189 fail:
14190 return NULL;
14191 }
14192
14193
14194 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
14195 PyObject *resultobj;
14196 wxDC *arg1 = (wxDC *) 0 ;
14197 wxPen *result;
14198 PyObject * obj0 = 0 ;
14199 char *kwnames[] = {
14200 (char *) "self", NULL
14201 };
14202
14203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14206 {
14207 PyThreadState* __tstate = wxPyBeginAllowThreads();
14208 {
14209 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14210 result = (wxPen *) &_result_ref;
14211 }
14212
14213 wxPyEndAllowThreads(__tstate);
14214 if (PyErr_Occurred()) SWIG_fail;
14215 }
14216 {
14217 wxPen* resultptr = new wxPen(*result);
14218 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14219 }
14220 return resultobj;
14221 fail:
14222 return NULL;
14223 }
14224
14225
14226 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14227 PyObject *resultobj;
14228 wxDC *arg1 = (wxDC *) 0 ;
14229 wxColour *result;
14230 PyObject * obj0 = 0 ;
14231 char *kwnames[] = {
14232 (char *) "self", NULL
14233 };
14234
14235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 {
14241 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14242 result = (wxColour *) &_result_ref;
14243 }
14244
14245 wxPyEndAllowThreads(__tstate);
14246 if (PyErr_Occurred()) SWIG_fail;
14247 }
14248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14249 return resultobj;
14250 fail:
14251 return NULL;
14252 }
14253
14254
14255 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14256 PyObject *resultobj;
14257 wxDC *arg1 = (wxDC *) 0 ;
14258 wxColour *result;
14259 PyObject * obj0 = 0 ;
14260 char *kwnames[] = {
14261 (char *) "self", NULL
14262 };
14263
14264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 {
14270 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14271 result = (wxColour *) &_result_ref;
14272 }
14273
14274 wxPyEndAllowThreads(__tstate);
14275 if (PyErr_Occurred()) SWIG_fail;
14276 }
14277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14278 return resultobj;
14279 fail:
14280 return NULL;
14281 }
14282
14283
14284 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14285 PyObject *resultobj;
14286 wxDC *arg1 = (wxDC *) 0 ;
14287 wxColour *arg2 = 0 ;
14288 wxColour temp2 ;
14289 PyObject * obj0 = 0 ;
14290 PyObject * obj1 = 0 ;
14291 char *kwnames[] = {
14292 (char *) "self",(char *) "colour", NULL
14293 };
14294
14295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14298 {
14299 arg2 = &temp2;
14300 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14301 }
14302 {
14303 PyThreadState* __tstate = wxPyBeginAllowThreads();
14304 (arg1)->SetTextForeground((wxColour const &)*arg2);
14305
14306 wxPyEndAllowThreads(__tstate);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 }
14309 Py_INCREF(Py_None); resultobj = Py_None;
14310 return resultobj;
14311 fail:
14312 return NULL;
14313 }
14314
14315
14316 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14317 PyObject *resultobj;
14318 wxDC *arg1 = (wxDC *) 0 ;
14319 wxColour *arg2 = 0 ;
14320 wxColour temp2 ;
14321 PyObject * obj0 = 0 ;
14322 PyObject * obj1 = 0 ;
14323 char *kwnames[] = {
14324 (char *) "self",(char *) "colour", NULL
14325 };
14326
14327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14330 {
14331 arg2 = &temp2;
14332 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14333 }
14334 {
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 (arg1)->SetTextBackground((wxColour const &)*arg2);
14337
14338 wxPyEndAllowThreads(__tstate);
14339 if (PyErr_Occurred()) SWIG_fail;
14340 }
14341 Py_INCREF(Py_None); resultobj = Py_None;
14342 return resultobj;
14343 fail:
14344 return NULL;
14345 }
14346
14347
14348 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14349 PyObject *resultobj;
14350 wxDC *arg1 = (wxDC *) 0 ;
14351 int result;
14352 PyObject * obj0 = 0 ;
14353 char *kwnames[] = {
14354 (char *) "self", NULL
14355 };
14356
14357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14360 {
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
14362 result = (int)((wxDC const *)arg1)->GetMapMode();
14363
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 resultobj = SWIG_From_int((int)result);
14368 return resultobj;
14369 fail:
14370 return NULL;
14371 }
14372
14373
14374 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14375 PyObject *resultobj;
14376 wxDC *arg1 = (wxDC *) 0 ;
14377 int arg2 ;
14378 PyObject * obj0 = 0 ;
14379 PyObject * obj1 = 0 ;
14380 char *kwnames[] = {
14381 (char *) "self",(char *) "mode", NULL
14382 };
14383
14384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14387 arg2 = (int)SWIG_As_int(obj1);
14388 if (PyErr_Occurred()) SWIG_fail;
14389 {
14390 PyThreadState* __tstate = wxPyBeginAllowThreads();
14391 (arg1)->SetMapMode(arg2);
14392
14393 wxPyEndAllowThreads(__tstate);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 }
14396 Py_INCREF(Py_None); resultobj = Py_None;
14397 return resultobj;
14398 fail:
14399 return NULL;
14400 }
14401
14402
14403 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14404 PyObject *resultobj;
14405 wxDC *arg1 = (wxDC *) 0 ;
14406 double *arg2 = (double *) 0 ;
14407 double *arg3 = (double *) 0 ;
14408 double temp2 ;
14409 int res2 = 0 ;
14410 double temp3 ;
14411 int res3 = 0 ;
14412 PyObject * obj0 = 0 ;
14413 char *kwnames[] = {
14414 (char *) "self", NULL
14415 };
14416
14417 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14418 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14425
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 Py_INCREF(Py_None); resultobj = Py_None;
14430 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14431 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14432 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14433 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14434 return resultobj;
14435 fail:
14436 return NULL;
14437 }
14438
14439
14440 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14441 PyObject *resultobj;
14442 wxDC *arg1 = (wxDC *) 0 ;
14443 double arg2 ;
14444 double arg3 ;
14445 PyObject * obj0 = 0 ;
14446 PyObject * obj1 = 0 ;
14447 PyObject * obj2 = 0 ;
14448 char *kwnames[] = {
14449 (char *) "self",(char *) "x",(char *) "y", NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14455 arg2 = (double)SWIG_As_double(obj1);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 arg3 = (double)SWIG_As_double(obj2);
14458 if (PyErr_Occurred()) SWIG_fail;
14459 {
14460 PyThreadState* __tstate = wxPyBeginAllowThreads();
14461 (arg1)->SetUserScale(arg2,arg3);
14462
14463 wxPyEndAllowThreads(__tstate);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 Py_INCREF(Py_None); resultobj = Py_None;
14467 return resultobj;
14468 fail:
14469 return NULL;
14470 }
14471
14472
14473 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14474 PyObject *resultobj;
14475 wxDC *arg1 = (wxDC *) 0 ;
14476 double *arg2 = (double *) 0 ;
14477 double *arg3 = (double *) 0 ;
14478 double temp2 ;
14479 int res2 = 0 ;
14480 double temp3 ;
14481 int res3 = 0 ;
14482 PyObject * obj0 = 0 ;
14483 char *kwnames[] = {
14484 (char *) "self", NULL
14485 };
14486
14487 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14488 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14492 {
14493 PyThreadState* __tstate = wxPyBeginAllowThreads();
14494 (arg1)->GetLogicalScale(arg2,arg3);
14495
14496 wxPyEndAllowThreads(__tstate);
14497 if (PyErr_Occurred()) SWIG_fail;
14498 }
14499 Py_INCREF(Py_None); resultobj = Py_None;
14500 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14501 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14502 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14503 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14504 return resultobj;
14505 fail:
14506 return NULL;
14507 }
14508
14509
14510 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14511 PyObject *resultobj;
14512 wxDC *arg1 = (wxDC *) 0 ;
14513 double arg2 ;
14514 double arg3 ;
14515 PyObject * obj0 = 0 ;
14516 PyObject * obj1 = 0 ;
14517 PyObject * obj2 = 0 ;
14518 char *kwnames[] = {
14519 (char *) "self",(char *) "x",(char *) "y", NULL
14520 };
14521
14522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14525 arg2 = (double)SWIG_As_double(obj1);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 arg3 = (double)SWIG_As_double(obj2);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 {
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 (arg1)->SetLogicalScale(arg2,arg3);
14532
14533 wxPyEndAllowThreads(__tstate);
14534 if (PyErr_Occurred()) SWIG_fail;
14535 }
14536 Py_INCREF(Py_None); resultobj = Py_None;
14537 return resultobj;
14538 fail:
14539 return NULL;
14540 }
14541
14542
14543 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14544 PyObject *resultobj;
14545 wxDC *arg1 = (wxDC *) 0 ;
14546 wxPoint result;
14547 PyObject * obj0 = 0 ;
14548 char *kwnames[] = {
14549 (char *) "self", NULL
14550 };
14551
14552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14555 {
14556 PyThreadState* __tstate = wxPyBeginAllowThreads();
14557 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14558
14559 wxPyEndAllowThreads(__tstate);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 }
14562 {
14563 wxPoint * resultptr;
14564 resultptr = new wxPoint((wxPoint &) result);
14565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14566 }
14567 return resultobj;
14568 fail:
14569 return NULL;
14570 }
14571
14572
14573 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14574 PyObject *resultobj;
14575 wxDC *arg1 = (wxDC *) 0 ;
14576 int *arg2 = (int *) 0 ;
14577 int *arg3 = (int *) 0 ;
14578 int temp2 ;
14579 int res2 = 0 ;
14580 int temp3 ;
14581 int res3 = 0 ;
14582 PyObject * obj0 = 0 ;
14583 char *kwnames[] = {
14584 (char *) "self", NULL
14585 };
14586
14587 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14588 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14595
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 Py_INCREF(Py_None); resultobj = Py_None;
14600 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14601 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14602 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14603 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14604 return resultobj;
14605 fail:
14606 return NULL;
14607 }
14608
14609
14610 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14611 PyObject *resultobj;
14612 wxDC *arg1 = (wxDC *) 0 ;
14613 int arg2 ;
14614 int arg3 ;
14615 PyObject * obj0 = 0 ;
14616 PyObject * obj1 = 0 ;
14617 PyObject * obj2 = 0 ;
14618 char *kwnames[] = {
14619 (char *) "self",(char *) "x",(char *) "y", NULL
14620 };
14621
14622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14625 arg2 = (int)SWIG_As_int(obj1);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 arg3 = (int)SWIG_As_int(obj2);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 {
14630 PyThreadState* __tstate = wxPyBeginAllowThreads();
14631 (arg1)->SetLogicalOrigin(arg2,arg3);
14632
14633 wxPyEndAllowThreads(__tstate);
14634 if (PyErr_Occurred()) SWIG_fail;
14635 }
14636 Py_INCREF(Py_None); resultobj = Py_None;
14637 return resultobj;
14638 fail:
14639 return NULL;
14640 }
14641
14642
14643 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14644 PyObject *resultobj;
14645 wxDC *arg1 = (wxDC *) 0 ;
14646 wxPoint *arg2 = 0 ;
14647 wxPoint temp2 ;
14648 PyObject * obj0 = 0 ;
14649 PyObject * obj1 = 0 ;
14650 char *kwnames[] = {
14651 (char *) "self",(char *) "point", NULL
14652 };
14653
14654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14657 {
14658 arg2 = &temp2;
14659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14660 }
14661 {
14662 PyThreadState* __tstate = wxPyBeginAllowThreads();
14663 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14664
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 Py_INCREF(Py_None); resultobj = Py_None;
14669 return resultobj;
14670 fail:
14671 return NULL;
14672 }
14673
14674
14675 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14676 PyObject *resultobj;
14677 wxDC *arg1 = (wxDC *) 0 ;
14678 wxPoint result;
14679 PyObject * obj0 = 0 ;
14680 char *kwnames[] = {
14681 (char *) "self", NULL
14682 };
14683
14684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14687 {
14688 PyThreadState* __tstate = wxPyBeginAllowThreads();
14689 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14690
14691 wxPyEndAllowThreads(__tstate);
14692 if (PyErr_Occurred()) SWIG_fail;
14693 }
14694 {
14695 wxPoint * resultptr;
14696 resultptr = new wxPoint((wxPoint &) result);
14697 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14698 }
14699 return resultobj;
14700 fail:
14701 return NULL;
14702 }
14703
14704
14705 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj;
14707 wxDC *arg1 = (wxDC *) 0 ;
14708 int *arg2 = (int *) 0 ;
14709 int *arg3 = (int *) 0 ;
14710 int temp2 ;
14711 int res2 = 0 ;
14712 int temp3 ;
14713 int res3 = 0 ;
14714 PyObject * obj0 = 0 ;
14715 char *kwnames[] = {
14716 (char *) "self", NULL
14717 };
14718
14719 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14720 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14724 {
14725 PyThreadState* __tstate = wxPyBeginAllowThreads();
14726 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14727
14728 wxPyEndAllowThreads(__tstate);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 }
14731 Py_INCREF(Py_None); resultobj = Py_None;
14732 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14733 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14734 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14735 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14736 return resultobj;
14737 fail:
14738 return NULL;
14739 }
14740
14741
14742 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14743 PyObject *resultobj;
14744 wxDC *arg1 = (wxDC *) 0 ;
14745 int arg2 ;
14746 int arg3 ;
14747 PyObject * obj0 = 0 ;
14748 PyObject * obj1 = 0 ;
14749 PyObject * obj2 = 0 ;
14750 char *kwnames[] = {
14751 (char *) "self",(char *) "x",(char *) "y", NULL
14752 };
14753
14754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14757 arg2 = (int)SWIG_As_int(obj1);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 arg3 = (int)SWIG_As_int(obj2);
14760 if (PyErr_Occurred()) SWIG_fail;
14761 {
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
14763 (arg1)->SetDeviceOrigin(arg2,arg3);
14764
14765 wxPyEndAllowThreads(__tstate);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 Py_INCREF(Py_None); resultobj = Py_None;
14769 return resultobj;
14770 fail:
14771 return NULL;
14772 }
14773
14774
14775 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14776 PyObject *resultobj;
14777 wxDC *arg1 = (wxDC *) 0 ;
14778 wxPoint *arg2 = 0 ;
14779 wxPoint temp2 ;
14780 PyObject * obj0 = 0 ;
14781 PyObject * obj1 = 0 ;
14782 char *kwnames[] = {
14783 (char *) "self",(char *) "point", NULL
14784 };
14785
14786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14789 {
14790 arg2 = &temp2;
14791 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14792 }
14793 {
14794 PyThreadState* __tstate = wxPyBeginAllowThreads();
14795 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14796
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 Py_INCREF(Py_None); resultobj = Py_None;
14801 return resultobj;
14802 fail:
14803 return NULL;
14804 }
14805
14806
14807 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
14808 PyObject *resultobj;
14809 wxDC *arg1 = (wxDC *) 0 ;
14810 bool arg2 ;
14811 bool arg3 ;
14812 PyObject * obj0 = 0 ;
14813 PyObject * obj1 = 0 ;
14814 PyObject * obj2 = 0 ;
14815 char *kwnames[] = {
14816 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14817 };
14818
14819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14822 arg2 = (bool)SWIG_As_bool(obj1);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 arg3 = (bool)SWIG_As_bool(obj2);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 {
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 (arg1)->SetAxisOrientation(arg2,arg3);
14829
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 Py_INCREF(Py_None); resultobj = Py_None;
14834 return resultobj;
14835 fail:
14836 return NULL;
14837 }
14838
14839
14840 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14841 PyObject *resultobj;
14842 wxDC *arg1 = (wxDC *) 0 ;
14843 int result;
14844 PyObject * obj0 = 0 ;
14845 char *kwnames[] = {
14846 (char *) "self", NULL
14847 };
14848
14849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14852 {
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14855
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 resultobj = SWIG_From_int((int)result);
14860 return resultobj;
14861 fail:
14862 return NULL;
14863 }
14864
14865
14866 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14867 PyObject *resultobj;
14868 wxDC *arg1 = (wxDC *) 0 ;
14869 int arg2 ;
14870 PyObject * obj0 = 0 ;
14871 PyObject * obj1 = 0 ;
14872 char *kwnames[] = {
14873 (char *) "self",(char *) "function", NULL
14874 };
14875
14876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14879 arg2 = (int)SWIG_As_int(obj1);
14880 if (PyErr_Occurred()) SWIG_fail;
14881 {
14882 PyThreadState* __tstate = wxPyBeginAllowThreads();
14883 (arg1)->SetLogicalFunction(arg2);
14884
14885 wxPyEndAllowThreads(__tstate);
14886 if (PyErr_Occurred()) SWIG_fail;
14887 }
14888 Py_INCREF(Py_None); resultobj = Py_None;
14889 return resultobj;
14890 fail:
14891 return NULL;
14892 }
14893
14894
14895 static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14896 PyObject *resultobj;
14897 wxDC *arg1 = (wxDC *) 0 ;
14898 bool arg2 ;
14899 PyObject * obj0 = 0 ;
14900 PyObject * obj1 = 0 ;
14901 char *kwnames[] = {
14902 (char *) "self",(char *) "optimize", NULL
14903 };
14904
14905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14908 arg2 = (bool)SWIG_As_bool(obj1);
14909 if (PyErr_Occurred()) SWIG_fail;
14910 {
14911 PyThreadState* __tstate = wxPyBeginAllowThreads();
14912 (arg1)->SetOptimization(arg2);
14913
14914 wxPyEndAllowThreads(__tstate);
14915 if (PyErr_Occurred()) SWIG_fail;
14916 }
14917 Py_INCREF(Py_None); resultobj = Py_None;
14918 return resultobj;
14919 fail:
14920 return NULL;
14921 }
14922
14923
14924 static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj;
14926 wxDC *arg1 = (wxDC *) 0 ;
14927 bool result;
14928 PyObject * obj0 = 0 ;
14929 char *kwnames[] = {
14930 (char *) "self", NULL
14931 };
14932
14933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (bool)(arg1)->GetOptimization();
14939
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 {
14944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14945 }
14946 return resultobj;
14947 fail:
14948 return NULL;
14949 }
14950
14951
14952 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14953 PyObject *resultobj;
14954 wxDC *arg1 = (wxDC *) 0 ;
14955 int arg2 ;
14956 int arg3 ;
14957 PyObject * obj0 = 0 ;
14958 PyObject * obj1 = 0 ;
14959 PyObject * obj2 = 0 ;
14960 char *kwnames[] = {
14961 (char *) "self",(char *) "x",(char *) "y", NULL
14962 };
14963
14964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14967 arg2 = (int)SWIG_As_int(obj1);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 arg3 = (int)SWIG_As_int(obj2);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 {
14972 PyThreadState* __tstate = wxPyBeginAllowThreads();
14973 (arg1)->CalcBoundingBox(arg2,arg3);
14974
14975 wxPyEndAllowThreads(__tstate);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 }
14978 Py_INCREF(Py_None); resultobj = Py_None;
14979 return resultobj;
14980 fail:
14981 return NULL;
14982 }
14983
14984
14985 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14986 PyObject *resultobj;
14987 wxDC *arg1 = (wxDC *) 0 ;
14988 wxPoint *arg2 = 0 ;
14989 wxPoint temp2 ;
14990 PyObject * obj0 = 0 ;
14991 PyObject * obj1 = 0 ;
14992 char *kwnames[] = {
14993 (char *) "self",(char *) "point", NULL
14994 };
14995
14996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14999 {
15000 arg2 = &temp2;
15001 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15002 }
15003 {
15004 PyThreadState* __tstate = wxPyBeginAllowThreads();
15005 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15006
15007 wxPyEndAllowThreads(__tstate);
15008 if (PyErr_Occurred()) SWIG_fail;
15009 }
15010 Py_INCREF(Py_None); resultobj = Py_None;
15011 return resultobj;
15012 fail:
15013 return NULL;
15014 }
15015
15016
15017 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15018 PyObject *resultobj;
15019 wxDC *arg1 = (wxDC *) 0 ;
15020 PyObject * obj0 = 0 ;
15021 char *kwnames[] = {
15022 (char *) "self", NULL
15023 };
15024
15025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15028 {
15029 PyThreadState* __tstate = wxPyBeginAllowThreads();
15030 (arg1)->ResetBoundingBox();
15031
15032 wxPyEndAllowThreads(__tstate);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 Py_INCREF(Py_None); resultobj = Py_None;
15036 return resultobj;
15037 fail:
15038 return NULL;
15039 }
15040
15041
15042 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj;
15044 wxDC *arg1 = (wxDC *) 0 ;
15045 int result;
15046 PyObject * obj0 = 0 ;
15047 char *kwnames[] = {
15048 (char *) "self", NULL
15049 };
15050
15051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15054 {
15055 PyThreadState* __tstate = wxPyBeginAllowThreads();
15056 result = (int)((wxDC const *)arg1)->MinX();
15057
15058 wxPyEndAllowThreads(__tstate);
15059 if (PyErr_Occurred()) SWIG_fail;
15060 }
15061 resultobj = SWIG_From_int((int)result);
15062 return resultobj;
15063 fail:
15064 return NULL;
15065 }
15066
15067
15068 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
15069 PyObject *resultobj;
15070 wxDC *arg1 = (wxDC *) 0 ;
15071 int result;
15072 PyObject * obj0 = 0 ;
15073 char *kwnames[] = {
15074 (char *) "self", NULL
15075 };
15076
15077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15080 {
15081 PyThreadState* __tstate = wxPyBeginAllowThreads();
15082 result = (int)((wxDC const *)arg1)->MaxX();
15083
15084 wxPyEndAllowThreads(__tstate);
15085 if (PyErr_Occurred()) SWIG_fail;
15086 }
15087 resultobj = SWIG_From_int((int)result);
15088 return resultobj;
15089 fail:
15090 return NULL;
15091 }
15092
15093
15094 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
15095 PyObject *resultobj;
15096 wxDC *arg1 = (wxDC *) 0 ;
15097 int result;
15098 PyObject * obj0 = 0 ;
15099 char *kwnames[] = {
15100 (char *) "self", NULL
15101 };
15102
15103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15106 {
15107 PyThreadState* __tstate = wxPyBeginAllowThreads();
15108 result = (int)((wxDC const *)arg1)->MinY();
15109
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 resultobj = SWIG_From_int((int)result);
15114 return resultobj;
15115 fail:
15116 return NULL;
15117 }
15118
15119
15120 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
15121 PyObject *resultobj;
15122 wxDC *arg1 = (wxDC *) 0 ;
15123 int result;
15124 PyObject * obj0 = 0 ;
15125 char *kwnames[] = {
15126 (char *) "self", NULL
15127 };
15128
15129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15132 {
15133 PyThreadState* __tstate = wxPyBeginAllowThreads();
15134 result = (int)((wxDC const *)arg1)->MaxY();
15135
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 resultobj = SWIG_From_int((int)result);
15140 return resultobj;
15141 fail:
15142 return NULL;
15143 }
15144
15145
15146 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15147 PyObject *resultobj;
15148 wxDC *arg1 = (wxDC *) 0 ;
15149 int *arg2 = (int *) 0 ;
15150 int *arg3 = (int *) 0 ;
15151 int *arg4 = (int *) 0 ;
15152 int *arg5 = (int *) 0 ;
15153 int temp2 ;
15154 int res2 = 0 ;
15155 int temp3 ;
15156 int res3 = 0 ;
15157 int temp4 ;
15158 int res4 = 0 ;
15159 int temp5 ;
15160 int res5 = 0 ;
15161 PyObject * obj0 = 0 ;
15162 char *kwnames[] = {
15163 (char *) "self", NULL
15164 };
15165
15166 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15167 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15168 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15169 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15176
15177 wxPyEndAllowThreads(__tstate);
15178 if (PyErr_Occurred()) SWIG_fail;
15179 }
15180 Py_INCREF(Py_None); resultobj = Py_None;
15181 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15182 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15183 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15184 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15185 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15186 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15187 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15188 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15189 return resultobj;
15190 fail:
15191 return NULL;
15192 }
15193
15194
15195 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
15196 PyObject *resultobj;
15197 wxDC *arg1 = (wxDC *) 0 ;
15198 PyObject *arg2 = (PyObject *) 0 ;
15199 PyObject *arg3 = (PyObject *) 0 ;
15200 PyObject *arg4 = (PyObject *) 0 ;
15201 PyObject *result;
15202 PyObject * obj0 = 0 ;
15203 PyObject * obj1 = 0 ;
15204 PyObject * obj2 = 0 ;
15205 PyObject * obj3 = 0 ;
15206 char *kwnames[] = {
15207 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15208 };
15209
15210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15213 arg2 = obj1;
15214 arg3 = obj2;
15215 arg4 = obj3;
15216 {
15217 PyThreadState* __tstate = wxPyBeginAllowThreads();
15218 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15219
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 resultobj = result;
15224 return resultobj;
15225 fail:
15226 return NULL;
15227 }
15228
15229
15230 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
15231 PyObject *resultobj;
15232 wxDC *arg1 = (wxDC *) 0 ;
15233 PyObject *arg2 = (PyObject *) 0 ;
15234 PyObject *arg3 = (PyObject *) 0 ;
15235 PyObject *arg4 = (PyObject *) 0 ;
15236 PyObject *result;
15237 PyObject * obj0 = 0 ;
15238 PyObject * obj1 = 0 ;
15239 PyObject * obj2 = 0 ;
15240 PyObject * obj3 = 0 ;
15241 char *kwnames[] = {
15242 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15243 };
15244
15245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15248 arg2 = obj1;
15249 arg3 = obj2;
15250 arg4 = obj3;
15251 {
15252 PyThreadState* __tstate = wxPyBeginAllowThreads();
15253 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15254
15255 wxPyEndAllowThreads(__tstate);
15256 if (PyErr_Occurred()) SWIG_fail;
15257 }
15258 resultobj = result;
15259 return resultobj;
15260 fail:
15261 return NULL;
15262 }
15263
15264
15265 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
15266 PyObject *resultobj;
15267 wxDC *arg1 = (wxDC *) 0 ;
15268 PyObject *arg2 = (PyObject *) 0 ;
15269 PyObject *arg3 = (PyObject *) 0 ;
15270 PyObject *arg4 = (PyObject *) 0 ;
15271 PyObject *result;
15272 PyObject * obj0 = 0 ;
15273 PyObject * obj1 = 0 ;
15274 PyObject * obj2 = 0 ;
15275 PyObject * obj3 = 0 ;
15276 char *kwnames[] = {
15277 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15278 };
15279
15280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15283 arg2 = obj1;
15284 arg3 = obj2;
15285 arg4 = obj3;
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15289
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 resultobj = result;
15294 return resultobj;
15295 fail:
15296 return NULL;
15297 }
15298
15299
15300 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
15301 PyObject *resultobj;
15302 wxDC *arg1 = (wxDC *) 0 ;
15303 PyObject *arg2 = (PyObject *) 0 ;
15304 PyObject *arg3 = (PyObject *) 0 ;
15305 PyObject *arg4 = (PyObject *) 0 ;
15306 PyObject *result;
15307 PyObject * obj0 = 0 ;
15308 PyObject * obj1 = 0 ;
15309 PyObject * obj2 = 0 ;
15310 PyObject * obj3 = 0 ;
15311 char *kwnames[] = {
15312 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15313 };
15314
15315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15318 arg2 = obj1;
15319 arg3 = obj2;
15320 arg4 = obj3;
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15324
15325 wxPyEndAllowThreads(__tstate);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 resultobj = result;
15329 return resultobj;
15330 fail:
15331 return NULL;
15332 }
15333
15334
15335 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj;
15337 wxDC *arg1 = (wxDC *) 0 ;
15338 PyObject *arg2 = (PyObject *) 0 ;
15339 PyObject *arg3 = (PyObject *) 0 ;
15340 PyObject *arg4 = (PyObject *) 0 ;
15341 PyObject *result;
15342 PyObject * obj0 = 0 ;
15343 PyObject * obj1 = 0 ;
15344 PyObject * obj2 = 0 ;
15345 PyObject * obj3 = 0 ;
15346 char *kwnames[] = {
15347 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15348 };
15349
15350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15353 arg2 = obj1;
15354 arg3 = obj2;
15355 arg4 = obj3;
15356 {
15357 PyThreadState* __tstate = wxPyBeginAllowThreads();
15358 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15359
15360 wxPyEndAllowThreads(__tstate);
15361 if (PyErr_Occurred()) SWIG_fail;
15362 }
15363 resultobj = result;
15364 return resultobj;
15365 fail:
15366 return NULL;
15367 }
15368
15369
15370 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
15371 PyObject *resultobj;
15372 wxDC *arg1 = (wxDC *) 0 ;
15373 PyObject *arg2 = (PyObject *) 0 ;
15374 PyObject *arg3 = (PyObject *) 0 ;
15375 PyObject *arg4 = (PyObject *) 0 ;
15376 PyObject *arg5 = (PyObject *) 0 ;
15377 PyObject *result;
15378 PyObject * obj0 = 0 ;
15379 PyObject * obj1 = 0 ;
15380 PyObject * obj2 = 0 ;
15381 PyObject * obj3 = 0 ;
15382 PyObject * obj4 = 0 ;
15383 char *kwnames[] = {
15384 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15385 };
15386
15387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15390 arg2 = obj1;
15391 arg3 = obj2;
15392 arg4 = obj3;
15393 arg5 = obj4;
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15397
15398 wxPyEndAllowThreads(__tstate);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
15401 resultobj = result;
15402 return resultobj;
15403 fail:
15404 return NULL;
15405 }
15406
15407
15408 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
15409 PyObject *obj;
15410 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15411 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15412 Py_INCREF(obj);
15413 return Py_BuildValue((char *)"");
15414 }
15415 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj;
15417 wxMemoryDC *result;
15418 char *kwnames[] = {
15419 NULL
15420 };
15421
15422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15423 {
15424 if (!wxPyCheckForApp()) SWIG_fail;
15425 PyThreadState* __tstate = wxPyBeginAllowThreads();
15426 result = (wxMemoryDC *)new wxMemoryDC();
15427
15428 wxPyEndAllowThreads(__tstate);
15429 if (PyErr_Occurred()) SWIG_fail;
15430 }
15431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15432 return resultobj;
15433 fail:
15434 return NULL;
15435 }
15436
15437
15438 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
15439 PyObject *resultobj;
15440 wxDC *arg1 = (wxDC *) 0 ;
15441 wxMemoryDC *result;
15442 PyObject * obj0 = 0 ;
15443 char *kwnames[] = {
15444 (char *) "oldDC", NULL
15445 };
15446
15447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15450 {
15451 if (!wxPyCheckForApp()) SWIG_fail;
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15454
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj;
15467 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15468 wxBitmap *arg2 = 0 ;
15469 PyObject * obj0 = 0 ;
15470 PyObject * obj1 = 0 ;
15471 char *kwnames[] = {
15472 (char *) "self",(char *) "bitmap", NULL
15473 };
15474
15475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15478 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15479 SWIG_POINTER_EXCEPTION | 0)) == -1)
15480 SWIG_fail;
15481 if (arg2 == NULL) {
15482 PyErr_SetString(PyExc_TypeError,"null reference");
15483 SWIG_fail;
15484 }
15485 {
15486 PyThreadState* __tstate = wxPyBeginAllowThreads();
15487 (arg1)->SelectObject((wxBitmap const &)*arg2);
15488
15489 wxPyEndAllowThreads(__tstate);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 }
15492 Py_INCREF(Py_None); resultobj = Py_None;
15493 return resultobj;
15494 fail:
15495 return NULL;
15496 }
15497
15498
15499 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
15500 PyObject *obj;
15501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15502 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15503 Py_INCREF(obj);
15504 return Py_BuildValue((char *)"");
15505 }
15506 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
15507 PyObject *resultobj;
15508 wxDC *arg1 = (wxDC *) 0 ;
15509 wxBitmap *arg2 = 0 ;
15510 wxBufferedDC *result;
15511 PyObject * obj0 = 0 ;
15512 PyObject * obj1 = 0 ;
15513
15514 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15517 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15518 SWIG_POINTER_EXCEPTION | 0)) == -1)
15519 SWIG_fail;
15520 if (arg2 == NULL) {
15521 PyErr_SetString(PyExc_TypeError,"null reference");
15522 SWIG_fail;
15523 }
15524 {
15525 if (!wxPyCheckForApp()) SWIG_fail;
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15528
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15533 return resultobj;
15534 fail:
15535 return NULL;
15536 }
15537
15538
15539 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
15540 PyObject *resultobj;
15541 wxDC *arg1 = (wxDC *) 0 ;
15542 wxSize *arg2 = 0 ;
15543 wxBufferedDC *result;
15544 wxSize temp2 ;
15545 PyObject * obj0 = 0 ;
15546 PyObject * obj1 = 0 ;
15547
15548 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15551 {
15552 arg2 = &temp2;
15553 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15554 }
15555 {
15556 if (!wxPyCheckForApp()) SWIG_fail;
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15571 int argc;
15572 PyObject *argv[3];
15573 int ii;
15574
15575 argc = PyObject_Length(args);
15576 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15577 argv[ii] = PyTuple_GetItem(args,ii);
15578 }
15579 if (argc == 2) {
15580 int _v;
15581 {
15582 void *ptr;
15583 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15584 _v = 0;
15585 PyErr_Clear();
15586 } else {
15587 _v = 1;
15588 }
15589 }
15590 if (_v) {
15591 {
15592 void *ptr;
15593 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15594 _v = 0;
15595 PyErr_Clear();
15596 } else {
15597 _v = 1;
15598 }
15599 }
15600 if (_v) {
15601 return _wrap_new_BufferedDC__SWIG_0(self,args);
15602 }
15603 }
15604 }
15605 if (argc == 2) {
15606 int _v;
15607 {
15608 void *ptr;
15609 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15610 _v = 0;
15611 PyErr_Clear();
15612 } else {
15613 _v = 1;
15614 }
15615 }
15616 if (_v) {
15617 {
15618 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15619 }
15620 if (_v) {
15621 return _wrap_new_BufferedDC__SWIG_1(self,args);
15622 }
15623 }
15624 }
15625
15626 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15634 PyObject * obj0 = 0 ;
15635 char *kwnames[] = {
15636 (char *) "self", NULL
15637 };
15638
15639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15642 {
15643 PyThreadState* __tstate = wxPyBeginAllowThreads();
15644 delete arg1;
15645
15646 wxPyEndAllowThreads(__tstate);
15647 if (PyErr_Occurred()) SWIG_fail;
15648 }
15649 Py_INCREF(Py_None); resultobj = Py_None;
15650 return resultobj;
15651 fail:
15652 return NULL;
15653 }
15654
15655
15656 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
15657 PyObject *resultobj;
15658 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15659 PyObject * obj0 = 0 ;
15660 char *kwnames[] = {
15661 (char *) "self", NULL
15662 };
15663
15664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15667 {
15668 PyThreadState* __tstate = wxPyBeginAllowThreads();
15669 (arg1)->UnMask();
15670
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 Py_INCREF(Py_None); resultobj = Py_None;
15675 return resultobj;
15676 fail:
15677 return NULL;
15678 }
15679
15680
15681 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
15682 PyObject *obj;
15683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15684 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15685 Py_INCREF(obj);
15686 return Py_BuildValue((char *)"");
15687 }
15688 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15689 PyObject *resultobj;
15690 wxWindow *arg1 = (wxWindow *) 0 ;
15691 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15692 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15693 wxBufferedPaintDC *result;
15694 PyObject * obj0 = 0 ;
15695 PyObject * obj1 = 0 ;
15696 char *kwnames[] = {
15697 (char *) "window",(char *) "buffer", NULL
15698 };
15699
15700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15703 if (obj1) {
15704 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15705 SWIG_POINTER_EXCEPTION | 0)) == -1)
15706 SWIG_fail;
15707 if (arg2 == NULL) {
15708 PyErr_SetString(PyExc_TypeError,"null reference");
15709 SWIG_fail;
15710 }
15711 }
15712 {
15713 if (!wxPyCheckForApp()) SWIG_fail;
15714 PyThreadState* __tstate = wxPyBeginAllowThreads();
15715 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15716
15717 wxPyEndAllowThreads(__tstate);
15718 if (PyErr_Occurred()) SWIG_fail;
15719 }
15720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15721 return resultobj;
15722 fail:
15723 return NULL;
15724 }
15725
15726
15727 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
15728 PyObject *obj;
15729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15730 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15731 Py_INCREF(obj);
15732 return Py_BuildValue((char *)"");
15733 }
15734 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
15735 PyObject *resultobj;
15736 wxScreenDC *result;
15737 char *kwnames[] = {
15738 NULL
15739 };
15740
15741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15742 {
15743 if (!wxPyCheckForApp()) SWIG_fail;
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 result = (wxScreenDC *)new wxScreenDC();
15746
15747 wxPyEndAllowThreads(__tstate);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15751 return resultobj;
15752 fail:
15753 return NULL;
15754 }
15755
15756
15757 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
15758 PyObject *resultobj;
15759 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15760 wxWindow *arg2 = (wxWindow *) 0 ;
15761 bool result;
15762 PyObject * obj0 = 0 ;
15763 PyObject * obj1 = 0 ;
15764 char *kwnames[] = {
15765 (char *) "self",(char *) "window", NULL
15766 };
15767
15768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15771 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15773 {
15774 PyThreadState* __tstate = wxPyBeginAllowThreads();
15775 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15776
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 {
15781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15782 }
15783 return resultobj;
15784 fail:
15785 return NULL;
15786 }
15787
15788
15789 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15790 PyObject *resultobj;
15791 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15792 wxRect *arg2 = (wxRect *) NULL ;
15793 bool result;
15794 PyObject * obj0 = 0 ;
15795 PyObject * obj1 = 0 ;
15796 char *kwnames[] = {
15797 (char *) "self",(char *) "rect", NULL
15798 };
15799
15800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15803 if (obj1) {
15804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15806 }
15807 {
15808 PyThreadState* __tstate = wxPyBeginAllowThreads();
15809 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15810
15811 wxPyEndAllowThreads(__tstate);
15812 if (PyErr_Occurred()) SWIG_fail;
15813 }
15814 {
15815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15816 }
15817 return resultobj;
15818 fail:
15819 return NULL;
15820 }
15821
15822
15823 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15824 PyObject *resultobj;
15825 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15826 bool result;
15827 PyObject * obj0 = 0 ;
15828 char *kwnames[] = {
15829 (char *) "self", NULL
15830 };
15831
15832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15835 {
15836 PyThreadState* __tstate = wxPyBeginAllowThreads();
15837 result = (bool)(arg1)->EndDrawingOnTop();
15838
15839 wxPyEndAllowThreads(__tstate);
15840 if (PyErr_Occurred()) SWIG_fail;
15841 }
15842 {
15843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15844 }
15845 return resultobj;
15846 fail:
15847 return NULL;
15848 }
15849
15850
15851 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
15852 PyObject *obj;
15853 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15854 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15855 Py_INCREF(obj);
15856 return Py_BuildValue((char *)"");
15857 }
15858 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
15859 PyObject *resultobj;
15860 wxWindow *arg1 = (wxWindow *) 0 ;
15861 wxClientDC *result;
15862 PyObject * obj0 = 0 ;
15863 char *kwnames[] = {
15864 (char *) "win", NULL
15865 };
15866
15867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15870 {
15871 if (!wxPyCheckForApp()) SWIG_fail;
15872 PyThreadState* __tstate = wxPyBeginAllowThreads();
15873 result = (wxClientDC *)new wxClientDC(arg1);
15874
15875 wxPyEndAllowThreads(__tstate);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15879 return resultobj;
15880 fail:
15881 return NULL;
15882 }
15883
15884
15885 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
15886 PyObject *obj;
15887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15888 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15889 Py_INCREF(obj);
15890 return Py_BuildValue((char *)"");
15891 }
15892 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15893 PyObject *resultobj;
15894 wxWindow *arg1 = (wxWindow *) 0 ;
15895 wxPaintDC *result;
15896 PyObject * obj0 = 0 ;
15897 char *kwnames[] = {
15898 (char *) "win", NULL
15899 };
15900
15901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15904 {
15905 if (!wxPyCheckForApp()) SWIG_fail;
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 result = (wxPaintDC *)new wxPaintDC(arg1);
15908
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15913 return resultobj;
15914 fail:
15915 return NULL;
15916 }
15917
15918
15919 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
15920 PyObject *obj;
15921 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15922 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15923 Py_INCREF(obj);
15924 return Py_BuildValue((char *)"");
15925 }
15926 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj;
15928 wxWindow *arg1 = (wxWindow *) 0 ;
15929 wxWindowDC *result;
15930 PyObject * obj0 = 0 ;
15931 char *kwnames[] = {
15932 (char *) "win", NULL
15933 };
15934
15935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15938 {
15939 if (!wxPyCheckForApp()) SWIG_fail;
15940 PyThreadState* __tstate = wxPyBeginAllowThreads();
15941 result = (wxWindowDC *)new wxWindowDC(arg1);
15942
15943 wxPyEndAllowThreads(__tstate);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 }
15946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15947 return resultobj;
15948 fail:
15949 return NULL;
15950 }
15951
15952
15953 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
15954 PyObject *obj;
15955 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15956 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15957 Py_INCREF(obj);
15958 return Py_BuildValue((char *)"");
15959 }
15960 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
15961 PyObject *resultobj;
15962 wxDC *arg1 = 0 ;
15963 bool arg2 ;
15964 wxMirrorDC *result;
15965 PyObject * obj0 = 0 ;
15966 PyObject * obj1 = 0 ;
15967 char *kwnames[] = {
15968 (char *) "dc",(char *) "mirror", NULL
15969 };
15970
15971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15973 SWIG_POINTER_EXCEPTION | 0)) == -1)
15974 SWIG_fail;
15975 if (arg1 == NULL) {
15976 PyErr_SetString(PyExc_TypeError,"null reference");
15977 SWIG_fail;
15978 }
15979 arg2 = (bool)SWIG_As_bool(obj1);
15980 if (PyErr_Occurred()) SWIG_fail;
15981 {
15982 if (!wxPyCheckForApp()) SWIG_fail;
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15985
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15990 return resultobj;
15991 fail:
15992 return NULL;
15993 }
15994
15995
15996 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
15997 PyObject *obj;
15998 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15999 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16000 Py_INCREF(obj);
16001 return Py_BuildValue((char *)"");
16002 }
16003 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
16004 PyObject *resultobj;
16005 wxPrintData *arg1 = 0 ;
16006 wxPostScriptDC *result;
16007 PyObject * obj0 = 0 ;
16008 char *kwnames[] = {
16009 (char *) "printData", NULL
16010 };
16011
16012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16014 SWIG_POINTER_EXCEPTION | 0)) == -1)
16015 SWIG_fail;
16016 if (arg1 == NULL) {
16017 PyErr_SetString(PyExc_TypeError,"null reference");
16018 SWIG_fail;
16019 }
16020 {
16021 if (!wxPyCheckForApp()) SWIG_fail;
16022 PyThreadState* __tstate = wxPyBeginAllowThreads();
16023 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16024
16025 wxPyEndAllowThreads(__tstate);
16026 if (PyErr_Occurred()) SWIG_fail;
16027 }
16028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16029 return resultobj;
16030 fail:
16031 return NULL;
16032 }
16033
16034
16035 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj;
16037 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16038 wxPrintData *result;
16039 PyObject * obj0 = 0 ;
16040 char *kwnames[] = {
16041 (char *) "self", NULL
16042 };
16043
16044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16047 {
16048 PyThreadState* __tstate = wxPyBeginAllowThreads();
16049 {
16050 wxPrintData &_result_ref = (arg1)->GetPrintData();
16051 result = (wxPrintData *) &_result_ref;
16052 }
16053
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16058 return resultobj;
16059 fail:
16060 return NULL;
16061 }
16062
16063
16064 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
16065 PyObject *resultobj;
16066 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16067 wxPrintData *arg2 = 0 ;
16068 PyObject * obj0 = 0 ;
16069 PyObject * obj1 = 0 ;
16070 char *kwnames[] = {
16071 (char *) "self",(char *) "data", NULL
16072 };
16073
16074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16078 SWIG_POINTER_EXCEPTION | 0)) == -1)
16079 SWIG_fail;
16080 if (arg2 == NULL) {
16081 PyErr_SetString(PyExc_TypeError,"null reference");
16082 SWIG_fail;
16083 }
16084 {
16085 PyThreadState* __tstate = wxPyBeginAllowThreads();
16086 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16087
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
16091 Py_INCREF(Py_None); resultobj = Py_None;
16092 return resultobj;
16093 fail:
16094 return NULL;
16095 }
16096
16097
16098 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
16099 PyObject *resultobj;
16100 int arg1 ;
16101 PyObject * obj0 = 0 ;
16102 char *kwnames[] = {
16103 (char *) "ppi", NULL
16104 };
16105
16106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16107 arg1 = (int)SWIG_As_int(obj0);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 wxPostScriptDC::SetResolution(arg1);
16112
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 Py_INCREF(Py_None); resultobj = Py_None;
16117 return resultobj;
16118 fail:
16119 return NULL;
16120 }
16121
16122
16123 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
16124 PyObject *resultobj;
16125 int result;
16126 char *kwnames[] = {
16127 NULL
16128 };
16129
16130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16131 {
16132 PyThreadState* __tstate = wxPyBeginAllowThreads();
16133 result = (int)wxPostScriptDC::GetResolution();
16134
16135 wxPyEndAllowThreads(__tstate);
16136 if (PyErr_Occurred()) SWIG_fail;
16137 }
16138 resultobj = SWIG_From_int((int)result);
16139 return resultobj;
16140 fail:
16141 return NULL;
16142 }
16143
16144
16145 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
16146 PyObject *obj;
16147 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16148 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16149 Py_INCREF(obj);
16150 return Py_BuildValue((char *)"");
16151 }
16152 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
16153 PyObject *resultobj;
16154 wxString const &arg1_defvalue = wxPyEmptyString ;
16155 wxString *arg1 = (wxString *) &arg1_defvalue ;
16156 wxMetaFile *result;
16157 bool temp1 = false ;
16158 PyObject * obj0 = 0 ;
16159 char *kwnames[] = {
16160 (char *) "filename", NULL
16161 };
16162
16163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16164 if (obj0) {
16165 {
16166 arg1 = wxString_in_helper(obj0);
16167 if (arg1 == NULL) SWIG_fail;
16168 temp1 = true;
16169 }
16170 }
16171 {
16172 if (!wxPyCheckForApp()) SWIG_fail;
16173 PyThreadState* __tstate = wxPyBeginAllowThreads();
16174 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16175
16176 wxPyEndAllowThreads(__tstate);
16177 if (PyErr_Occurred()) SWIG_fail;
16178 }
16179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16180 {
16181 if (temp1)
16182 delete arg1;
16183 }
16184 return resultobj;
16185 fail:
16186 {
16187 if (temp1)
16188 delete arg1;
16189 }
16190 return NULL;
16191 }
16192
16193
16194 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
16195 PyObject *obj;
16196 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16197 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16198 Py_INCREF(obj);
16199 return Py_BuildValue((char *)"");
16200 }
16201 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
16202 PyObject *resultobj;
16203 wxString const &arg1_defvalue = wxPyEmptyString ;
16204 wxString *arg1 = (wxString *) &arg1_defvalue ;
16205 int arg2 = (int) 0 ;
16206 int arg3 = (int) 0 ;
16207 wxString const &arg4_defvalue = wxPyEmptyString ;
16208 wxString *arg4 = (wxString *) &arg4_defvalue ;
16209 wxMetaFileDC *result;
16210 bool temp1 = false ;
16211 bool temp4 = false ;
16212 PyObject * obj0 = 0 ;
16213 PyObject * obj1 = 0 ;
16214 PyObject * obj2 = 0 ;
16215 PyObject * obj3 = 0 ;
16216 char *kwnames[] = {
16217 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16218 };
16219
16220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16221 if (obj0) {
16222 {
16223 arg1 = wxString_in_helper(obj0);
16224 if (arg1 == NULL) SWIG_fail;
16225 temp1 = true;
16226 }
16227 }
16228 if (obj1) {
16229 arg2 = (int)SWIG_As_int(obj1);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 }
16232 if (obj2) {
16233 arg3 = (int)SWIG_As_int(obj2);
16234 if (PyErr_Occurred()) SWIG_fail;
16235 }
16236 if (obj3) {
16237 {
16238 arg4 = wxString_in_helper(obj3);
16239 if (arg4 == NULL) SWIG_fail;
16240 temp4 = true;
16241 }
16242 }
16243 {
16244 if (!wxPyCheckForApp()) SWIG_fail;
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16247
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16252 {
16253 if (temp1)
16254 delete arg1;
16255 }
16256 {
16257 if (temp4)
16258 delete arg4;
16259 }
16260 return resultobj;
16261 fail:
16262 {
16263 if (temp1)
16264 delete arg1;
16265 }
16266 {
16267 if (temp4)
16268 delete arg4;
16269 }
16270 return NULL;
16271 }
16272
16273
16274 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
16275 PyObject *obj;
16276 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16277 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16278 Py_INCREF(obj);
16279 return Py_BuildValue((char *)"");
16280 }
16281 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
16282 PyObject *resultobj;
16283 wxPrintData *arg1 = 0 ;
16284 wxPrinterDC *result;
16285 PyObject * obj0 = 0 ;
16286 char *kwnames[] = {
16287 (char *) "printData", NULL
16288 };
16289
16290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16292 SWIG_POINTER_EXCEPTION | 0)) == -1)
16293 SWIG_fail;
16294 if (arg1 == NULL) {
16295 PyErr_SetString(PyExc_TypeError,"null reference");
16296 SWIG_fail;
16297 }
16298 {
16299 if (!wxPyCheckForApp()) SWIG_fail;
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16302
16303 wxPyEndAllowThreads(__tstate);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16307 return resultobj;
16308 fail:
16309 return NULL;
16310 }
16311
16312
16313 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
16314 PyObject *obj;
16315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16316 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16317 Py_INCREF(obj);
16318 return Py_BuildValue((char *)"");
16319 }
16320 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16321 PyObject *resultobj;
16322 int arg1 ;
16323 int arg2 ;
16324 int arg3 = (int) true ;
16325 int arg4 = (int) 1 ;
16326 wxImageList *result;
16327 PyObject * obj0 = 0 ;
16328 PyObject * obj1 = 0 ;
16329 PyObject * obj2 = 0 ;
16330 PyObject * obj3 = 0 ;
16331 char *kwnames[] = {
16332 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16333 };
16334
16335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16336 arg1 = (int)SWIG_As_int(obj0);
16337 if (PyErr_Occurred()) SWIG_fail;
16338 arg2 = (int)SWIG_As_int(obj1);
16339 if (PyErr_Occurred()) SWIG_fail;
16340 if (obj2) {
16341 arg3 = (int)SWIG_As_int(obj2);
16342 if (PyErr_Occurred()) SWIG_fail;
16343 }
16344 if (obj3) {
16345 arg4 = (int)SWIG_As_int(obj3);
16346 if (PyErr_Occurred()) SWIG_fail;
16347 }
16348 {
16349 if (!wxPyCheckForApp()) SWIG_fail;
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16352
16353 wxPyEndAllowThreads(__tstate);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
16356 {
16357 resultobj = wxPyMake_wxObject(result, 1);
16358 }
16359 return resultobj;
16360 fail:
16361 return NULL;
16362 }
16363
16364
16365 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16366 PyObject *resultobj;
16367 wxImageList *arg1 = (wxImageList *) 0 ;
16368 PyObject * obj0 = 0 ;
16369 char *kwnames[] = {
16370 (char *) "self", NULL
16371 };
16372
16373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16376 {
16377 PyThreadState* __tstate = wxPyBeginAllowThreads();
16378 delete arg1;
16379
16380 wxPyEndAllowThreads(__tstate);
16381 if (PyErr_Occurred()) SWIG_fail;
16382 }
16383 Py_INCREF(Py_None); resultobj = Py_None;
16384 return resultobj;
16385 fail:
16386 return NULL;
16387 }
16388
16389
16390 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
16391 PyObject *resultobj;
16392 wxImageList *arg1 = (wxImageList *) 0 ;
16393 wxBitmap *arg2 = 0 ;
16394 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16395 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16396 int result;
16397 PyObject * obj0 = 0 ;
16398 PyObject * obj1 = 0 ;
16399 PyObject * obj2 = 0 ;
16400 char *kwnames[] = {
16401 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16402 };
16403
16404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16408 SWIG_POINTER_EXCEPTION | 0)) == -1)
16409 SWIG_fail;
16410 if (arg2 == NULL) {
16411 PyErr_SetString(PyExc_TypeError,"null reference");
16412 SWIG_fail;
16413 }
16414 if (obj2) {
16415 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16416 SWIG_POINTER_EXCEPTION | 0)) == -1)
16417 SWIG_fail;
16418 if (arg3 == NULL) {
16419 PyErr_SetString(PyExc_TypeError,"null reference");
16420 SWIG_fail;
16421 }
16422 }
16423 {
16424 PyThreadState* __tstate = wxPyBeginAllowThreads();
16425 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16426
16427 wxPyEndAllowThreads(__tstate);
16428 if (PyErr_Occurred()) SWIG_fail;
16429 }
16430 resultobj = SWIG_From_int((int)result);
16431 return resultobj;
16432 fail:
16433 return NULL;
16434 }
16435
16436
16437 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
16438 PyObject *resultobj;
16439 wxImageList *arg1 = (wxImageList *) 0 ;
16440 wxBitmap *arg2 = 0 ;
16441 wxColour *arg3 = 0 ;
16442 int result;
16443 wxColour temp3 ;
16444 PyObject * obj0 = 0 ;
16445 PyObject * obj1 = 0 ;
16446 PyObject * obj2 = 0 ;
16447 char *kwnames[] = {
16448 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16449 };
16450
16451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16455 SWIG_POINTER_EXCEPTION | 0)) == -1)
16456 SWIG_fail;
16457 if (arg2 == NULL) {
16458 PyErr_SetString(PyExc_TypeError,"null reference");
16459 SWIG_fail;
16460 }
16461 {
16462 arg3 = &temp3;
16463 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16464 }
16465 {
16466 PyThreadState* __tstate = wxPyBeginAllowThreads();
16467 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16468
16469 wxPyEndAllowThreads(__tstate);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 }
16472 resultobj = SWIG_From_int((int)result);
16473 return resultobj;
16474 fail:
16475 return NULL;
16476 }
16477
16478
16479 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
16480 PyObject *resultobj;
16481 wxImageList *arg1 = (wxImageList *) 0 ;
16482 wxIcon *arg2 = 0 ;
16483 int result;
16484 PyObject * obj0 = 0 ;
16485 PyObject * obj1 = 0 ;
16486 char *kwnames[] = {
16487 (char *) "self",(char *) "icon", NULL
16488 };
16489
16490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16493 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16494 SWIG_POINTER_EXCEPTION | 0)) == -1)
16495 SWIG_fail;
16496 if (arg2 == NULL) {
16497 PyErr_SetString(PyExc_TypeError,"null reference");
16498 SWIG_fail;
16499 }
16500 {
16501 PyThreadState* __tstate = wxPyBeginAllowThreads();
16502 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16503
16504 wxPyEndAllowThreads(__tstate);
16505 if (PyErr_Occurred()) SWIG_fail;
16506 }
16507 resultobj = SWIG_From_int((int)result);
16508 return resultobj;
16509 fail:
16510 return NULL;
16511 }
16512
16513
16514 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
16515 PyObject *resultobj;
16516 wxImageList *arg1 = (wxImageList *) 0 ;
16517 int arg2 ;
16518 wxBitmap *arg3 = 0 ;
16519 bool result;
16520 PyObject * obj0 = 0 ;
16521 PyObject * obj1 = 0 ;
16522 PyObject * obj2 = 0 ;
16523 char *kwnames[] = {
16524 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16525 };
16526
16527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16530 arg2 = (int)SWIG_As_int(obj1);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16533 SWIG_POINTER_EXCEPTION | 0)) == -1)
16534 SWIG_fail;
16535 if (arg3 == NULL) {
16536 PyErr_SetString(PyExc_TypeError,"null reference");
16537 SWIG_fail;
16538 }
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16542
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 {
16547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16548 }
16549 return resultobj;
16550 fail:
16551 return NULL;
16552 }
16553
16554
16555 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
16556 PyObject *resultobj;
16557 wxImageList *arg1 = (wxImageList *) 0 ;
16558 int arg2 ;
16559 wxDC *arg3 = 0 ;
16560 int arg4 ;
16561 int arg5 ;
16562 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16563 bool arg7 = (bool) (bool)false ;
16564 bool result;
16565 PyObject * obj0 = 0 ;
16566 PyObject * obj1 = 0 ;
16567 PyObject * obj2 = 0 ;
16568 PyObject * obj3 = 0 ;
16569 PyObject * obj4 = 0 ;
16570 PyObject * obj5 = 0 ;
16571 PyObject * obj6 = 0 ;
16572 char *kwnames[] = {
16573 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16574 };
16575
16576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16579 arg2 = (int)SWIG_As_int(obj1);
16580 if (PyErr_Occurred()) SWIG_fail;
16581 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16582 SWIG_POINTER_EXCEPTION | 0)) == -1)
16583 SWIG_fail;
16584 if (arg3 == NULL) {
16585 PyErr_SetString(PyExc_TypeError,"null reference");
16586 SWIG_fail;
16587 }
16588 arg4 = (int)SWIG_As_int(obj3);
16589 if (PyErr_Occurred()) SWIG_fail;
16590 arg5 = (int)SWIG_As_int(obj4);
16591 if (PyErr_Occurred()) SWIG_fail;
16592 if (obj5) {
16593 arg6 = (int)SWIG_As_int(obj5);
16594 if (PyErr_Occurred()) SWIG_fail;
16595 }
16596 if (obj6) {
16597 arg7 = (bool)SWIG_As_bool(obj6);
16598 if (PyErr_Occurred()) SWIG_fail;
16599 }
16600 {
16601 PyThreadState* __tstate = wxPyBeginAllowThreads();
16602 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16603
16604 wxPyEndAllowThreads(__tstate);
16605 if (PyErr_Occurred()) SWIG_fail;
16606 }
16607 {
16608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16609 }
16610 return resultobj;
16611 fail:
16612 return NULL;
16613 }
16614
16615
16616 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
16617 PyObject *resultobj;
16618 wxImageList *arg1 = (wxImageList *) 0 ;
16619 int result;
16620 PyObject * obj0 = 0 ;
16621 char *kwnames[] = {
16622 (char *) "self", NULL
16623 };
16624
16625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16628 {
16629 PyThreadState* __tstate = wxPyBeginAllowThreads();
16630 result = (int)(arg1)->GetImageCount();
16631
16632 wxPyEndAllowThreads(__tstate);
16633 if (PyErr_Occurred()) SWIG_fail;
16634 }
16635 resultobj = SWIG_From_int((int)result);
16636 return resultobj;
16637 fail:
16638 return NULL;
16639 }
16640
16641
16642 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
16643 PyObject *resultobj;
16644 wxImageList *arg1 = (wxImageList *) 0 ;
16645 int arg2 ;
16646 bool result;
16647 PyObject * obj0 = 0 ;
16648 PyObject * obj1 = 0 ;
16649 char *kwnames[] = {
16650 (char *) "self",(char *) "index", NULL
16651 };
16652
16653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16656 arg2 = (int)SWIG_As_int(obj1);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 {
16659 PyThreadState* __tstate = wxPyBeginAllowThreads();
16660 result = (bool)(arg1)->Remove(arg2);
16661
16662 wxPyEndAllowThreads(__tstate);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 {
16666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16667 }
16668 return resultobj;
16669 fail:
16670 return NULL;
16671 }
16672
16673
16674 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
16675 PyObject *resultobj;
16676 wxImageList *arg1 = (wxImageList *) 0 ;
16677 bool result;
16678 PyObject * obj0 = 0 ;
16679 char *kwnames[] = {
16680 (char *) "self", NULL
16681 };
16682
16683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16686 {
16687 PyThreadState* __tstate = wxPyBeginAllowThreads();
16688 result = (bool)(arg1)->RemoveAll();
16689
16690 wxPyEndAllowThreads(__tstate);
16691 if (PyErr_Occurred()) SWIG_fail;
16692 }
16693 {
16694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16695 }
16696 return resultobj;
16697 fail:
16698 return NULL;
16699 }
16700
16701
16702 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16703 PyObject *resultobj;
16704 wxImageList *arg1 = (wxImageList *) 0 ;
16705 int arg2 ;
16706 int *arg3 = 0 ;
16707 int *arg4 = 0 ;
16708 int temp3 ;
16709 int res3 = 0 ;
16710 int temp4 ;
16711 int res4 = 0 ;
16712 PyObject * obj0 = 0 ;
16713 PyObject * obj1 = 0 ;
16714 char *kwnames[] = {
16715 (char *) "self",(char *) "index", NULL
16716 };
16717
16718 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16719 arg4 = &temp4; res4 = SWIG_NEWOBJ;
16720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16723 arg2 = (int)SWIG_As_int(obj1);
16724 if (PyErr_Occurred()) SWIG_fail;
16725 {
16726 PyThreadState* __tstate = wxPyBeginAllowThreads();
16727 (arg1)->GetSize(arg2,*arg3,*arg4);
16728
16729 wxPyEndAllowThreads(__tstate);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 Py_INCREF(Py_None); resultobj = Py_None;
16733 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16734 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16735 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16736 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
16737 return resultobj;
16738 fail:
16739 return NULL;
16740 }
16741
16742
16743 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
16744 PyObject *obj;
16745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16746 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16747 Py_INCREF(obj);
16748 return Py_BuildValue((char *)"");
16749 }
16750 static int _wrap_NORMAL_FONT_set(PyObject *) {
16751 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16752 return 1;
16753 }
16754
16755
16756 static PyObject *_wrap_NORMAL_FONT_get() {
16757 PyObject *pyobj;
16758
16759 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16760 return pyobj;
16761 }
16762
16763
16764 static int _wrap_SMALL_FONT_set(PyObject *) {
16765 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16766 return 1;
16767 }
16768
16769
16770 static PyObject *_wrap_SMALL_FONT_get() {
16771 PyObject *pyobj;
16772
16773 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16774 return pyobj;
16775 }
16776
16777
16778 static int _wrap_ITALIC_FONT_set(PyObject *) {
16779 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16780 return 1;
16781 }
16782
16783
16784 static PyObject *_wrap_ITALIC_FONT_get() {
16785 PyObject *pyobj;
16786
16787 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16788 return pyobj;
16789 }
16790
16791
16792 static int _wrap_SWISS_FONT_set(PyObject *) {
16793 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16794 return 1;
16795 }
16796
16797
16798 static PyObject *_wrap_SWISS_FONT_get() {
16799 PyObject *pyobj;
16800
16801 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16802 return pyobj;
16803 }
16804
16805
16806 static int _wrap_RED_PEN_set(PyObject *) {
16807 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16808 return 1;
16809 }
16810
16811
16812 static PyObject *_wrap_RED_PEN_get() {
16813 PyObject *pyobj;
16814
16815 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16816 return pyobj;
16817 }
16818
16819
16820 static int _wrap_CYAN_PEN_set(PyObject *) {
16821 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16822 return 1;
16823 }
16824
16825
16826 static PyObject *_wrap_CYAN_PEN_get() {
16827 PyObject *pyobj;
16828
16829 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16830 return pyobj;
16831 }
16832
16833
16834 static int _wrap_GREEN_PEN_set(PyObject *) {
16835 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16836 return 1;
16837 }
16838
16839
16840 static PyObject *_wrap_GREEN_PEN_get() {
16841 PyObject *pyobj;
16842
16843 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16844 return pyobj;
16845 }
16846
16847
16848 static int _wrap_BLACK_PEN_set(PyObject *) {
16849 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16850 return 1;
16851 }
16852
16853
16854 static PyObject *_wrap_BLACK_PEN_get() {
16855 PyObject *pyobj;
16856
16857 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16858 return pyobj;
16859 }
16860
16861
16862 static int _wrap_WHITE_PEN_set(PyObject *) {
16863 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16864 return 1;
16865 }
16866
16867
16868 static PyObject *_wrap_WHITE_PEN_get() {
16869 PyObject *pyobj;
16870
16871 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16872 return pyobj;
16873 }
16874
16875
16876 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16877 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16878 return 1;
16879 }
16880
16881
16882 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16883 PyObject *pyobj;
16884
16885 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16886 return pyobj;
16887 }
16888
16889
16890 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16891 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16892 return 1;
16893 }
16894
16895
16896 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16897 PyObject *pyobj;
16898
16899 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16900 return pyobj;
16901 }
16902
16903
16904 static int _wrap_GREY_PEN_set(PyObject *) {
16905 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16906 return 1;
16907 }
16908
16909
16910 static PyObject *_wrap_GREY_PEN_get() {
16911 PyObject *pyobj;
16912
16913 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16914 return pyobj;
16915 }
16916
16917
16918 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16919 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16920 return 1;
16921 }
16922
16923
16924 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16925 PyObject *pyobj;
16926
16927 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16928 return pyobj;
16929 }
16930
16931
16932 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16933 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16934 return 1;
16935 }
16936
16937
16938 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16939 PyObject *pyobj;
16940
16941 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16942 return pyobj;
16943 }
16944
16945
16946 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16947 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16948 return 1;
16949 }
16950
16951
16952 static PyObject *_wrap_BLUE_BRUSH_get() {
16953 PyObject *pyobj;
16954
16955 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16956 return pyobj;
16957 }
16958
16959
16960 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16961 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16962 return 1;
16963 }
16964
16965
16966 static PyObject *_wrap_GREEN_BRUSH_get() {
16967 PyObject *pyobj;
16968
16969 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16970 return pyobj;
16971 }
16972
16973
16974 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16975 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16976 return 1;
16977 }
16978
16979
16980 static PyObject *_wrap_WHITE_BRUSH_get() {
16981 PyObject *pyobj;
16982
16983 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16984 return pyobj;
16985 }
16986
16987
16988 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16989 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16990 return 1;
16991 }
16992
16993
16994 static PyObject *_wrap_BLACK_BRUSH_get() {
16995 PyObject *pyobj;
16996
16997 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16998 return pyobj;
16999 }
17000
17001
17002 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
17003 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17004 return 1;
17005 }
17006
17007
17008 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17009 PyObject *pyobj;
17010
17011 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17012 return pyobj;
17013 }
17014
17015
17016 static int _wrap_CYAN_BRUSH_set(PyObject *) {
17017 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17018 return 1;
17019 }
17020
17021
17022 static PyObject *_wrap_CYAN_BRUSH_get() {
17023 PyObject *pyobj;
17024
17025 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17026 return pyobj;
17027 }
17028
17029
17030 static int _wrap_RED_BRUSH_set(PyObject *) {
17031 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17032 return 1;
17033 }
17034
17035
17036 static PyObject *_wrap_RED_BRUSH_get() {
17037 PyObject *pyobj;
17038
17039 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17040 return pyobj;
17041 }
17042
17043
17044 static int _wrap_GREY_BRUSH_set(PyObject *) {
17045 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17046 return 1;
17047 }
17048
17049
17050 static PyObject *_wrap_GREY_BRUSH_get() {
17051 PyObject *pyobj;
17052
17053 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17054 return pyobj;
17055 }
17056
17057
17058 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
17059 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17060 return 1;
17061 }
17062
17063
17064 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17065 PyObject *pyobj;
17066
17067 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17068 return pyobj;
17069 }
17070
17071
17072 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
17073 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17074 return 1;
17075 }
17076
17077
17078 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17079 PyObject *pyobj;
17080
17081 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17082 return pyobj;
17083 }
17084
17085
17086 static int _wrap_BLACK_set(PyObject *) {
17087 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17088 return 1;
17089 }
17090
17091
17092 static PyObject *_wrap_BLACK_get() {
17093 PyObject *pyobj;
17094
17095 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17096 return pyobj;
17097 }
17098
17099
17100 static int _wrap_WHITE_set(PyObject *) {
17101 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17102 return 1;
17103 }
17104
17105
17106 static PyObject *_wrap_WHITE_get() {
17107 PyObject *pyobj;
17108
17109 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17110 return pyobj;
17111 }
17112
17113
17114 static int _wrap_RED_set(PyObject *) {
17115 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17116 return 1;
17117 }
17118
17119
17120 static PyObject *_wrap_RED_get() {
17121 PyObject *pyobj;
17122
17123 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17124 return pyobj;
17125 }
17126
17127
17128 static int _wrap_BLUE_set(PyObject *) {
17129 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17130 return 1;
17131 }
17132
17133
17134 static PyObject *_wrap_BLUE_get() {
17135 PyObject *pyobj;
17136
17137 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17138 return pyobj;
17139 }
17140
17141
17142 static int _wrap_GREEN_set(PyObject *) {
17143 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17144 return 1;
17145 }
17146
17147
17148 static PyObject *_wrap_GREEN_get() {
17149 PyObject *pyobj;
17150
17151 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17152 return pyobj;
17153 }
17154
17155
17156 static int _wrap_CYAN_set(PyObject *) {
17157 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17158 return 1;
17159 }
17160
17161
17162 static PyObject *_wrap_CYAN_get() {
17163 PyObject *pyobj;
17164
17165 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17166 return pyobj;
17167 }
17168
17169
17170 static int _wrap_LIGHT_GREY_set(PyObject *) {
17171 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17172 return 1;
17173 }
17174
17175
17176 static PyObject *_wrap_LIGHT_GREY_get() {
17177 PyObject *pyobj;
17178
17179 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17180 return pyobj;
17181 }
17182
17183
17184 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
17185 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17186 return 1;
17187 }
17188
17189
17190 static PyObject *_wrap_STANDARD_CURSOR_get() {
17191 PyObject *pyobj;
17192
17193 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17194 return pyobj;
17195 }
17196
17197
17198 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
17199 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17200 return 1;
17201 }
17202
17203
17204 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17205 PyObject *pyobj;
17206
17207 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17208 return pyobj;
17209 }
17210
17211
17212 static int _wrap_CROSS_CURSOR_set(PyObject *) {
17213 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17214 return 1;
17215 }
17216
17217
17218 static PyObject *_wrap_CROSS_CURSOR_get() {
17219 PyObject *pyobj;
17220
17221 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17222 return pyobj;
17223 }
17224
17225
17226 static int _wrap_NullBitmap_set(PyObject *) {
17227 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17228 return 1;
17229 }
17230
17231
17232 static PyObject *_wrap_NullBitmap_get() {
17233 PyObject *pyobj;
17234
17235 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17236 return pyobj;
17237 }
17238
17239
17240 static int _wrap_NullIcon_set(PyObject *) {
17241 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17242 return 1;
17243 }
17244
17245
17246 static PyObject *_wrap_NullIcon_get() {
17247 PyObject *pyobj;
17248
17249 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17250 return pyobj;
17251 }
17252
17253
17254 static int _wrap_NullCursor_set(PyObject *) {
17255 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17256 return 1;
17257 }
17258
17259
17260 static PyObject *_wrap_NullCursor_get() {
17261 PyObject *pyobj;
17262
17263 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17264 return pyobj;
17265 }
17266
17267
17268 static int _wrap_NullPen_set(PyObject *) {
17269 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17270 return 1;
17271 }
17272
17273
17274 static PyObject *_wrap_NullPen_get() {
17275 PyObject *pyobj;
17276
17277 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17278 return pyobj;
17279 }
17280
17281
17282 static int _wrap_NullBrush_set(PyObject *) {
17283 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17284 return 1;
17285 }
17286
17287
17288 static PyObject *_wrap_NullBrush_get() {
17289 PyObject *pyobj;
17290
17291 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17292 return pyobj;
17293 }
17294
17295
17296 static int _wrap_NullPalette_set(PyObject *) {
17297 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17298 return 1;
17299 }
17300
17301
17302 static PyObject *_wrap_NullPalette_get() {
17303 PyObject *pyobj;
17304
17305 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17306 return pyobj;
17307 }
17308
17309
17310 static int _wrap_NullFont_set(PyObject *) {
17311 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17312 return 1;
17313 }
17314
17315
17316 static PyObject *_wrap_NullFont_get() {
17317 PyObject *pyobj;
17318
17319 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17320 return pyobj;
17321 }
17322
17323
17324 static int _wrap_NullColour_set(PyObject *) {
17325 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17326 return 1;
17327 }
17328
17329
17330 static PyObject *_wrap_NullColour_get() {
17331 PyObject *pyobj;
17332
17333 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17334 return pyobj;
17335 }
17336
17337
17338 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
17339 PyObject *resultobj;
17340 wxPenList *arg1 = (wxPenList *) 0 ;
17341 wxPen *arg2 = (wxPen *) 0 ;
17342 PyObject * obj0 = 0 ;
17343 PyObject * obj1 = 0 ;
17344 char *kwnames[] = {
17345 (char *) "self",(char *) "pen", NULL
17346 };
17347
17348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17351 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17353 {
17354 PyThreadState* __tstate = wxPyBeginAllowThreads();
17355 (arg1)->AddPen(arg2);
17356
17357 wxPyEndAllowThreads(__tstate);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 Py_INCREF(Py_None); resultobj = Py_None;
17361 return resultobj;
17362 fail:
17363 return NULL;
17364 }
17365
17366
17367 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
17368 PyObject *resultobj;
17369 wxPenList *arg1 = (wxPenList *) 0 ;
17370 wxColour *arg2 = 0 ;
17371 int arg3 ;
17372 int arg4 ;
17373 wxPen *result;
17374 wxColour temp2 ;
17375 PyObject * obj0 = 0 ;
17376 PyObject * obj1 = 0 ;
17377 PyObject * obj2 = 0 ;
17378 PyObject * obj3 = 0 ;
17379 char *kwnames[] = {
17380 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17381 };
17382
17383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17386 {
17387 arg2 = &temp2;
17388 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17389 }
17390 arg3 = (int)SWIG_As_int(obj2);
17391 if (PyErr_Occurred()) SWIG_fail;
17392 arg4 = (int)SWIG_As_int(obj3);
17393 if (PyErr_Occurred()) SWIG_fail;
17394 {
17395 PyThreadState* __tstate = wxPyBeginAllowThreads();
17396 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17397
17398 wxPyEndAllowThreads(__tstate);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17402 return resultobj;
17403 fail:
17404 return NULL;
17405 }
17406
17407
17408 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
17409 PyObject *resultobj;
17410 wxPenList *arg1 = (wxPenList *) 0 ;
17411 wxPen *arg2 = (wxPen *) 0 ;
17412 PyObject * obj0 = 0 ;
17413 PyObject * obj1 = 0 ;
17414 char *kwnames[] = {
17415 (char *) "self",(char *) "pen", NULL
17416 };
17417
17418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17423 {
17424 PyThreadState* __tstate = wxPyBeginAllowThreads();
17425 (arg1)->RemovePen(arg2);
17426
17427 wxPyEndAllowThreads(__tstate);
17428 if (PyErr_Occurred()) SWIG_fail;
17429 }
17430 Py_INCREF(Py_None); resultobj = Py_None;
17431 return resultobj;
17432 fail:
17433 return NULL;
17434 }
17435
17436
17437 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17438 PyObject *resultobj;
17439 wxPenList *arg1 = (wxPenList *) 0 ;
17440 int result;
17441 PyObject * obj0 = 0 ;
17442 char *kwnames[] = {
17443 (char *) "self", NULL
17444 };
17445
17446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17449 {
17450 PyThreadState* __tstate = wxPyBeginAllowThreads();
17451 result = (int)(arg1)->GetCount();
17452
17453 wxPyEndAllowThreads(__tstate);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
17456 resultobj = SWIG_From_int((int)result);
17457 return resultobj;
17458 fail:
17459 return NULL;
17460 }
17461
17462
17463 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
17464 PyObject *obj;
17465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17466 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17467 Py_INCREF(obj);
17468 return Py_BuildValue((char *)"");
17469 }
17470 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17471 PyObject *resultobj;
17472 wxBrushList *arg1 = (wxBrushList *) 0 ;
17473 wxBrush *arg2 = (wxBrush *) 0 ;
17474 PyObject * obj0 = 0 ;
17475 PyObject * obj1 = 0 ;
17476 char *kwnames[] = {
17477 (char *) "self",(char *) "brush", NULL
17478 };
17479
17480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17485 {
17486 PyThreadState* __tstate = wxPyBeginAllowThreads();
17487 (arg1)->AddBrush(arg2);
17488
17489 wxPyEndAllowThreads(__tstate);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 }
17492 Py_INCREF(Py_None); resultobj = Py_None;
17493 return resultobj;
17494 fail:
17495 return NULL;
17496 }
17497
17498
17499 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17500 PyObject *resultobj;
17501 wxBrushList *arg1 = (wxBrushList *) 0 ;
17502 wxColour *arg2 = 0 ;
17503 int arg3 ;
17504 wxBrush *result;
17505 wxColour temp2 ;
17506 PyObject * obj0 = 0 ;
17507 PyObject * obj1 = 0 ;
17508 PyObject * obj2 = 0 ;
17509 char *kwnames[] = {
17510 (char *) "self",(char *) "colour",(char *) "style", NULL
17511 };
17512
17513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17516 {
17517 arg2 = &temp2;
17518 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17519 }
17520 arg3 = (int)SWIG_As_int(obj2);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 {
17523 PyThreadState* __tstate = wxPyBeginAllowThreads();
17524 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17525
17526 wxPyEndAllowThreads(__tstate);
17527 if (PyErr_Occurred()) SWIG_fail;
17528 }
17529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17530 return resultobj;
17531 fail:
17532 return NULL;
17533 }
17534
17535
17536 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17537 PyObject *resultobj;
17538 wxBrushList *arg1 = (wxBrushList *) 0 ;
17539 wxBrush *arg2 = (wxBrush *) 0 ;
17540 PyObject * obj0 = 0 ;
17541 PyObject * obj1 = 0 ;
17542 char *kwnames[] = {
17543 (char *) "self",(char *) "brush", NULL
17544 };
17545
17546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17549 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17551 {
17552 PyThreadState* __tstate = wxPyBeginAllowThreads();
17553 (arg1)->RemoveBrush(arg2);
17554
17555 wxPyEndAllowThreads(__tstate);
17556 if (PyErr_Occurred()) SWIG_fail;
17557 }
17558 Py_INCREF(Py_None); resultobj = Py_None;
17559 return resultobj;
17560 fail:
17561 return NULL;
17562 }
17563
17564
17565 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17566 PyObject *resultobj;
17567 wxBrushList *arg1 = (wxBrushList *) 0 ;
17568 int result;
17569 PyObject * obj0 = 0 ;
17570 char *kwnames[] = {
17571 (char *) "self", NULL
17572 };
17573
17574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 result = (int)(arg1)->GetCount();
17580
17581 wxPyEndAllowThreads(__tstate);
17582 if (PyErr_Occurred()) SWIG_fail;
17583 }
17584 resultobj = SWIG_From_int((int)result);
17585 return resultobj;
17586 fail:
17587 return NULL;
17588 }
17589
17590
17591 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
17592 PyObject *obj;
17593 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17594 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17595 Py_INCREF(obj);
17596 return Py_BuildValue((char *)"");
17597 }
17598 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17599 PyObject *resultobj;
17600 wxColourDatabase *result;
17601 char *kwnames[] = {
17602 NULL
17603 };
17604
17605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17606 {
17607 if (!wxPyCheckForApp()) SWIG_fail;
17608 PyThreadState* __tstate = wxPyBeginAllowThreads();
17609 result = (wxColourDatabase *)new wxColourDatabase();
17610
17611 wxPyEndAllowThreads(__tstate);
17612 if (PyErr_Occurred()) SWIG_fail;
17613 }
17614 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17615 return resultobj;
17616 fail:
17617 return NULL;
17618 }
17619
17620
17621 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17622 PyObject *resultobj;
17623 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17624 PyObject * obj0 = 0 ;
17625 char *kwnames[] = {
17626 (char *) "self", NULL
17627 };
17628
17629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17632 {
17633 PyThreadState* __tstate = wxPyBeginAllowThreads();
17634 delete arg1;
17635
17636 wxPyEndAllowThreads(__tstate);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 }
17639 Py_INCREF(Py_None); resultobj = Py_None;
17640 return resultobj;
17641 fail:
17642 return NULL;
17643 }
17644
17645
17646 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
17647 PyObject *resultobj;
17648 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17649 wxString *arg2 = 0 ;
17650 wxColour result;
17651 bool temp2 = false ;
17652 PyObject * obj0 = 0 ;
17653 PyObject * obj1 = 0 ;
17654 char *kwnames[] = {
17655 (char *) "self",(char *) "name", NULL
17656 };
17657
17658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17661 {
17662 arg2 = wxString_in_helper(obj1);
17663 if (arg2 == NULL) SWIG_fail;
17664 temp2 = true;
17665 }
17666 {
17667 PyThreadState* __tstate = wxPyBeginAllowThreads();
17668 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17669
17670 wxPyEndAllowThreads(__tstate);
17671 if (PyErr_Occurred()) SWIG_fail;
17672 }
17673 {
17674 wxColour * resultptr;
17675 resultptr = new wxColour((wxColour &) result);
17676 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17677 }
17678 {
17679 if (temp2)
17680 delete arg2;
17681 }
17682 return resultobj;
17683 fail:
17684 {
17685 if (temp2)
17686 delete arg2;
17687 }
17688 return NULL;
17689 }
17690
17691
17692 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
17693 PyObject *resultobj;
17694 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17695 wxColour *arg2 = 0 ;
17696 wxString result;
17697 wxColour temp2 ;
17698 PyObject * obj0 = 0 ;
17699 PyObject * obj1 = 0 ;
17700 char *kwnames[] = {
17701 (char *) "self",(char *) "colour", NULL
17702 };
17703
17704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17707 {
17708 arg2 = &temp2;
17709 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17710 }
17711 {
17712 PyThreadState* __tstate = wxPyBeginAllowThreads();
17713 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17714
17715 wxPyEndAllowThreads(__tstate);
17716 if (PyErr_Occurred()) SWIG_fail;
17717 }
17718 {
17719 #if wxUSE_UNICODE
17720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17721 #else
17722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17723 #endif
17724 }
17725 return resultobj;
17726 fail:
17727 return NULL;
17728 }
17729
17730
17731 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
17732 PyObject *resultobj;
17733 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17734 wxString *arg2 = 0 ;
17735 wxColour *arg3 = 0 ;
17736 bool temp2 = false ;
17737 wxColour temp3 ;
17738 PyObject * obj0 = 0 ;
17739 PyObject * obj1 = 0 ;
17740 PyObject * obj2 = 0 ;
17741 char *kwnames[] = {
17742 (char *) "self",(char *) "name",(char *) "colour", NULL
17743 };
17744
17745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17748 {
17749 arg2 = wxString_in_helper(obj1);
17750 if (arg2 == NULL) SWIG_fail;
17751 temp2 = true;
17752 }
17753 {
17754 arg3 = &temp3;
17755 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17756 }
17757 {
17758 PyThreadState* __tstate = wxPyBeginAllowThreads();
17759 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17760
17761 wxPyEndAllowThreads(__tstate);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 }
17764 Py_INCREF(Py_None); resultobj = Py_None;
17765 {
17766 if (temp2)
17767 delete arg2;
17768 }
17769 return resultobj;
17770 fail:
17771 {
17772 if (temp2)
17773 delete arg2;
17774 }
17775 return NULL;
17776 }
17777
17778
17779 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
17780 PyObject *resultobj;
17781 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17782 wxString *arg2 = 0 ;
17783 int arg3 ;
17784 int arg4 ;
17785 int arg5 ;
17786 bool temp2 = false ;
17787 PyObject * obj0 = 0 ;
17788 PyObject * obj1 = 0 ;
17789 PyObject * obj2 = 0 ;
17790 PyObject * obj3 = 0 ;
17791 PyObject * obj4 = 0 ;
17792 char *kwnames[] = {
17793 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17794 };
17795
17796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17799 {
17800 arg2 = wxString_in_helper(obj1);
17801 if (arg2 == NULL) SWIG_fail;
17802 temp2 = true;
17803 }
17804 arg3 = (int)SWIG_As_int(obj2);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 arg4 = (int)SWIG_As_int(obj3);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 arg5 = (int)SWIG_As_int(obj4);
17809 if (PyErr_Occurred()) SWIG_fail;
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17813
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 Py_INCREF(Py_None); resultobj = Py_None;
17818 {
17819 if (temp2)
17820 delete arg2;
17821 }
17822 return resultobj;
17823 fail:
17824 {
17825 if (temp2)
17826 delete arg2;
17827 }
17828 return NULL;
17829 }
17830
17831
17832 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
17833 PyObject *obj;
17834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17835 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17836 Py_INCREF(obj);
17837 return Py_BuildValue((char *)"");
17838 }
17839 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
17840 PyObject *resultobj;
17841 wxFontList *arg1 = (wxFontList *) 0 ;
17842 wxFont *arg2 = (wxFont *) 0 ;
17843 PyObject * obj0 = 0 ;
17844 PyObject * obj1 = 0 ;
17845 char *kwnames[] = {
17846 (char *) "self",(char *) "font", NULL
17847 };
17848
17849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17852 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17854 {
17855 PyThreadState* __tstate = wxPyBeginAllowThreads();
17856 (arg1)->AddFont(arg2);
17857
17858 wxPyEndAllowThreads(__tstate);
17859 if (PyErr_Occurred()) SWIG_fail;
17860 }
17861 Py_INCREF(Py_None); resultobj = Py_None;
17862 return resultobj;
17863 fail:
17864 return NULL;
17865 }
17866
17867
17868 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj;
17870 wxFontList *arg1 = (wxFontList *) 0 ;
17871 int arg2 ;
17872 int arg3 ;
17873 int arg4 ;
17874 int arg5 ;
17875 bool arg6 = (bool) false ;
17876 wxString const &arg7_defvalue = wxPyEmptyString ;
17877 wxString *arg7 = (wxString *) &arg7_defvalue ;
17878 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17879 wxFont *result;
17880 bool temp7 = false ;
17881 PyObject * obj0 = 0 ;
17882 PyObject * obj1 = 0 ;
17883 PyObject * obj2 = 0 ;
17884 PyObject * obj3 = 0 ;
17885 PyObject * obj4 = 0 ;
17886 PyObject * obj5 = 0 ;
17887 PyObject * obj6 = 0 ;
17888 PyObject * obj7 = 0 ;
17889 char *kwnames[] = {
17890 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17891 };
17892
17893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17896 arg2 = (int)SWIG_As_int(obj1);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 arg3 = (int)SWIG_As_int(obj2);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 arg4 = (int)SWIG_As_int(obj3);
17901 if (PyErr_Occurred()) SWIG_fail;
17902 arg5 = (int)SWIG_As_int(obj4);
17903 if (PyErr_Occurred()) SWIG_fail;
17904 if (obj5) {
17905 arg6 = (bool)SWIG_As_bool(obj5);
17906 if (PyErr_Occurred()) SWIG_fail;
17907 }
17908 if (obj6) {
17909 {
17910 arg7 = wxString_in_helper(obj6);
17911 if (arg7 == NULL) SWIG_fail;
17912 temp7 = true;
17913 }
17914 }
17915 if (obj7) {
17916 arg8 = (int)SWIG_As_int(obj7);
17917 if (PyErr_Occurred()) SWIG_fail;
17918 }
17919 {
17920 PyThreadState* __tstate = wxPyBeginAllowThreads();
17921 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17922
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17927 {
17928 if (temp7)
17929 delete arg7;
17930 }
17931 return resultobj;
17932 fail:
17933 {
17934 if (temp7)
17935 delete arg7;
17936 }
17937 return NULL;
17938 }
17939
17940
17941 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj;
17943 wxFontList *arg1 = (wxFontList *) 0 ;
17944 wxFont *arg2 = (wxFont *) 0 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 char *kwnames[] = {
17948 (char *) "self",(char *) "font", NULL
17949 };
17950
17951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17956 {
17957 PyThreadState* __tstate = wxPyBeginAllowThreads();
17958 (arg1)->RemoveFont(arg2);
17959
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 Py_INCREF(Py_None); resultobj = Py_None;
17964 return resultobj;
17965 fail:
17966 return NULL;
17967 }
17968
17969
17970 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj;
17972 wxFontList *arg1 = (wxFontList *) 0 ;
17973 int result;
17974 PyObject * obj0 = 0 ;
17975 char *kwnames[] = {
17976 (char *) "self", NULL
17977 };
17978
17979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17982 {
17983 PyThreadState* __tstate = wxPyBeginAllowThreads();
17984 result = (int)(arg1)->GetCount();
17985
17986 wxPyEndAllowThreads(__tstate);
17987 if (PyErr_Occurred()) SWIG_fail;
17988 }
17989 resultobj = SWIG_From_int((int)result);
17990 return resultobj;
17991 fail:
17992 return NULL;
17993 }
17994
17995
17996 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
17997 PyObject *obj;
17998 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17999 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18000 Py_INCREF(obj);
18001 return Py_BuildValue((char *)"");
18002 }
18003 static int _wrap_TheFontList_set(PyObject *) {
18004 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18005 return 1;
18006 }
18007
18008
18009 static PyObject *_wrap_TheFontList_get() {
18010 PyObject *pyobj;
18011
18012 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18013 return pyobj;
18014 }
18015
18016
18017 static int _wrap_ThePenList_set(PyObject *) {
18018 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18019 return 1;
18020 }
18021
18022
18023 static PyObject *_wrap_ThePenList_get() {
18024 PyObject *pyobj;
18025
18026 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18027 return pyobj;
18028 }
18029
18030
18031 static int _wrap_TheBrushList_set(PyObject *) {
18032 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18033 return 1;
18034 }
18035
18036
18037 static PyObject *_wrap_TheBrushList_get() {
18038 PyObject *pyobj;
18039
18040 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18041 return pyobj;
18042 }
18043
18044
18045 static int _wrap_TheColourDatabase_set(PyObject *) {
18046 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18047 return 1;
18048 }
18049
18050
18051 static PyObject *_wrap_TheColourDatabase_get() {
18052 PyObject *pyobj;
18053
18054 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18055 return pyobj;
18056 }
18057
18058
18059 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
18060 PyObject *resultobj;
18061 wxEffects *result;
18062 char *kwnames[] = {
18063 NULL
18064 };
18065
18066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18067 {
18068 PyThreadState* __tstate = wxPyBeginAllowThreads();
18069 result = (wxEffects *)new wxEffects();
18070
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18082 PyObject *resultobj;
18083 wxEffects *arg1 = (wxEffects *) 0 ;
18084 wxColour result;
18085 PyObject * obj0 = 0 ;
18086 char *kwnames[] = {
18087 (char *) "self", NULL
18088 };
18089
18090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18093 {
18094 PyThreadState* __tstate = wxPyBeginAllowThreads();
18095 result = ((wxEffects const *)arg1)->GetHighlightColour();
18096
18097 wxPyEndAllowThreads(__tstate);
18098 if (PyErr_Occurred()) SWIG_fail;
18099 }
18100 {
18101 wxColour * resultptr;
18102 resultptr = new wxColour((wxColour &) result);
18103 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18104 }
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj;
18113 wxEffects *arg1 = (wxEffects *) 0 ;
18114 wxColour result;
18115 PyObject * obj0 = 0 ;
18116 char *kwnames[] = {
18117 (char *) "self", NULL
18118 };
18119
18120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18123 {
18124 PyThreadState* __tstate = wxPyBeginAllowThreads();
18125 result = ((wxEffects const *)arg1)->GetLightShadow();
18126
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 {
18131 wxColour * resultptr;
18132 resultptr = new wxColour((wxColour &) result);
18133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18134 }
18135 return resultobj;
18136 fail:
18137 return NULL;
18138 }
18139
18140
18141 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18142 PyObject *resultobj;
18143 wxEffects *arg1 = (wxEffects *) 0 ;
18144 wxColour result;
18145 PyObject * obj0 = 0 ;
18146 char *kwnames[] = {
18147 (char *) "self", NULL
18148 };
18149
18150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18153 {
18154 PyThreadState* __tstate = wxPyBeginAllowThreads();
18155 result = ((wxEffects const *)arg1)->GetFaceColour();
18156
18157 wxPyEndAllowThreads(__tstate);
18158 if (PyErr_Occurred()) SWIG_fail;
18159 }
18160 {
18161 wxColour * resultptr;
18162 resultptr = new wxColour((wxColour &) result);
18163 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18164 }
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 static PyObject *_wrap_Effects_GetMediumShadow(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_GetMediumShadow",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)->GetMediumShadow();
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_GetDarkShadow(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_GetDarkShadow",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)->GetDarkShadow();
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_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18232 PyObject *resultobj;
18233 wxEffects *arg1 = (wxEffects *) 0 ;
18234 wxColour *arg2 = 0 ;
18235 wxColour temp2 ;
18236 PyObject * obj0 = 0 ;
18237 PyObject * obj1 = 0 ;
18238 char *kwnames[] = {
18239 (char *) "self",(char *) "c", NULL
18240 };
18241
18242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18245 {
18246 arg2 = &temp2;
18247 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18248 }
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
18251 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18252
18253 wxPyEndAllowThreads(__tstate);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 }
18256 Py_INCREF(Py_None); resultobj = Py_None;
18257 return resultobj;
18258 fail:
18259 return NULL;
18260 }
18261
18262
18263 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18264 PyObject *resultobj;
18265 wxEffects *arg1 = (wxEffects *) 0 ;
18266 wxColour *arg2 = 0 ;
18267 wxColour temp2 ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 char *kwnames[] = {
18271 (char *) "self",(char *) "c", NULL
18272 };
18273
18274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18277 {
18278 arg2 = &temp2;
18279 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18280 }
18281 {
18282 PyThreadState* __tstate = wxPyBeginAllowThreads();
18283 (arg1)->SetLightShadow((wxColour const &)*arg2);
18284
18285 wxPyEndAllowThreads(__tstate);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 }
18288 Py_INCREF(Py_None); resultobj = Py_None;
18289 return resultobj;
18290 fail:
18291 return NULL;
18292 }
18293
18294
18295 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18296 PyObject *resultobj;
18297 wxEffects *arg1 = (wxEffects *) 0 ;
18298 wxColour *arg2 = 0 ;
18299 wxColour temp2 ;
18300 PyObject * obj0 = 0 ;
18301 PyObject * obj1 = 0 ;
18302 char *kwnames[] = {
18303 (char *) "self",(char *) "c", NULL
18304 };
18305
18306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18309 {
18310 arg2 = &temp2;
18311 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18312 }
18313 {
18314 PyThreadState* __tstate = wxPyBeginAllowThreads();
18315 (arg1)->SetFaceColour((wxColour const &)*arg2);
18316
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 Py_INCREF(Py_None); resultobj = Py_None;
18321 return resultobj;
18322 fail:
18323 return NULL;
18324 }
18325
18326
18327 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18328 PyObject *resultobj;
18329 wxEffects *arg1 = (wxEffects *) 0 ;
18330 wxColour *arg2 = 0 ;
18331 wxColour temp2 ;
18332 PyObject * obj0 = 0 ;
18333 PyObject * obj1 = 0 ;
18334 char *kwnames[] = {
18335 (char *) "self",(char *) "c", NULL
18336 };
18337
18338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18341 {
18342 arg2 = &temp2;
18343 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18344 }
18345 {
18346 PyThreadState* __tstate = wxPyBeginAllowThreads();
18347 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18348
18349 wxPyEndAllowThreads(__tstate);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 }
18352 Py_INCREF(Py_None); resultobj = Py_None;
18353 return resultobj;
18354 fail:
18355 return NULL;
18356 }
18357
18358
18359 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18360 PyObject *resultobj;
18361 wxEffects *arg1 = (wxEffects *) 0 ;
18362 wxColour *arg2 = 0 ;
18363 wxColour temp2 ;
18364 PyObject * obj0 = 0 ;
18365 PyObject * obj1 = 0 ;
18366 char *kwnames[] = {
18367 (char *) "self",(char *) "c", NULL
18368 };
18369
18370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18373 {
18374 arg2 = &temp2;
18375 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18376 }
18377 {
18378 PyThreadState* __tstate = wxPyBeginAllowThreads();
18379 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18380
18381 wxPyEndAllowThreads(__tstate);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 }
18384 Py_INCREF(Py_None); resultobj = Py_None;
18385 return resultobj;
18386 fail:
18387 return NULL;
18388 }
18389
18390
18391 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18392 PyObject *resultobj;
18393 wxEffects *arg1 = (wxEffects *) 0 ;
18394 wxColour *arg2 = 0 ;
18395 wxColour *arg3 = 0 ;
18396 wxColour *arg4 = 0 ;
18397 wxColour *arg5 = 0 ;
18398 wxColour *arg6 = 0 ;
18399 wxColour temp2 ;
18400 wxColour temp3 ;
18401 wxColour temp4 ;
18402 wxColour temp5 ;
18403 wxColour temp6 ;
18404 PyObject * obj0 = 0 ;
18405 PyObject * obj1 = 0 ;
18406 PyObject * obj2 = 0 ;
18407 PyObject * obj3 = 0 ;
18408 PyObject * obj4 = 0 ;
18409 PyObject * obj5 = 0 ;
18410 char *kwnames[] = {
18411 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18412 };
18413
18414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18417 {
18418 arg2 = &temp2;
18419 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18420 }
18421 {
18422 arg3 = &temp3;
18423 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18424 }
18425 {
18426 arg4 = &temp4;
18427 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18428 }
18429 {
18430 arg5 = &temp5;
18431 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18432 }
18433 {
18434 arg6 = &temp6;
18435 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18436 }
18437 {
18438 PyThreadState* __tstate = wxPyBeginAllowThreads();
18439 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18440
18441 wxPyEndAllowThreads(__tstate);
18442 if (PyErr_Occurred()) SWIG_fail;
18443 }
18444 Py_INCREF(Py_None); resultobj = Py_None;
18445 return resultobj;
18446 fail:
18447 return NULL;
18448 }
18449
18450
18451 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
18452 PyObject *resultobj;
18453 wxEffects *arg1 = (wxEffects *) 0 ;
18454 wxDC *arg2 = 0 ;
18455 wxRect *arg3 = 0 ;
18456 int arg4 = (int) 1 ;
18457 wxRect temp3 ;
18458 PyObject * obj0 = 0 ;
18459 PyObject * obj1 = 0 ;
18460 PyObject * obj2 = 0 ;
18461 PyObject * obj3 = 0 ;
18462 char *kwnames[] = {
18463 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18464 };
18465
18466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18470 SWIG_POINTER_EXCEPTION | 0)) == -1)
18471 SWIG_fail;
18472 if (arg2 == NULL) {
18473 PyErr_SetString(PyExc_TypeError,"null reference");
18474 SWIG_fail;
18475 }
18476 {
18477 arg3 = &temp3;
18478 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18479 }
18480 if (obj3) {
18481 arg4 = (int)SWIG_As_int(obj3);
18482 if (PyErr_Occurred()) SWIG_fail;
18483 }
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18487
18488 wxPyEndAllowThreads(__tstate);
18489 if (PyErr_Occurred()) SWIG_fail;
18490 }
18491 Py_INCREF(Py_None); resultobj = Py_None;
18492 return resultobj;
18493 fail:
18494 return NULL;
18495 }
18496
18497
18498 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18499 PyObject *resultobj;
18500 wxEffects *arg1 = (wxEffects *) 0 ;
18501 wxRect *arg2 = 0 ;
18502 wxDC *arg3 = 0 ;
18503 wxBitmap *arg4 = 0 ;
18504 bool result;
18505 wxRect temp2 ;
18506 PyObject * obj0 = 0 ;
18507 PyObject * obj1 = 0 ;
18508 PyObject * obj2 = 0 ;
18509 PyObject * obj3 = 0 ;
18510 char *kwnames[] = {
18511 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18512 };
18513
18514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18517 {
18518 arg2 = &temp2;
18519 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18520 }
18521 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18522 SWIG_POINTER_EXCEPTION | 0)) == -1)
18523 SWIG_fail;
18524 if (arg3 == NULL) {
18525 PyErr_SetString(PyExc_TypeError,"null reference");
18526 SWIG_fail;
18527 }
18528 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18529 SWIG_POINTER_EXCEPTION | 0)) == -1)
18530 SWIG_fail;
18531 if (arg4 == NULL) {
18532 PyErr_SetString(PyExc_TypeError,"null reference");
18533 SWIG_fail;
18534 }
18535 {
18536 PyThreadState* __tstate = wxPyBeginAllowThreads();
18537 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18538
18539 wxPyEndAllowThreads(__tstate);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 }
18542 {
18543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18544 }
18545 return resultobj;
18546 fail:
18547 return NULL;
18548 }
18549
18550
18551 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
18552 PyObject *obj;
18553 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18554 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18555 Py_INCREF(obj);
18556 return Py_BuildValue((char *)"");
18557 }
18558 static PyMethodDef SwigMethods[] = {
18559 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18560 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18561 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18562 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18563 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18564 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18565 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18566 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18567 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18568 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18569 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18570 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18571 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18572 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18573 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18574 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18575 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18576 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18577 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18578 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18579 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18580 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18581 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18582 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18583 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18584 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18585 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18586 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18587 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18588 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18589 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18590 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18591 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18592 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18593 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18594 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18595 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18596 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18597 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18598 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18599 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18600 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18601 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18602 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18603 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18604 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL },
18605 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18606 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18607 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18608 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18609 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18610 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18611 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18612 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18613 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18614 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18615 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18616 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL },
18617 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18618 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18619 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18620 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18621 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18622 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18623 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18624 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18625 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18626 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18627 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18628 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18629 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18630 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18631 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18632 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18633 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18634 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18635 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18636 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18637 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18638 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
18639 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18640 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18641 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18642 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18643 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18644 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18645 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18646 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18647 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18648 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18649 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18650 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18651 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18652 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18653 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18654 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18655 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18656 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18657 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18658 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18659 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18660 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18661 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18662 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18663 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18664 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18665 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18666 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18667 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18668 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18669 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18670 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18671 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18672 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18673 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18674 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18675 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18676 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18677 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18678 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18679 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18680 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18681 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18682 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18683 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18684 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18685 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18686 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18687 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18688 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18689 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18690 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18691 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18692 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18693 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
18694 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18695 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18696 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18697 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18698 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18699 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18700 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18701 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18702 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18703 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18704 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18705 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18706 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18707 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18708 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18709 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18710 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18711 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18712 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18713 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18714 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18715 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18716 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18717 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18718 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18719 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18720 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18721 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18722 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18723 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18724 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18725 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18726 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18727 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18728 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18729 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18730 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18731 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18732 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18733 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18734 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18735 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18736 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18737 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18738 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18739 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18740 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18741 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18742 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18743 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18744 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18745 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18746 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18747 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18748 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18749 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18750 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18751 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18752 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18753 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18754 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18755 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18756 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18757 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18758 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18759 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18760 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18761 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18762 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18763 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18764 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18765 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18766 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18767 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18768 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18769 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18770 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18771 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18772 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18773 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18774 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18775 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18776 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18777 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18778 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18779 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18780 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18781 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18782 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18783 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18784 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18785 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18786 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18787 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
18788 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
18789 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18790 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18791 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18792 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18793 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
18794 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL },
18795 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18796 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18797 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18798 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18799 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18800 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18801 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18802 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18803 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18804 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18805 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18806 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
18807 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18808 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18809 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18810 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18811 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18812 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18813 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18814 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18815 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18816 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18817 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18818 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18819 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18820 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18821 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18822 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18823 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
18824 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18825 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18826 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18827 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18828 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18829 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18830 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18831 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
18832 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
18833 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
18834 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
18835 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
18836 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
18837 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
18838 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
18839 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18840 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18841 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
18842 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
18843 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18844 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18845 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18846 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18847 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18848 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18849 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
18850 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
18851 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
18852 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
18853 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
18854 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18855 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
18856 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18857 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18858 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
18859 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
18860 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
18861 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18862 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
18863 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18864 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18865 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18866 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
18867 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18868 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18869 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
18870 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
18871 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
18872 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18873 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18874 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
18875 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18876 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18877 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18878 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
18879 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18880 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
18881 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18882 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
18883 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18884 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
18885 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
18886 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
18887 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18888 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18889 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18890 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18891 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18892 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18893 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18894 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18895 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18896 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
18897 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18898 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
18899 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
18900 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18901 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18902 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18903 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18904 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18905 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
18906 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18907 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
18908 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18909 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
18910 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18911 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18912 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18913 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18914 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18915 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
18916 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
18917 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18918 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18919 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
18920 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18921 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18922 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18923 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
18924 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
18925 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18926 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18927 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18928 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18929 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18930 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
18931 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18932 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18933 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18934 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18935 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18936 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18937 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18938 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18939 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
18940 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18941 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18942 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
18943 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18944 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
18945 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
18946 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18947 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18948 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
18949 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
18950 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18951 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18952 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18953 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18954 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18955 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
18956 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18957 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18958 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18959 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18960 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18961 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18962 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18963 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18964 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18965 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18966 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18967 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18968 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18969 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18970 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18971 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18972 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18973 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18974 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18975 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18976 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18977 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18978 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18979 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18980 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
18981 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18982 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18983 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18984 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18985 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18986 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18987 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18988 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
18989 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
18990 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
18991 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
18992 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18993 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
18994 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
18995 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
18996 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
18997 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
18998 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
18999 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
19000 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
19001 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
19002 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
19003 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
19004 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
19005 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
19006 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
19007 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
19008 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19009 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
19010 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
19011 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
19012 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19013 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19014 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
19015 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
19016 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
19017 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19018 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
19019 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
19020 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
19021 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
19022 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
19023 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
19024 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19025 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19026 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19027 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19028 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
19029 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19030 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
19031 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
19032 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
19033 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
19034 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
19035 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19036 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19037 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
19038 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
19039 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19040 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
19041 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
19042 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
19043 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
19044 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
19045 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19046 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
19047 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
19048 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
19049 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
19050 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19051 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
19052 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19053 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19054 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19055 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19056 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
19057 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19058 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19059 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
19060 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
19061 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
19062 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
19063 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
19064 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
19065 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
19066 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
19067 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19068 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
19069 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
19070 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19071 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19072 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19073 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19074 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19075 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19076 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19077 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19078 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19079 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19080 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19081 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19082 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19083 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19084 { NULL, NULL, 0, NULL }
19085 };
19086
19087
19088 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19089
19090 static void *_p_wxControlTo_p_wxWindow(void *x) {
19091 return (void *)((wxWindow *) ((wxControl *) x));
19092 }
19093 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19094 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19095 }
19096 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19097 return (void *)((wxWindow *) ((wxMenuBar *) x));
19098 }
19099 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19100 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19101 }
19102 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19103 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19104 }
19105 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19106 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19107 }
19108 static void *_p_wxPenTo_p_wxObject(void *x) {
19109 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19110 }
19111 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19112 return (void *)((wxObject *) ((wxRegionIterator *) x));
19113 }
19114 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19115 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19116 }
19117 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19118 return (void *)((wxObject *) ((wxSizerItem *) x));
19119 }
19120 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19121 return (void *)((wxObject *) ((wxColourDatabase *) x));
19122 }
19123 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19124 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19125 }
19126 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19127 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19128 }
19129 static void *_p_wxIconTo_p_wxObject(void *x) {
19130 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19131 }
19132 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19133 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19134 }
19135 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19136 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19137 }
19138 static void *_p_wxSizerTo_p_wxObject(void *x) {
19139 return (void *)((wxObject *) ((wxSizer *) x));
19140 }
19141 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19142 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19143 }
19144 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19145 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19146 }
19147 static void *_p_wxPenListTo_p_wxObject(void *x) {
19148 return (void *)((wxObject *) ((wxPenList *) x));
19149 }
19150 static void *_p_wxEventTo_p_wxObject(void *x) {
19151 return (void *)((wxObject *) ((wxEvent *) x));
19152 }
19153 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19154 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19155 }
19156 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19157 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19158 }
19159 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19160 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19161 }
19162 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19163 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19164 }
19165 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19166 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19167 }
19168 static void *_p_wxDCTo_p_wxObject(void *x) {
19169 return (void *)((wxObject *) ((wxDC *) x));
19170 }
19171 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19172 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19173 }
19174 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19175 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19176 }
19177 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19178 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19179 }
19180 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19181 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19182 }
19183 static void *_p_wxControlTo_p_wxObject(void *x) {
19184 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19185 }
19186 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19187 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19188 }
19189 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19190 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19191 }
19192 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19193 return (void *)((wxObject *) ((wxFSFile *) x));
19194 }
19195 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19196 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19197 }
19198 static void *_p_wxRegionTo_p_wxObject(void *x) {
19199 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19200 }
19201 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19202 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19203 }
19204 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19205 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19206 }
19207 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19208 return (void *)((wxObject *) ((wxGDIObject *) x));
19209 }
19210 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19211 return (void *)((wxObject *) ((wxEffects *) x));
19212 }
19213 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19214 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19215 }
19216 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19217 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19218 }
19219 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19220 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19221 }
19222 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19223 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19224 }
19225 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19226 return (void *)((wxObject *) ((wxMenuItem *) x));
19227 }
19228 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19229 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19230 }
19231 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19232 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19233 }
19234 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19235 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19236 }
19237 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19238 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19239 }
19240 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19241 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19242 }
19243 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19244 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19245 }
19246 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19247 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19248 }
19249 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19250 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19251 }
19252 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19253 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19254 }
19255 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19256 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19257 }
19258 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19259 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19260 }
19261 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19262 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19263 }
19264 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19265 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19266 }
19267 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19268 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19269 }
19270 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19271 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19272 }
19273 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19274 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19275 }
19276 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19277 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19278 }
19279 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19280 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19281 }
19282 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19283 return (void *)((wxObject *) ((wxImageHandler *) x));
19284 }
19285 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19286 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19287 }
19288 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19289 return (void *)((wxObject *) ((wxEvtHandler *) x));
19290 }
19291 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19292 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19293 }
19294 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19295 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19296 }
19297 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19298 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19299 }
19300 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19301 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19302 }
19303 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19304 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19305 }
19306 static void *_p_wxImageTo_p_wxObject(void *x) {
19307 return (void *)((wxObject *) ((wxImage *) x));
19308 }
19309 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19310 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19311 }
19312 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19313 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19314 }
19315 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19316 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19317 }
19318 static void *_p_wxImageListTo_p_wxObject(void *x) {
19319 return (void *)((wxObject *) ((wxImageList *) x));
19320 }
19321 static void *_p_wxCursorTo_p_wxObject(void *x) {
19322 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19323 }
19324 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19325 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19326 }
19327 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19328 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19329 }
19330 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19331 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19332 }
19333 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19334 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19335 }
19336 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19337 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19338 }
19339 static void *_p_wxWindowTo_p_wxObject(void *x) {
19340 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19341 }
19342 static void *_p_wxMenuTo_p_wxObject(void *x) {
19343 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19344 }
19345 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19346 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19347 }
19348 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19349 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19350 }
19351 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19352 return (void *)((wxObject *) ((wxBrushList *) x));
19353 }
19354 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19355 return (void *)((wxObject *) ((wxFileSystem *) x));
19356 }
19357 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19358 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19359 }
19360 static void *_p_wxMaskTo_p_wxObject(void *x) {
19361 return (void *)((wxObject *) ((wxMask *) x));
19362 }
19363 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19364 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19365 }
19366 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19367 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19368 }
19369 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19370 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19371 }
19372 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19373 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19374 }
19375 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19376 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19377 }
19378 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19379 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19380 }
19381 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19382 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19383 }
19384 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19385 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19386 }
19387 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19388 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19389 }
19390 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19391 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19392 }
19393 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19394 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19395 }
19396 static void *_p_wxFontTo_p_wxObject(void *x) {
19397 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19398 }
19399 static void *_p_wxBrushTo_p_wxObject(void *x) {
19400 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19401 }
19402 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19403 return (void *)((wxObject *) ((wxMetaFile *) x));
19404 }
19405 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19407 }
19408 static void *_p_wxColourTo_p_wxObject(void *x) {
19409 return (void *)((wxObject *) ((wxColour *) x));
19410 }
19411 static void *_p_wxFontListTo_p_wxObject(void *x) {
19412 return (void *)((wxObject *) ((wxFontList *) x));
19413 }
19414 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19415 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19416 }
19417 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19418 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19419 }
19420 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19421 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19422 }
19423 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19424 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19425 }
19426 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19427 return (void *)((wxDC *) ((wxScreenDC *) x));
19428 }
19429 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19430 return (void *)((wxDC *) ((wxMirrorDC *) x));
19431 }
19432 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19433 return (void *)((wxDC *) ((wxMemoryDC *) x));
19434 }
19435 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19436 return (void *)((wxDC *) ((wxWindowDC *) x));
19437 }
19438 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19439 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19440 }
19441 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19442 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19443 }
19444 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19445 return (void *)((wxDC *) ((wxClientDC *) x));
19446 }
19447 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19448 return (void *)((wxDC *) ((wxPaintDC *) x));
19449 }
19450 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19451 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19452 }
19453 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19454 return (void *)((wxDC *) ((wxPrinterDC *) x));
19455 }
19456 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19457 return (void *)((wxGDIObject *) ((wxIcon *) x));
19458 }
19459 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19460 return (void *)((wxGDIObject *) ((wxPalette *) x));
19461 }
19462 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19463 return (void *)((wxGDIObject *) ((wxPen *) x));
19464 }
19465 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19466 return (void *)((wxGDIObject *) ((wxFont *) x));
19467 }
19468 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19469 return (void *)((wxGDIObject *) ((wxCursor *) x));
19470 }
19471 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19472 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19473 }
19474 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19475 return (void *)((wxGDIObject *) ((wxRegion *) x));
19476 }
19477 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19478 return (void *)((wxGDIObject *) ((wxBrush *) x));
19479 }
19480 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}};
19481 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}};
19482 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}};
19483 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}};
19484 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}};
19485 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}};
19486 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}};
19487 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}};
19488 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}};
19489 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}};
19490 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}};
19491 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}};
19492 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}};
19493 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}};
19494 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}};
19495 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}};
19496 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}};
19497 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}};
19498 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}};
19499 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}};
19500 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}};
19501 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}};
19502 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}};
19503 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}};
19504 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}};
19505 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}};
19506 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}};
19507 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}};
19508 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}};
19509 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}};
19510 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}};
19511 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}};
19512 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}};
19513 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}};
19514 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}};
19515 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}};
19516 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}};
19517 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}};
19518 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}};
19519 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}};
19520 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}};
19521 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}};
19522 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}};
19523 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}};
19524 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}};
19525 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}};
19526 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}};
19527 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}};
19528 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}};
19529 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}};
19530 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}};
19531 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}};
19532 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}};
19533 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}};
19534 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}};
19535
19536 static swig_type_info *swig_types_initial[] = {
19537 _swigt__p_wxPostScriptDC,
19538 _swigt__p_wxBrush,
19539 _swigt__p_wxColour,
19540 _swigt__p_wxDC,
19541 _swigt__p_wxMirrorDC,
19542 _swigt__p_byte,
19543 _swigt__p_wxPyFontEnumerator,
19544 _swigt__p_char,
19545 _swigt__p_wxIconLocation,
19546 _swigt__p_wxImage,
19547 _swigt__p_wxMetaFileDC,
19548 _swigt__p_wxMask,
19549 _swigt__p_wxSize,
19550 _swigt__p_wxFont,
19551 _swigt__p_wxWindow,
19552 _swigt__p_double,
19553 _swigt__p_wxMemoryDC,
19554 _swigt__p_wxFontMapper,
19555 _swigt__p_wxEffects,
19556 _swigt__p_wxNativeEncodingInfo,
19557 _swigt__p_wxPalette,
19558 _swigt__p_wxBitmap,
19559 _swigt__p_wxObject,
19560 _swigt__p_wxRegionIterator,
19561 _swigt__p_wxRect,
19562 _swigt__p_wxString,
19563 _swigt__p_wxPrinterDC,
19564 _swigt__p_wxIconBundle,
19565 _swigt__p_wxPoint,
19566 _swigt__p_wxDash,
19567 _swigt__p_wxScreenDC,
19568 _swigt__p_wxCursor,
19569 _swigt__p_wxClientDC,
19570 _swigt__p_wxBufferedDC,
19571 _swigt__p_wxImageList,
19572 _swigt__p_unsigned_char,
19573 _swigt__p_wxGDIObject,
19574 _swigt__p_wxIcon,
19575 _swigt__p_wxLocale,
19576 _swigt__p_wxRegion,
19577 _swigt__p_wxLanguageInfo,
19578 _swigt__p_wxConfigBase,
19579 _swigt__p_wxWindowDC,
19580 _swigt__p_wxPrintData,
19581 _swigt__p_wxBrushList,
19582 _swigt__p_wxFontList,
19583 _swigt__p_wxPen,
19584 _swigt__p_wxBufferedPaintDC,
19585 _swigt__p_wxPaintDC,
19586 _swigt__p_wxPenList,
19587 _swigt__p_int,
19588 _swigt__p_wxMetaFile,
19589 _swigt__p_wxNativeFontInfo,
19590 _swigt__p_wxEncodingConverter,
19591 _swigt__p_wxColourDatabase,
19592 0
19593 };
19594
19595
19596 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19597
19598 static swig_const_info swig_const_table[] = {
19599 {0, 0, 0, 0.0, 0, 0}};
19600
19601 #ifdef __cplusplus
19602 }
19603 #endif
19604
19605 #ifdef __cplusplus
19606 extern "C"
19607 #endif
19608 SWIGEXPORT(void) SWIG_init(void) {
19609 static PyObject *SWIG_globals = 0;
19610 static int typeinit = 0;
19611 PyObject *m, *d;
19612 int i;
19613 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19614 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19615 d = PyModule_GetDict(m);
19616
19617 if (!typeinit) {
19618 for (i = 0; swig_types_initial[i]; i++) {
19619 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19620 }
19621 typeinit = 1;
19622 }
19623 SWIG_InstallConstants(d,swig_const_table);
19624
19625 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
19626 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
19627 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
19628 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
19629 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
19630 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
19631 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
19632 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
19633 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
19634 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
19635 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
19636 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
19637 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
19638 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
19639 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
19640 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
19641 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
19642 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
19643 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
19644 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
19645 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
19646 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
19647 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
19648 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
19649 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
19650 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
19651 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
19652 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
19653 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
19654 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
19655 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
19656 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
19657 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
19658 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
19659 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
19660 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
19661 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
19662 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
19663 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
19664 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
19665 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
19666 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
19667 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
19668 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
19669 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
19670 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
19671 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
19672 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
19673 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
19674 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
19675 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
19676 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
19677 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
19678 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
19679 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
19680 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
19681 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
19682 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
19683 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
19684 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
19685 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
19686 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
19687 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
19688 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
19689 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
19690 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
19691 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
19692 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
19693 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
19694 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
19695 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
19696 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
19697 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
19698 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
19699 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
19700 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
19701 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
19702 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
19703 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
19704 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
19705 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
19706 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
19707 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
19708 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
19709 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
19710 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
19711 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
19712 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
19713 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
19714 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
19715 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
19716 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
19717 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
19718 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
19719 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
19720 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
19721 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
19722 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
19723 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
19724 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
19725 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
19726 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
19727 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
19728 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
19729 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
19730 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
19731 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
19732 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
19733 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
19734 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
19735 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
19736 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
19737 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
19738 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
19739 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
19740 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
19741 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
19742 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
19743 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
19744 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
19745 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
19746 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
19747 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
19748 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
19749 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
19750 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
19751 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
19752
19753 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19754
19755 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
19756 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
19757 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
19758 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
19759 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
19760 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
19761 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
19762 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
19763 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
19764 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
19765 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
19766 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
19767 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
19768 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
19769 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
19770 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
19771 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
19772 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
19773 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
19774 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19775 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
19776 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
19777 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
19778 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
19779 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
19780 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
19781 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
19782 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
19783 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
19784 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
19785 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
19786 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
19787 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
19788 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
19789 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
19790 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
19791 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
19792 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
19793 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
19794 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
19795 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
19796 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
19797 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
19798 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
19799 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19800 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19801 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
19802 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
19803 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
19804 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
19805 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
19806 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
19807 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
19808 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
19809 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
19810 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
19811 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
19812 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
19813 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
19814 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19815 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
19816 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19817 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
19818 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19819 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
19820 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
19821 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
19822 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19823 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19824 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19825 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19826 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19827 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
19828 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
19829 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
19830 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
19831 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
19832 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
19833 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
19834 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
19835 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
19836 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19837 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
19838 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
19839 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
19840 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
19841 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
19842 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
19843 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19844 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
19845 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19846 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19847 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
19848 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
19849 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
19850 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
19851 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
19852 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
19853 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
19854 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
19855 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
19856 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
19857 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
19858 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
19859 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
19860 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
19861 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
19862 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
19863 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
19864 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
19865 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
19866 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
19867 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
19868 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
19869 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
19870 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
19871 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
19872 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
19873 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
19874 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
19875 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
19876 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
19877 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
19878 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
19879 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
19880 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
19881 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
19882 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
19883 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
19884 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
19885 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
19886 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
19887 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19888 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
19889 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
19890 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
19891 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
19892 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
19893 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
19894 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
19895 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
19896 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
19897 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
19898 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19899 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19900 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
19901 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
19902 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
19903 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
19904 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
19905 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
19906 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19907 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
19908 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
19909 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
19910 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
19911 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
19912 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19913 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
19914 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
19915 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
19916 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
19917 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
19918 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19919 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
19920 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
19921 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
19922 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
19923 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
19924 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
19925 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
19926 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
19927 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
19928 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
19929 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
19930 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
19931 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
19932 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
19933 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
19934 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
19935 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19936 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19937 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
19938 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19939 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
19940 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
19941 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
19942 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
19943 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
19944 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
19945 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
19946 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
19947 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19948 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
19949 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
19950 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
19951 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
19952 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
19953 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
19954 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
19955 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
19956 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
19957 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
19958 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
19959 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
19960 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
19961 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
19962 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
19963 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
19964 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
19965 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
19966 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
19967 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
19968 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
19969 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
19970 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
19971 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
19972 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
19973 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
19974 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
19975 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
19976 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
19977 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
19978 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
19979 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
19980 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
19981 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
19982 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
19983 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
19984 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
19985 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
19986 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
19987 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
19988 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
19989 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
19990 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
19991 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
19992 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
19993 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
19994 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
19995 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
19996 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
19997 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
19998 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
19999 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
20000 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
20001 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
20002 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
20003 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
20004 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
20005 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
20006 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
20007 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
20008 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20009 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20010 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20011 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20012 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20013 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20014 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20015 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20016 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20017 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20018 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20019 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20020 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20021 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20022 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20023 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20024 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20025 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20026 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20027 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20028 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20029 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20030 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20031 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20032 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20033 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20034 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20035 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20036 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20037 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20038 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20039 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20040 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20041 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20042 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20043 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20044 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20045 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20046 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20047 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20048 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20049 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20050 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20051 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20052 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20053 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20054 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20055
20056 // Work around a chicken/egg problem in drawlist.cpp
20057 wxPyDrawList_SetAPIPtr();
20058
20059 }
20060