]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
Allow embedded double quotes, and hex-encode single quotes. Makes the
[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 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
849 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
850
851 class wxPyFontEnumerator : public wxFontEnumerator {
852 public:
853 wxPyFontEnumerator() {}
854 ~wxPyFontEnumerator() {}
855
856 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
857 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
858
859 PYPRIVATE;
860 };
861
862 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
863 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
864
865
866 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
867 wxArrayString* arr = self->GetEncodings();
868 if (arr)
869 return wxArrayString2PyList_helper(*arr);
870 else
871 return PyList_New(0);
872 }
873 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
874 wxArrayString* arr = self->GetFacenames();
875 if (arr)
876 return wxArrayString2PyList_helper(*arr);
877 else
878 return PyList_New(0);
879 }
880
881
882 wxLocale *new_wxLocale(int language,int flags){
883 if (language == -1)
884 return new wxLocale();
885 else
886 return new wxLocale(language, flags);
887 }
888
889 #include "wx/wxPython/pydrawxxx.h"
890
891 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
892 wxColour col;
893 self->GetPixel(x, y, &col);
894 return col;
895 }
896 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
897 wxColour col;
898 self->GetPixel(pt, &col);
899 return col;
900 }
901
902 // See my_fragments.i
903 SWIGSTATICINLINE(int)
904 SWIG_AsVal_double(PyObject *obj, double* val)
905 {
906 if (PyNumber_Check(obj)) {
907 if (val) *val = PyFloat_AsDouble(obj);
908 return 1;
909 }
910 else {
911 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
912 obj->ob_type->tp_name);
913 PyErr_SetObject(PyExc_TypeError, errmsg);
914 Py_DECREF(errmsg);
915 }
916 return 0;
917 }
918
919
920 SWIGSTATICINLINE(double)
921 SWIG_As_double(PyObject* obj)
922 {
923 double v;
924 if (!SWIG_AsVal_double(obj, &v)) {
925 /*
926 this is needed to make valgrind/purify happier. the other
927 solution is throw an exception, but since this code should work
928 with plain C ....
929 */
930 memset((void*)&v, 0, sizeof(double));
931 }
932 return v;
933 }
934
935
936 SWIGSTATICINLINE(int)
937 SWIG_Check_double(PyObject* obj)
938 {
939 return SWIG_AsVal_double(obj, (double*)0);
940 }
941
942 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
943 wxRect rv;
944 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
945 return rv;
946 }
947
948 wxRect wxDC_GetClippingRect(wxDC *self){
949 wxRect rect;
950 self->GetClippingBox(rect);
951 return rect;
952 }
953 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
954 wxArrayInt widths;
955 self->GetPartialTextExtents(text, widths);
956 return widths;
957 }
958
959 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
960 self->SetLogicalOrigin(point.x, point.y);
961 }
962 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
963 self->SetDeviceOrigin(point.x, point.y);
964 }
965 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
966 self->CalcBoundingBox(point.x, point.y);
967 }
968 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
969 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
970 }
971 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
972 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
973 }
974 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
975 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
976 }
977 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
978 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
979 }
980 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
981 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
982 }
983 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
984 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
985 }
986
987 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
988 *x1 = dc->MinX();
989 *y1 = dc->MinY();
990 *x2 = dc->MaxX();
991 *y2 = dc->MaxY();
992 }
993
994
995 #include <wx/dcbuffer.h>
996
997
998 #include <wx/dcps.h>
999
1000
1001 class wxMetaFile : public wxObject {
1002 public:
1003 wxMetaFile(const wxString&)
1004 { wxPyRaiseNotImplemented(); }
1005 };
1006
1007 class wxMetaFileDC : public wxClientDC {
1008 public:
1009 wxMetaFileDC(const wxString&, int, int, const wxString&)
1010 { wxPyRaiseNotImplemented(); }
1011 };
1012
1013
1014
1015 class wxPrinterDC : public wxClientDC {
1016 public:
1017 wxPrinterDC(const wxPrintData&)
1018 { wxPyRaiseNotImplemented(); }
1019
1020 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
1021 // { wxPyRaiseNotImplemented(); }
1022 };
1023
1024
1025
1026 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1027 self->AddColour(name, wxColour(red, green, blue));
1028 }
1029
1030 #include <wx/effects.h>
1031
1032 #ifdef __cplusplus
1033 extern "C" {
1034 #endif
1035 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1036 PyObject *resultobj;
1037 wxGDIObject *result;
1038 char *kwnames[] = {
1039 NULL
1040 };
1041
1042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1043 {
1044 if (!wxPyCheckForApp()) SWIG_fail;
1045 PyThreadState* __tstate = wxPyBeginAllowThreads();
1046 result = (wxGDIObject *)new wxGDIObject();
1047
1048 wxPyEndAllowThreads(__tstate);
1049 if (PyErr_Occurred()) SWIG_fail;
1050 }
1051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1052 return resultobj;
1053 fail:
1054 return NULL;
1055 }
1056
1057
1058 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1059 PyObject *resultobj;
1060 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1061 PyObject * obj0 = 0 ;
1062 char *kwnames[] = {
1063 (char *) "self", NULL
1064 };
1065
1066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1069 {
1070 PyThreadState* __tstate = wxPyBeginAllowThreads();
1071 delete arg1;
1072
1073 wxPyEndAllowThreads(__tstate);
1074 if (PyErr_Occurred()) SWIG_fail;
1075 }
1076 Py_INCREF(Py_None); resultobj = Py_None;
1077 return resultobj;
1078 fail:
1079 return NULL;
1080 }
1081
1082
1083 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1084 PyObject *resultobj;
1085 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1086 bool result;
1087 PyObject * obj0 = 0 ;
1088 char *kwnames[] = {
1089 (char *) "self", NULL
1090 };
1091
1092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1095 {
1096 PyThreadState* __tstate = wxPyBeginAllowThreads();
1097 result = (bool)(arg1)->GetVisible();
1098
1099 wxPyEndAllowThreads(__tstate);
1100 if (PyErr_Occurred()) SWIG_fail;
1101 }
1102 {
1103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1104 }
1105 return resultobj;
1106 fail:
1107 return NULL;
1108 }
1109
1110
1111 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1112 PyObject *resultobj;
1113 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1114 bool arg2 ;
1115 PyObject * obj0 = 0 ;
1116 PyObject * obj1 = 0 ;
1117 char *kwnames[] = {
1118 (char *) "self",(char *) "visible", NULL
1119 };
1120
1121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1124 arg2 = (bool)SWIG_As_bool(obj1);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 {
1127 PyThreadState* __tstate = wxPyBeginAllowThreads();
1128 (arg1)->SetVisible(arg2);
1129
1130 wxPyEndAllowThreads(__tstate);
1131 if (PyErr_Occurred()) SWIG_fail;
1132 }
1133 Py_INCREF(Py_None); resultobj = Py_None;
1134 return resultobj;
1135 fail:
1136 return NULL;
1137 }
1138
1139
1140 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1141 PyObject *resultobj;
1142 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1143 bool result;
1144 PyObject * obj0 = 0 ;
1145 char *kwnames[] = {
1146 (char *) "self", NULL
1147 };
1148
1149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1152 {
1153 PyThreadState* __tstate = wxPyBeginAllowThreads();
1154 result = (bool)(arg1)->IsNull();
1155
1156 wxPyEndAllowThreads(__tstate);
1157 if (PyErr_Occurred()) SWIG_fail;
1158 }
1159 {
1160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1161 }
1162 return resultobj;
1163 fail:
1164 return NULL;
1165 }
1166
1167
1168 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1169 PyObject *obj;
1170 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1171 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1172 Py_INCREF(obj);
1173 return Py_BuildValue((char *)"");
1174 }
1175 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1176 PyObject *resultobj;
1177 byte arg1 = (byte) 0 ;
1178 byte arg2 = (byte) 0 ;
1179 byte arg3 = (byte) 0 ;
1180 wxColour *result;
1181 PyObject * obj0 = 0 ;
1182 PyObject * obj1 = 0 ;
1183 PyObject * obj2 = 0 ;
1184 char *kwnames[] = {
1185 (char *) "red",(char *) "green",(char *) "blue", NULL
1186 };
1187
1188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1189 if (obj0) {
1190 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
1191 if (PyErr_Occurred()) SWIG_fail;
1192 }
1193 if (obj1) {
1194 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1195 if (PyErr_Occurred()) SWIG_fail;
1196 }
1197 if (obj2) {
1198 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1199 if (PyErr_Occurred()) SWIG_fail;
1200 }
1201 {
1202 PyThreadState* __tstate = wxPyBeginAllowThreads();
1203 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1204
1205 wxPyEndAllowThreads(__tstate);
1206 if (PyErr_Occurred()) SWIG_fail;
1207 }
1208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1209 return resultobj;
1210 fail:
1211 return NULL;
1212 }
1213
1214
1215 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1216 PyObject *resultobj;
1217 wxString *arg1 = 0 ;
1218 wxColour *result;
1219 bool temp1 = false ;
1220 PyObject * obj0 = 0 ;
1221 char *kwnames[] = {
1222 (char *) "colorName", NULL
1223 };
1224
1225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1226 {
1227 arg1 = wxString_in_helper(obj0);
1228 if (arg1 == NULL) SWIG_fail;
1229 temp1 = true;
1230 }
1231 {
1232 if (!wxPyCheckForApp()) SWIG_fail;
1233 PyThreadState* __tstate = wxPyBeginAllowThreads();
1234 result = (wxColour *)new wxColour((wxString const &)*arg1);
1235
1236 wxPyEndAllowThreads(__tstate);
1237 if (PyErr_Occurred()) SWIG_fail;
1238 }
1239 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1240 {
1241 if (temp1)
1242 delete arg1;
1243 }
1244 return resultobj;
1245 fail:
1246 {
1247 if (temp1)
1248 delete arg1;
1249 }
1250 return NULL;
1251 }
1252
1253
1254 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1255 PyObject *resultobj;
1256 unsigned long arg1 ;
1257 wxColour *result;
1258 PyObject * obj0 = 0 ;
1259 char *kwnames[] = {
1260 (char *) "colRGB", NULL
1261 };
1262
1263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1264 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
1265 if (PyErr_Occurred()) SWIG_fail;
1266 {
1267 PyThreadState* __tstate = wxPyBeginAllowThreads();
1268 result = (wxColour *)new wxColour(arg1);
1269
1270 wxPyEndAllowThreads(__tstate);
1271 if (PyErr_Occurred()) SWIG_fail;
1272 }
1273 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1274 return resultobj;
1275 fail:
1276 return NULL;
1277 }
1278
1279
1280 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1281 PyObject *resultobj;
1282 wxColour *arg1 = (wxColour *) 0 ;
1283 PyObject * obj0 = 0 ;
1284 char *kwnames[] = {
1285 (char *) "self", NULL
1286 };
1287
1288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1291 {
1292 PyThreadState* __tstate = wxPyBeginAllowThreads();
1293 delete arg1;
1294
1295 wxPyEndAllowThreads(__tstate);
1296 if (PyErr_Occurred()) SWIG_fail;
1297 }
1298 Py_INCREF(Py_None); resultobj = Py_None;
1299 return resultobj;
1300 fail:
1301 return NULL;
1302 }
1303
1304
1305 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1306 PyObject *resultobj;
1307 wxColour *arg1 = (wxColour *) 0 ;
1308 byte result;
1309 PyObject * obj0 = 0 ;
1310 char *kwnames[] = {
1311 (char *) "self", NULL
1312 };
1313
1314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1317 {
1318 PyThreadState* __tstate = wxPyBeginAllowThreads();
1319 result = (byte)(arg1)->Red();
1320
1321 wxPyEndAllowThreads(__tstate);
1322 if (PyErr_Occurred()) SWIG_fail;
1323 }
1324 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1325 return resultobj;
1326 fail:
1327 return NULL;
1328 }
1329
1330
1331 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1332 PyObject *resultobj;
1333 wxColour *arg1 = (wxColour *) 0 ;
1334 byte result;
1335 PyObject * obj0 = 0 ;
1336 char *kwnames[] = {
1337 (char *) "self", NULL
1338 };
1339
1340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1343 {
1344 PyThreadState* __tstate = wxPyBeginAllowThreads();
1345 result = (byte)(arg1)->Green();
1346
1347 wxPyEndAllowThreads(__tstate);
1348 if (PyErr_Occurred()) SWIG_fail;
1349 }
1350 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1351 return resultobj;
1352 fail:
1353 return NULL;
1354 }
1355
1356
1357 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1358 PyObject *resultobj;
1359 wxColour *arg1 = (wxColour *) 0 ;
1360 byte result;
1361 PyObject * obj0 = 0 ;
1362 char *kwnames[] = {
1363 (char *) "self", NULL
1364 };
1365
1366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1369 {
1370 PyThreadState* __tstate = wxPyBeginAllowThreads();
1371 result = (byte)(arg1)->Blue();
1372
1373 wxPyEndAllowThreads(__tstate);
1374 if (PyErr_Occurred()) SWIG_fail;
1375 }
1376 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1377 return resultobj;
1378 fail:
1379 return NULL;
1380 }
1381
1382
1383 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1384 PyObject *resultobj;
1385 wxColour *arg1 = (wxColour *) 0 ;
1386 bool result;
1387 PyObject * obj0 = 0 ;
1388 char *kwnames[] = {
1389 (char *) "self", NULL
1390 };
1391
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1395 {
1396 PyThreadState* __tstate = wxPyBeginAllowThreads();
1397 result = (bool)(arg1)->Ok();
1398
1399 wxPyEndAllowThreads(__tstate);
1400 if (PyErr_Occurred()) SWIG_fail;
1401 }
1402 {
1403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1404 }
1405 return resultobj;
1406 fail:
1407 return NULL;
1408 }
1409
1410
1411 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1412 PyObject *resultobj;
1413 wxColour *arg1 = (wxColour *) 0 ;
1414 byte arg2 ;
1415 byte arg3 ;
1416 byte arg4 ;
1417 PyObject * obj0 = 0 ;
1418 PyObject * obj1 = 0 ;
1419 PyObject * obj2 = 0 ;
1420 PyObject * obj3 = 0 ;
1421 char *kwnames[] = {
1422 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1423 };
1424
1425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1428 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1429 if (PyErr_Occurred()) SWIG_fail;
1430 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1431 if (PyErr_Occurred()) SWIG_fail;
1432 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1433 if (PyErr_Occurred()) SWIG_fail;
1434 {
1435 PyThreadState* __tstate = wxPyBeginAllowThreads();
1436 (arg1)->Set(arg2,arg3,arg4);
1437
1438 wxPyEndAllowThreads(__tstate);
1439 if (PyErr_Occurred()) SWIG_fail;
1440 }
1441 Py_INCREF(Py_None); resultobj = Py_None;
1442 return resultobj;
1443 fail:
1444 return NULL;
1445 }
1446
1447
1448 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1449 PyObject *resultobj;
1450 wxColour *arg1 = (wxColour *) 0 ;
1451 unsigned long arg2 ;
1452 PyObject * obj0 = 0 ;
1453 PyObject * obj1 = 0 ;
1454 char *kwnames[] = {
1455 (char *) "self",(char *) "colRGB", NULL
1456 };
1457
1458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1461 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
1462 if (PyErr_Occurred()) SWIG_fail;
1463 {
1464 PyThreadState* __tstate = wxPyBeginAllowThreads();
1465 (arg1)->Set(arg2);
1466
1467 wxPyEndAllowThreads(__tstate);
1468 if (PyErr_Occurred()) SWIG_fail;
1469 }
1470 Py_INCREF(Py_None); resultobj = Py_None;
1471 return resultobj;
1472 fail:
1473 return NULL;
1474 }
1475
1476
1477 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1478 PyObject *resultobj;
1479 wxColour *arg1 = (wxColour *) 0 ;
1480 wxString *arg2 = 0 ;
1481 bool temp2 = false ;
1482 PyObject * obj0 = 0 ;
1483 PyObject * obj1 = 0 ;
1484 char *kwnames[] = {
1485 (char *) "self",(char *) "colourName", NULL
1486 };
1487
1488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1491 {
1492 arg2 = wxString_in_helper(obj1);
1493 if (arg2 == NULL) SWIG_fail;
1494 temp2 = true;
1495 }
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 (arg1)->InitFromName((wxString const &)*arg2);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
1503 Py_INCREF(Py_None); resultobj = Py_None;
1504 {
1505 if (temp2)
1506 delete arg2;
1507 }
1508 return resultobj;
1509 fail:
1510 {
1511 if (temp2)
1512 delete arg2;
1513 }
1514 return NULL;
1515 }
1516
1517
1518 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1519 PyObject *resultobj;
1520 wxColour *arg1 = (wxColour *) 0 ;
1521 long result;
1522 PyObject * obj0 = 0 ;
1523 char *kwnames[] = {
1524 (char *) "self", NULL
1525 };
1526
1527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1530 {
1531 PyThreadState* __tstate = wxPyBeginAllowThreads();
1532 result = (long)((wxColour const *)arg1)->GetPixel();
1533
1534 wxPyEndAllowThreads(__tstate);
1535 if (PyErr_Occurred()) SWIG_fail;
1536 }
1537 resultobj = SWIG_From_long((long)result);
1538 return resultobj;
1539 fail:
1540 return NULL;
1541 }
1542
1543
1544 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1545 PyObject *resultobj;
1546 wxColour *arg1 = (wxColour *) 0 ;
1547 wxColour *arg2 = 0 ;
1548 bool result;
1549 wxColour temp2 ;
1550 PyObject * obj0 = 0 ;
1551 PyObject * obj1 = 0 ;
1552 char *kwnames[] = {
1553 (char *) "self",(char *) "colour", NULL
1554 };
1555
1556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1559 {
1560 arg2 = &temp2;
1561 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1562 }
1563 {
1564 PyThreadState* __tstate = wxPyBeginAllowThreads();
1565 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1566
1567 wxPyEndAllowThreads(__tstate);
1568 if (PyErr_Occurred()) SWIG_fail;
1569 }
1570 {
1571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1572 }
1573 return resultobj;
1574 fail:
1575 return NULL;
1576 }
1577
1578
1579 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1580 PyObject *resultobj;
1581 wxColour *arg1 = (wxColour *) 0 ;
1582 wxColour *arg2 = 0 ;
1583 bool result;
1584 wxColour temp2 ;
1585 PyObject * obj0 = 0 ;
1586 PyObject * obj1 = 0 ;
1587 char *kwnames[] = {
1588 (char *) "self",(char *) "colour", NULL
1589 };
1590
1591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1594 {
1595 arg2 = &temp2;
1596 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1597 }
1598 {
1599 PyThreadState* __tstate = wxPyBeginAllowThreads();
1600 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1601
1602 wxPyEndAllowThreads(__tstate);
1603 if (PyErr_Occurred()) SWIG_fail;
1604 }
1605 {
1606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1607 }
1608 return resultobj;
1609 fail:
1610 return NULL;
1611 }
1612
1613
1614 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1615 PyObject *resultobj;
1616 wxColour *arg1 = (wxColour *) 0 ;
1617 PyObject *result;
1618 PyObject * obj0 = 0 ;
1619 char *kwnames[] = {
1620 (char *) "self", NULL
1621 };
1622
1623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1626 {
1627 PyThreadState* __tstate = wxPyBeginAllowThreads();
1628 result = (PyObject *)wxColour_Get(arg1);
1629
1630 wxPyEndAllowThreads(__tstate);
1631 if (PyErr_Occurred()) SWIG_fail;
1632 }
1633 resultobj = result;
1634 return resultobj;
1635 fail:
1636 return NULL;
1637 }
1638
1639
1640 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1641 PyObject *resultobj;
1642 wxColour *arg1 = (wxColour *) 0 ;
1643 unsigned long result;
1644 PyObject * obj0 = 0 ;
1645 char *kwnames[] = {
1646 (char *) "self", NULL
1647 };
1648
1649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1652 {
1653 PyThreadState* __tstate = wxPyBeginAllowThreads();
1654 result = (unsigned long)wxColour_GetRGB(arg1);
1655
1656 wxPyEndAllowThreads(__tstate);
1657 if (PyErr_Occurred()) SWIG_fail;
1658 }
1659 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
1660 return resultobj;
1661 fail:
1662 return NULL;
1663 }
1664
1665
1666 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1667 PyObject *obj;
1668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1669 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1670 Py_INCREF(obj);
1671 return Py_BuildValue((char *)"");
1672 }
1673 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1674 PyObject *resultobj;
1675 int arg1 ;
1676 unsigned char *arg2 = (unsigned char *) 0 ;
1677 unsigned char *arg3 = (unsigned char *) 0 ;
1678 unsigned char *arg4 = (unsigned char *) 0 ;
1679 wxPalette *result;
1680 PyObject * obj0 = 0 ;
1681 PyObject * obj1 = 0 ;
1682 PyObject * obj2 = 0 ;
1683 PyObject * obj3 = 0 ;
1684 char *kwnames[] = {
1685 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1686 };
1687
1688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1689 arg1 = (int)SWIG_As_int(obj0);
1690 if (PyErr_Occurred()) SWIG_fail;
1691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1693 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1695 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1697 {
1698 if (!wxPyCheckForApp()) SWIG_fail;
1699 PyThreadState* __tstate = wxPyBeginAllowThreads();
1700 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1701
1702 wxPyEndAllowThreads(__tstate);
1703 if (PyErr_Occurred()) SWIG_fail;
1704 }
1705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1706 return resultobj;
1707 fail:
1708 return NULL;
1709 }
1710
1711
1712 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1713 PyObject *resultobj;
1714 wxPalette *arg1 = (wxPalette *) 0 ;
1715 PyObject * obj0 = 0 ;
1716 char *kwnames[] = {
1717 (char *) "self", NULL
1718 };
1719
1720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1723 {
1724 PyThreadState* __tstate = wxPyBeginAllowThreads();
1725 delete arg1;
1726
1727 wxPyEndAllowThreads(__tstate);
1728 if (PyErr_Occurred()) SWIG_fail;
1729 }
1730 Py_INCREF(Py_None); resultobj = Py_None;
1731 return resultobj;
1732 fail:
1733 return NULL;
1734 }
1735
1736
1737 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1738 PyObject *resultobj;
1739 wxPalette *arg1 = (wxPalette *) 0 ;
1740 byte arg2 ;
1741 byte arg3 ;
1742 byte arg4 ;
1743 int result;
1744 PyObject * obj0 = 0 ;
1745 PyObject * obj1 = 0 ;
1746 PyObject * obj2 = 0 ;
1747 PyObject * obj3 = 0 ;
1748 char *kwnames[] = {
1749 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1750 };
1751
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1755 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1756 if (PyErr_Occurred()) SWIG_fail;
1757 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1758 if (PyErr_Occurred()) SWIG_fail;
1759 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1760 if (PyErr_Occurred()) SWIG_fail;
1761 {
1762 PyThreadState* __tstate = wxPyBeginAllowThreads();
1763 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1764
1765 wxPyEndAllowThreads(__tstate);
1766 if (PyErr_Occurred()) SWIG_fail;
1767 }
1768 resultobj = SWIG_From_int((int)result);
1769 return resultobj;
1770 fail:
1771 return NULL;
1772 }
1773
1774
1775 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1776 PyObject *resultobj;
1777 wxPalette *arg1 = (wxPalette *) 0 ;
1778 int arg2 ;
1779 byte *arg3 = (byte *) 0 ;
1780 byte *arg4 = (byte *) 0 ;
1781 byte *arg5 = (byte *) 0 ;
1782 bool result;
1783 byte temp3 ;
1784 int res3 = 0 ;
1785 byte temp4 ;
1786 int res4 = 0 ;
1787 byte temp5 ;
1788 int res5 = 0 ;
1789 PyObject * obj0 = 0 ;
1790 PyObject * obj1 = 0 ;
1791 char *kwnames[] = {
1792 (char *) "self",(char *) "pixel", NULL
1793 };
1794
1795 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1796 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1797 arg5 = &temp5; res5 = SWIG_NEWOBJ;
1798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1801 arg2 = (int)SWIG_As_int(obj1);
1802 if (PyErr_Occurred()) SWIG_fail;
1803 {
1804 PyThreadState* __tstate = wxPyBeginAllowThreads();
1805 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1806
1807 wxPyEndAllowThreads(__tstate);
1808 if (PyErr_Occurred()) SWIG_fail;
1809 }
1810 {
1811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1812 }
1813 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1814 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1815 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1816 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1817 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1818 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
1819 return resultobj;
1820 fail:
1821 return NULL;
1822 }
1823
1824
1825 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1826 PyObject *resultobj;
1827 wxPalette *arg1 = (wxPalette *) 0 ;
1828 bool result;
1829 PyObject * obj0 = 0 ;
1830 char *kwnames[] = {
1831 (char *) "self", NULL
1832 };
1833
1834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1837 {
1838 PyThreadState* __tstate = wxPyBeginAllowThreads();
1839 result = (bool)(arg1)->Ok();
1840
1841 wxPyEndAllowThreads(__tstate);
1842 if (PyErr_Occurred()) SWIG_fail;
1843 }
1844 {
1845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1846 }
1847 return resultobj;
1848 fail:
1849 return NULL;
1850 }
1851
1852
1853 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1854 PyObject *obj;
1855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1856 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1857 Py_INCREF(obj);
1858 return Py_BuildValue((char *)"");
1859 }
1860 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1861 PyObject *resultobj;
1862 wxColour *arg1 = 0 ;
1863 int arg2 = (int) 1 ;
1864 int arg3 = (int) wxSOLID ;
1865 wxPen *result;
1866 wxColour temp1 ;
1867 PyObject * obj0 = 0 ;
1868 PyObject * obj1 = 0 ;
1869 PyObject * obj2 = 0 ;
1870 char *kwnames[] = {
1871 (char *) "colour",(char *) "width",(char *) "style", NULL
1872 };
1873
1874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1875 {
1876 arg1 = &temp1;
1877 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1878 }
1879 if (obj1) {
1880 arg2 = (int)SWIG_As_int(obj1);
1881 if (PyErr_Occurred()) SWIG_fail;
1882 }
1883 if (obj2) {
1884 arg3 = (int)SWIG_As_int(obj2);
1885 if (PyErr_Occurred()) SWIG_fail;
1886 }
1887 {
1888 if (!wxPyCheckForApp()) SWIG_fail;
1889 PyThreadState* __tstate = wxPyBeginAllowThreads();
1890 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1891
1892 wxPyEndAllowThreads(__tstate);
1893 if (PyErr_Occurred()) SWIG_fail;
1894 }
1895 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1896 return resultobj;
1897 fail:
1898 return NULL;
1899 }
1900
1901
1902 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxPen *arg1 = (wxPen *) 0 ;
1905 PyObject * obj0 = 0 ;
1906 char *kwnames[] = {
1907 (char *) "self", NULL
1908 };
1909
1910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1913 {
1914 PyThreadState* __tstate = wxPyBeginAllowThreads();
1915 delete arg1;
1916
1917 wxPyEndAllowThreads(__tstate);
1918 if (PyErr_Occurred()) SWIG_fail;
1919 }
1920 Py_INCREF(Py_None); resultobj = Py_None;
1921 return resultobj;
1922 fail:
1923 return NULL;
1924 }
1925
1926
1927 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1928 PyObject *resultobj;
1929 wxPen *arg1 = (wxPen *) 0 ;
1930 int result;
1931 PyObject * obj0 = 0 ;
1932 char *kwnames[] = {
1933 (char *) "self", NULL
1934 };
1935
1936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1939 {
1940 PyThreadState* __tstate = wxPyBeginAllowThreads();
1941 result = (int)(arg1)->GetCap();
1942
1943 wxPyEndAllowThreads(__tstate);
1944 if (PyErr_Occurred()) SWIG_fail;
1945 }
1946 resultobj = SWIG_From_int((int)result);
1947 return resultobj;
1948 fail:
1949 return NULL;
1950 }
1951
1952
1953 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1954 PyObject *resultobj;
1955 wxPen *arg1 = (wxPen *) 0 ;
1956 wxColour result;
1957 PyObject * obj0 = 0 ;
1958 char *kwnames[] = {
1959 (char *) "self", NULL
1960 };
1961
1962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1965 {
1966 PyThreadState* __tstate = wxPyBeginAllowThreads();
1967 result = (arg1)->GetColour();
1968
1969 wxPyEndAllowThreads(__tstate);
1970 if (PyErr_Occurred()) SWIG_fail;
1971 }
1972 {
1973 wxColour * resultptr;
1974 resultptr = new wxColour((wxColour &) result);
1975 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1976 }
1977 return resultobj;
1978 fail:
1979 return NULL;
1980 }
1981
1982
1983 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
1984 PyObject *resultobj;
1985 wxPen *arg1 = (wxPen *) 0 ;
1986 int result;
1987 PyObject * obj0 = 0 ;
1988 char *kwnames[] = {
1989 (char *) "self", NULL
1990 };
1991
1992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1995 {
1996 PyThreadState* __tstate = wxPyBeginAllowThreads();
1997 result = (int)(arg1)->GetJoin();
1998
1999 wxPyEndAllowThreads(__tstate);
2000 if (PyErr_Occurred()) SWIG_fail;
2001 }
2002 resultobj = SWIG_From_int((int)result);
2003 return resultobj;
2004 fail:
2005 return NULL;
2006 }
2007
2008
2009 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2010 PyObject *resultobj;
2011 wxPen *arg1 = (wxPen *) 0 ;
2012 int result;
2013 PyObject * obj0 = 0 ;
2014 char *kwnames[] = {
2015 (char *) "self", NULL
2016 };
2017
2018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2021 {
2022 PyThreadState* __tstate = wxPyBeginAllowThreads();
2023 result = (int)(arg1)->GetStyle();
2024
2025 wxPyEndAllowThreads(__tstate);
2026 if (PyErr_Occurred()) SWIG_fail;
2027 }
2028 resultobj = SWIG_From_int((int)result);
2029 return resultobj;
2030 fail:
2031 return NULL;
2032 }
2033
2034
2035 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2036 PyObject *resultobj;
2037 wxPen *arg1 = (wxPen *) 0 ;
2038 int result;
2039 PyObject * obj0 = 0 ;
2040 char *kwnames[] = {
2041 (char *) "self", NULL
2042 };
2043
2044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2047 {
2048 PyThreadState* __tstate = wxPyBeginAllowThreads();
2049 result = (int)(arg1)->GetWidth();
2050
2051 wxPyEndAllowThreads(__tstate);
2052 if (PyErr_Occurred()) SWIG_fail;
2053 }
2054 resultobj = SWIG_From_int((int)result);
2055 return resultobj;
2056 fail:
2057 return NULL;
2058 }
2059
2060
2061 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2062 PyObject *resultobj;
2063 wxPen *arg1 = (wxPen *) 0 ;
2064 bool result;
2065 PyObject * obj0 = 0 ;
2066 char *kwnames[] = {
2067 (char *) "self", NULL
2068 };
2069
2070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2073 {
2074 PyThreadState* __tstate = wxPyBeginAllowThreads();
2075 result = (bool)(arg1)->Ok();
2076
2077 wxPyEndAllowThreads(__tstate);
2078 if (PyErr_Occurred()) SWIG_fail;
2079 }
2080 {
2081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2082 }
2083 return resultobj;
2084 fail:
2085 return NULL;
2086 }
2087
2088
2089 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2090 PyObject *resultobj;
2091 wxPen *arg1 = (wxPen *) 0 ;
2092 int arg2 ;
2093 PyObject * obj0 = 0 ;
2094 PyObject * obj1 = 0 ;
2095 char *kwnames[] = {
2096 (char *) "self",(char *) "cap_style", NULL
2097 };
2098
2099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2102 arg2 = (int)SWIG_As_int(obj1);
2103 if (PyErr_Occurred()) SWIG_fail;
2104 {
2105 PyThreadState* __tstate = wxPyBeginAllowThreads();
2106 (arg1)->SetCap(arg2);
2107
2108 wxPyEndAllowThreads(__tstate);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 }
2111 Py_INCREF(Py_None); resultobj = Py_None;
2112 return resultobj;
2113 fail:
2114 return NULL;
2115 }
2116
2117
2118 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2119 PyObject *resultobj;
2120 wxPen *arg1 = (wxPen *) 0 ;
2121 wxColour *arg2 = 0 ;
2122 wxColour temp2 ;
2123 PyObject * obj0 = 0 ;
2124 PyObject * obj1 = 0 ;
2125 char *kwnames[] = {
2126 (char *) "self",(char *) "colour", NULL
2127 };
2128
2129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2132 {
2133 arg2 = &temp2;
2134 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2135 }
2136 {
2137 PyThreadState* __tstate = wxPyBeginAllowThreads();
2138 (arg1)->SetColour(*arg2);
2139
2140 wxPyEndAllowThreads(__tstate);
2141 if (PyErr_Occurred()) SWIG_fail;
2142 }
2143 Py_INCREF(Py_None); resultobj = Py_None;
2144 return resultobj;
2145 fail:
2146 return NULL;
2147 }
2148
2149
2150 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2151 PyObject *resultobj;
2152 wxPen *arg1 = (wxPen *) 0 ;
2153 int arg2 ;
2154 PyObject * obj0 = 0 ;
2155 PyObject * obj1 = 0 ;
2156 char *kwnames[] = {
2157 (char *) "self",(char *) "join_style", NULL
2158 };
2159
2160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2163 arg2 = (int)SWIG_As_int(obj1);
2164 if (PyErr_Occurred()) SWIG_fail;
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 (arg1)->SetJoin(arg2);
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 Py_INCREF(Py_None); resultobj = Py_None;
2173 return resultobj;
2174 fail:
2175 return NULL;
2176 }
2177
2178
2179 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2180 PyObject *resultobj;
2181 wxPen *arg1 = (wxPen *) 0 ;
2182 int arg2 ;
2183 PyObject * obj0 = 0 ;
2184 PyObject * obj1 = 0 ;
2185 char *kwnames[] = {
2186 (char *) "self",(char *) "style", NULL
2187 };
2188
2189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2192 arg2 = (int)SWIG_As_int(obj1);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 {
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 (arg1)->SetStyle(arg2);
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 Py_INCREF(Py_None); resultobj = Py_None;
2202 return resultobj;
2203 fail:
2204 return NULL;
2205 }
2206
2207
2208 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2209 PyObject *resultobj;
2210 wxPen *arg1 = (wxPen *) 0 ;
2211 int arg2 ;
2212 PyObject * obj0 = 0 ;
2213 PyObject * obj1 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "self",(char *) "width", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2221 arg2 = (int)SWIG_As_int(obj1);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 {
2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
2225 (arg1)->SetWidth(arg2);
2226
2227 wxPyEndAllowThreads(__tstate);
2228 if (PyErr_Occurred()) SWIG_fail;
2229 }
2230 Py_INCREF(Py_None); resultobj = Py_None;
2231 return resultobj;
2232 fail:
2233 return NULL;
2234 }
2235
2236
2237 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2238 PyObject *resultobj;
2239 wxPen *arg1 = (wxPen *) 0 ;
2240 int arg2 ;
2241 wxDash *arg3 = (wxDash *) 0 ;
2242 PyObject * obj0 = 0 ;
2243 PyObject * obj1 = 0 ;
2244 char *kwnames[] = {
2245 (char *) "self",(char *) "dashes", NULL
2246 };
2247
2248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2251 {
2252 arg2 = PyList_Size(obj1);
2253 arg3 = (wxDash*)byte_LIST_helper(obj1);
2254 if (arg3 == NULL) SWIG_fail;
2255 }
2256 {
2257 PyThreadState* __tstate = wxPyBeginAllowThreads();
2258 (arg1)->SetDashes(arg2,arg3);
2259
2260 wxPyEndAllowThreads(__tstate);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 }
2263 Py_INCREF(Py_None); resultobj = Py_None;
2264 {
2265 if (arg3) delete [] arg3;
2266 }
2267 return resultobj;
2268 fail:
2269 {
2270 if (arg3) delete [] arg3;
2271 }
2272 return NULL;
2273 }
2274
2275
2276 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2277 PyObject *resultobj;
2278 wxPen *arg1 = (wxPen *) 0 ;
2279 PyObject *result;
2280 PyObject * obj0 = 0 ;
2281 char *kwnames[] = {
2282 (char *) "self", NULL
2283 };
2284
2285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2288 {
2289 PyThreadState* __tstate = wxPyBeginAllowThreads();
2290 result = (PyObject *)wxPen_GetDashes(arg1);
2291
2292 wxPyEndAllowThreads(__tstate);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 }
2295 resultobj = result;
2296 return resultobj;
2297 fail:
2298 return NULL;
2299 }
2300
2301
2302 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2303 PyObject *resultobj;
2304 wxPen *arg1 = (wxPen *) 0 ;
2305 PyObject *arg2 = (PyObject *) 0 ;
2306 PyObject *arg3 = (PyObject *) 0 ;
2307 PyObject * obj0 = 0 ;
2308 PyObject * obj1 = 0 ;
2309 PyObject * obj2 = 0 ;
2310 char *kwnames[] = {
2311 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2312 };
2313
2314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2317 arg2 = obj1;
2318 arg3 = obj2;
2319 {
2320 PyThreadState* __tstate = wxPyBeginAllowThreads();
2321 wxPen__SetDashes(arg1,arg2,arg3);
2322
2323 wxPyEndAllowThreads(__tstate);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 }
2326 Py_INCREF(Py_None); resultobj = Py_None;
2327 return resultobj;
2328 fail:
2329 return NULL;
2330 }
2331
2332
2333 static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
2334 PyObject *resultobj;
2335 wxPen *arg1 = (wxPen *) 0 ;
2336 int result;
2337 PyObject * obj0 = 0 ;
2338 char *kwnames[] = {
2339 (char *) "self", NULL
2340 };
2341
2342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2345 {
2346 PyThreadState* __tstate = wxPyBeginAllowThreads();
2347 result = (int)((wxPen const *)arg1)->GetDashCount();
2348
2349 wxPyEndAllowThreads(__tstate);
2350 if (PyErr_Occurred()) SWIG_fail;
2351 }
2352 resultobj = SWIG_From_int((int)result);
2353 return resultobj;
2354 fail:
2355 return NULL;
2356 }
2357
2358
2359 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2360 PyObject *resultobj;
2361 wxPen *arg1 = (wxPen *) 0 ;
2362 wxPen *arg2 = (wxPen *) 0 ;
2363 bool result;
2364 PyObject * obj0 = 0 ;
2365 PyObject * obj1 = 0 ;
2366 char *kwnames[] = {
2367 (char *) "self",(char *) "other", NULL
2368 };
2369
2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2373 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2375 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) SWIG_fail;
2381 }
2382 {
2383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2384 }
2385 return resultobj;
2386 fail:
2387 return NULL;
2388 }
2389
2390
2391 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2392 PyObject *resultobj;
2393 wxPen *arg1 = (wxPen *) 0 ;
2394 wxPen *arg2 = (wxPen *) 0 ;
2395 bool result;
2396 PyObject * obj0 = 0 ;
2397 PyObject * obj1 = 0 ;
2398 char *kwnames[] = {
2399 (char *) "self",(char *) "other", NULL
2400 };
2401
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2407 {
2408 PyThreadState* __tstate = wxPyBeginAllowThreads();
2409 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2410
2411 wxPyEndAllowThreads(__tstate);
2412 if (PyErr_Occurred()) SWIG_fail;
2413 }
2414 {
2415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2416 }
2417 return resultobj;
2418 fail:
2419 return NULL;
2420 }
2421
2422
2423 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2424 PyObject *obj;
2425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2426 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2427 Py_INCREF(obj);
2428 return Py_BuildValue((char *)"");
2429 }
2430 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2431 PyObject *resultobj;
2432 wxColour *arg1 = 0 ;
2433 int arg2 = (int) wxSOLID ;
2434 wxBrush *result;
2435 wxColour temp1 ;
2436 PyObject * obj0 = 0 ;
2437 PyObject * obj1 = 0 ;
2438 char *kwnames[] = {
2439 (char *) "colour",(char *) "style", NULL
2440 };
2441
2442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2443 {
2444 arg1 = &temp1;
2445 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2446 }
2447 if (obj1) {
2448 arg2 = (int)SWIG_As_int(obj1);
2449 if (PyErr_Occurred()) SWIG_fail;
2450 }
2451 {
2452 if (!wxPyCheckForApp()) SWIG_fail;
2453 PyThreadState* __tstate = wxPyBeginAllowThreads();
2454 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2455
2456 wxPyEndAllowThreads(__tstate);
2457 if (PyErr_Occurred()) SWIG_fail;
2458 }
2459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2460 return resultobj;
2461 fail:
2462 return NULL;
2463 }
2464
2465
2466 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2467 PyObject *resultobj;
2468 wxBrush *arg1 = (wxBrush *) 0 ;
2469 PyObject * obj0 = 0 ;
2470 char *kwnames[] = {
2471 (char *) "self", NULL
2472 };
2473
2474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2477 {
2478 PyThreadState* __tstate = wxPyBeginAllowThreads();
2479 delete arg1;
2480
2481 wxPyEndAllowThreads(__tstate);
2482 if (PyErr_Occurred()) SWIG_fail;
2483 }
2484 Py_INCREF(Py_None); resultobj = Py_None;
2485 return resultobj;
2486 fail:
2487 return NULL;
2488 }
2489
2490
2491 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2492 PyObject *resultobj;
2493 wxBrush *arg1 = (wxBrush *) 0 ;
2494 wxColour *arg2 = 0 ;
2495 wxColour temp2 ;
2496 PyObject * obj0 = 0 ;
2497 PyObject * obj1 = 0 ;
2498 char *kwnames[] = {
2499 (char *) "self",(char *) "col", NULL
2500 };
2501
2502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2505 {
2506 arg2 = &temp2;
2507 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2508 }
2509 {
2510 PyThreadState* __tstate = wxPyBeginAllowThreads();
2511 (arg1)->SetColour((wxColour const &)*arg2);
2512
2513 wxPyEndAllowThreads(__tstate);
2514 if (PyErr_Occurred()) SWIG_fail;
2515 }
2516 Py_INCREF(Py_None); resultobj = Py_None;
2517 return resultobj;
2518 fail:
2519 return NULL;
2520 }
2521
2522
2523 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2524 PyObject *resultobj;
2525 wxBrush *arg1 = (wxBrush *) 0 ;
2526 int arg2 ;
2527 PyObject * obj0 = 0 ;
2528 PyObject * obj1 = 0 ;
2529 char *kwnames[] = {
2530 (char *) "self",(char *) "style", NULL
2531 };
2532
2533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2536 arg2 = (int)SWIG_As_int(obj1);
2537 if (PyErr_Occurred()) SWIG_fail;
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 (arg1)->SetStyle(arg2);
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 }
2545 Py_INCREF(Py_None); resultobj = Py_None;
2546 return resultobj;
2547 fail:
2548 return NULL;
2549 }
2550
2551
2552 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2553 PyObject *resultobj;
2554 wxBrush *arg1 = (wxBrush *) 0 ;
2555 wxBitmap *arg2 = 0 ;
2556 PyObject * obj0 = 0 ;
2557 PyObject * obj1 = 0 ;
2558 char *kwnames[] = {
2559 (char *) "self",(char *) "stipple", NULL
2560 };
2561
2562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2565 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2566 SWIG_POINTER_EXCEPTION | 0)) == -1)
2567 SWIG_fail;
2568 if (arg2 == NULL) {
2569 PyErr_SetString(PyExc_TypeError,"null reference");
2570 SWIG_fail;
2571 }
2572 {
2573 PyThreadState* __tstate = wxPyBeginAllowThreads();
2574 (arg1)->SetStipple((wxBitmap const &)*arg2);
2575
2576 wxPyEndAllowThreads(__tstate);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 }
2579 Py_INCREF(Py_None); resultobj = Py_None;
2580 return resultobj;
2581 fail:
2582 return NULL;
2583 }
2584
2585
2586 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2587 PyObject *resultobj;
2588 wxBrush *arg1 = (wxBrush *) 0 ;
2589 wxColour result;
2590 PyObject * obj0 = 0 ;
2591 char *kwnames[] = {
2592 (char *) "self", NULL
2593 };
2594
2595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2598 {
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
2600 result = ((wxBrush const *)arg1)->GetColour();
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) SWIG_fail;
2604 }
2605 {
2606 wxColour * resultptr;
2607 resultptr = new wxColour((wxColour &) result);
2608 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2609 }
2610 return resultobj;
2611 fail:
2612 return NULL;
2613 }
2614
2615
2616 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2617 PyObject *resultobj;
2618 wxBrush *arg1 = (wxBrush *) 0 ;
2619 int result;
2620 PyObject * obj0 = 0 ;
2621 char *kwnames[] = {
2622 (char *) "self", NULL
2623 };
2624
2625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2628 {
2629 PyThreadState* __tstate = wxPyBeginAllowThreads();
2630 result = (int)((wxBrush const *)arg1)->GetStyle();
2631
2632 wxPyEndAllowThreads(__tstate);
2633 if (PyErr_Occurred()) SWIG_fail;
2634 }
2635 resultobj = SWIG_From_int((int)result);
2636 return resultobj;
2637 fail:
2638 return NULL;
2639 }
2640
2641
2642 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2643 PyObject *resultobj;
2644 wxBrush *arg1 = (wxBrush *) 0 ;
2645 wxBitmap *result;
2646 PyObject * obj0 = 0 ;
2647 char *kwnames[] = {
2648 (char *) "self", NULL
2649 };
2650
2651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2654 {
2655 PyThreadState* __tstate = wxPyBeginAllowThreads();
2656 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2657
2658 wxPyEndAllowThreads(__tstate);
2659 if (PyErr_Occurred()) SWIG_fail;
2660 }
2661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2662 return resultobj;
2663 fail:
2664 return NULL;
2665 }
2666
2667
2668 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2669 PyObject *resultobj;
2670 wxBrush *arg1 = (wxBrush *) 0 ;
2671 bool result;
2672 PyObject * obj0 = 0 ;
2673 char *kwnames[] = {
2674 (char *) "self", NULL
2675 };
2676
2677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2680 {
2681 PyThreadState* __tstate = wxPyBeginAllowThreads();
2682 result = (bool)(arg1)->Ok();
2683
2684 wxPyEndAllowThreads(__tstate);
2685 if (PyErr_Occurred()) SWIG_fail;
2686 }
2687 {
2688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2689 }
2690 return resultobj;
2691 fail:
2692 return NULL;
2693 }
2694
2695
2696 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2697 PyObject *obj;
2698 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2699 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2700 Py_INCREF(obj);
2701 return Py_BuildValue((char *)"");
2702 }
2703 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2704 PyObject *resultobj;
2705 wxString *arg1 = 0 ;
2706 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2707 wxBitmap *result;
2708 bool temp1 = false ;
2709 PyObject * obj0 = 0 ;
2710 PyObject * obj1 = 0 ;
2711 char *kwnames[] = {
2712 (char *) "name",(char *) "type", NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2716 {
2717 arg1 = wxString_in_helper(obj0);
2718 if (arg1 == NULL) SWIG_fail;
2719 temp1 = true;
2720 }
2721 if (obj1) {
2722 arg2 = (int)SWIG_As_int(obj1);
2723 if (PyErr_Occurred()) SWIG_fail;
2724 }
2725 {
2726 if (!wxPyCheckForApp()) SWIG_fail;
2727 PyThreadState* __tstate = wxPyBeginAllowThreads();
2728 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2729
2730 wxPyEndAllowThreads(__tstate);
2731 if (PyErr_Occurred()) SWIG_fail;
2732 }
2733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2734 {
2735 if (temp1)
2736 delete arg1;
2737 }
2738 return resultobj;
2739 fail:
2740 {
2741 if (temp1)
2742 delete arg1;
2743 }
2744 return NULL;
2745 }
2746
2747
2748 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2749 PyObject *resultobj;
2750 wxBitmap *arg1 = (wxBitmap *) 0 ;
2751 PyObject * obj0 = 0 ;
2752 char *kwnames[] = {
2753 (char *) "self", NULL
2754 };
2755
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2759 {
2760 PyThreadState* __tstate = wxPyBeginAllowThreads();
2761 delete arg1;
2762
2763 wxPyEndAllowThreads(__tstate);
2764 if (PyErr_Occurred()) SWIG_fail;
2765 }
2766 Py_INCREF(Py_None); resultobj = Py_None;
2767 return resultobj;
2768 fail:
2769 return NULL;
2770 }
2771
2772
2773 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2774 PyObject *resultobj;
2775 int arg1 ;
2776 int arg2 ;
2777 int arg3 = (int) -1 ;
2778 wxBitmap *result;
2779 PyObject * obj0 = 0 ;
2780 PyObject * obj1 = 0 ;
2781 PyObject * obj2 = 0 ;
2782 char *kwnames[] = {
2783 (char *) "width",(char *) "height",(char *) "depth", NULL
2784 };
2785
2786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2787 arg1 = (int)SWIG_As_int(obj0);
2788 if (PyErr_Occurred()) SWIG_fail;
2789 arg2 = (int)SWIG_As_int(obj1);
2790 if (PyErr_Occurred()) SWIG_fail;
2791 if (obj2) {
2792 arg3 = (int)SWIG_As_int(obj2);
2793 if (PyErr_Occurred()) SWIG_fail;
2794 }
2795 {
2796 if (!wxPyCheckForApp()) SWIG_fail;
2797 PyThreadState* __tstate = wxPyBeginAllowThreads();
2798 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2799
2800 wxPyEndAllowThreads(__tstate);
2801 if (PyErr_Occurred()) SWIG_fail;
2802 }
2803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2804 return resultobj;
2805 fail:
2806 return NULL;
2807 }
2808
2809
2810 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2811 PyObject *resultobj;
2812 wxIcon *arg1 = 0 ;
2813 wxBitmap *result;
2814 PyObject * obj0 = 0 ;
2815 char *kwnames[] = {
2816 (char *) "icon", NULL
2817 };
2818
2819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2821 SWIG_POINTER_EXCEPTION | 0)) == -1)
2822 SWIG_fail;
2823 if (arg1 == NULL) {
2824 PyErr_SetString(PyExc_TypeError,"null reference");
2825 SWIG_fail;
2826 }
2827 {
2828 if (!wxPyCheckForApp()) SWIG_fail;
2829 PyThreadState* __tstate = wxPyBeginAllowThreads();
2830 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2831
2832 wxPyEndAllowThreads(__tstate);
2833 if (PyErr_Occurred()) SWIG_fail;
2834 }
2835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2836 return resultobj;
2837 fail:
2838 return NULL;
2839 }
2840
2841
2842 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2843 PyObject *resultobj;
2844 wxImage *arg1 = 0 ;
2845 int arg2 = (int) -1 ;
2846 wxBitmap *result;
2847 PyObject * obj0 = 0 ;
2848 PyObject * obj1 = 0 ;
2849 char *kwnames[] = {
2850 (char *) "image",(char *) "depth", NULL
2851 };
2852
2853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2855 SWIG_POINTER_EXCEPTION | 0)) == -1)
2856 SWIG_fail;
2857 if (arg1 == NULL) {
2858 PyErr_SetString(PyExc_TypeError,"null reference");
2859 SWIG_fail;
2860 }
2861 if (obj1) {
2862 arg2 = (int)SWIG_As_int(obj1);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 {
2866 if (!wxPyCheckForApp()) SWIG_fail;
2867 PyThreadState* __tstate = wxPyBeginAllowThreads();
2868 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2869
2870 wxPyEndAllowThreads(__tstate);
2871 if (PyErr_Occurred()) SWIG_fail;
2872 }
2873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2874 return resultobj;
2875 fail:
2876 return NULL;
2877 }
2878
2879
2880 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
2881 PyObject *resultobj;
2882 PyObject *arg1 = (PyObject *) 0 ;
2883 wxBitmap *result;
2884 PyObject * obj0 = 0 ;
2885 char *kwnames[] = {
2886 (char *) "listOfStrings", NULL
2887 };
2888
2889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2890 arg1 = obj0;
2891 {
2892 if (!wxPyCheckForApp()) SWIG_fail;
2893 PyThreadState* __tstate = wxPyBeginAllowThreads();
2894 result = (wxBitmap *)new_wxBitmap(arg1);
2895
2896 wxPyEndAllowThreads(__tstate);
2897 if (PyErr_Occurred()) SWIG_fail;
2898 }
2899 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2900 return resultobj;
2901 fail:
2902 return NULL;
2903 }
2904
2905
2906 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
2907 PyObject *resultobj;
2908 PyObject *arg1 = (PyObject *) 0 ;
2909 int arg2 ;
2910 int arg3 ;
2911 int arg4 = (int) 1 ;
2912 wxBitmap *result;
2913 PyObject * obj0 = 0 ;
2914 PyObject * obj1 = 0 ;
2915 PyObject * obj2 = 0 ;
2916 PyObject * obj3 = 0 ;
2917 char *kwnames[] = {
2918 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2919 };
2920
2921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2922 arg1 = obj0;
2923 arg2 = (int)SWIG_As_int(obj1);
2924 if (PyErr_Occurred()) SWIG_fail;
2925 arg3 = (int)SWIG_As_int(obj2);
2926 if (PyErr_Occurred()) SWIG_fail;
2927 if (obj3) {
2928 arg4 = (int)SWIG_As_int(obj3);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 }
2931 {
2932 if (!wxPyCheckForApp()) SWIG_fail;
2933 PyThreadState* __tstate = wxPyBeginAllowThreads();
2934 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2935
2936 wxPyEndAllowThreads(__tstate);
2937 if (PyErr_Occurred()) SWIG_fail;
2938 }
2939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2940 return resultobj;
2941 fail:
2942 return NULL;
2943 }
2944
2945
2946 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2947 PyObject *resultobj;
2948 wxBitmap *arg1 = (wxBitmap *) 0 ;
2949 bool result;
2950 PyObject * obj0 = 0 ;
2951 char *kwnames[] = {
2952 (char *) "self", NULL
2953 };
2954
2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2958 {
2959 PyThreadState* __tstate = wxPyBeginAllowThreads();
2960 result = (bool)(arg1)->Ok();
2961
2962 wxPyEndAllowThreads(__tstate);
2963 if (PyErr_Occurred()) SWIG_fail;
2964 }
2965 {
2966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2967 }
2968 return resultobj;
2969 fail:
2970 return NULL;
2971 }
2972
2973
2974 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2975 PyObject *resultobj;
2976 wxBitmap *arg1 = (wxBitmap *) 0 ;
2977 int result;
2978 PyObject * obj0 = 0 ;
2979 char *kwnames[] = {
2980 (char *) "self", NULL
2981 };
2982
2983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2986 {
2987 PyThreadState* __tstate = wxPyBeginAllowThreads();
2988 result = (int)(arg1)->GetWidth();
2989
2990 wxPyEndAllowThreads(__tstate);
2991 if (PyErr_Occurred()) SWIG_fail;
2992 }
2993 resultobj = SWIG_From_int((int)result);
2994 return resultobj;
2995 fail:
2996 return NULL;
2997 }
2998
2999
3000 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3001 PyObject *resultobj;
3002 wxBitmap *arg1 = (wxBitmap *) 0 ;
3003 int result;
3004 PyObject * obj0 = 0 ;
3005 char *kwnames[] = {
3006 (char *) "self", NULL
3007 };
3008
3009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3012 {
3013 PyThreadState* __tstate = wxPyBeginAllowThreads();
3014 result = (int)(arg1)->GetHeight();
3015
3016 wxPyEndAllowThreads(__tstate);
3017 if (PyErr_Occurred()) SWIG_fail;
3018 }
3019 resultobj = SWIG_From_int((int)result);
3020 return resultobj;
3021 fail:
3022 return NULL;
3023 }
3024
3025
3026 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3027 PyObject *resultobj;
3028 wxBitmap *arg1 = (wxBitmap *) 0 ;
3029 int result;
3030 PyObject * obj0 = 0 ;
3031 char *kwnames[] = {
3032 (char *) "self", NULL
3033 };
3034
3035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3038 {
3039 PyThreadState* __tstate = wxPyBeginAllowThreads();
3040 result = (int)(arg1)->GetDepth();
3041
3042 wxPyEndAllowThreads(__tstate);
3043 if (PyErr_Occurred()) SWIG_fail;
3044 }
3045 resultobj = SWIG_From_int((int)result);
3046 return resultobj;
3047 fail:
3048 return NULL;
3049 }
3050
3051
3052 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3053 PyObject *resultobj;
3054 wxBitmap *arg1 = (wxBitmap *) 0 ;
3055 wxSize result;
3056 PyObject * obj0 = 0 ;
3057 char *kwnames[] = {
3058 (char *) "self", NULL
3059 };
3060
3061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 result = wxBitmap_GetSize(arg1);
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) SWIG_fail;
3070 }
3071 {
3072 wxSize * resultptr;
3073 resultptr = new wxSize((wxSize &) result);
3074 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3075 }
3076 return resultobj;
3077 fail:
3078 return NULL;
3079 }
3080
3081
3082 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3083 PyObject *resultobj;
3084 wxBitmap *arg1 = (wxBitmap *) 0 ;
3085 SwigValueWrapper< wxImage > result;
3086 PyObject * obj0 = 0 ;
3087 char *kwnames[] = {
3088 (char *) "self", NULL
3089 };
3090
3091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3094 {
3095 PyThreadState* __tstate = wxPyBeginAllowThreads();
3096 result = ((wxBitmap const *)arg1)->ConvertToImage();
3097
3098 wxPyEndAllowThreads(__tstate);
3099 if (PyErr_Occurred()) SWIG_fail;
3100 }
3101 {
3102 wxImage * resultptr;
3103 resultptr = new wxImage((wxImage &) result);
3104 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3105 }
3106 return resultobj;
3107 fail:
3108 return NULL;
3109 }
3110
3111
3112 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3113 PyObject *resultobj;
3114 wxBitmap *arg1 = (wxBitmap *) 0 ;
3115 wxMask *result;
3116 PyObject * obj0 = 0 ;
3117 char *kwnames[] = {
3118 (char *) "self", NULL
3119 };
3120
3121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3124 {
3125 PyThreadState* __tstate = wxPyBeginAllowThreads();
3126 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3127
3128 wxPyEndAllowThreads(__tstate);
3129 if (PyErr_Occurred()) SWIG_fail;
3130 }
3131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3132 return resultobj;
3133 fail:
3134 return NULL;
3135 }
3136
3137
3138 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3139 PyObject *resultobj;
3140 wxBitmap *arg1 = (wxBitmap *) 0 ;
3141 wxMask *arg2 = (wxMask *) 0 ;
3142 PyObject * obj0 = 0 ;
3143 PyObject * obj1 = 0 ;
3144 char *kwnames[] = {
3145 (char *) "self",(char *) "mask", NULL
3146 };
3147
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3153 {
3154 PyThreadState* __tstate = wxPyBeginAllowThreads();
3155 (arg1)->SetMask(arg2);
3156
3157 wxPyEndAllowThreads(__tstate);
3158 if (PyErr_Occurred()) SWIG_fail;
3159 }
3160 Py_INCREF(Py_None); resultobj = Py_None;
3161 return resultobj;
3162 fail:
3163 return NULL;
3164 }
3165
3166
3167 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3168 PyObject *resultobj;
3169 wxBitmap *arg1 = (wxBitmap *) 0 ;
3170 wxColour *arg2 = 0 ;
3171 wxColour temp2 ;
3172 PyObject * obj0 = 0 ;
3173 PyObject * obj1 = 0 ;
3174 char *kwnames[] = {
3175 (char *) "self",(char *) "colour", NULL
3176 };
3177
3178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3181 {
3182 arg2 = &temp2;
3183 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3184 }
3185 {
3186 PyThreadState* __tstate = wxPyBeginAllowThreads();
3187 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3188
3189 wxPyEndAllowThreads(__tstate);
3190 if (PyErr_Occurred()) SWIG_fail;
3191 }
3192 Py_INCREF(Py_None); resultobj = Py_None;
3193 return resultobj;
3194 fail:
3195 return NULL;
3196 }
3197
3198
3199 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3200 PyObject *resultobj;
3201 wxBitmap *arg1 = (wxBitmap *) 0 ;
3202 wxRect *arg2 = 0 ;
3203 SwigValueWrapper< wxBitmap > result;
3204 wxRect temp2 ;
3205 PyObject * obj0 = 0 ;
3206 PyObject * obj1 = 0 ;
3207 char *kwnames[] = {
3208 (char *) "self",(char *) "rect", NULL
3209 };
3210
3211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3214 {
3215 arg2 = &temp2;
3216 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3217 }
3218 {
3219 PyThreadState* __tstate = wxPyBeginAllowThreads();
3220 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3221
3222 wxPyEndAllowThreads(__tstate);
3223 if (PyErr_Occurred()) SWIG_fail;
3224 }
3225 {
3226 wxBitmap * resultptr;
3227 resultptr = new wxBitmap((wxBitmap &) result);
3228 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3229 }
3230 return resultobj;
3231 fail:
3232 return NULL;
3233 }
3234
3235
3236 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3237 PyObject *resultobj;
3238 wxBitmap *arg1 = (wxBitmap *) 0 ;
3239 wxString *arg2 = 0 ;
3240 int arg3 ;
3241 wxPalette *arg4 = (wxPalette *) NULL ;
3242 bool result;
3243 bool temp2 = false ;
3244 PyObject * obj0 = 0 ;
3245 PyObject * obj1 = 0 ;
3246 PyObject * obj2 = 0 ;
3247 PyObject * obj3 = 0 ;
3248 char *kwnames[] = {
3249 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3255 {
3256 arg2 = wxString_in_helper(obj1);
3257 if (arg2 == NULL) SWIG_fail;
3258 temp2 = true;
3259 }
3260 arg3 = (int)SWIG_As_int(obj2);
3261 if (PyErr_Occurred()) SWIG_fail;
3262 if (obj3) {
3263 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3265 }
3266 {
3267 PyThreadState* __tstate = wxPyBeginAllowThreads();
3268 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3269
3270 wxPyEndAllowThreads(__tstate);
3271 if (PyErr_Occurred()) SWIG_fail;
3272 }
3273 {
3274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3275 }
3276 {
3277 if (temp2)
3278 delete arg2;
3279 }
3280 return resultobj;
3281 fail:
3282 {
3283 if (temp2)
3284 delete arg2;
3285 }
3286 return NULL;
3287 }
3288
3289
3290 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3291 PyObject *resultobj;
3292 wxBitmap *arg1 = (wxBitmap *) 0 ;
3293 wxString *arg2 = 0 ;
3294 int arg3 ;
3295 bool result;
3296 bool temp2 = false ;
3297 PyObject * obj0 = 0 ;
3298 PyObject * obj1 = 0 ;
3299 PyObject * obj2 = 0 ;
3300 char *kwnames[] = {
3301 (char *) "self",(char *) "name",(char *) "type", NULL
3302 };
3303
3304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3307 {
3308 arg2 = wxString_in_helper(obj1);
3309 if (arg2 == NULL) SWIG_fail;
3310 temp2 = true;
3311 }
3312 arg3 = (int)SWIG_As_int(obj2);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 {
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3317
3318 wxPyEndAllowThreads(__tstate);
3319 if (PyErr_Occurred()) SWIG_fail;
3320 }
3321 {
3322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3323 }
3324 {
3325 if (temp2)
3326 delete arg2;
3327 }
3328 return resultobj;
3329 fail:
3330 {
3331 if (temp2)
3332 delete arg2;
3333 }
3334 return NULL;
3335 }
3336
3337
3338 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3339 PyObject *resultobj;
3340 wxBitmap *arg1 = (wxBitmap *) 0 ;
3341 wxIcon *arg2 = 0 ;
3342 bool result;
3343 PyObject * obj0 = 0 ;
3344 PyObject * obj1 = 0 ;
3345 char *kwnames[] = {
3346 (char *) "self",(char *) "icon", NULL
3347 };
3348
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3353 SWIG_POINTER_EXCEPTION | 0)) == -1)
3354 SWIG_fail;
3355 if (arg2 == NULL) {
3356 PyErr_SetString(PyExc_TypeError,"null reference");
3357 SWIG_fail;
3358 }
3359 {
3360 PyThreadState* __tstate = wxPyBeginAllowThreads();
3361 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3362
3363 wxPyEndAllowThreads(__tstate);
3364 if (PyErr_Occurred()) SWIG_fail;
3365 }
3366 {
3367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3368 }
3369 return resultobj;
3370 fail:
3371 return NULL;
3372 }
3373
3374
3375 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3376 PyObject *resultobj;
3377 wxBitmap *arg1 = (wxBitmap *) 0 ;
3378 int arg2 ;
3379 PyObject * obj0 = 0 ;
3380 PyObject * obj1 = 0 ;
3381 char *kwnames[] = {
3382 (char *) "self",(char *) "height", NULL
3383 };
3384
3385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3388 arg2 = (int)SWIG_As_int(obj1);
3389 if (PyErr_Occurred()) SWIG_fail;
3390 {
3391 PyThreadState* __tstate = wxPyBeginAllowThreads();
3392 (arg1)->SetHeight(arg2);
3393
3394 wxPyEndAllowThreads(__tstate);
3395 if (PyErr_Occurred()) SWIG_fail;
3396 }
3397 Py_INCREF(Py_None); resultobj = Py_None;
3398 return resultobj;
3399 fail:
3400 return NULL;
3401 }
3402
3403
3404 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3405 PyObject *resultobj;
3406 wxBitmap *arg1 = (wxBitmap *) 0 ;
3407 int arg2 ;
3408 PyObject * obj0 = 0 ;
3409 PyObject * obj1 = 0 ;
3410 char *kwnames[] = {
3411 (char *) "self",(char *) "width", NULL
3412 };
3413
3414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3417 arg2 = (int)SWIG_As_int(obj1);
3418 if (PyErr_Occurred()) SWIG_fail;
3419 {
3420 PyThreadState* __tstate = wxPyBeginAllowThreads();
3421 (arg1)->SetWidth(arg2);
3422
3423 wxPyEndAllowThreads(__tstate);
3424 if (PyErr_Occurred()) SWIG_fail;
3425 }
3426 Py_INCREF(Py_None); resultobj = Py_None;
3427 return resultobj;
3428 fail:
3429 return NULL;
3430 }
3431
3432
3433 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3434 PyObject *resultobj;
3435 wxBitmap *arg1 = (wxBitmap *) 0 ;
3436 int arg2 ;
3437 PyObject * obj0 = 0 ;
3438 PyObject * obj1 = 0 ;
3439 char *kwnames[] = {
3440 (char *) "self",(char *) "depth", NULL
3441 };
3442
3443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3446 arg2 = (int)SWIG_As_int(obj1);
3447 if (PyErr_Occurred()) SWIG_fail;
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 (arg1)->SetDepth(arg2);
3451
3452 wxPyEndAllowThreads(__tstate);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 }
3455 Py_INCREF(Py_None); resultobj = Py_None;
3456 return resultobj;
3457 fail:
3458 return NULL;
3459 }
3460
3461
3462 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3463 PyObject *resultobj;
3464 wxBitmap *arg1 = (wxBitmap *) 0 ;
3465 wxSize *arg2 = 0 ;
3466 wxSize temp2 ;
3467 PyObject * obj0 = 0 ;
3468 PyObject * obj1 = 0 ;
3469 char *kwnames[] = {
3470 (char *) "self",(char *) "size", NULL
3471 };
3472
3473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3476 {
3477 arg2 = &temp2;
3478 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3479 }
3480 {
3481 PyThreadState* __tstate = wxPyBeginAllowThreads();
3482 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3483
3484 wxPyEndAllowThreads(__tstate);
3485 if (PyErr_Occurred()) SWIG_fail;
3486 }
3487 Py_INCREF(Py_None); resultobj = Py_None;
3488 return resultobj;
3489 fail:
3490 return NULL;
3491 }
3492
3493
3494 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3495 PyObject *resultobj;
3496 wxBitmap *arg1 = (wxBitmap *) 0 ;
3497 wxBitmap *arg2 = (wxBitmap *) 0 ;
3498 bool result;
3499 PyObject * obj0 = 0 ;
3500 PyObject * obj1 = 0 ;
3501 char *kwnames[] = {
3502 (char *) "self",(char *) "other", NULL
3503 };
3504
3505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3510 {
3511 PyThreadState* __tstate = wxPyBeginAllowThreads();
3512 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3513
3514 wxPyEndAllowThreads(__tstate);
3515 if (PyErr_Occurred()) SWIG_fail;
3516 }
3517 {
3518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3519 }
3520 return resultobj;
3521 fail:
3522 return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj;
3528 wxBitmap *arg1 = (wxBitmap *) 0 ;
3529 wxBitmap *arg2 = (wxBitmap *) 0 ;
3530 bool result;
3531 PyObject * obj0 = 0 ;
3532 PyObject * obj1 = 0 ;
3533 char *kwnames[] = {
3534 (char *) "self",(char *) "other", NULL
3535 };
3536
3537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3540 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3542 {
3543 PyThreadState* __tstate = wxPyBeginAllowThreads();
3544 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3545
3546 wxPyEndAllowThreads(__tstate);
3547 if (PyErr_Occurred()) SWIG_fail;
3548 }
3549 {
3550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3551 }
3552 return resultobj;
3553 fail:
3554 return NULL;
3555 }
3556
3557
3558 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3559 PyObject *obj;
3560 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3561 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3562 Py_INCREF(obj);
3563 return Py_BuildValue((char *)"");
3564 }
3565 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3566 PyObject *resultobj;
3567 wxBitmap *arg1 = 0 ;
3568 wxColour const &arg2_defvalue = wxNullColour ;
3569 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3570 wxMask *result;
3571 wxColour temp2 ;
3572 PyObject * obj0 = 0 ;
3573 PyObject * obj1 = 0 ;
3574 char *kwnames[] = {
3575 (char *) "bitmap",(char *) "colour", NULL
3576 };
3577
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3580 SWIG_POINTER_EXCEPTION | 0)) == -1)
3581 SWIG_fail;
3582 if (arg1 == NULL) {
3583 PyErr_SetString(PyExc_TypeError,"null reference");
3584 SWIG_fail;
3585 }
3586 if (obj1) {
3587 {
3588 arg2 = &temp2;
3589 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3590 }
3591 }
3592 {
3593 if (!wxPyCheckForApp()) SWIG_fail;
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3596
3597 wxPyEndAllowThreads(__tstate);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3601 return resultobj;
3602 fail:
3603 return NULL;
3604 }
3605
3606
3607 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3608 PyObject *obj;
3609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3610 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3611 Py_INCREF(obj);
3612 return Py_BuildValue((char *)"");
3613 }
3614 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3615 PyObject *resultobj;
3616 wxString *arg1 = 0 ;
3617 int arg2 ;
3618 int arg3 = (int) -1 ;
3619 int arg4 = (int) -1 ;
3620 wxIcon *result;
3621 bool temp1 = false ;
3622 PyObject * obj0 = 0 ;
3623 PyObject * obj1 = 0 ;
3624 PyObject * obj2 = 0 ;
3625 PyObject * obj3 = 0 ;
3626 char *kwnames[] = {
3627 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3628 };
3629
3630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3631 {
3632 arg1 = wxString_in_helper(obj0);
3633 if (arg1 == NULL) SWIG_fail;
3634 temp1 = true;
3635 }
3636 arg2 = (int)SWIG_As_int(obj1);
3637 if (PyErr_Occurred()) SWIG_fail;
3638 if (obj2) {
3639 arg3 = (int)SWIG_As_int(obj2);
3640 if (PyErr_Occurred()) SWIG_fail;
3641 }
3642 if (obj3) {
3643 arg4 = (int)SWIG_As_int(obj3);
3644 if (PyErr_Occurred()) SWIG_fail;
3645 }
3646 {
3647 if (!wxPyCheckForApp()) SWIG_fail;
3648 PyThreadState* __tstate = wxPyBeginAllowThreads();
3649 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3650
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3655 {
3656 if (temp1)
3657 delete arg1;
3658 }
3659 return resultobj;
3660 fail:
3661 {
3662 if (temp1)
3663 delete arg1;
3664 }
3665 return NULL;
3666 }
3667
3668
3669 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3670 PyObject *resultobj;
3671 wxIcon *arg1 = (wxIcon *) 0 ;
3672 PyObject * obj0 = 0 ;
3673 char *kwnames[] = {
3674 (char *) "self", NULL
3675 };
3676
3677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 delete arg1;
3683
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 Py_INCREF(Py_None); resultobj = Py_None;
3688 return resultobj;
3689 fail:
3690 return NULL;
3691 }
3692
3693
3694 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3695 PyObject *resultobj;
3696 wxIcon *result;
3697 char *kwnames[] = {
3698 NULL
3699 };
3700
3701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3702 {
3703 if (!wxPyCheckForApp()) SWIG_fail;
3704 PyThreadState* __tstate = wxPyBeginAllowThreads();
3705 result = (wxIcon *)new wxIcon();
3706
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3711 return resultobj;
3712 fail:
3713 return NULL;
3714 }
3715
3716
3717 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj;
3719 wxIconLocation *arg1 = 0 ;
3720 wxIcon *result;
3721 PyObject * obj0 = 0 ;
3722 char *kwnames[] = {
3723 (char *) "loc", NULL
3724 };
3725
3726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3728 SWIG_POINTER_EXCEPTION | 0)) == -1)
3729 SWIG_fail;
3730 if (arg1 == NULL) {
3731 PyErr_SetString(PyExc_TypeError,"null reference");
3732 SWIG_fail;
3733 }
3734 {
3735 if (!wxPyCheckForApp()) SWIG_fail;
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3738
3739 wxPyEndAllowThreads(__tstate);
3740 if (PyErr_Occurred()) SWIG_fail;
3741 }
3742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3743 return resultobj;
3744 fail:
3745 return NULL;
3746 }
3747
3748
3749 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3750 PyObject *resultobj;
3751 wxBitmap *arg1 = 0 ;
3752 wxIcon *result;
3753 PyObject * obj0 = 0 ;
3754 char *kwnames[] = {
3755 (char *) "bmp", NULL
3756 };
3757
3758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3760 SWIG_POINTER_EXCEPTION | 0)) == -1)
3761 SWIG_fail;
3762 if (arg1 == NULL) {
3763 PyErr_SetString(PyExc_TypeError,"null reference");
3764 SWIG_fail;
3765 }
3766 {
3767 if (!wxPyCheckForApp()) SWIG_fail;
3768 PyThreadState* __tstate = wxPyBeginAllowThreads();
3769 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3770
3771 wxPyEndAllowThreads(__tstate);
3772 if (PyErr_Occurred()) SWIG_fail;
3773 }
3774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3775 return resultobj;
3776 fail:
3777 return NULL;
3778 }
3779
3780
3781 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3782 PyObject *resultobj;
3783 PyObject *arg1 = (PyObject *) 0 ;
3784 wxIcon *result;
3785 PyObject * obj0 = 0 ;
3786 char *kwnames[] = {
3787 (char *) "listOfStrings", NULL
3788 };
3789
3790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3791 arg1 = obj0;
3792 {
3793 if (!wxPyCheckForApp()) SWIG_fail;
3794 PyThreadState* __tstate = wxPyBeginAllowThreads();
3795 result = (wxIcon *)new_wxIcon(arg1);
3796
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxIcon *arg1 = (wxIcon *) 0 ;
3810 wxString *arg2 = 0 ;
3811 int arg3 ;
3812 bool result;
3813 bool temp2 = false ;
3814 PyObject * obj0 = 0 ;
3815 PyObject * obj1 = 0 ;
3816 PyObject * obj2 = 0 ;
3817 char *kwnames[] = {
3818 (char *) "self",(char *) "name",(char *) "type", NULL
3819 };
3820
3821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3824 {
3825 arg2 = wxString_in_helper(obj1);
3826 if (arg2 == NULL) SWIG_fail;
3827 temp2 = true;
3828 }
3829 arg3 = (int)SWIG_As_int(obj2);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 {
3832 PyThreadState* __tstate = wxPyBeginAllowThreads();
3833 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3834
3835 wxPyEndAllowThreads(__tstate);
3836 if (PyErr_Occurred()) SWIG_fail;
3837 }
3838 {
3839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3840 }
3841 {
3842 if (temp2)
3843 delete arg2;
3844 }
3845 return resultobj;
3846 fail:
3847 {
3848 if (temp2)
3849 delete arg2;
3850 }
3851 return NULL;
3852 }
3853
3854
3855 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3856 PyObject *resultobj;
3857 wxIcon *arg1 = (wxIcon *) 0 ;
3858 bool result;
3859 PyObject * obj0 = 0 ;
3860 char *kwnames[] = {
3861 (char *) "self", NULL
3862 };
3863
3864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3867 {
3868 PyThreadState* __tstate = wxPyBeginAllowThreads();
3869 result = (bool)(arg1)->Ok();
3870
3871 wxPyEndAllowThreads(__tstate);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 {
3875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3876 }
3877 return resultobj;
3878 fail:
3879 return NULL;
3880 }
3881
3882
3883 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3884 PyObject *resultobj;
3885 wxIcon *arg1 = (wxIcon *) 0 ;
3886 int result;
3887 PyObject * obj0 = 0 ;
3888 char *kwnames[] = {
3889 (char *) "self", NULL
3890 };
3891
3892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 result = (int)(arg1)->GetWidth();
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_From_int((int)result);
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj;
3911 wxIcon *arg1 = (wxIcon *) 0 ;
3912 int result;
3913 PyObject * obj0 = 0 ;
3914 char *kwnames[] = {
3915 (char *) "self", NULL
3916 };
3917
3918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3921 {
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 result = (int)(arg1)->GetHeight();
3924
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) SWIG_fail;
3927 }
3928 resultobj = SWIG_From_int((int)result);
3929 return resultobj;
3930 fail:
3931 return NULL;
3932 }
3933
3934
3935 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3936 PyObject *resultobj;
3937 wxIcon *arg1 = (wxIcon *) 0 ;
3938 int result;
3939 PyObject * obj0 = 0 ;
3940 char *kwnames[] = {
3941 (char *) "self", NULL
3942 };
3943
3944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3947 {
3948 PyThreadState* __tstate = wxPyBeginAllowThreads();
3949 result = (int)(arg1)->GetDepth();
3950
3951 wxPyEndAllowThreads(__tstate);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 resultobj = SWIG_From_int((int)result);
3955 return resultobj;
3956 fail:
3957 return NULL;
3958 }
3959
3960
3961 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3962 PyObject *resultobj;
3963 wxIcon *arg1 = (wxIcon *) 0 ;
3964 int arg2 ;
3965 PyObject * obj0 = 0 ;
3966 PyObject * obj1 = 0 ;
3967 char *kwnames[] = {
3968 (char *) "self",(char *) "w", NULL
3969 };
3970
3971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3974 arg2 = (int)SWIG_As_int(obj1);
3975 if (PyErr_Occurred()) SWIG_fail;
3976 {
3977 PyThreadState* __tstate = wxPyBeginAllowThreads();
3978 (arg1)->SetWidth(arg2);
3979
3980 wxPyEndAllowThreads(__tstate);
3981 if (PyErr_Occurred()) SWIG_fail;
3982 }
3983 Py_INCREF(Py_None); resultobj = Py_None;
3984 return resultobj;
3985 fail:
3986 return NULL;
3987 }
3988
3989
3990 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3991 PyObject *resultobj;
3992 wxIcon *arg1 = (wxIcon *) 0 ;
3993 int arg2 ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 char *kwnames[] = {
3997 (char *) "self",(char *) "h", NULL
3998 };
3999
4000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4003 arg2 = (int)SWIG_As_int(obj1);
4004 if (PyErr_Occurred()) SWIG_fail;
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 (arg1)->SetHeight(arg2);
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4012 Py_INCREF(Py_None); resultobj = Py_None;
4013 return resultobj;
4014 fail:
4015 return NULL;
4016 }
4017
4018
4019 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4020 PyObject *resultobj;
4021 wxIcon *arg1 = (wxIcon *) 0 ;
4022 int arg2 ;
4023 PyObject * obj0 = 0 ;
4024 PyObject * obj1 = 0 ;
4025 char *kwnames[] = {
4026 (char *) "self",(char *) "d", NULL
4027 };
4028
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4032 arg2 = (int)SWIG_As_int(obj1);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 (arg1)->SetDepth(arg2);
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 Py_INCREF(Py_None); resultobj = Py_None;
4042 return resultobj;
4043 fail:
4044 return NULL;
4045 }
4046
4047
4048 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4049 PyObject *resultobj;
4050 wxIcon *arg1 = (wxIcon *) 0 ;
4051 wxBitmap *arg2 = 0 ;
4052 PyObject * obj0 = 0 ;
4053 PyObject * obj1 = 0 ;
4054 char *kwnames[] = {
4055 (char *) "self",(char *) "bmp", NULL
4056 };
4057
4058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4061 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4062 SWIG_POINTER_EXCEPTION | 0)) == -1)
4063 SWIG_fail;
4064 if (arg2 == NULL) {
4065 PyErr_SetString(PyExc_TypeError,"null reference");
4066 SWIG_fail;
4067 }
4068 {
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4071
4072 wxPyEndAllowThreads(__tstate);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4075 Py_INCREF(Py_None); resultobj = Py_None;
4076 return resultobj;
4077 fail:
4078 return NULL;
4079 }
4080
4081
4082 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
4083 PyObject *obj;
4084 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4085 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4086 Py_INCREF(obj);
4087 return Py_BuildValue((char *)"");
4088 }
4089 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4090 PyObject *resultobj;
4091 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4092 int arg2 = (int) 0 ;
4093 wxIconLocation *result;
4094 bool temp1 = false ;
4095 PyObject * obj0 = 0 ;
4096 PyObject * obj1 = 0 ;
4097 char *kwnames[] = {
4098 (char *) "filename",(char *) "num", NULL
4099 };
4100
4101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4102 if (obj0) {
4103 {
4104 arg1 = wxString_in_helper(obj0);
4105 if (arg1 == NULL) SWIG_fail;
4106 temp1 = true;
4107 }
4108 }
4109 if (obj1) {
4110 arg2 = (int)SWIG_As_int(obj1);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 {
4114 PyThreadState* __tstate = wxPyBeginAllowThreads();
4115 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4116
4117 wxPyEndAllowThreads(__tstate);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 }
4120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4121 {
4122 if (temp1)
4123 delete arg1;
4124 }
4125 return resultobj;
4126 fail:
4127 {
4128 if (temp1)
4129 delete arg1;
4130 }
4131 return NULL;
4132 }
4133
4134
4135 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4136 PyObject *resultobj;
4137 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4138 PyObject * obj0 = 0 ;
4139 char *kwnames[] = {
4140 (char *) "self", NULL
4141 };
4142
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 delete arg1;
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 Py_INCREF(Py_None); resultobj = Py_None;
4154 return resultobj;
4155 fail:
4156 return NULL;
4157 }
4158
4159
4160 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4161 PyObject *resultobj;
4162 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4163 bool result;
4164 PyObject * obj0 = 0 ;
4165 char *kwnames[] = {
4166 (char *) "self", NULL
4167 };
4168
4169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4172 {
4173 PyThreadState* __tstate = wxPyBeginAllowThreads();
4174 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4175
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 {
4180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4181 }
4182 return resultobj;
4183 fail:
4184 return NULL;
4185 }
4186
4187
4188 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4189 PyObject *resultobj;
4190 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4191 wxString *arg2 = 0 ;
4192 bool temp2 = false ;
4193 PyObject * obj0 = 0 ;
4194 PyObject * obj1 = 0 ;
4195 char *kwnames[] = {
4196 (char *) "self",(char *) "filename", NULL
4197 };
4198
4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4202 {
4203 arg2 = wxString_in_helper(obj1);
4204 if (arg2 == NULL) SWIG_fail;
4205 temp2 = true;
4206 }
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 (arg1)->SetFileName((wxString const &)*arg2);
4210
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 Py_INCREF(Py_None); resultobj = Py_None;
4215 {
4216 if (temp2)
4217 delete arg2;
4218 }
4219 return resultobj;
4220 fail:
4221 {
4222 if (temp2)
4223 delete arg2;
4224 }
4225 return NULL;
4226 }
4227
4228
4229 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4230 PyObject *resultobj;
4231 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4232 wxString *result;
4233 PyObject * obj0 = 0 ;
4234 char *kwnames[] = {
4235 (char *) "self", NULL
4236 };
4237
4238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4241 {
4242 PyThreadState* __tstate = wxPyBeginAllowThreads();
4243 {
4244 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4245 result = (wxString *) &_result_ref;
4246 }
4247
4248 wxPyEndAllowThreads(__tstate);
4249 if (PyErr_Occurred()) SWIG_fail;
4250 }
4251 {
4252 #if wxUSE_UNICODE
4253 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4254 #else
4255 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4256 #endif
4257 }
4258 return resultobj;
4259 fail:
4260 return NULL;
4261 }
4262
4263
4264 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4265 PyObject *resultobj;
4266 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4267 int arg2 ;
4268 PyObject * obj0 = 0 ;
4269 PyObject * obj1 = 0 ;
4270 char *kwnames[] = {
4271 (char *) "self",(char *) "num", NULL
4272 };
4273
4274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4277 arg2 = (int)SWIG_As_int(obj1);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 {
4280 PyThreadState* __tstate = wxPyBeginAllowThreads();
4281 wxIconLocation_SetIndex(arg1,arg2);
4282
4283 wxPyEndAllowThreads(__tstate);
4284 if (PyErr_Occurred()) SWIG_fail;
4285 }
4286 Py_INCREF(Py_None); resultobj = Py_None;
4287 return resultobj;
4288 fail:
4289 return NULL;
4290 }
4291
4292
4293 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4294 PyObject *resultobj;
4295 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4296 int result;
4297 PyObject * obj0 = 0 ;
4298 char *kwnames[] = {
4299 (char *) "self", NULL
4300 };
4301
4302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 result = (int)wxIconLocation_GetIndex(arg1);
4308
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_From_int((int)result);
4313 return resultobj;
4314 fail:
4315 return NULL;
4316 }
4317
4318
4319 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4320 PyObject *obj;
4321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4322 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4323 Py_INCREF(obj);
4324 return Py_BuildValue((char *)"");
4325 }
4326 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4327 PyObject *resultobj;
4328 wxIconBundle *result;
4329 char *kwnames[] = {
4330 NULL
4331 };
4332
4333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4334 {
4335 PyThreadState* __tstate = wxPyBeginAllowThreads();
4336 result = (wxIconBundle *)new wxIconBundle();
4337
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4342 return resultobj;
4343 fail:
4344 return NULL;
4345 }
4346
4347
4348 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj;
4350 wxString *arg1 = 0 ;
4351 long arg2 ;
4352 wxIconBundle *result;
4353 bool temp1 = false ;
4354 PyObject * obj0 = 0 ;
4355 PyObject * obj1 = 0 ;
4356 char *kwnames[] = {
4357 (char *) "file",(char *) "type", NULL
4358 };
4359
4360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4361 {
4362 arg1 = wxString_in_helper(obj0);
4363 if (arg1 == NULL) SWIG_fail;
4364 temp1 = true;
4365 }
4366 arg2 = (long)SWIG_As_long(obj1);
4367 if (PyErr_Occurred()) SWIG_fail;
4368 {
4369 PyThreadState* __tstate = wxPyBeginAllowThreads();
4370 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4371
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4376 {
4377 if (temp1)
4378 delete arg1;
4379 }
4380 return resultobj;
4381 fail:
4382 {
4383 if (temp1)
4384 delete arg1;
4385 }
4386 return NULL;
4387 }
4388
4389
4390 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4391 PyObject *resultobj;
4392 wxIcon *arg1 = 0 ;
4393 wxIconBundle *result;
4394 PyObject * obj0 = 0 ;
4395 char *kwnames[] = {
4396 (char *) "icon", NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4401 SWIG_POINTER_EXCEPTION | 0)) == -1)
4402 SWIG_fail;
4403 if (arg1 == NULL) {
4404 PyErr_SetString(PyExc_TypeError,"null reference");
4405 SWIG_fail;
4406 }
4407 {
4408 PyThreadState* __tstate = wxPyBeginAllowThreads();
4409 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4410
4411 wxPyEndAllowThreads(__tstate);
4412 if (PyErr_Occurred()) SWIG_fail;
4413 }
4414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4415 return resultobj;
4416 fail:
4417 return NULL;
4418 }
4419
4420
4421 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4422 PyObject *resultobj;
4423 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4424 PyObject * obj0 = 0 ;
4425 char *kwnames[] = {
4426 (char *) "self", NULL
4427 };
4428
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4432 {
4433 PyThreadState* __tstate = wxPyBeginAllowThreads();
4434 delete arg1;
4435
4436 wxPyEndAllowThreads(__tstate);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 }
4439 Py_INCREF(Py_None); resultobj = Py_None;
4440 return resultobj;
4441 fail:
4442 return NULL;
4443 }
4444
4445
4446 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4447 PyObject *resultobj;
4448 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4449 wxIcon *arg2 = 0 ;
4450 PyObject * obj0 = 0 ;
4451 PyObject * obj1 = 0 ;
4452 char *kwnames[] = {
4453 (char *) "self",(char *) "icon", NULL
4454 };
4455
4456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4459 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4460 SWIG_POINTER_EXCEPTION | 0)) == -1)
4461 SWIG_fail;
4462 if (arg2 == NULL) {
4463 PyErr_SetString(PyExc_TypeError,"null reference");
4464 SWIG_fail;
4465 }
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 (arg1)->AddIcon((wxIcon const &)*arg2);
4469
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 Py_INCREF(Py_None); resultobj = Py_None;
4474 return resultobj;
4475 fail:
4476 return NULL;
4477 }
4478
4479
4480 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4481 PyObject *resultobj;
4482 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4483 wxString *arg2 = 0 ;
4484 long arg3 ;
4485 bool temp2 = false ;
4486 PyObject * obj0 = 0 ;
4487 PyObject * obj1 = 0 ;
4488 PyObject * obj2 = 0 ;
4489 char *kwnames[] = {
4490 (char *) "self",(char *) "file",(char *) "type", NULL
4491 };
4492
4493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4496 {
4497 arg2 = wxString_in_helper(obj1);
4498 if (arg2 == NULL) SWIG_fail;
4499 temp2 = true;
4500 }
4501 arg3 = (long)SWIG_As_long(obj2);
4502 if (PyErr_Occurred()) SWIG_fail;
4503 {
4504 PyThreadState* __tstate = wxPyBeginAllowThreads();
4505 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4506
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 Py_INCREF(Py_None); resultobj = Py_None;
4511 {
4512 if (temp2)
4513 delete arg2;
4514 }
4515 return resultobj;
4516 fail:
4517 {
4518 if (temp2)
4519 delete arg2;
4520 }
4521 return NULL;
4522 }
4523
4524
4525 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4526 PyObject *resultobj;
4527 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4528 wxSize *arg2 = 0 ;
4529 wxIcon *result;
4530 wxSize temp2 ;
4531 PyObject * obj0 = 0 ;
4532 PyObject * obj1 = 0 ;
4533 char *kwnames[] = {
4534 (char *) "self",(char *) "size", NULL
4535 };
4536
4537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4540 {
4541 arg2 = &temp2;
4542 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4543 }
4544 {
4545 PyThreadState* __tstate = wxPyBeginAllowThreads();
4546 {
4547 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4548 result = (wxIcon *) &_result_ref;
4549 }
4550
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) SWIG_fail;
4553 }
4554 {
4555 wxIcon* resultptr = new wxIcon(*result);
4556 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4557 }
4558 return resultobj;
4559 fail:
4560 return NULL;
4561 }
4562
4563
4564 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4565 PyObject *obj;
4566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4567 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4568 Py_INCREF(obj);
4569 return Py_BuildValue((char *)"");
4570 }
4571 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4572 PyObject *resultobj;
4573 wxString *arg1 = (wxString *) 0 ;
4574 long arg2 ;
4575 int arg3 = (int) 0 ;
4576 int arg4 = (int) 0 ;
4577 wxCursor *result;
4578 bool temp1 = false ;
4579 PyObject * obj0 = 0 ;
4580 PyObject * obj1 = 0 ;
4581 PyObject * obj2 = 0 ;
4582 PyObject * obj3 = 0 ;
4583 char *kwnames[] = {
4584 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4585 };
4586
4587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4588 {
4589 arg1 = wxString_in_helper(obj0);
4590 if (arg1 == NULL) SWIG_fail;
4591 temp1 = true;
4592 }
4593 arg2 = (long)SWIG_As_long(obj1);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 if (obj2) {
4596 arg3 = (int)SWIG_As_int(obj2);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
4599 if (obj3) {
4600 arg4 = (int)SWIG_As_int(obj3);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 {
4604 if (!wxPyCheckForApp()) SWIG_fail;
4605 PyThreadState* __tstate = wxPyBeginAllowThreads();
4606 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4607
4608 wxPyEndAllowThreads(__tstate);
4609 if (PyErr_Occurred()) SWIG_fail;
4610 }
4611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4612 {
4613 if (temp1)
4614 delete arg1;
4615 }
4616 return resultobj;
4617 fail:
4618 {
4619 if (temp1)
4620 delete arg1;
4621 }
4622 return NULL;
4623 }
4624
4625
4626 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj;
4628 wxCursor *arg1 = (wxCursor *) 0 ;
4629 PyObject * obj0 = 0 ;
4630 char *kwnames[] = {
4631 (char *) "self", NULL
4632 };
4633
4634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4637 {
4638 PyThreadState* __tstate = wxPyBeginAllowThreads();
4639 delete arg1;
4640
4641 wxPyEndAllowThreads(__tstate);
4642 if (PyErr_Occurred()) SWIG_fail;
4643 }
4644 Py_INCREF(Py_None); resultobj = Py_None;
4645 return resultobj;
4646 fail:
4647 return NULL;
4648 }
4649
4650
4651 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 int arg1 ;
4654 wxCursor *result;
4655 PyObject * obj0 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "id", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4661 arg1 = (int)SWIG_As_int(obj0);
4662 if (PyErr_Occurred()) SWIG_fail;
4663 {
4664 if (!wxPyCheckForApp()) SWIG_fail;
4665 PyThreadState* __tstate = wxPyBeginAllowThreads();
4666 result = (wxCursor *)new wxCursor(arg1);
4667
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4679 PyObject *resultobj;
4680 wxImage *arg1 = 0 ;
4681 wxCursor *result;
4682 PyObject * obj0 = 0 ;
4683 char *kwnames[] = {
4684 (char *) "image", NULL
4685 };
4686
4687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4689 SWIG_POINTER_EXCEPTION | 0)) == -1)
4690 SWIG_fail;
4691 if (arg1 == NULL) {
4692 PyErr_SetString(PyExc_TypeError,"null reference");
4693 SWIG_fail;
4694 }
4695 {
4696 if (!wxPyCheckForApp()) SWIG_fail;
4697 PyThreadState* __tstate = wxPyBeginAllowThreads();
4698 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4699
4700 wxPyEndAllowThreads(__tstate);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4704 return resultobj;
4705 fail:
4706 return NULL;
4707 }
4708
4709
4710 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4711 PyObject *resultobj;
4712 wxCursor *arg1 = (wxCursor *) 0 ;
4713 bool result;
4714 PyObject * obj0 = 0 ;
4715 char *kwnames[] = {
4716 (char *) "self", NULL
4717 };
4718
4719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",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 result = (bool)(arg1)->Ok();
4725
4726 wxPyEndAllowThreads(__tstate);
4727 if (PyErr_Occurred()) SWIG_fail;
4728 }
4729 {
4730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4731 }
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
4739 PyObject *obj;
4740 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4741 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4742 Py_INCREF(obj);
4743 return Py_BuildValue((char *)"");
4744 }
4745 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4746 PyObject *resultobj;
4747 int arg1 = (int) 0 ;
4748 int arg2 = (int) 0 ;
4749 int arg3 = (int) 0 ;
4750 int arg4 = (int) 0 ;
4751 wxRegion *result;
4752 PyObject * obj0 = 0 ;
4753 PyObject * obj1 = 0 ;
4754 PyObject * obj2 = 0 ;
4755 PyObject * obj3 = 0 ;
4756 char *kwnames[] = {
4757 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4758 };
4759
4760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4761 if (obj0) {
4762 arg1 = (int)SWIG_As_int(obj0);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 if (obj1) {
4766 arg2 = (int)SWIG_As_int(obj1);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 if (obj2) {
4770 arg3 = (int)SWIG_As_int(obj2);
4771 if (PyErr_Occurred()) SWIG_fail;
4772 }
4773 if (obj3) {
4774 arg4 = (int)SWIG_As_int(obj3);
4775 if (PyErr_Occurred()) SWIG_fail;
4776 }
4777 {
4778 if (!wxPyCheckForApp()) SWIG_fail;
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
4780 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4781
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4786 return resultobj;
4787 fail:
4788 return NULL;
4789 }
4790
4791
4792 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4793 PyObject *resultobj;
4794 wxBitmap *arg1 = 0 ;
4795 wxRegion *result;
4796 PyObject * obj0 = 0 ;
4797 char *kwnames[] = {
4798 (char *) "bmp", NULL
4799 };
4800
4801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4803 SWIG_POINTER_EXCEPTION | 0)) == -1)
4804 SWIG_fail;
4805 if (arg1 == NULL) {
4806 PyErr_SetString(PyExc_TypeError,"null reference");
4807 SWIG_fail;
4808 }
4809 {
4810 if (!wxPyCheckForApp()) SWIG_fail;
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4813
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4818 return resultobj;
4819 fail:
4820 return NULL;
4821 }
4822
4823
4824 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
4825 PyObject *resultobj;
4826 wxBitmap *arg1 = 0 ;
4827 wxColour *arg2 = 0 ;
4828 int arg3 = (int) 0 ;
4829 wxRegion *result;
4830 wxColour temp2 ;
4831 PyObject * obj0 = 0 ;
4832 PyObject * obj1 = 0 ;
4833 PyObject * obj2 = 0 ;
4834 char *kwnames[] = {
4835 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4836 };
4837
4838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
4839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4840 SWIG_POINTER_EXCEPTION | 0)) == -1)
4841 SWIG_fail;
4842 if (arg1 == NULL) {
4843 PyErr_SetString(PyExc_TypeError,"null reference");
4844 SWIG_fail;
4845 }
4846 {
4847 arg2 = &temp2;
4848 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4849 }
4850 if (obj2) {
4851 arg3 = (int)SWIG_As_int(obj2);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 {
4855 if (!wxPyCheckForApp()) SWIG_fail;
4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
4857 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4858
4859 wxPyEndAllowThreads(__tstate);
4860 if (PyErr_Occurred()) SWIG_fail;
4861 }
4862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4863 return resultobj;
4864 fail:
4865 return NULL;
4866 }
4867
4868
4869 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
4870 PyObject *resultobj;
4871 int arg1 ;
4872 wxPoint *arg2 = (wxPoint *) 0 ;
4873 int arg3 = (int) wxWINDING_RULE ;
4874 wxRegion *result;
4875 PyObject * obj0 = 0 ;
4876 PyObject * obj1 = 0 ;
4877 char *kwnames[] = {
4878 (char *) "points",(char *) "fillStyle", NULL
4879 };
4880
4881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4882 {
4883 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4884 if (arg2 == NULL) SWIG_fail;
4885 }
4886 if (obj1) {
4887 arg3 = (int)SWIG_As_int(obj1);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 {
4891 if (!wxPyCheckForApp()) SWIG_fail;
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4894
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4899 {
4900 if (arg2) delete [] arg2;
4901 }
4902 return resultobj;
4903 fail:
4904 {
4905 if (arg2) delete [] arg2;
4906 }
4907 return NULL;
4908 }
4909
4910
4911 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj;
4913 wxRegion *arg1 = (wxRegion *) 0 ;
4914 PyObject * obj0 = 0 ;
4915 char *kwnames[] = {
4916 (char *) "self", NULL
4917 };
4918
4919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4922 {
4923 PyThreadState* __tstate = wxPyBeginAllowThreads();
4924 delete arg1;
4925
4926 wxPyEndAllowThreads(__tstate);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 Py_INCREF(Py_None); resultobj = Py_None;
4930 return resultobj;
4931 fail:
4932 return NULL;
4933 }
4934
4935
4936 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
4937 PyObject *resultobj;
4938 wxRegion *arg1 = (wxRegion *) 0 ;
4939 PyObject * obj0 = 0 ;
4940 char *kwnames[] = {
4941 (char *) "self", NULL
4942 };
4943
4944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 (arg1)->Clear();
4950
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 Py_INCREF(Py_None); resultobj = Py_None;
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
4962 PyObject *resultobj;
4963 wxRegion *arg1 = (wxRegion *) 0 ;
4964 int arg2 ;
4965 int arg3 ;
4966 bool result;
4967 PyObject * obj0 = 0 ;
4968 PyObject * obj1 = 0 ;
4969 PyObject * obj2 = 0 ;
4970 char *kwnames[] = {
4971 (char *) "self",(char *) "x",(char *) "y", NULL
4972 };
4973
4974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4977 arg2 = (int)SWIG_As_int(obj1);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 arg3 = (int)SWIG_As_int(obj2);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4983 result = (bool)(arg1)->Offset(arg2,arg3);
4984
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 {
4989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4990 }
4991 return resultobj;
4992 fail:
4993 return NULL;
4994 }
4995
4996
4997 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
4998 PyObject *resultobj;
4999 wxRegion *arg1 = (wxRegion *) 0 ;
5000 int arg2 ;
5001 int arg3 ;
5002 int result;
5003 PyObject * obj0 = 0 ;
5004 PyObject * obj1 = 0 ;
5005 PyObject * obj2 = 0 ;
5006 char *kwnames[] = {
5007 (char *) "self",(char *) "x",(char *) "y", NULL
5008 };
5009
5010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5013 arg2 = (int)SWIG_As_int(obj1);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 arg3 = (int)SWIG_As_int(obj2);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 {
5018 PyThreadState* __tstate = wxPyBeginAllowThreads();
5019 result = (int)(arg1)->Contains(arg2,arg3);
5020
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 resultobj = SWIG_From_int((int)result);
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
5032 PyObject *resultobj;
5033 wxRegion *arg1 = (wxRegion *) 0 ;
5034 wxPoint *arg2 = 0 ;
5035 int result;
5036 wxPoint temp2 ;
5037 PyObject * obj0 = 0 ;
5038 PyObject * obj1 = 0 ;
5039 char *kwnames[] = {
5040 (char *) "self",(char *) "pt", NULL
5041 };
5042
5043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5046 {
5047 arg2 = &temp2;
5048 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5049 }
5050 {
5051 PyThreadState* __tstate = wxPyBeginAllowThreads();
5052 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5053
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 resultobj = SWIG_From_int((int)result);
5058 return resultobj;
5059 fail:
5060 return NULL;
5061 }
5062
5063
5064 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
5065 PyObject *resultobj;
5066 wxRegion *arg1 = (wxRegion *) 0 ;
5067 wxRect *arg2 = 0 ;
5068 int result;
5069 wxRect temp2 ;
5070 PyObject * obj0 = 0 ;
5071 PyObject * obj1 = 0 ;
5072 char *kwnames[] = {
5073 (char *) "self",(char *) "rect", NULL
5074 };
5075
5076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5079 {
5080 arg2 = &temp2;
5081 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5082 }
5083 {
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5086
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 resultobj = SWIG_From_int((int)result);
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxRegion *arg1 = (wxRegion *) 0 ;
5100 int arg2 ;
5101 int arg3 ;
5102 int arg4 ;
5103 int arg5 ;
5104 int result;
5105 PyObject * obj0 = 0 ;
5106 PyObject * obj1 = 0 ;
5107 PyObject * obj2 = 0 ;
5108 PyObject * obj3 = 0 ;
5109 PyObject * obj4 = 0 ;
5110 char *kwnames[] = {
5111 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5112 };
5113
5114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5117 arg2 = (int)SWIG_As_int(obj1);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 arg3 = (int)SWIG_As_int(obj2);
5120 if (PyErr_Occurred()) SWIG_fail;
5121 arg4 = (int)SWIG_As_int(obj3);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 arg5 = (int)SWIG_As_int(obj4);
5124 if (PyErr_Occurred()) SWIG_fail;
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_From_int((int)result);
5133 return resultobj;
5134 fail:
5135 return NULL;
5136 }
5137
5138
5139 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
5140 PyObject *resultobj;
5141 wxRegion *arg1 = (wxRegion *) 0 ;
5142 wxRect result;
5143 PyObject * obj0 = 0 ;
5144 char *kwnames[] = {
5145 (char *) "self", NULL
5146 };
5147
5148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 result = (arg1)->GetBox();
5154
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 {
5159 wxRect * resultptr;
5160 resultptr = new wxRect((wxRect &) result);
5161 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5162 }
5163 return resultobj;
5164 fail:
5165 return NULL;
5166 }
5167
5168
5169 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5170 PyObject *resultobj;
5171 wxRegion *arg1 = (wxRegion *) 0 ;
5172 int arg2 ;
5173 int arg3 ;
5174 int arg4 ;
5175 int arg5 ;
5176 bool result;
5177 PyObject * obj0 = 0 ;
5178 PyObject * obj1 = 0 ;
5179 PyObject * obj2 = 0 ;
5180 PyObject * obj3 = 0 ;
5181 PyObject * obj4 = 0 ;
5182 char *kwnames[] = {
5183 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5184 };
5185
5186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5189 arg2 = (int)SWIG_As_int(obj1);
5190 if (PyErr_Occurred()) SWIG_fail;
5191 arg3 = (int)SWIG_As_int(obj2);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 arg4 = (int)SWIG_As_int(obj3);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 arg5 = (int)SWIG_As_int(obj4);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 {
5198 PyThreadState* __tstate = wxPyBeginAllowThreads();
5199 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5200
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 {
5205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5206 }
5207 return resultobj;
5208 fail:
5209 return NULL;
5210 }
5211
5212
5213 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5214 PyObject *resultobj;
5215 wxRegion *arg1 = (wxRegion *) 0 ;
5216 wxRect *arg2 = 0 ;
5217 bool result;
5218 wxRect temp2 ;
5219 PyObject * obj0 = 0 ;
5220 PyObject * obj1 = 0 ;
5221 char *kwnames[] = {
5222 (char *) "self",(char *) "rect", NULL
5223 };
5224
5225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5228 {
5229 arg2 = &temp2;
5230 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5231 }
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5235
5236 wxPyEndAllowThreads(__tstate);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 }
5239 {
5240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5241 }
5242 return resultobj;
5243 fail:
5244 return NULL;
5245 }
5246
5247
5248 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj;
5250 wxRegion *arg1 = (wxRegion *) 0 ;
5251 wxRegion *arg2 = 0 ;
5252 bool result;
5253 PyObject * obj0 = 0 ;
5254 PyObject * obj1 = 0 ;
5255 char *kwnames[] = {
5256 (char *) "self",(char *) "region", NULL
5257 };
5258
5259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5262 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5263 SWIG_POINTER_EXCEPTION | 0)) == -1)
5264 SWIG_fail;
5265 if (arg2 == NULL) {
5266 PyErr_SetString(PyExc_TypeError,"null reference");
5267 SWIG_fail;
5268 }
5269 {
5270 PyThreadState* __tstate = wxPyBeginAllowThreads();
5271 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5272
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 {
5277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5278 }
5279 return resultobj;
5280 fail:
5281 return NULL;
5282 }
5283
5284
5285 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5286 PyObject *resultobj;
5287 wxRegion *arg1 = (wxRegion *) 0 ;
5288 bool result;
5289 PyObject * obj0 = 0 ;
5290 char *kwnames[] = {
5291 (char *) "self", NULL
5292 };
5293
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 result = (bool)(arg1)->IsEmpty();
5300
5301 wxPyEndAllowThreads(__tstate);
5302 if (PyErr_Occurred()) SWIG_fail;
5303 }
5304 {
5305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5306 }
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5314 PyObject *resultobj;
5315 wxRegion *arg1 = (wxRegion *) 0 ;
5316 int arg2 ;
5317 int arg3 ;
5318 int arg4 ;
5319 int arg5 ;
5320 bool result;
5321 PyObject * obj0 = 0 ;
5322 PyObject * obj1 = 0 ;
5323 PyObject * obj2 = 0 ;
5324 PyObject * obj3 = 0 ;
5325 PyObject * obj4 = 0 ;
5326 char *kwnames[] = {
5327 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5328 };
5329
5330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5333 arg2 = (int)SWIG_As_int(obj1);
5334 if (PyErr_Occurred()) SWIG_fail;
5335 arg3 = (int)SWIG_As_int(obj2);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 arg4 = (int)SWIG_As_int(obj3);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 arg5 = (int)SWIG_As_int(obj4);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5344
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
5348 {
5349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5350 }
5351 return resultobj;
5352 fail:
5353 return NULL;
5354 }
5355
5356
5357 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
5358 PyObject *resultobj;
5359 wxRegion *arg1 = (wxRegion *) 0 ;
5360 wxRect *arg2 = 0 ;
5361 bool result;
5362 wxRect temp2 ;
5363 PyObject * obj0 = 0 ;
5364 PyObject * obj1 = 0 ;
5365 char *kwnames[] = {
5366 (char *) "self",(char *) "rect", NULL
5367 };
5368
5369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5372 {
5373 arg2 = &temp2;
5374 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5375 }
5376 {
5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
5378 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5379
5380 wxPyEndAllowThreads(__tstate);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 {
5384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5385 }
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj;
5394 wxRegion *arg1 = (wxRegion *) 0 ;
5395 wxRegion *arg2 = 0 ;
5396 bool result;
5397 PyObject * obj0 = 0 ;
5398 PyObject * obj1 = 0 ;
5399 char *kwnames[] = {
5400 (char *) "self",(char *) "region", NULL
5401 };
5402
5403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5407 SWIG_POINTER_EXCEPTION | 0)) == -1)
5408 SWIG_fail;
5409 if (arg2 == NULL) {
5410 PyErr_SetString(PyExc_TypeError,"null reference");
5411 SWIG_fail;
5412 }
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5416
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 {
5421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5422 }
5423 return resultobj;
5424 fail:
5425 return NULL;
5426 }
5427
5428
5429 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj;
5431 wxRegion *arg1 = (wxRegion *) 0 ;
5432 int arg2 ;
5433 int arg3 ;
5434 int arg4 ;
5435 int arg5 ;
5436 bool result;
5437 PyObject * obj0 = 0 ;
5438 PyObject * obj1 = 0 ;
5439 PyObject * obj2 = 0 ;
5440 PyObject * obj3 = 0 ;
5441 PyObject * obj4 = 0 ;
5442 char *kwnames[] = {
5443 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5444 };
5445
5446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5449 arg2 = (int)SWIG_As_int(obj1);
5450 if (PyErr_Occurred()) SWIG_fail;
5451 arg3 = (int)SWIG_As_int(obj2);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 arg4 = (int)SWIG_As_int(obj3);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 arg5 = (int)SWIG_As_int(obj4);
5456 if (PyErr_Occurred()) SWIG_fail;
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5460
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 {
5465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5466 }
5467 return resultobj;
5468 fail:
5469 return NULL;
5470 }
5471
5472
5473 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
5474 PyObject *resultobj;
5475 wxRegion *arg1 = (wxRegion *) 0 ;
5476 wxRect *arg2 = 0 ;
5477 bool result;
5478 wxRect temp2 ;
5479 PyObject * obj0 = 0 ;
5480 PyObject * obj1 = 0 ;
5481 char *kwnames[] = {
5482 (char *) "self",(char *) "rect", NULL
5483 };
5484
5485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5488 {
5489 arg2 = &temp2;
5490 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5491 }
5492 {
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5495
5496 wxPyEndAllowThreads(__tstate);
5497 if (PyErr_Occurred()) SWIG_fail;
5498 }
5499 {
5500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5501 }
5502 return resultobj;
5503 fail:
5504 return NULL;
5505 }
5506
5507
5508 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5509 PyObject *resultobj;
5510 wxRegion *arg1 = (wxRegion *) 0 ;
5511 wxRegion *arg2 = 0 ;
5512 bool result;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 char *kwnames[] = {
5516 (char *) "self",(char *) "region", NULL
5517 };
5518
5519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5523 SWIG_POINTER_EXCEPTION | 0)) == -1)
5524 SWIG_fail;
5525 if (arg2 == NULL) {
5526 PyErr_SetString(PyExc_TypeError,"null reference");
5527 SWIG_fail;
5528 }
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5532
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 {
5537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5538 }
5539 return resultobj;
5540 fail:
5541 return NULL;
5542 }
5543
5544
5545 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
5546 PyObject *resultobj;
5547 wxRegion *arg1 = (wxRegion *) 0 ;
5548 int arg2 ;
5549 int arg3 ;
5550 int arg4 ;
5551 int arg5 ;
5552 bool result;
5553 PyObject * obj0 = 0 ;
5554 PyObject * obj1 = 0 ;
5555 PyObject * obj2 = 0 ;
5556 PyObject * obj3 = 0 ;
5557 PyObject * obj4 = 0 ;
5558 char *kwnames[] = {
5559 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5560 };
5561
5562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5565 arg2 = (int)SWIG_As_int(obj1);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 arg3 = (int)SWIG_As_int(obj2);
5568 if (PyErr_Occurred()) SWIG_fail;
5569 arg4 = (int)SWIG_As_int(obj3);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg5 = (int)SWIG_As_int(obj4);
5572 if (PyErr_Occurred()) SWIG_fail;
5573 {
5574 PyThreadState* __tstate = wxPyBeginAllowThreads();
5575 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5576
5577 wxPyEndAllowThreads(__tstate);
5578 if (PyErr_Occurred()) SWIG_fail;
5579 }
5580 {
5581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5582 }
5583 return resultobj;
5584 fail:
5585 return NULL;
5586 }
5587
5588
5589 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
5590 PyObject *resultobj;
5591 wxRegion *arg1 = (wxRegion *) 0 ;
5592 wxRect *arg2 = 0 ;
5593 bool result;
5594 wxRect temp2 ;
5595 PyObject * obj0 = 0 ;
5596 PyObject * obj1 = 0 ;
5597 char *kwnames[] = {
5598 (char *) "self",(char *) "rect", NULL
5599 };
5600
5601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5604 {
5605 arg2 = &temp2;
5606 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5607 }
5608 {
5609 PyThreadState* __tstate = wxPyBeginAllowThreads();
5610 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5611
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 {
5616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5617 }
5618 return resultobj;
5619 fail:
5620 return NULL;
5621 }
5622
5623
5624 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5625 PyObject *resultobj;
5626 wxRegion *arg1 = (wxRegion *) 0 ;
5627 wxRegion *arg2 = 0 ;
5628 bool result;
5629 PyObject * obj0 = 0 ;
5630 PyObject * obj1 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "self",(char *) "region", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5639 SWIG_POINTER_EXCEPTION | 0)) == -1)
5640 SWIG_fail;
5641 if (arg2 == NULL) {
5642 PyErr_SetString(PyExc_TypeError,"null reference");
5643 SWIG_fail;
5644 }
5645 {
5646 PyThreadState* __tstate = wxPyBeginAllowThreads();
5647 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5648
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 {
5653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5654 }
5655 return resultobj;
5656 fail:
5657 return NULL;
5658 }
5659
5660
5661 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5662 PyObject *resultobj;
5663 wxRegion *arg1 = (wxRegion *) 0 ;
5664 SwigValueWrapper< wxBitmap > result;
5665 PyObject * obj0 = 0 ;
5666 char *kwnames[] = {
5667 (char *) "self", NULL
5668 };
5669
5670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5673 {
5674 PyThreadState* __tstate = wxPyBeginAllowThreads();
5675 result = (arg1)->ConvertToBitmap();
5676
5677 wxPyEndAllowThreads(__tstate);
5678 if (PyErr_Occurred()) SWIG_fail;
5679 }
5680 {
5681 wxBitmap * resultptr;
5682 resultptr = new wxBitmap((wxBitmap &) result);
5683 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5684 }
5685 return resultobj;
5686 fail:
5687 return NULL;
5688 }
5689
5690
5691 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5692 PyObject *resultobj;
5693 wxRegion *arg1 = (wxRegion *) 0 ;
5694 wxBitmap *arg2 = 0 ;
5695 bool result;
5696 PyObject * obj0 = 0 ;
5697 PyObject * obj1 = 0 ;
5698 char *kwnames[] = {
5699 (char *) "self",(char *) "bmp", NULL
5700 };
5701
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5705 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5706 SWIG_POINTER_EXCEPTION | 0)) == -1)
5707 SWIG_fail;
5708 if (arg2 == NULL) {
5709 PyErr_SetString(PyExc_TypeError,"null reference");
5710 SWIG_fail;
5711 }
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5715
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 {
5720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5721 }
5722 return resultobj;
5723 fail:
5724 return NULL;
5725 }
5726
5727
5728 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
5729 PyObject *resultobj;
5730 wxRegion *arg1 = (wxRegion *) 0 ;
5731 wxBitmap *arg2 = 0 ;
5732 wxColour *arg3 = 0 ;
5733 int arg4 = (int) 0 ;
5734 bool result;
5735 wxColour temp3 ;
5736 PyObject * obj0 = 0 ;
5737 PyObject * obj1 = 0 ;
5738 PyObject * obj2 = 0 ;
5739 PyObject * obj3 = 0 ;
5740 char *kwnames[] = {
5741 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5742 };
5743
5744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5747 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5748 SWIG_POINTER_EXCEPTION | 0)) == -1)
5749 SWIG_fail;
5750 if (arg2 == NULL) {
5751 PyErr_SetString(PyExc_TypeError,"null reference");
5752 SWIG_fail;
5753 }
5754 {
5755 arg3 = &temp3;
5756 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5757 }
5758 if (obj3) {
5759 arg4 = (int)SWIG_As_int(obj3);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5765
5766 wxPyEndAllowThreads(__tstate);
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 {
5770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5771 }
5772 return resultobj;
5773 fail:
5774 return NULL;
5775 }
5776
5777
5778 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
5779 PyObject *obj;
5780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5781 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5782 Py_INCREF(obj);
5783 return Py_BuildValue((char *)"");
5784 }
5785 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj;
5787 wxRegion *arg1 = 0 ;
5788 wxRegionIterator *result;
5789 PyObject * obj0 = 0 ;
5790 char *kwnames[] = {
5791 (char *) "region", NULL
5792 };
5793
5794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5796 SWIG_POINTER_EXCEPTION | 0)) == -1)
5797 SWIG_fail;
5798 if (arg1 == NULL) {
5799 PyErr_SetString(PyExc_TypeError,"null reference");
5800 SWIG_fail;
5801 }
5802 {
5803 if (!wxPyCheckForApp()) SWIG_fail;
5804 PyThreadState* __tstate = wxPyBeginAllowThreads();
5805 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5806
5807 wxPyEndAllowThreads(__tstate);
5808 if (PyErr_Occurred()) SWIG_fail;
5809 }
5810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5811 return resultobj;
5812 fail:
5813 return NULL;
5814 }
5815
5816
5817 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5818 PyObject *resultobj;
5819 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5820 PyObject * obj0 = 0 ;
5821 char *kwnames[] = {
5822 (char *) "self", NULL
5823 };
5824
5825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 delete arg1;
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 Py_INCREF(Py_None); resultobj = Py_None;
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5845 int result;
5846 PyObject * obj0 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5854 {
5855 PyThreadState* __tstate = wxPyBeginAllowThreads();
5856 result = (int)(arg1)->GetX();
5857
5858 wxPyEndAllowThreads(__tstate);
5859 if (PyErr_Occurred()) SWIG_fail;
5860 }
5861 resultobj = SWIG_From_int((int)result);
5862 return resultobj;
5863 fail:
5864 return NULL;
5865 }
5866
5867
5868 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5869 PyObject *resultobj;
5870 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5871 int result;
5872 PyObject * obj0 = 0 ;
5873 char *kwnames[] = {
5874 (char *) "self", NULL
5875 };
5876
5877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (int)(arg1)->GetY();
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 resultobj = SWIG_From_int((int)result);
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5897 int result;
5898 PyObject * obj0 = 0 ;
5899 char *kwnames[] = {
5900 (char *) "self", NULL
5901 };
5902
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 result = (int)(arg1)->GetW();
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 resultobj = SWIG_From_int((int)result);
5914 return resultobj;
5915 fail:
5916 return NULL;
5917 }
5918
5919
5920 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5921 PyObject *resultobj;
5922 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5923 int result;
5924 PyObject * obj0 = 0 ;
5925 char *kwnames[] = {
5926 (char *) "self", NULL
5927 };
5928
5929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 result = (int)(arg1)->GetWidth();
5935
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_From_int((int)result);
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj;
5948 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5949 int result;
5950 PyObject * obj0 = 0 ;
5951 char *kwnames[] = {
5952 (char *) "self", NULL
5953 };
5954
5955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5958 {
5959 PyThreadState* __tstate = wxPyBeginAllowThreads();
5960 result = (int)(arg1)->GetH();
5961
5962 wxPyEndAllowThreads(__tstate);
5963 if (PyErr_Occurred()) SWIG_fail;
5964 }
5965 resultobj = SWIG_From_int((int)result);
5966 return resultobj;
5967 fail:
5968 return NULL;
5969 }
5970
5971
5972 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5973 PyObject *resultobj;
5974 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5975 int result;
5976 PyObject * obj0 = 0 ;
5977 char *kwnames[] = {
5978 (char *) "self", NULL
5979 };
5980
5981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 result = (int)(arg1)->GetHeight();
5987
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 resultobj = SWIG_From_int((int)result);
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj;
6000 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6001 wxRect result;
6002 PyObject * obj0 = 0 ;
6003 char *kwnames[] = {
6004 (char *) "self", NULL
6005 };
6006
6007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 result = (arg1)->GetRect();
6013
6014 wxPyEndAllowThreads(__tstate);
6015 if (PyErr_Occurred()) SWIG_fail;
6016 }
6017 {
6018 wxRect * resultptr;
6019 resultptr = new wxRect((wxRect &) result);
6020 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6021 }
6022 return resultobj;
6023 fail:
6024 return NULL;
6025 }
6026
6027
6028 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
6029 PyObject *resultobj;
6030 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6031 bool result;
6032 PyObject * obj0 = 0 ;
6033 char *kwnames[] = {
6034 (char *) "self", NULL
6035 };
6036
6037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6040 {
6041 PyThreadState* __tstate = wxPyBeginAllowThreads();
6042 result = (bool)(arg1)->HaveRects();
6043
6044 wxPyEndAllowThreads(__tstate);
6045 if (PyErr_Occurred()) SWIG_fail;
6046 }
6047 {
6048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6049 }
6050 return resultobj;
6051 fail:
6052 return NULL;
6053 }
6054
6055
6056 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
6057 PyObject *resultobj;
6058 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6059 PyObject * obj0 = 0 ;
6060 char *kwnames[] = {
6061 (char *) "self", NULL
6062 };
6063
6064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6067 {
6068 PyThreadState* __tstate = wxPyBeginAllowThreads();
6069 (arg1)->Reset();
6070
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) SWIG_fail;
6073 }
6074 Py_INCREF(Py_None); resultobj = Py_None;
6075 return resultobj;
6076 fail:
6077 return NULL;
6078 }
6079
6080
6081 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
6082 PyObject *resultobj;
6083 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6084 PyObject * obj0 = 0 ;
6085 char *kwnames[] = {
6086 (char *) "self", NULL
6087 };
6088
6089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6092 {
6093 PyThreadState* __tstate = wxPyBeginAllowThreads();
6094 wxRegionIterator_Next(arg1);
6095
6096 wxPyEndAllowThreads(__tstate);
6097 if (PyErr_Occurred()) SWIG_fail;
6098 }
6099 Py_INCREF(Py_None); resultobj = Py_None;
6100 return resultobj;
6101 fail:
6102 return NULL;
6103 }
6104
6105
6106 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
6107 PyObject *resultobj;
6108 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6109 bool result;
6110 PyObject * obj0 = 0 ;
6111 char *kwnames[] = {
6112 (char *) "self", NULL
6113 };
6114
6115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6118 {
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 result = (bool)wxRegionIterator___nonzero__(arg1);
6121
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 {
6126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6127 }
6128 return resultobj;
6129 fail:
6130 return NULL;
6131 }
6132
6133
6134 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
6135 PyObject *obj;
6136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6137 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6138 Py_INCREF(obj);
6139 return Py_BuildValue((char *)"");
6140 }
6141 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj;
6143 wxNativeFontInfo *result;
6144 char *kwnames[] = {
6145 NULL
6146 };
6147
6148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6152
6153 wxPyEndAllowThreads(__tstate);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6157 return resultobj;
6158 fail:
6159 return NULL;
6160 }
6161
6162
6163 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6164 PyObject *resultobj;
6165 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6166 PyObject * obj0 = 0 ;
6167 char *kwnames[] = {
6168 (char *) "self", NULL
6169 };
6170
6171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 delete arg1;
6177
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 Py_INCREF(Py_None); resultobj = Py_None;
6182 return resultobj;
6183 fail:
6184 return NULL;
6185 }
6186
6187
6188 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
6189 PyObject *resultobj;
6190 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6191 PyObject * obj0 = 0 ;
6192 char *kwnames[] = {
6193 (char *) "self", NULL
6194 };
6195
6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6199 {
6200 PyThreadState* __tstate = wxPyBeginAllowThreads();
6201 (arg1)->Init();
6202
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 Py_INCREF(Py_None); resultobj = Py_None;
6207 return resultobj;
6208 fail:
6209 return NULL;
6210 }
6211
6212
6213 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj;
6215 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6216 wxFont *arg2 = 0 ;
6217 PyObject * obj0 = 0 ;
6218 PyObject * obj1 = 0 ;
6219 char *kwnames[] = {
6220 (char *) "self",(char *) "font", NULL
6221 };
6222
6223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6227 SWIG_POINTER_EXCEPTION | 0)) == -1)
6228 SWIG_fail;
6229 if (arg2 == NULL) {
6230 PyErr_SetString(PyExc_TypeError,"null reference");
6231 SWIG_fail;
6232 }
6233 {
6234 PyThreadState* __tstate = wxPyBeginAllowThreads();
6235 (arg1)->InitFromFont((wxFont const &)*arg2);
6236
6237 wxPyEndAllowThreads(__tstate);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 }
6240 Py_INCREF(Py_None); resultobj = Py_None;
6241 return resultobj;
6242 fail:
6243 return NULL;
6244 }
6245
6246
6247 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6248 PyObject *resultobj;
6249 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6250 int result;
6251 PyObject * obj0 = 0 ;
6252 char *kwnames[] = {
6253 (char *) "self", NULL
6254 };
6255
6256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6262
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_From_int((int)result);
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6276 int result;
6277 PyObject * obj0 = 0 ;
6278 char *kwnames[] = {
6279 (char *) "self", NULL
6280 };
6281
6282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6288
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_From_int((int)result);
6293 return resultobj;
6294 fail:
6295 return NULL;
6296 }
6297
6298
6299 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj;
6301 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6302 int result;
6303 PyObject * obj0 = 0 ;
6304 char *kwnames[] = {
6305 (char *) "self", NULL
6306 };
6307
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 resultobj = SWIG_From_int((int)result);
6319 return resultobj;
6320 fail:
6321 return NULL;
6322 }
6323
6324
6325 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6326 PyObject *resultobj;
6327 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6328 bool result;
6329 PyObject * obj0 = 0 ;
6330 char *kwnames[] = {
6331 (char *) "self", NULL
6332 };
6333
6334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6340
6341 wxPyEndAllowThreads(__tstate);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 }
6344 {
6345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6346 }
6347 return resultobj;
6348 fail:
6349 return NULL;
6350 }
6351
6352
6353 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6354 PyObject *resultobj;
6355 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6356 wxString result;
6357 PyObject * obj0 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6365 {
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6368
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 {
6373 #if wxUSE_UNICODE
6374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6375 #else
6376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6377 #endif
6378 }
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6386 PyObject *resultobj;
6387 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6388 int result;
6389 PyObject * obj0 = 0 ;
6390 char *kwnames[] = {
6391 (char *) "self", NULL
6392 };
6393
6394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6397 {
6398 PyThreadState* __tstate = wxPyBeginAllowThreads();
6399 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6400
6401 wxPyEndAllowThreads(__tstate);
6402 if (PyErr_Occurred()) SWIG_fail;
6403 }
6404 resultobj = SWIG_From_int((int)result);
6405 return resultobj;
6406 fail:
6407 return NULL;
6408 }
6409
6410
6411 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6412 PyObject *resultobj;
6413 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6414 int result;
6415 PyObject * obj0 = 0 ;
6416 char *kwnames[] = {
6417 (char *) "self", NULL
6418 };
6419
6420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6423 {
6424 PyThreadState* __tstate = wxPyBeginAllowThreads();
6425 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6426
6427 wxPyEndAllowThreads(__tstate);
6428 if (PyErr_Occurred()) SWIG_fail;
6429 }
6430 resultobj = SWIG_From_int((int)result);
6431 return resultobj;
6432 fail:
6433 return NULL;
6434 }
6435
6436
6437 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6438 PyObject *resultobj;
6439 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6440 int arg2 ;
6441 PyObject * obj0 = 0 ;
6442 PyObject * obj1 = 0 ;
6443 char *kwnames[] = {
6444 (char *) "self",(char *) "pointsize", NULL
6445 };
6446
6447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6450 arg2 = (int)SWIG_As_int(obj1);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 {
6453 PyThreadState* __tstate = wxPyBeginAllowThreads();
6454 (arg1)->SetPointSize(arg2);
6455
6456 wxPyEndAllowThreads(__tstate);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 Py_INCREF(Py_None); resultobj = Py_None;
6460 return resultobj;
6461 fail:
6462 return NULL;
6463 }
6464
6465
6466 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6467 PyObject *resultobj;
6468 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6469 int arg2 ;
6470 PyObject * obj0 = 0 ;
6471 PyObject * obj1 = 0 ;
6472 char *kwnames[] = {
6473 (char *) "self",(char *) "style", NULL
6474 };
6475
6476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6479 arg2 = (int)SWIG_As_int(obj1);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 {
6482 PyThreadState* __tstate = wxPyBeginAllowThreads();
6483 (arg1)->SetStyle((wxFontStyle )arg2);
6484
6485 wxPyEndAllowThreads(__tstate);
6486 if (PyErr_Occurred()) SWIG_fail;
6487 }
6488 Py_INCREF(Py_None); resultobj = Py_None;
6489 return resultobj;
6490 fail:
6491 return NULL;
6492 }
6493
6494
6495 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6496 PyObject *resultobj;
6497 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6498 int arg2 ;
6499 PyObject * obj0 = 0 ;
6500 PyObject * obj1 = 0 ;
6501 char *kwnames[] = {
6502 (char *) "self",(char *) "weight", NULL
6503 };
6504
6505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6508 arg2 = (int)SWIG_As_int(obj1);
6509 if (PyErr_Occurred()) SWIG_fail;
6510 {
6511 PyThreadState* __tstate = wxPyBeginAllowThreads();
6512 (arg1)->SetWeight((wxFontWeight )arg2);
6513
6514 wxPyEndAllowThreads(__tstate);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 Py_INCREF(Py_None); resultobj = Py_None;
6518 return resultobj;
6519 fail:
6520 return NULL;
6521 }
6522
6523
6524 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6525 PyObject *resultobj;
6526 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6527 bool arg2 ;
6528 PyObject * obj0 = 0 ;
6529 PyObject * obj1 = 0 ;
6530 char *kwnames[] = {
6531 (char *) "self",(char *) "underlined", NULL
6532 };
6533
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6537 arg2 = (bool)SWIG_As_bool(obj1);
6538 if (PyErr_Occurred()) SWIG_fail;
6539 {
6540 PyThreadState* __tstate = wxPyBeginAllowThreads();
6541 (arg1)->SetUnderlined(arg2);
6542
6543 wxPyEndAllowThreads(__tstate);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 }
6546 Py_INCREF(Py_None); resultobj = Py_None;
6547 return resultobj;
6548 fail:
6549 return NULL;
6550 }
6551
6552
6553 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6554 PyObject *resultobj;
6555 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6556 wxString arg2 ;
6557 PyObject * obj0 = 0 ;
6558 PyObject * obj1 = 0 ;
6559 char *kwnames[] = {
6560 (char *) "self",(char *) "facename", NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6566 {
6567 wxString* sptr = wxString_in_helper(obj1);
6568 if (sptr == NULL) SWIG_fail;
6569 arg2 = *sptr;
6570 delete sptr;
6571 }
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SetFaceName(arg2);
6575
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 Py_INCREF(Py_None); resultobj = Py_None;
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6587 PyObject *resultobj;
6588 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6589 int arg2 ;
6590 PyObject * obj0 = 0 ;
6591 PyObject * obj1 = 0 ;
6592 char *kwnames[] = {
6593 (char *) "self",(char *) "family", NULL
6594 };
6595
6596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6599 arg2 = (int)SWIG_As_int(obj1);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 {
6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
6603 (arg1)->SetFamily((wxFontFamily )arg2);
6604
6605 wxPyEndAllowThreads(__tstate);
6606 if (PyErr_Occurred()) SWIG_fail;
6607 }
6608 Py_INCREF(Py_None); resultobj = Py_None;
6609 return resultobj;
6610 fail:
6611 return NULL;
6612 }
6613
6614
6615 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6616 PyObject *resultobj;
6617 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6618 int arg2 ;
6619 PyObject * obj0 = 0 ;
6620 PyObject * obj1 = 0 ;
6621 char *kwnames[] = {
6622 (char *) "self",(char *) "encoding", NULL
6623 };
6624
6625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6628 arg2 = (int)SWIG_As_int(obj1);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 (arg1)->SetEncoding((wxFontEncoding )arg2);
6633
6634 wxPyEndAllowThreads(__tstate);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 Py_INCREF(Py_None); resultobj = Py_None;
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6645 PyObject *resultobj;
6646 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6647 wxString *arg2 = 0 ;
6648 bool result;
6649 bool temp2 = false ;
6650 PyObject * obj0 = 0 ;
6651 PyObject * obj1 = 0 ;
6652 char *kwnames[] = {
6653 (char *) "self",(char *) "s", NULL
6654 };
6655
6656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6659 {
6660 arg2 = wxString_in_helper(obj1);
6661 if (arg2 == NULL) SWIG_fail;
6662 temp2 = true;
6663 }
6664 {
6665 PyThreadState* __tstate = wxPyBeginAllowThreads();
6666 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6667
6668 wxPyEndAllowThreads(__tstate);
6669 if (PyErr_Occurred()) SWIG_fail;
6670 }
6671 {
6672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6673 }
6674 {
6675 if (temp2)
6676 delete arg2;
6677 }
6678 return resultobj;
6679 fail:
6680 {
6681 if (temp2)
6682 delete arg2;
6683 }
6684 return NULL;
6685 }
6686
6687
6688 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj;
6690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6691 wxString result;
6692 PyObject * obj0 = 0 ;
6693 char *kwnames[] = {
6694 (char *) "self", NULL
6695 };
6696
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6700 {
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 result = ((wxNativeFontInfo const *)arg1)->ToString();
6703
6704 wxPyEndAllowThreads(__tstate);
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
6707 {
6708 #if wxUSE_UNICODE
6709 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6710 #else
6711 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6712 #endif
6713 }
6714 return resultobj;
6715 fail:
6716 return NULL;
6717 }
6718
6719
6720 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
6721 PyObject *resultobj;
6722 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6723 wxString result;
6724 PyObject * obj0 = 0 ;
6725 char *kwnames[] = {
6726 (char *) "self", NULL
6727 };
6728
6729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6732 {
6733 PyThreadState* __tstate = wxPyBeginAllowThreads();
6734 result = wxNativeFontInfo___str__(arg1);
6735
6736 wxPyEndAllowThreads(__tstate);
6737 if (PyErr_Occurred()) SWIG_fail;
6738 }
6739 {
6740 #if wxUSE_UNICODE
6741 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6742 #else
6743 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6744 #endif
6745 }
6746 return resultobj;
6747 fail:
6748 return NULL;
6749 }
6750
6751
6752 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj;
6754 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6755 wxString *arg2 = 0 ;
6756 bool result;
6757 bool temp2 = false ;
6758 PyObject * obj0 = 0 ;
6759 PyObject * obj1 = 0 ;
6760 char *kwnames[] = {
6761 (char *) "self",(char *) "s", NULL
6762 };
6763
6764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6767 {
6768 arg2 = wxString_in_helper(obj1);
6769 if (arg2 == NULL) SWIG_fail;
6770 temp2 = true;
6771 }
6772 {
6773 PyThreadState* __tstate = wxPyBeginAllowThreads();
6774 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6775
6776 wxPyEndAllowThreads(__tstate);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 {
6780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6781 }
6782 {
6783 if (temp2)
6784 delete arg2;
6785 }
6786 return resultobj;
6787 fail:
6788 {
6789 if (temp2)
6790 delete arg2;
6791 }
6792 return NULL;
6793 }
6794
6795
6796 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6797 PyObject *resultobj;
6798 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6799 wxString result;
6800 PyObject * obj0 = 0 ;
6801 char *kwnames[] = {
6802 (char *) "self", NULL
6803 };
6804
6805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6808 {
6809 PyThreadState* __tstate = wxPyBeginAllowThreads();
6810 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6811
6812 wxPyEndAllowThreads(__tstate);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 {
6816 #if wxUSE_UNICODE
6817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6818 #else
6819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6820 #endif
6821 }
6822 return resultobj;
6823 fail:
6824 return NULL;
6825 }
6826
6827
6828 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
6829 PyObject *obj;
6830 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6831 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6832 Py_INCREF(obj);
6833 return Py_BuildValue((char *)"");
6834 }
6835 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
6836 PyObject *resultobj;
6837 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6838 wxString *arg2 = (wxString *) 0 ;
6839 bool temp2 = false ;
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6842 char *kwnames[] = {
6843 (char *) "self",(char *) "facename", NULL
6844 };
6845
6846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6849 {
6850 arg2 = wxString_in_helper(obj1);
6851 if (arg2 == NULL) SWIG_fail;
6852 temp2 = true;
6853 }
6854 if (arg1) (arg1)->facename = *arg2;
6855
6856 Py_INCREF(Py_None); resultobj = Py_None;
6857 {
6858 if (temp2)
6859 delete arg2;
6860 }
6861 return resultobj;
6862 fail:
6863 {
6864 if (temp2)
6865 delete arg2;
6866 }
6867 return NULL;
6868 }
6869
6870
6871 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
6872 PyObject *resultobj;
6873 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6874 wxString *result;
6875 PyObject * obj0 = 0 ;
6876 char *kwnames[] = {
6877 (char *) "self", NULL
6878 };
6879
6880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6883 result = (wxString *)& ((arg1)->facename);
6884
6885 {
6886 #if wxUSE_UNICODE
6887 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6888 #else
6889 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6890 #endif
6891 }
6892 return resultobj;
6893 fail:
6894 return NULL;
6895 }
6896
6897
6898 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
6899 PyObject *resultobj;
6900 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6901 int arg2 ;
6902 PyObject * obj0 = 0 ;
6903 PyObject * obj1 = 0 ;
6904 char *kwnames[] = {
6905 (char *) "self",(char *) "encoding", NULL
6906 };
6907
6908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6911 arg2 = (int)SWIG_As_int(obj1);
6912 if (PyErr_Occurred()) SWIG_fail;
6913 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6914
6915 Py_INCREF(Py_None); resultobj = Py_None;
6916 return resultobj;
6917 fail:
6918 return NULL;
6919 }
6920
6921
6922 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
6923 PyObject *resultobj;
6924 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6925 int result;
6926 PyObject * obj0 = 0 ;
6927 char *kwnames[] = {
6928 (char *) "self", NULL
6929 };
6930
6931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6934 result = (int) ((arg1)->encoding);
6935
6936 resultobj = SWIG_From_int((int)result);
6937 return resultobj;
6938 fail:
6939 return NULL;
6940 }
6941
6942
6943 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6944 PyObject *resultobj;
6945 wxNativeEncodingInfo *result;
6946 char *kwnames[] = {
6947 NULL
6948 };
6949
6950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6951 {
6952 PyThreadState* __tstate = wxPyBeginAllowThreads();
6953 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6954
6955 wxPyEndAllowThreads(__tstate);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6959 return resultobj;
6960 fail:
6961 return NULL;
6962 }
6963
6964
6965 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6966 PyObject *resultobj;
6967 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6968 PyObject * obj0 = 0 ;
6969 char *kwnames[] = {
6970 (char *) "self", NULL
6971 };
6972
6973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6976 {
6977 PyThreadState* __tstate = wxPyBeginAllowThreads();
6978 delete arg1;
6979
6980 wxPyEndAllowThreads(__tstate);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 Py_INCREF(Py_None); resultobj = Py_None;
6984 return resultobj;
6985 fail:
6986 return NULL;
6987 }
6988
6989
6990 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6991 PyObject *resultobj;
6992 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6993 wxString *arg2 = 0 ;
6994 bool result;
6995 bool temp2 = false ;
6996 PyObject * obj0 = 0 ;
6997 PyObject * obj1 = 0 ;
6998 char *kwnames[] = {
6999 (char *) "self",(char *) "s", NULL
7000 };
7001
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7005 {
7006 arg2 = wxString_in_helper(obj1);
7007 if (arg2 == NULL) SWIG_fail;
7008 temp2 = true;
7009 }
7010 {
7011 PyThreadState* __tstate = wxPyBeginAllowThreads();
7012 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7013
7014 wxPyEndAllowThreads(__tstate);
7015 if (PyErr_Occurred()) SWIG_fail;
7016 }
7017 {
7018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7019 }
7020 {
7021 if (temp2)
7022 delete arg2;
7023 }
7024 return resultobj;
7025 fail:
7026 {
7027 if (temp2)
7028 delete arg2;
7029 }
7030 return NULL;
7031 }
7032
7033
7034 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
7035 PyObject *resultobj;
7036 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7037 wxString result;
7038 PyObject * obj0 = 0 ;
7039 char *kwnames[] = {
7040 (char *) "self", NULL
7041 };
7042
7043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7046 {
7047 PyThreadState* __tstate = wxPyBeginAllowThreads();
7048 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7049
7050 wxPyEndAllowThreads(__tstate);
7051 if (PyErr_Occurred()) SWIG_fail;
7052 }
7053 {
7054 #if wxUSE_UNICODE
7055 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7056 #else
7057 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7058 #endif
7059 }
7060 return resultobj;
7061 fail:
7062 return NULL;
7063 }
7064
7065
7066 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
7067 PyObject *obj;
7068 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7069 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7070 Py_INCREF(obj);
7071 return Py_BuildValue((char *)"");
7072 }
7073 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj;
7075 int arg1 ;
7076 wxNativeEncodingInfo *result;
7077 PyObject * obj0 = 0 ;
7078 char *kwnames[] = {
7079 (char *) "encoding", NULL
7080 };
7081
7082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7083 arg1 = (int)SWIG_As_int(obj0);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7093 return resultobj;
7094 fail:
7095 return NULL;
7096 }
7097
7098
7099 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj;
7101 wxNativeEncodingInfo *arg1 = 0 ;
7102 bool result;
7103 PyObject * obj0 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "info", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7110 SWIG_POINTER_EXCEPTION | 0)) == -1)
7111 SWIG_fail;
7112 if (arg1 == NULL) {
7113 PyErr_SetString(PyExc_TypeError,"null reference");
7114 SWIG_fail;
7115 }
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7119
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 {
7124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7125 }
7126 return resultobj;
7127 fail:
7128 return NULL;
7129 }
7130
7131
7132 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7133 PyObject *resultobj;
7134 wxFontMapper *result;
7135 char *kwnames[] = {
7136 NULL
7137 };
7138
7139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 result = (wxFontMapper *)new wxFontMapper();
7143
7144 wxPyEndAllowThreads(__tstate);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7148 return resultobj;
7149 fail:
7150 return NULL;
7151 }
7152
7153
7154 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7155 PyObject *resultobj;
7156 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7157 PyObject * obj0 = 0 ;
7158 char *kwnames[] = {
7159 (char *) "self", NULL
7160 };
7161
7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7165 {
7166 PyThreadState* __tstate = wxPyBeginAllowThreads();
7167 delete arg1;
7168
7169 wxPyEndAllowThreads(__tstate);
7170 if (PyErr_Occurred()) SWIG_fail;
7171 }
7172 Py_INCREF(Py_None); resultobj = Py_None;
7173 return resultobj;
7174 fail:
7175 return NULL;
7176 }
7177
7178
7179 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
7180 PyObject *resultobj;
7181 wxFontMapper *result;
7182 char *kwnames[] = {
7183 NULL
7184 };
7185
7186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 result = (wxFontMapper *)wxFontMapper::Get();
7190
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7195 return resultobj;
7196 fail:
7197 return NULL;
7198 }
7199
7200
7201 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7202 PyObject *resultobj;
7203 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7204 wxFontMapper *result;
7205 PyObject * obj0 = 0 ;
7206 char *kwnames[] = {
7207 (char *) "mapper", NULL
7208 };
7209
7210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7213 {
7214 PyThreadState* __tstate = wxPyBeginAllowThreads();
7215 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7216
7217 wxPyEndAllowThreads(__tstate);
7218 if (PyErr_Occurred()) SWIG_fail;
7219 }
7220 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7221 return resultobj;
7222 fail:
7223 return NULL;
7224 }
7225
7226
7227 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7228 PyObject *resultobj;
7229 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7230 wxString *arg2 = 0 ;
7231 bool arg3 = (bool) true ;
7232 int result;
7233 bool temp2 = false ;
7234 PyObject * obj0 = 0 ;
7235 PyObject * obj1 = 0 ;
7236 PyObject * obj2 = 0 ;
7237 char *kwnames[] = {
7238 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7239 };
7240
7241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7244 {
7245 arg2 = wxString_in_helper(obj1);
7246 if (arg2 == NULL) SWIG_fail;
7247 temp2 = true;
7248 }
7249 if (obj2) {
7250 arg3 = (bool)SWIG_As_bool(obj2);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7256
7257 wxPyEndAllowThreads(__tstate);
7258 if (PyErr_Occurred()) SWIG_fail;
7259 }
7260 resultobj = SWIG_From_int((int)result);
7261 {
7262 if (temp2)
7263 delete arg2;
7264 }
7265 return resultobj;
7266 fail:
7267 {
7268 if (temp2)
7269 delete arg2;
7270 }
7271 return NULL;
7272 }
7273
7274
7275 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
7276 PyObject *resultobj;
7277 size_t result;
7278 char *kwnames[] = {
7279 NULL
7280 };
7281
7282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7286
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj;
7299 size_t arg1 ;
7300 int result;
7301 PyObject * obj0 = 0 ;
7302 char *kwnames[] = {
7303 (char *) "n", NULL
7304 };
7305
7306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7307 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 result = (int)wxFontMapper::GetEncoding(arg1);
7312
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 resultobj = SWIG_From_int((int)result);
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
7324 PyObject *resultobj;
7325 int arg1 ;
7326 wxString result;
7327 PyObject * obj0 = 0 ;
7328 char *kwnames[] = {
7329 (char *) "encoding", NULL
7330 };
7331
7332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7333 arg1 = (int)SWIG_As_int(obj0);
7334 if (PyErr_Occurred()) SWIG_fail;
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 {
7343 #if wxUSE_UNICODE
7344 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7345 #else
7346 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7347 #endif
7348 }
7349 return resultobj;
7350 fail:
7351 return NULL;
7352 }
7353
7354
7355 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
7356 PyObject *resultobj;
7357 int arg1 ;
7358 wxString result;
7359 PyObject * obj0 = 0 ;
7360 char *kwnames[] = {
7361 (char *) "encoding", NULL
7362 };
7363
7364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7365 arg1 = (int)SWIG_As_int(obj0);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 {
7375 #if wxUSE_UNICODE
7376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7377 #else
7378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7379 #endif
7380 }
7381 return resultobj;
7382 fail:
7383 return NULL;
7384 }
7385
7386
7387 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
7388 PyObject *resultobj;
7389 wxString *arg1 = 0 ;
7390 int result;
7391 bool temp1 = false ;
7392 PyObject * obj0 = 0 ;
7393 char *kwnames[] = {
7394 (char *) "name", NULL
7395 };
7396
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7398 {
7399 arg1 = wxString_in_helper(obj0);
7400 if (arg1 == NULL) SWIG_fail;
7401 temp1 = true;
7402 }
7403 {
7404 PyThreadState* __tstate = wxPyBeginAllowThreads();
7405 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7406
7407 wxPyEndAllowThreads(__tstate);
7408 if (PyErr_Occurred()) SWIG_fail;
7409 }
7410 resultobj = SWIG_From_int((int)result);
7411 {
7412 if (temp1)
7413 delete arg1;
7414 }
7415 return resultobj;
7416 fail:
7417 {
7418 if (temp1)
7419 delete arg1;
7420 }
7421 return NULL;
7422 }
7423
7424
7425 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
7426 PyObject *resultobj;
7427 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7428 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7429 PyObject * obj0 = 0 ;
7430 PyObject * obj1 = 0 ;
7431 char *kwnames[] = {
7432 (char *) "self",(char *) "config", NULL
7433 };
7434
7435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7438 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7440 {
7441 PyThreadState* __tstate = wxPyBeginAllowThreads();
7442 (arg1)->SetConfig(arg2);
7443
7444 wxPyEndAllowThreads(__tstate);
7445 if (PyErr_Occurred()) SWIG_fail;
7446 }
7447 Py_INCREF(Py_None); resultobj = Py_None;
7448 return resultobj;
7449 fail:
7450 return NULL;
7451 }
7452
7453
7454 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7455 PyObject *resultobj;
7456 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7457 wxString *arg2 = 0 ;
7458 bool temp2 = false ;
7459 PyObject * obj0 = 0 ;
7460 PyObject * obj1 = 0 ;
7461 char *kwnames[] = {
7462 (char *) "self",(char *) "prefix", NULL
7463 };
7464
7465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7468 {
7469 arg2 = wxString_in_helper(obj1);
7470 if (arg2 == NULL) SWIG_fail;
7471 temp2 = true;
7472 }
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 (arg1)->SetConfigPath((wxString const &)*arg2);
7476
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 Py_INCREF(Py_None); resultobj = Py_None;
7481 {
7482 if (temp2)
7483 delete arg2;
7484 }
7485 return resultobj;
7486 fail:
7487 {
7488 if (temp2)
7489 delete arg2;
7490 }
7491 return NULL;
7492 }
7493
7494
7495 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7496 PyObject *resultobj;
7497 wxString result;
7498 char *kwnames[] = {
7499 NULL
7500 };
7501
7502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7503 {
7504 PyThreadState* __tstate = wxPyBeginAllowThreads();
7505 result = wxFontMapper::GetDefaultConfigPath();
7506
7507 wxPyEndAllowThreads(__tstate);
7508 if (PyErr_Occurred()) SWIG_fail;
7509 }
7510 {
7511 #if wxUSE_UNICODE
7512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7513 #else
7514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7515 #endif
7516 }
7517 return resultobj;
7518 fail:
7519 return NULL;
7520 }
7521
7522
7523 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7524 PyObject *resultobj;
7525 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7526 int arg2 ;
7527 wxString const &arg3_defvalue = wxPyEmptyString ;
7528 wxString *arg3 = (wxString *) &arg3_defvalue ;
7529 bool arg4 = (bool) true ;
7530 PyObject *result;
7531 bool temp3 = false ;
7532 PyObject * obj0 = 0 ;
7533 PyObject * obj1 = 0 ;
7534 PyObject * obj2 = 0 ;
7535 PyObject * obj3 = 0 ;
7536 char *kwnames[] = {
7537 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7538 };
7539
7540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7543 arg2 = (int)SWIG_As_int(obj1);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 if (obj2) {
7546 {
7547 arg3 = wxString_in_helper(obj2);
7548 if (arg3 == NULL) SWIG_fail;
7549 temp3 = true;
7550 }
7551 }
7552 if (obj3) {
7553 arg4 = (bool)SWIG_As_bool(obj3);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 }
7556 {
7557 PyThreadState* __tstate = wxPyBeginAllowThreads();
7558 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7559
7560 wxPyEndAllowThreads(__tstate);
7561 if (PyErr_Occurred()) SWIG_fail;
7562 }
7563 resultobj = result;
7564 {
7565 if (temp3)
7566 delete arg3;
7567 }
7568 return resultobj;
7569 fail:
7570 {
7571 if (temp3)
7572 delete arg3;
7573 }
7574 return NULL;
7575 }
7576
7577
7578 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
7579 PyObject *resultobj;
7580 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7581 int arg2 ;
7582 wxString const &arg3_defvalue = wxPyEmptyString ;
7583 wxString *arg3 = (wxString *) &arg3_defvalue ;
7584 bool result;
7585 bool temp3 = false ;
7586 PyObject * obj0 = 0 ;
7587 PyObject * obj1 = 0 ;
7588 PyObject * obj2 = 0 ;
7589 char *kwnames[] = {
7590 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7591 };
7592
7593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7596 arg2 = (int)SWIG_As_int(obj1);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 if (obj2) {
7599 {
7600 arg3 = wxString_in_helper(obj2);
7601 if (arg3 == NULL) SWIG_fail;
7602 temp3 = true;
7603 }
7604 }
7605 {
7606 PyThreadState* __tstate = wxPyBeginAllowThreads();
7607 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7608
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 {
7613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7614 }
7615 {
7616 if (temp3)
7617 delete arg3;
7618 }
7619 return resultobj;
7620 fail:
7621 {
7622 if (temp3)
7623 delete arg3;
7624 }
7625 return NULL;
7626 }
7627
7628
7629 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
7630 PyObject *resultobj;
7631 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7632 wxWindow *arg2 = (wxWindow *) 0 ;
7633 PyObject * obj0 = 0 ;
7634 PyObject * obj1 = 0 ;
7635 char *kwnames[] = {
7636 (char *) "self",(char *) "parent", NULL
7637 };
7638
7639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7642 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7644 {
7645 PyThreadState* __tstate = wxPyBeginAllowThreads();
7646 (arg1)->SetDialogParent(arg2);
7647
7648 wxPyEndAllowThreads(__tstate);
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 Py_INCREF(Py_None); resultobj = Py_None;
7652 return resultobj;
7653 fail:
7654 return NULL;
7655 }
7656
7657
7658 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
7659 PyObject *resultobj;
7660 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7661 wxString *arg2 = 0 ;
7662 bool temp2 = false ;
7663 PyObject * obj0 = 0 ;
7664 PyObject * obj1 = 0 ;
7665 char *kwnames[] = {
7666 (char *) "self",(char *) "title", NULL
7667 };
7668
7669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7672 {
7673 arg2 = wxString_in_helper(obj1);
7674 if (arg2 == NULL) SWIG_fail;
7675 temp2 = true;
7676 }
7677 {
7678 PyThreadState* __tstate = wxPyBeginAllowThreads();
7679 (arg1)->SetDialogTitle((wxString const &)*arg2);
7680
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 Py_INCREF(Py_None); resultobj = Py_None;
7685 {
7686 if (temp2)
7687 delete arg2;
7688 }
7689 return resultobj;
7690 fail:
7691 {
7692 if (temp2)
7693 delete arg2;
7694 }
7695 return NULL;
7696 }
7697
7698
7699 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
7700 PyObject *obj;
7701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7702 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7703 Py_INCREF(obj);
7704 return Py_BuildValue((char *)"");
7705 }
7706 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7707 PyObject *resultobj;
7708 int arg1 ;
7709 int arg2 ;
7710 int arg3 ;
7711 int arg4 ;
7712 bool arg5 = (bool) false ;
7713 wxString const &arg6_defvalue = wxPyEmptyString ;
7714 wxString *arg6 = (wxString *) &arg6_defvalue ;
7715 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7716 wxFont *result;
7717 bool temp6 = false ;
7718 PyObject * obj0 = 0 ;
7719 PyObject * obj1 = 0 ;
7720 PyObject * obj2 = 0 ;
7721 PyObject * obj3 = 0 ;
7722 PyObject * obj4 = 0 ;
7723 PyObject * obj5 = 0 ;
7724 PyObject * obj6 = 0 ;
7725 char *kwnames[] = {
7726 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7727 };
7728
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7730 arg1 = (int)SWIG_As_int(obj0);
7731 if (PyErr_Occurred()) SWIG_fail;
7732 arg2 = (int)SWIG_As_int(obj1);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 arg3 = (int)SWIG_As_int(obj2);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 arg4 = (int)SWIG_As_int(obj3);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 if (obj4) {
7739 arg5 = (bool)SWIG_As_bool(obj4);
7740 if (PyErr_Occurred()) SWIG_fail;
7741 }
7742 if (obj5) {
7743 {
7744 arg6 = wxString_in_helper(obj5);
7745 if (arg6 == NULL) SWIG_fail;
7746 temp6 = true;
7747 }
7748 }
7749 if (obj6) {
7750 arg7 = (int)SWIG_As_int(obj6);
7751 if (PyErr_Occurred()) SWIG_fail;
7752 }
7753 {
7754 if (!wxPyCheckForApp()) SWIG_fail;
7755 PyThreadState* __tstate = wxPyBeginAllowThreads();
7756 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7757
7758 wxPyEndAllowThreads(__tstate);
7759 if (PyErr_Occurred()) SWIG_fail;
7760 }
7761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7762 {
7763 if (temp6)
7764 delete arg6;
7765 }
7766 return resultobj;
7767 fail:
7768 {
7769 if (temp6)
7770 delete arg6;
7771 }
7772 return NULL;
7773 }
7774
7775
7776 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7777 PyObject *resultobj;
7778 wxFont *arg1 = (wxFont *) 0 ;
7779 PyObject * obj0 = 0 ;
7780 char *kwnames[] = {
7781 (char *) "self", NULL
7782 };
7783
7784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7787 {
7788 PyThreadState* __tstate = wxPyBeginAllowThreads();
7789 delete arg1;
7790
7791 wxPyEndAllowThreads(__tstate);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 Py_INCREF(Py_None); resultobj = Py_None;
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj;
7803 wxNativeFontInfo *arg1 = 0 ;
7804 wxFont *result;
7805 PyObject * obj0 = 0 ;
7806 char *kwnames[] = {
7807 (char *) "info", NULL
7808 };
7809
7810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7812 SWIG_POINTER_EXCEPTION | 0)) == -1)
7813 SWIG_fail;
7814 if (arg1 == NULL) {
7815 PyErr_SetString(PyExc_TypeError,"null reference");
7816 SWIG_fail;
7817 }
7818 {
7819 if (!wxPyCheckForApp()) SWIG_fail;
7820 PyThreadState* __tstate = wxPyBeginAllowThreads();
7821 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7822
7823 wxPyEndAllowThreads(__tstate);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7827 return resultobj;
7828 fail:
7829 return NULL;
7830 }
7831
7832
7833 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
7834 PyObject *resultobj;
7835 wxString *arg1 = 0 ;
7836 wxFont *result;
7837 bool temp1 = false ;
7838 PyObject * obj0 = 0 ;
7839 char *kwnames[] = {
7840 (char *) "info", NULL
7841 };
7842
7843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7844 {
7845 arg1 = wxString_in_helper(obj0);
7846 if (arg1 == NULL) SWIG_fail;
7847 temp1 = true;
7848 }
7849 {
7850 if (!wxPyCheckForApp()) SWIG_fail;
7851 PyThreadState* __tstate = wxPyBeginAllowThreads();
7852 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7853
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7858 {
7859 if (temp1)
7860 delete arg1;
7861 }
7862 return resultobj;
7863 fail:
7864 {
7865 if (temp1)
7866 delete arg1;
7867 }
7868 return NULL;
7869 }
7870
7871
7872 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
7873 PyObject *resultobj;
7874 int arg1 ;
7875 int arg2 ;
7876 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7877 wxString const &arg4_defvalue = wxPyEmptyString ;
7878 wxString *arg4 = (wxString *) &arg4_defvalue ;
7879 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7880 wxFont *result;
7881 bool temp4 = false ;
7882 PyObject * obj0 = 0 ;
7883 PyObject * obj1 = 0 ;
7884 PyObject * obj2 = 0 ;
7885 PyObject * obj3 = 0 ;
7886 PyObject * obj4 = 0 ;
7887 char *kwnames[] = {
7888 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7889 };
7890
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7892 arg1 = (int)SWIG_As_int(obj0);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 arg2 = (int)SWIG_As_int(obj1);
7895 if (PyErr_Occurred()) SWIG_fail;
7896 if (obj2) {
7897 arg3 = (int)SWIG_As_int(obj2);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 if (obj3) {
7901 {
7902 arg4 = wxString_in_helper(obj3);
7903 if (arg4 == NULL) SWIG_fail;
7904 temp4 = true;
7905 }
7906 }
7907 if (obj4) {
7908 arg5 = (int)SWIG_As_int(obj4);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 {
7912 if (!wxPyCheckForApp()) SWIG_fail;
7913 PyThreadState* __tstate = wxPyBeginAllowThreads();
7914 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7915
7916 wxPyEndAllowThreads(__tstate);
7917 if (PyErr_Occurred()) SWIG_fail;
7918 }
7919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7920 {
7921 if (temp4)
7922 delete arg4;
7923 }
7924 return resultobj;
7925 fail:
7926 {
7927 if (temp4)
7928 delete arg4;
7929 }
7930 return NULL;
7931 }
7932
7933
7934 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj;
7936 wxFont *arg1 = (wxFont *) 0 ;
7937 bool result;
7938 PyObject * obj0 = 0 ;
7939 char *kwnames[] = {
7940 (char *) "self", NULL
7941 };
7942
7943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7946 {
7947 PyThreadState* __tstate = wxPyBeginAllowThreads();
7948 result = (bool)((wxFont const *)arg1)->Ok();
7949
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
7953 {
7954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7955 }
7956 return resultobj;
7957 fail:
7958 return NULL;
7959 }
7960
7961
7962 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
7963 PyObject *resultobj;
7964 wxFont *arg1 = (wxFont *) 0 ;
7965 wxFont *arg2 = (wxFont *) 0 ;
7966 bool result;
7967 PyObject * obj0 = 0 ;
7968 PyObject * obj1 = 0 ;
7969 char *kwnames[] = {
7970 (char *) "self",(char *) "other", NULL
7971 };
7972
7973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7976 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7981
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 {
7986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7987 }
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj;
7996 wxFont *arg1 = (wxFont *) 0 ;
7997 wxFont *arg2 = (wxFont *) 0 ;
7998 bool result;
7999 PyObject * obj0 = 0 ;
8000 PyObject * obj1 = 0 ;
8001 char *kwnames[] = {
8002 (char *) "self",(char *) "other", NULL
8003 };
8004
8005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8008 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8010 {
8011 PyThreadState* __tstate = wxPyBeginAllowThreads();
8012 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8013
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 {
8018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8019 }
8020 return resultobj;
8021 fail:
8022 return NULL;
8023 }
8024
8025
8026 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8027 PyObject *resultobj;
8028 wxFont *arg1 = (wxFont *) 0 ;
8029 int result;
8030 PyObject * obj0 = 0 ;
8031 char *kwnames[] = {
8032 (char *) "self", NULL
8033 };
8034
8035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8038 {
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = (int)((wxFont const *)arg1)->GetPointSize();
8041
8042 wxPyEndAllowThreads(__tstate);
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 resultobj = SWIG_From_int((int)result);
8046 return resultobj;
8047 fail:
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxFont *arg1 = (wxFont *) 0 ;
8055 int result;
8056 PyObject * obj0 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 result = (int)((wxFont const *)arg1)->GetFamily();
8067
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_From_int((int)result);
8072 return resultobj;
8073 fail:
8074 return NULL;
8075 }
8076
8077
8078 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8079 PyObject *resultobj;
8080 wxFont *arg1 = (wxFont *) 0 ;
8081 int result;
8082 PyObject * obj0 = 0 ;
8083 char *kwnames[] = {
8084 (char *) "self", NULL
8085 };
8086
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8090 {
8091 PyThreadState* __tstate = wxPyBeginAllowThreads();
8092 result = (int)((wxFont const *)arg1)->GetStyle();
8093
8094 wxPyEndAllowThreads(__tstate);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 resultobj = SWIG_From_int((int)result);
8098 return resultobj;
8099 fail:
8100 return NULL;
8101 }
8102
8103
8104 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8105 PyObject *resultobj;
8106 wxFont *arg1 = (wxFont *) 0 ;
8107 int result;
8108 PyObject * obj0 = 0 ;
8109 char *kwnames[] = {
8110 (char *) "self", NULL
8111 };
8112
8113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8116 {
8117 PyThreadState* __tstate = wxPyBeginAllowThreads();
8118 result = (int)((wxFont const *)arg1)->GetWeight();
8119
8120 wxPyEndAllowThreads(__tstate);
8121 if (PyErr_Occurred()) SWIG_fail;
8122 }
8123 resultobj = SWIG_From_int((int)result);
8124 return resultobj;
8125 fail:
8126 return NULL;
8127 }
8128
8129
8130 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8131 PyObject *resultobj;
8132 wxFont *arg1 = (wxFont *) 0 ;
8133 bool result;
8134 PyObject * obj0 = 0 ;
8135 char *kwnames[] = {
8136 (char *) "self", NULL
8137 };
8138
8139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8142 {
8143 PyThreadState* __tstate = wxPyBeginAllowThreads();
8144 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8145
8146 wxPyEndAllowThreads(__tstate);
8147 if (PyErr_Occurred()) SWIG_fail;
8148 }
8149 {
8150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8151 }
8152 return resultobj;
8153 fail:
8154 return NULL;
8155 }
8156
8157
8158 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxFont *arg1 = (wxFont *) 0 ;
8161 wxString result;
8162 PyObject * obj0 = 0 ;
8163 char *kwnames[] = {
8164 (char *) "self", NULL
8165 };
8166
8167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8170 {
8171 PyThreadState* __tstate = wxPyBeginAllowThreads();
8172 result = ((wxFont const *)arg1)->GetFaceName();
8173
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 {
8178 #if wxUSE_UNICODE
8179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8180 #else
8181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8182 #endif
8183 }
8184 return resultobj;
8185 fail:
8186 return NULL;
8187 }
8188
8189
8190 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8191 PyObject *resultobj;
8192 wxFont *arg1 = (wxFont *) 0 ;
8193 int result;
8194 PyObject * obj0 = 0 ;
8195 char *kwnames[] = {
8196 (char *) "self", NULL
8197 };
8198
8199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8202 {
8203 PyThreadState* __tstate = wxPyBeginAllowThreads();
8204 result = (int)((wxFont const *)arg1)->GetEncoding();
8205
8206 wxPyEndAllowThreads(__tstate);
8207 if (PyErr_Occurred()) SWIG_fail;
8208 }
8209 resultobj = SWIG_From_int((int)result);
8210 return resultobj;
8211 fail:
8212 return NULL;
8213 }
8214
8215
8216 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8217 PyObject *resultobj;
8218 wxFont *arg1 = (wxFont *) 0 ;
8219 wxNativeFontInfo *result;
8220 PyObject * obj0 = 0 ;
8221 char *kwnames[] = {
8222 (char *) "self", NULL
8223 };
8224
8225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8228 {
8229 PyThreadState* __tstate = wxPyBeginAllowThreads();
8230 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8231
8232 wxPyEndAllowThreads(__tstate);
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8236 return resultobj;
8237 fail:
8238 return NULL;
8239 }
8240
8241
8242 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj;
8244 wxFont *arg1 = (wxFont *) 0 ;
8245 bool result;
8246 PyObject * obj0 = 0 ;
8247 char *kwnames[] = {
8248 (char *) "self", NULL
8249 };
8250
8251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8254 {
8255 PyThreadState* __tstate = wxPyBeginAllowThreads();
8256 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8257
8258 wxPyEndAllowThreads(__tstate);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 {
8262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8263 }
8264 return resultobj;
8265 fail:
8266 return NULL;
8267 }
8268
8269
8270 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8271 PyObject *resultobj;
8272 wxFont *arg1 = (wxFont *) 0 ;
8273 wxString result;
8274 PyObject * obj0 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8285
8286 wxPyEndAllowThreads(__tstate);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 {
8290 #if wxUSE_UNICODE
8291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8292 #else
8293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8294 #endif
8295 }
8296 return resultobj;
8297 fail:
8298 return NULL;
8299 }
8300
8301
8302 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8303 PyObject *resultobj;
8304 wxFont *arg1 = (wxFont *) 0 ;
8305 wxString result;
8306 PyObject * obj0 = 0 ;
8307 char *kwnames[] = {
8308 (char *) "self", NULL
8309 };
8310
8311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8314 {
8315 PyThreadState* __tstate = wxPyBeginAllowThreads();
8316 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8317
8318 wxPyEndAllowThreads(__tstate);
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 {
8322 #if wxUSE_UNICODE
8323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8324 #else
8325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8326 #endif
8327 }
8328 return resultobj;
8329 fail:
8330 return NULL;
8331 }
8332
8333
8334 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8335 PyObject *resultobj;
8336 wxFont *arg1 = (wxFont *) 0 ;
8337 int arg2 ;
8338 PyObject * obj0 = 0 ;
8339 PyObject * obj1 = 0 ;
8340 char *kwnames[] = {
8341 (char *) "self",(char *) "pointSize", NULL
8342 };
8343
8344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8347 arg2 = (int)SWIG_As_int(obj1);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 {
8350 PyThreadState* __tstate = wxPyBeginAllowThreads();
8351 (arg1)->SetPointSize(arg2);
8352
8353 wxPyEndAllowThreads(__tstate);
8354 if (PyErr_Occurred()) SWIG_fail;
8355 }
8356 Py_INCREF(Py_None); resultobj = Py_None;
8357 return resultobj;
8358 fail:
8359 return NULL;
8360 }
8361
8362
8363 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8364 PyObject *resultobj;
8365 wxFont *arg1 = (wxFont *) 0 ;
8366 int arg2 ;
8367 PyObject * obj0 = 0 ;
8368 PyObject * obj1 = 0 ;
8369 char *kwnames[] = {
8370 (char *) "self",(char *) "family", NULL
8371 };
8372
8373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8376 arg2 = (int)SWIG_As_int(obj1);
8377 if (PyErr_Occurred()) SWIG_fail;
8378 {
8379 PyThreadState* __tstate = wxPyBeginAllowThreads();
8380 (arg1)->SetFamily(arg2);
8381
8382 wxPyEndAllowThreads(__tstate);
8383 if (PyErr_Occurred()) SWIG_fail;
8384 }
8385 Py_INCREF(Py_None); resultobj = Py_None;
8386 return resultobj;
8387 fail:
8388 return NULL;
8389 }
8390
8391
8392 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8393 PyObject *resultobj;
8394 wxFont *arg1 = (wxFont *) 0 ;
8395 int arg2 ;
8396 PyObject * obj0 = 0 ;
8397 PyObject * obj1 = 0 ;
8398 char *kwnames[] = {
8399 (char *) "self",(char *) "style", NULL
8400 };
8401
8402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8405 arg2 = (int)SWIG_As_int(obj1);
8406 if (PyErr_Occurred()) SWIG_fail;
8407 {
8408 PyThreadState* __tstate = wxPyBeginAllowThreads();
8409 (arg1)->SetStyle(arg2);
8410
8411 wxPyEndAllowThreads(__tstate);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 Py_INCREF(Py_None); resultobj = Py_None;
8415 return resultobj;
8416 fail:
8417 return NULL;
8418 }
8419
8420
8421 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8422 PyObject *resultobj;
8423 wxFont *arg1 = (wxFont *) 0 ;
8424 int arg2 ;
8425 PyObject * obj0 = 0 ;
8426 PyObject * obj1 = 0 ;
8427 char *kwnames[] = {
8428 (char *) "self",(char *) "weight", NULL
8429 };
8430
8431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8434 arg2 = (int)SWIG_As_int(obj1);
8435 if (PyErr_Occurred()) SWIG_fail;
8436 {
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
8438 (arg1)->SetWeight(arg2);
8439
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
8443 Py_INCREF(Py_None); resultobj = Py_None;
8444 return resultobj;
8445 fail:
8446 return NULL;
8447 }
8448
8449
8450 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj;
8452 wxFont *arg1 = (wxFont *) 0 ;
8453 wxString *arg2 = 0 ;
8454 bool temp2 = false ;
8455 PyObject * obj0 = 0 ;
8456 PyObject * obj1 = 0 ;
8457 char *kwnames[] = {
8458 (char *) "self",(char *) "faceName", NULL
8459 };
8460
8461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8464 {
8465 arg2 = wxString_in_helper(obj1);
8466 if (arg2 == NULL) SWIG_fail;
8467 temp2 = true;
8468 }
8469 {
8470 PyThreadState* __tstate = wxPyBeginAllowThreads();
8471 (arg1)->SetFaceName((wxString const &)*arg2);
8472
8473 wxPyEndAllowThreads(__tstate);
8474 if (PyErr_Occurred()) SWIG_fail;
8475 }
8476 Py_INCREF(Py_None); resultobj = Py_None;
8477 {
8478 if (temp2)
8479 delete arg2;
8480 }
8481 return resultobj;
8482 fail:
8483 {
8484 if (temp2)
8485 delete arg2;
8486 }
8487 return NULL;
8488 }
8489
8490
8491 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8492 PyObject *resultobj;
8493 wxFont *arg1 = (wxFont *) 0 ;
8494 bool arg2 ;
8495 PyObject * obj0 = 0 ;
8496 PyObject * obj1 = 0 ;
8497 char *kwnames[] = {
8498 (char *) "self",(char *) "underlined", NULL
8499 };
8500
8501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8504 arg2 = (bool)SWIG_As_bool(obj1);
8505 if (PyErr_Occurred()) SWIG_fail;
8506 {
8507 PyThreadState* __tstate = wxPyBeginAllowThreads();
8508 (arg1)->SetUnderlined(arg2);
8509
8510 wxPyEndAllowThreads(__tstate);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 }
8513 Py_INCREF(Py_None); resultobj = Py_None;
8514 return resultobj;
8515 fail:
8516 return NULL;
8517 }
8518
8519
8520 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8521 PyObject *resultobj;
8522 wxFont *arg1 = (wxFont *) 0 ;
8523 int arg2 ;
8524 PyObject * obj0 = 0 ;
8525 PyObject * obj1 = 0 ;
8526 char *kwnames[] = {
8527 (char *) "self",(char *) "encoding", NULL
8528 };
8529
8530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8533 arg2 = (int)SWIG_As_int(obj1);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 (arg1)->SetEncoding((wxFontEncoding )arg2);
8538
8539 wxPyEndAllowThreads(__tstate);
8540 if (PyErr_Occurred()) SWIG_fail;
8541 }
8542 Py_INCREF(Py_None); resultobj = Py_None;
8543 return resultobj;
8544 fail:
8545 return NULL;
8546 }
8547
8548
8549 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8550 PyObject *resultobj;
8551 wxFont *arg1 = (wxFont *) 0 ;
8552 wxNativeFontInfo *arg2 = 0 ;
8553 PyObject * obj0 = 0 ;
8554 PyObject * obj1 = 0 ;
8555 char *kwnames[] = {
8556 (char *) "self",(char *) "info", NULL
8557 };
8558
8559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8563 SWIG_POINTER_EXCEPTION | 0)) == -1)
8564 SWIG_fail;
8565 if (arg2 == NULL) {
8566 PyErr_SetString(PyExc_TypeError,"null reference");
8567 SWIG_fail;
8568 }
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 Py_INCREF(Py_None); resultobj = Py_None;
8577 return resultobj;
8578 fail:
8579 return NULL;
8580 }
8581
8582
8583 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj;
8585 wxFont *arg1 = (wxFont *) 0 ;
8586 wxString *arg2 = 0 ;
8587 bool temp2 = false ;
8588 PyObject * obj0 = 0 ;
8589 PyObject * obj1 = 0 ;
8590 char *kwnames[] = {
8591 (char *) "self",(char *) "info", NULL
8592 };
8593
8594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8597 {
8598 arg2 = wxString_in_helper(obj1);
8599 if (arg2 == NULL) SWIG_fail;
8600 temp2 = true;
8601 }
8602 {
8603 PyThreadState* __tstate = wxPyBeginAllowThreads();
8604 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8605
8606 wxPyEndAllowThreads(__tstate);
8607 if (PyErr_Occurred()) SWIG_fail;
8608 }
8609 Py_INCREF(Py_None); resultobj = Py_None;
8610 {
8611 if (temp2)
8612 delete arg2;
8613 }
8614 return resultobj;
8615 fail:
8616 {
8617 if (temp2)
8618 delete arg2;
8619 }
8620 return NULL;
8621 }
8622
8623
8624 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj;
8626 wxFont *arg1 = (wxFont *) 0 ;
8627 wxString *arg2 = 0 ;
8628 bool temp2 = false ;
8629 PyObject * obj0 = 0 ;
8630 PyObject * obj1 = 0 ;
8631 char *kwnames[] = {
8632 (char *) "self",(char *) "info", NULL
8633 };
8634
8635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8638 {
8639 arg2 = wxString_in_helper(obj1);
8640 if (arg2 == NULL) SWIG_fail;
8641 temp2 = true;
8642 }
8643 {
8644 PyThreadState* __tstate = wxPyBeginAllowThreads();
8645 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8646
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 Py_INCREF(Py_None); resultobj = Py_None;
8651 {
8652 if (temp2)
8653 delete arg2;
8654 }
8655 return resultobj;
8656 fail:
8657 {
8658 if (temp2)
8659 delete arg2;
8660 }
8661 return NULL;
8662 }
8663
8664
8665 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
8666 PyObject *resultobj;
8667 wxFont *arg1 = (wxFont *) 0 ;
8668 wxString result;
8669 PyObject * obj0 = 0 ;
8670 char *kwnames[] = {
8671 (char *) "self", NULL
8672 };
8673
8674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8677 {
8678 PyThreadState* __tstate = wxPyBeginAllowThreads();
8679 result = ((wxFont const *)arg1)->GetFamilyString();
8680
8681 wxPyEndAllowThreads(__tstate);
8682 if (PyErr_Occurred()) SWIG_fail;
8683 }
8684 {
8685 #if wxUSE_UNICODE
8686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8687 #else
8688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8689 #endif
8690 }
8691 return resultobj;
8692 fail:
8693 return NULL;
8694 }
8695
8696
8697 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
8698 PyObject *resultobj;
8699 wxFont *arg1 = (wxFont *) 0 ;
8700 wxString result;
8701 PyObject * obj0 = 0 ;
8702 char *kwnames[] = {
8703 (char *) "self", NULL
8704 };
8705
8706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8709 {
8710 PyThreadState* __tstate = wxPyBeginAllowThreads();
8711 result = ((wxFont const *)arg1)->GetStyleString();
8712
8713 wxPyEndAllowThreads(__tstate);
8714 if (PyErr_Occurred()) SWIG_fail;
8715 }
8716 {
8717 #if wxUSE_UNICODE
8718 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8719 #else
8720 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8721 #endif
8722 }
8723 return resultobj;
8724 fail:
8725 return NULL;
8726 }
8727
8728
8729 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
8730 PyObject *resultobj;
8731 wxFont *arg1 = (wxFont *) 0 ;
8732 wxString result;
8733 PyObject * obj0 = 0 ;
8734 char *kwnames[] = {
8735 (char *) "self", NULL
8736 };
8737
8738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8741 {
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 result = ((wxFont const *)arg1)->GetWeightString();
8744
8745 wxPyEndAllowThreads(__tstate);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 {
8749 #if wxUSE_UNICODE
8750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8751 #else
8752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8753 #endif
8754 }
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj;
8763 wxFont *arg1 = (wxFont *) 0 ;
8764 bool arg2 = (bool) true ;
8765 PyObject * obj0 = 0 ;
8766 PyObject * obj1 = 0 ;
8767 char *kwnames[] = {
8768 (char *) "self",(char *) "no", NULL
8769 };
8770
8771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8774 if (obj1) {
8775 arg2 = (bool)SWIG_As_bool(obj1);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 {
8779 PyThreadState* __tstate = wxPyBeginAllowThreads();
8780 (arg1)->SetNoAntiAliasing(arg2);
8781
8782 wxPyEndAllowThreads(__tstate);
8783 if (PyErr_Occurred()) SWIG_fail;
8784 }
8785 Py_INCREF(Py_None); resultobj = Py_None;
8786 return resultobj;
8787 fail:
8788 return NULL;
8789 }
8790
8791
8792 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj;
8794 wxFont *arg1 = (wxFont *) 0 ;
8795 bool result;
8796 PyObject * obj0 = 0 ;
8797 char *kwnames[] = {
8798 (char *) "self", NULL
8799 };
8800
8801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8804 {
8805 PyThreadState* __tstate = wxPyBeginAllowThreads();
8806 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
8807
8808 wxPyEndAllowThreads(__tstate);
8809 if (PyErr_Occurred()) SWIG_fail;
8810 }
8811 {
8812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8813 }
8814 return resultobj;
8815 fail:
8816 return NULL;
8817 }
8818
8819
8820 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8821 PyObject *resultobj;
8822 int result;
8823 char *kwnames[] = {
8824 NULL
8825 };
8826
8827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8828 {
8829 if (!wxPyCheckForApp()) SWIG_fail;
8830 PyThreadState* __tstate = wxPyBeginAllowThreads();
8831 result = (int)wxFont::GetDefaultEncoding();
8832
8833 wxPyEndAllowThreads(__tstate);
8834 if (PyErr_Occurred()) SWIG_fail;
8835 }
8836 resultobj = SWIG_From_int((int)result);
8837 return resultobj;
8838 fail:
8839 return NULL;
8840 }
8841
8842
8843 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8844 PyObject *resultobj;
8845 int arg1 ;
8846 PyObject * obj0 = 0 ;
8847 char *kwnames[] = {
8848 (char *) "encoding", NULL
8849 };
8850
8851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8852 arg1 = (int)SWIG_As_int(obj0);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 {
8855 if (!wxPyCheckForApp()) SWIG_fail;
8856 PyThreadState* __tstate = wxPyBeginAllowThreads();
8857 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8858
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 Py_INCREF(Py_None); resultobj = Py_None;
8863 return resultobj;
8864 fail:
8865 return NULL;
8866 }
8867
8868
8869 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
8870 PyObject *obj;
8871 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8872 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8873 Py_INCREF(obj);
8874 return Py_BuildValue((char *)"");
8875 }
8876 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj;
8878 wxPyFontEnumerator *result;
8879 char *kwnames[] = {
8880 NULL
8881 };
8882
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8884 {
8885 if (!wxPyCheckForApp()) SWIG_fail;
8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
8887 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8888
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8900 PyObject *resultobj;
8901 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8902 PyObject * obj0 = 0 ;
8903 char *kwnames[] = {
8904 (char *) "self", NULL
8905 };
8906
8907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8910 {
8911 PyThreadState* __tstate = wxPyBeginAllowThreads();
8912 delete arg1;
8913
8914 wxPyEndAllowThreads(__tstate);
8915 if (PyErr_Occurred()) SWIG_fail;
8916 }
8917 Py_INCREF(Py_None); resultobj = Py_None;
8918 return resultobj;
8919 fail:
8920 return NULL;
8921 }
8922
8923
8924 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8925 PyObject *resultobj;
8926 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8927 PyObject *arg2 = (PyObject *) 0 ;
8928 PyObject *arg3 = (PyObject *) 0 ;
8929 bool arg4 ;
8930 PyObject * obj0 = 0 ;
8931 PyObject * obj1 = 0 ;
8932 PyObject * obj2 = 0 ;
8933 PyObject * obj3 = 0 ;
8934 char *kwnames[] = {
8935 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8936 };
8937
8938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8941 arg2 = obj1;
8942 arg3 = obj2;
8943 arg4 = (bool)SWIG_As_bool(obj3);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8948
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 Py_INCREF(Py_None); resultobj = Py_None;
8953 return resultobj;
8954 fail:
8955 return NULL;
8956 }
8957
8958
8959 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
8960 PyObject *resultobj;
8961 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8962 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8963 bool arg3 = (bool) false ;
8964 bool result;
8965 PyObject * obj0 = 0 ;
8966 PyObject * obj1 = 0 ;
8967 PyObject * obj2 = 0 ;
8968 char *kwnames[] = {
8969 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8970 };
8971
8972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8975 if (obj1) {
8976 arg2 = (int)SWIG_As_int(obj1);
8977 if (PyErr_Occurred()) SWIG_fail;
8978 }
8979 if (obj2) {
8980 arg3 = (bool)SWIG_As_bool(obj2);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8986
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 {
8991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8992 }
8993 return resultobj;
8994 fail:
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9002 wxString const &arg2_defvalue = wxPyEmptyString ;
9003 wxString *arg2 = (wxString *) &arg2_defvalue ;
9004 bool result;
9005 bool temp2 = false ;
9006 PyObject * obj0 = 0 ;
9007 PyObject * obj1 = 0 ;
9008 char *kwnames[] = {
9009 (char *) "self",(char *) "facename", NULL
9010 };
9011
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9015 if (obj1) {
9016 {
9017 arg2 = wxString_in_helper(obj1);
9018 if (arg2 == NULL) SWIG_fail;
9019 temp2 = true;
9020 }
9021 }
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9025
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 }
9029 {
9030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9031 }
9032 {
9033 if (temp2)
9034 delete arg2;
9035 }
9036 return resultobj;
9037 fail:
9038 {
9039 if (temp2)
9040 delete arg2;
9041 }
9042 return NULL;
9043 }
9044
9045
9046 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9047 PyObject *resultobj;
9048 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9049 PyObject *result;
9050 PyObject * obj0 = 0 ;
9051 char *kwnames[] = {
9052 (char *) "self", NULL
9053 };
9054
9055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9058 {
9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
9060 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9061
9062 wxPyEndAllowThreads(__tstate);
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 resultobj = result;
9066 return resultobj;
9067 fail:
9068 return NULL;
9069 }
9070
9071
9072 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9073 PyObject *resultobj;
9074 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9075 PyObject *result;
9076 PyObject * obj0 = 0 ;
9077 char *kwnames[] = {
9078 (char *) "self", NULL
9079 };
9080
9081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9087
9088 wxPyEndAllowThreads(__tstate);
9089 if (PyErr_Occurred()) SWIG_fail;
9090 }
9091 resultobj = result;
9092 return resultobj;
9093 fail:
9094 return NULL;
9095 }
9096
9097
9098 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
9099 PyObject *obj;
9100 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9101 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9102 Py_INCREF(obj);
9103 return Py_BuildValue((char *)"");
9104 }
9105 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
9106 PyObject *resultobj;
9107 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9108 int arg2 ;
9109 PyObject * obj0 = 0 ;
9110 PyObject * obj1 = 0 ;
9111 char *kwnames[] = {
9112 (char *) "self",(char *) "Language", NULL
9113 };
9114
9115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9118 arg2 = (int)SWIG_As_int(obj1);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 if (arg1) (arg1)->Language = arg2;
9121
9122 Py_INCREF(Py_None); resultobj = Py_None;
9123 return resultobj;
9124 fail:
9125 return NULL;
9126 }
9127
9128
9129 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
9130 PyObject *resultobj;
9131 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9132 int result;
9133 PyObject * obj0 = 0 ;
9134 char *kwnames[] = {
9135 (char *) "self", NULL
9136 };
9137
9138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9141 result = (int) ((arg1)->Language);
9142
9143 resultobj = SWIG_From_int((int)result);
9144 return resultobj;
9145 fail:
9146 return NULL;
9147 }
9148
9149
9150 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
9151 PyObject *resultobj;
9152 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9153 wxString *arg2 = (wxString *) 0 ;
9154 bool temp2 = false ;
9155 PyObject * obj0 = 0 ;
9156 PyObject * obj1 = 0 ;
9157 char *kwnames[] = {
9158 (char *) "self",(char *) "CanonicalName", NULL
9159 };
9160
9161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9164 {
9165 arg2 = wxString_in_helper(obj1);
9166 if (arg2 == NULL) SWIG_fail;
9167 temp2 = true;
9168 }
9169 if (arg1) (arg1)->CanonicalName = *arg2;
9170
9171 Py_INCREF(Py_None); resultobj = Py_None;
9172 {
9173 if (temp2)
9174 delete arg2;
9175 }
9176 return resultobj;
9177 fail:
9178 {
9179 if (temp2)
9180 delete arg2;
9181 }
9182 return NULL;
9183 }
9184
9185
9186 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj;
9188 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9189 wxString *result;
9190 PyObject * obj0 = 0 ;
9191 char *kwnames[] = {
9192 (char *) "self", NULL
9193 };
9194
9195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9198 result = (wxString *)& ((arg1)->CanonicalName);
9199
9200 {
9201 #if wxUSE_UNICODE
9202 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9203 #else
9204 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9205 #endif
9206 }
9207 return resultobj;
9208 fail:
9209 return NULL;
9210 }
9211
9212
9213 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj;
9215 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9216 wxString *arg2 = (wxString *) 0 ;
9217 bool temp2 = false ;
9218 PyObject * obj0 = 0 ;
9219 PyObject * obj1 = 0 ;
9220 char *kwnames[] = {
9221 (char *) "self",(char *) "Description", NULL
9222 };
9223
9224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9227 {
9228 arg2 = wxString_in_helper(obj1);
9229 if (arg2 == NULL) SWIG_fail;
9230 temp2 = true;
9231 }
9232 if (arg1) (arg1)->Description = *arg2;
9233
9234 Py_INCREF(Py_None); resultobj = Py_None;
9235 {
9236 if (temp2)
9237 delete arg2;
9238 }
9239 return resultobj;
9240 fail:
9241 {
9242 if (temp2)
9243 delete arg2;
9244 }
9245 return NULL;
9246 }
9247
9248
9249 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
9250 PyObject *resultobj;
9251 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9252 wxString *result;
9253 PyObject * obj0 = 0 ;
9254 char *kwnames[] = {
9255 (char *) "self", NULL
9256 };
9257
9258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9261 result = (wxString *)& ((arg1)->Description);
9262
9263 {
9264 #if wxUSE_UNICODE
9265 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9266 #else
9267 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9268 #endif
9269 }
9270 return resultobj;
9271 fail:
9272 return NULL;
9273 }
9274
9275
9276 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
9277 PyObject *obj;
9278 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9279 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9280 Py_INCREF(obj);
9281 return Py_BuildValue((char *)"");
9282 }
9283 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9284 PyObject *resultobj;
9285 int arg1 = (int) -1 ;
9286 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9287 wxLocale *result;
9288 PyObject * obj0 = 0 ;
9289 PyObject * obj1 = 0 ;
9290 char *kwnames[] = {
9291 (char *) "language",(char *) "flags", NULL
9292 };
9293
9294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9295 if (obj0) {
9296 arg1 = (int)SWIG_As_int(obj0);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 if (obj1) {
9300 arg2 = (int)SWIG_As_int(obj1);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 {
9304 PyThreadState* __tstate = wxPyBeginAllowThreads();
9305 result = (wxLocale *)new_wxLocale(arg1,arg2);
9306
9307 wxPyEndAllowThreads(__tstate);
9308 if (PyErr_Occurred()) SWIG_fail;
9309 }
9310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9311 return resultobj;
9312 fail:
9313 return NULL;
9314 }
9315
9316
9317 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9318 PyObject *resultobj;
9319 wxLocale *arg1 = (wxLocale *) 0 ;
9320 PyObject * obj0 = 0 ;
9321 char *kwnames[] = {
9322 (char *) "self", NULL
9323 };
9324
9325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 delete arg1;
9331
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 Py_INCREF(Py_None); resultobj = Py_None;
9336 return resultobj;
9337 fail:
9338 return NULL;
9339 }
9340
9341
9342 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
9343 PyObject *resultobj;
9344 wxLocale *arg1 = (wxLocale *) 0 ;
9345 wxString *arg2 = 0 ;
9346 wxString const &arg3_defvalue = wxPyEmptyString ;
9347 wxString *arg3 = (wxString *) &arg3_defvalue ;
9348 wxString const &arg4_defvalue = wxPyEmptyString ;
9349 wxString *arg4 = (wxString *) &arg4_defvalue ;
9350 bool arg5 = (bool) true ;
9351 bool arg6 = (bool) false ;
9352 bool result;
9353 bool temp2 = false ;
9354 bool temp3 = false ;
9355 bool temp4 = false ;
9356 PyObject * obj0 = 0 ;
9357 PyObject * obj1 = 0 ;
9358 PyObject * obj2 = 0 ;
9359 PyObject * obj3 = 0 ;
9360 PyObject * obj4 = 0 ;
9361 PyObject * obj5 = 0 ;
9362 char *kwnames[] = {
9363 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9364 };
9365
9366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9369 {
9370 arg2 = wxString_in_helper(obj1);
9371 if (arg2 == NULL) SWIG_fail;
9372 temp2 = true;
9373 }
9374 if (obj2) {
9375 {
9376 arg3 = wxString_in_helper(obj2);
9377 if (arg3 == NULL) SWIG_fail;
9378 temp3 = true;
9379 }
9380 }
9381 if (obj3) {
9382 {
9383 arg4 = wxString_in_helper(obj3);
9384 if (arg4 == NULL) SWIG_fail;
9385 temp4 = true;
9386 }
9387 }
9388 if (obj4) {
9389 arg5 = (bool)SWIG_As_bool(obj4);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 if (obj5) {
9393 arg6 = (bool)SWIG_As_bool(obj5);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 }
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
9398 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9399
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 {
9404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9405 }
9406 {
9407 if (temp2)
9408 delete arg2;
9409 }
9410 {
9411 if (temp3)
9412 delete arg3;
9413 }
9414 {
9415 if (temp4)
9416 delete arg4;
9417 }
9418 return resultobj;
9419 fail:
9420 {
9421 if (temp2)
9422 delete arg2;
9423 }
9424 {
9425 if (temp3)
9426 delete arg3;
9427 }
9428 {
9429 if (temp4)
9430 delete arg4;
9431 }
9432 return NULL;
9433 }
9434
9435
9436 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
9437 PyObject *resultobj;
9438 wxLocale *arg1 = (wxLocale *) 0 ;
9439 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9440 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9441 bool result;
9442 PyObject * obj0 = 0 ;
9443 PyObject * obj1 = 0 ;
9444 PyObject * obj2 = 0 ;
9445 char *kwnames[] = {
9446 (char *) "self",(char *) "language",(char *) "flags", NULL
9447 };
9448
9449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9452 if (obj1) {
9453 arg2 = (int)SWIG_As_int(obj1);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 }
9456 if (obj2) {
9457 arg3 = (int)SWIG_As_int(obj2);
9458 if (PyErr_Occurred()) SWIG_fail;
9459 }
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 result = (bool)(arg1)->Init(arg2,arg3);
9463
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
9467 {
9468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9469 }
9470 return resultobj;
9471 fail:
9472 return NULL;
9473 }
9474
9475
9476 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj;
9478 int result;
9479 char *kwnames[] = {
9480 NULL
9481 };
9482
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9484 {
9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
9486 result = (int)wxLocale::GetSystemLanguage();
9487
9488 wxPyEndAllowThreads(__tstate);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 }
9491 resultobj = SWIG_From_int((int)result);
9492 return resultobj;
9493 fail:
9494 return NULL;
9495 }
9496
9497
9498 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9499 PyObject *resultobj;
9500 int result;
9501 char *kwnames[] = {
9502 NULL
9503 };
9504
9505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9506 {
9507 PyThreadState* __tstate = wxPyBeginAllowThreads();
9508 result = (int)wxLocale::GetSystemEncoding();
9509
9510 wxPyEndAllowThreads(__tstate);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 resultobj = SWIG_From_int((int)result);
9514 return resultobj;
9515 fail:
9516 return NULL;
9517 }
9518
9519
9520 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj;
9522 wxString result;
9523 char *kwnames[] = {
9524 NULL
9525 };
9526
9527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9528 {
9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
9530 result = wxLocale::GetSystemEncodingName();
9531
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 {
9536 #if wxUSE_UNICODE
9537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9538 #else
9539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9540 #endif
9541 }
9542 return resultobj;
9543 fail:
9544 return NULL;
9545 }
9546
9547
9548 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9549 PyObject *resultobj;
9550 wxLocale *arg1 = (wxLocale *) 0 ;
9551 bool result;
9552 PyObject * obj0 = 0 ;
9553 char *kwnames[] = {
9554 (char *) "self", NULL
9555 };
9556
9557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 result = (bool)((wxLocale const *)arg1)->IsOk();
9563
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 {
9568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9569 }
9570 return resultobj;
9571 fail:
9572 return NULL;
9573 }
9574
9575
9576 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9577 PyObject *resultobj;
9578 wxLocale *arg1 = (wxLocale *) 0 ;
9579 wxString result;
9580 PyObject * obj0 = 0 ;
9581 char *kwnames[] = {
9582 (char *) "self", NULL
9583 };
9584
9585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9588 {
9589 PyThreadState* __tstate = wxPyBeginAllowThreads();
9590 result = ((wxLocale const *)arg1)->GetLocale();
9591
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 {
9596 #if wxUSE_UNICODE
9597 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9598 #else
9599 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9600 #endif
9601 }
9602 return resultobj;
9603 fail:
9604 return NULL;
9605 }
9606
9607
9608 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9609 PyObject *resultobj;
9610 wxLocale *arg1 = (wxLocale *) 0 ;
9611 int result;
9612 PyObject * obj0 = 0 ;
9613 char *kwnames[] = {
9614 (char *) "self", NULL
9615 };
9616
9617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 result = (int)((wxLocale const *)arg1)->GetLanguage();
9623
9624 wxPyEndAllowThreads(__tstate);
9625 if (PyErr_Occurred()) SWIG_fail;
9626 }
9627 resultobj = SWIG_From_int((int)result);
9628 return resultobj;
9629 fail:
9630 return NULL;
9631 }
9632
9633
9634 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
9635 PyObject *resultobj;
9636 wxLocale *arg1 = (wxLocale *) 0 ;
9637 wxString result;
9638 PyObject * obj0 = 0 ;
9639 char *kwnames[] = {
9640 (char *) "self", NULL
9641 };
9642
9643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 result = ((wxLocale const *)arg1)->GetSysName();
9649
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 {
9654 #if wxUSE_UNICODE
9655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9656 #else
9657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9658 #endif
9659 }
9660 return resultobj;
9661 fail:
9662 return NULL;
9663 }
9664
9665
9666 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
9667 PyObject *resultobj;
9668 wxLocale *arg1 = (wxLocale *) 0 ;
9669 wxString result;
9670 PyObject * obj0 = 0 ;
9671 char *kwnames[] = {
9672 (char *) "self", NULL
9673 };
9674
9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 result = ((wxLocale const *)arg1)->GetCanonicalName();
9681
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 {
9686 #if wxUSE_UNICODE
9687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9688 #else
9689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9690 #endif
9691 }
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj;
9700 wxString *arg1 = 0 ;
9701 bool temp1 = false ;
9702 PyObject * obj0 = 0 ;
9703 char *kwnames[] = {
9704 (char *) "prefix", NULL
9705 };
9706
9707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9708 {
9709 arg1 = wxString_in_helper(obj0);
9710 if (arg1 == NULL) SWIG_fail;
9711 temp1 = true;
9712 }
9713 {
9714 PyThreadState* __tstate = wxPyBeginAllowThreads();
9715 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9716
9717 wxPyEndAllowThreads(__tstate);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 Py_INCREF(Py_None); resultobj = Py_None;
9721 {
9722 if (temp1)
9723 delete arg1;
9724 }
9725 return resultobj;
9726 fail:
9727 {
9728 if (temp1)
9729 delete arg1;
9730 }
9731 return NULL;
9732 }
9733
9734
9735 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj;
9737 wxLocale *arg1 = (wxLocale *) 0 ;
9738 wxString *arg2 = 0 ;
9739 bool result;
9740 bool temp2 = false ;
9741 PyObject * obj0 = 0 ;
9742 PyObject * obj1 = 0 ;
9743 char *kwnames[] = {
9744 (char *) "self",(char *) "szDomain", NULL
9745 };
9746
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9750 {
9751 arg2 = wxString_in_helper(obj1);
9752 if (arg2 == NULL) SWIG_fail;
9753 temp2 = true;
9754 }
9755 {
9756 PyThreadState* __tstate = wxPyBeginAllowThreads();
9757 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9758
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 {
9763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9764 }
9765 {
9766 if (temp2)
9767 delete arg2;
9768 }
9769 return resultobj;
9770 fail:
9771 {
9772 if (temp2)
9773 delete arg2;
9774 }
9775 return NULL;
9776 }
9777
9778
9779 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
9780 PyObject *resultobj;
9781 wxLocale *arg1 = (wxLocale *) 0 ;
9782 wxString *arg2 = 0 ;
9783 bool result;
9784 bool temp2 = false ;
9785 PyObject * obj0 = 0 ;
9786 PyObject * obj1 = 0 ;
9787 char *kwnames[] = {
9788 (char *) "self",(char *) "szDomain", NULL
9789 };
9790
9791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9794 {
9795 arg2 = wxString_in_helper(obj1);
9796 if (arg2 == NULL) SWIG_fail;
9797 temp2 = true;
9798 }
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9802
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 {
9807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9808 }
9809 {
9810 if (temp2)
9811 delete arg2;
9812 }
9813 return resultobj;
9814 fail:
9815 {
9816 if (temp2)
9817 delete arg2;
9818 }
9819 return NULL;
9820 }
9821
9822
9823 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9824 PyObject *resultobj;
9825 int arg1 ;
9826 wxLanguageInfo *result;
9827 PyObject * obj0 = 0 ;
9828 char *kwnames[] = {
9829 (char *) "lang", NULL
9830 };
9831
9832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9833 arg1 = (int)SWIG_As_int(obj0);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 {
9836 PyThreadState* __tstate = wxPyBeginAllowThreads();
9837 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9838
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9843 return resultobj;
9844 fail:
9845 return NULL;
9846 }
9847
9848
9849 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
9850 PyObject *resultobj;
9851 int arg1 ;
9852 wxString result;
9853 PyObject * obj0 = 0 ;
9854 char *kwnames[] = {
9855 (char *) "lang", NULL
9856 };
9857
9858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9859 arg1 = (int)SWIG_As_int(obj0);
9860 if (PyErr_Occurred()) SWIG_fail;
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 result = wxLocale::GetLanguageName(arg1);
9864
9865 wxPyEndAllowThreads(__tstate);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 {
9869 #if wxUSE_UNICODE
9870 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9871 #else
9872 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9873 #endif
9874 }
9875 return resultobj;
9876 fail:
9877 return NULL;
9878 }
9879
9880
9881 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9882 PyObject *resultobj;
9883 wxString *arg1 = 0 ;
9884 wxLanguageInfo *result;
9885 bool temp1 = false ;
9886 PyObject * obj0 = 0 ;
9887 char *kwnames[] = {
9888 (char *) "locale", NULL
9889 };
9890
9891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9892 {
9893 arg1 = wxString_in_helper(obj0);
9894 if (arg1 == NULL) SWIG_fail;
9895 temp1 = true;
9896 }
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9900
9901 wxPyEndAllowThreads(__tstate);
9902 if (PyErr_Occurred()) SWIG_fail;
9903 }
9904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9905 {
9906 if (temp1)
9907 delete arg1;
9908 }
9909 return resultobj;
9910 fail:
9911 {
9912 if (temp1)
9913 delete arg1;
9914 }
9915 return NULL;
9916 }
9917
9918
9919 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9920 PyObject *resultobj;
9921 wxLanguageInfo *arg1 = 0 ;
9922 PyObject * obj0 = 0 ;
9923 char *kwnames[] = {
9924 (char *) "info", NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9929 SWIG_POINTER_EXCEPTION | 0)) == -1)
9930 SWIG_fail;
9931 if (arg1 == NULL) {
9932 PyErr_SetString(PyExc_TypeError,"null reference");
9933 SWIG_fail;
9934 }
9935 {
9936 PyThreadState* __tstate = wxPyBeginAllowThreads();
9937 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9938
9939 wxPyEndAllowThreads(__tstate);
9940 if (PyErr_Occurred()) SWIG_fail;
9941 }
9942 Py_INCREF(Py_None); resultobj = Py_None;
9943 return resultobj;
9944 fail:
9945 return NULL;
9946 }
9947
9948
9949 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9950 PyObject *resultobj;
9951 wxLocale *arg1 = (wxLocale *) 0 ;
9952 wxString *arg2 = 0 ;
9953 wxString const &arg3_defvalue = wxPyEmptyString ;
9954 wxString *arg3 = (wxString *) &arg3_defvalue ;
9955 wxString result;
9956 bool temp2 = false ;
9957 bool temp3 = false ;
9958 PyObject * obj0 = 0 ;
9959 PyObject * obj1 = 0 ;
9960 PyObject * obj2 = 0 ;
9961 char *kwnames[] = {
9962 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9963 };
9964
9965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9968 {
9969 arg2 = wxString_in_helper(obj1);
9970 if (arg2 == NULL) SWIG_fail;
9971 temp2 = true;
9972 }
9973 if (obj2) {
9974 {
9975 arg3 = wxString_in_helper(obj2);
9976 if (arg3 == NULL) SWIG_fail;
9977 temp3 = true;
9978 }
9979 }
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 {
9988 #if wxUSE_UNICODE
9989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9990 #else
9991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9992 #endif
9993 }
9994 {
9995 if (temp2)
9996 delete arg2;
9997 }
9998 {
9999 if (temp3)
10000 delete arg3;
10001 }
10002 return resultobj;
10003 fail:
10004 {
10005 if (temp2)
10006 delete arg2;
10007 }
10008 {
10009 if (temp3)
10010 delete arg3;
10011 }
10012 return NULL;
10013 }
10014
10015
10016 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
10017 PyObject *resultobj;
10018 wxLocale *arg1 = (wxLocale *) 0 ;
10019 wxString *result;
10020 PyObject * obj0 = 0 ;
10021 char *kwnames[] = {
10022 (char *) "self", NULL
10023 };
10024
10025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10028 {
10029 PyThreadState* __tstate = wxPyBeginAllowThreads();
10030 {
10031 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10032 result = (wxString *) &_result_ref;
10033 }
10034
10035 wxPyEndAllowThreads(__tstate);
10036 if (PyErr_Occurred()) SWIG_fail;
10037 }
10038 {
10039 #if wxUSE_UNICODE
10040 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10041 #else
10042 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10043 #endif
10044 }
10045 return resultobj;
10046 fail:
10047 return NULL;
10048 }
10049
10050
10051 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
10052 PyObject *obj;
10053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10054 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10055 Py_INCREF(obj);
10056 return Py_BuildValue((char *)"");
10057 }
10058 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj;
10060 wxLocale *result;
10061 char *kwnames[] = {
10062 NULL
10063 };
10064
10065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10066 {
10067 PyThreadState* __tstate = wxPyBeginAllowThreads();
10068 result = (wxLocale *)wxGetLocale();
10069
10070 wxPyEndAllowThreads(__tstate);
10071 if (PyErr_Occurred()) SWIG_fail;
10072 }
10073 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10074 return resultobj;
10075 fail:
10076 return NULL;
10077 }
10078
10079
10080 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
10081 PyObject *resultobj;
10082 wxString *arg1 = 0 ;
10083 wxString result;
10084 bool temp1 = false ;
10085 PyObject * obj0 = 0 ;
10086
10087 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10088 {
10089 arg1 = wxString_in_helper(obj0);
10090 if (arg1 == NULL) SWIG_fail;
10091 temp1 = true;
10092 }
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 result = wxGetTranslation((wxString const &)*arg1);
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 {
10101 #if wxUSE_UNICODE
10102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10103 #else
10104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10105 #endif
10106 }
10107 {
10108 if (temp1)
10109 delete arg1;
10110 }
10111 return resultobj;
10112 fail:
10113 {
10114 if (temp1)
10115 delete arg1;
10116 }
10117 return NULL;
10118 }
10119
10120
10121 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
10122 PyObject *resultobj;
10123 wxString *arg1 = 0 ;
10124 wxString *arg2 = 0 ;
10125 size_t arg3 ;
10126 wxString result;
10127 bool temp1 = false ;
10128 bool temp2 = false ;
10129 PyObject * obj0 = 0 ;
10130 PyObject * obj1 = 0 ;
10131 PyObject * obj2 = 0 ;
10132
10133 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10134 {
10135 arg1 = wxString_in_helper(obj0);
10136 if (arg1 == NULL) SWIG_fail;
10137 temp1 = true;
10138 }
10139 {
10140 arg2 = wxString_in_helper(obj1);
10141 if (arg2 == NULL) SWIG_fail;
10142 temp2 = true;
10143 }
10144 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 {
10147 PyThreadState* __tstate = wxPyBeginAllowThreads();
10148 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10149
10150 wxPyEndAllowThreads(__tstate);
10151 if (PyErr_Occurred()) SWIG_fail;
10152 }
10153 {
10154 #if wxUSE_UNICODE
10155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10156 #else
10157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10158 #endif
10159 }
10160 {
10161 if (temp1)
10162 delete arg1;
10163 }
10164 {
10165 if (temp2)
10166 delete arg2;
10167 }
10168 return resultobj;
10169 fail:
10170 {
10171 if (temp1)
10172 delete arg1;
10173 }
10174 {
10175 if (temp2)
10176 delete arg2;
10177 }
10178 return NULL;
10179 }
10180
10181
10182 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10183 int argc;
10184 PyObject *argv[4];
10185 int ii;
10186
10187 argc = PyObject_Length(args);
10188 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10189 argv[ii] = PyTuple_GetItem(args,ii);
10190 }
10191 if (argc == 1) {
10192 int _v;
10193 {
10194 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10195 }
10196 if (_v) {
10197 return _wrap_GetTranslation__SWIG_0(self,args);
10198 }
10199 }
10200 if (argc == 3) {
10201 int _v;
10202 {
10203 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10204 }
10205 if (_v) {
10206 {
10207 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10208 }
10209 if (_v) {
10210 _v = SWIG_Check_unsigned_SS_long(argv[2]);
10211 if (_v) {
10212 return _wrap_GetTranslation__SWIG_1(self,args);
10213 }
10214 }
10215 }
10216 }
10217
10218 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10219 return NULL;
10220 }
10221
10222
10223 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10224 PyObject *resultobj;
10225 wxEncodingConverter *result;
10226 char *kwnames[] = {
10227 NULL
10228 };
10229
10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = (wxEncodingConverter *)new wxEncodingConverter();
10234
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10239 return resultobj;
10240 fail:
10241 return NULL;
10242 }
10243
10244
10245 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj;
10247 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10248 PyObject * obj0 = 0 ;
10249 char *kwnames[] = {
10250 (char *) "self", NULL
10251 };
10252
10253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10256 {
10257 PyThreadState* __tstate = wxPyBeginAllowThreads();
10258 delete arg1;
10259
10260 wxPyEndAllowThreads(__tstate);
10261 if (PyErr_Occurred()) SWIG_fail;
10262 }
10263 Py_INCREF(Py_None); resultobj = Py_None;
10264 return resultobj;
10265 fail:
10266 return NULL;
10267 }
10268
10269
10270 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
10271 PyObject *resultobj;
10272 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10273 int arg2 ;
10274 int arg3 ;
10275 int arg4 = (int) wxCONVERT_STRICT ;
10276 bool result;
10277 PyObject * obj0 = 0 ;
10278 PyObject * obj1 = 0 ;
10279 PyObject * obj2 = 0 ;
10280 PyObject * obj3 = 0 ;
10281 char *kwnames[] = {
10282 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10283 };
10284
10285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10288 arg2 = (int)SWIG_As_int(obj1);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 arg3 = (int)SWIG_As_int(obj2);
10291 if (PyErr_Occurred()) SWIG_fail;
10292 if (obj3) {
10293 arg4 = (int)SWIG_As_int(obj3);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 {
10297 PyThreadState* __tstate = wxPyBeginAllowThreads();
10298 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10299
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 {
10304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10305 }
10306 return resultobj;
10307 fail:
10308 return NULL;
10309 }
10310
10311
10312 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
10313 PyObject *resultobj;
10314 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10315 wxString *arg2 = 0 ;
10316 wxString result;
10317 bool temp2 = false ;
10318 PyObject * obj0 = 0 ;
10319 PyObject * obj1 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self",(char *) "input", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10327 {
10328 arg2 = wxString_in_helper(obj1);
10329 if (arg2 == NULL) SWIG_fail;
10330 temp2 = true;
10331 }
10332 {
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 result = (arg1)->Convert((wxString const &)*arg2);
10335
10336 wxPyEndAllowThreads(__tstate);
10337 if (PyErr_Occurred()) SWIG_fail;
10338 }
10339 {
10340 #if wxUSE_UNICODE
10341 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10342 #else
10343 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10344 #endif
10345 }
10346 {
10347 if (temp2)
10348 delete arg2;
10349 }
10350 return resultobj;
10351 fail:
10352 {
10353 if (temp2)
10354 delete arg2;
10355 }
10356 return NULL;
10357 }
10358
10359
10360 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj;
10362 int arg1 ;
10363 int arg2 = (int) wxPLATFORM_CURRENT ;
10364 wxFontEncodingArray result;
10365 PyObject * obj0 = 0 ;
10366 PyObject * obj1 = 0 ;
10367 char *kwnames[] = {
10368 (char *) "enc",(char *) "platform", NULL
10369 };
10370
10371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10372 arg1 = (int)SWIG_As_int(obj0);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 if (obj1) {
10375 arg2 = (int)SWIG_As_int(obj1);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 {
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10381
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 {
10386 resultobj = PyList_New(0);
10387 for (size_t i=0; i < (&result)->GetCount(); i++) {
10388 PyObject* number = PyInt_FromLong((&result)->Item(i));
10389 PyList_Append(resultobj, number);
10390 Py_DECREF(number);
10391 }
10392 }
10393 return resultobj;
10394 fail:
10395 return NULL;
10396 }
10397
10398
10399 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10400 PyObject *resultobj;
10401 int arg1 ;
10402 wxFontEncodingArray result;
10403 PyObject * obj0 = 0 ;
10404 char *kwnames[] = {
10405 (char *) "enc", NULL
10406 };
10407
10408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10409 arg1 = (int)SWIG_As_int(obj0);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10414
10415 wxPyEndAllowThreads(__tstate);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 }
10418 {
10419 resultobj = PyList_New(0);
10420 for (size_t i=0; i < (&result)->GetCount(); i++) {
10421 PyObject* number = PyInt_FromLong((&result)->Item(i));
10422 PyList_Append(resultobj, number);
10423 Py_DECREF(number);
10424 }
10425 }
10426 return resultobj;
10427 fail:
10428 return NULL;
10429 }
10430
10431
10432 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
10433 PyObject *resultobj;
10434 int arg1 ;
10435 int arg2 ;
10436 bool result;
10437 PyObject * obj0 = 0 ;
10438 PyObject * obj1 = 0 ;
10439 char *kwnames[] = {
10440 (char *) "encIn",(char *) "encOut", NULL
10441 };
10442
10443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10444 arg1 = (int)SWIG_As_int(obj0);
10445 if (PyErr_Occurred()) SWIG_fail;
10446 arg2 = (int)SWIG_As_int(obj1);
10447 if (PyErr_Occurred()) SWIG_fail;
10448 {
10449 PyThreadState* __tstate = wxPyBeginAllowThreads();
10450 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10451
10452 wxPyEndAllowThreads(__tstate);
10453 if (PyErr_Occurred()) SWIG_fail;
10454 }
10455 {
10456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10457 }
10458 return resultobj;
10459 fail:
10460 return NULL;
10461 }
10462
10463
10464 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
10465 PyObject *obj;
10466 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10467 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10468 Py_INCREF(obj);
10469 return Py_BuildValue((char *)"");
10470 }
10471 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
10472 PyObject *resultobj;
10473 wxDC *arg1 = (wxDC *) 0 ;
10474 PyObject * obj0 = 0 ;
10475 char *kwnames[] = {
10476 (char *) "self", NULL
10477 };
10478
10479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10482 {
10483 PyThreadState* __tstate = wxPyBeginAllowThreads();
10484 delete arg1;
10485
10486 wxPyEndAllowThreads(__tstate);
10487 if (PyErr_Occurred()) SWIG_fail;
10488 }
10489 Py_INCREF(Py_None); resultobj = Py_None;
10490 return resultobj;
10491 fail:
10492 return NULL;
10493 }
10494
10495
10496 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10497 PyObject *resultobj;
10498 wxDC *arg1 = (wxDC *) 0 ;
10499 PyObject * obj0 = 0 ;
10500 char *kwnames[] = {
10501 (char *) "self", NULL
10502 };
10503
10504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10507 {
10508 PyThreadState* __tstate = wxPyBeginAllowThreads();
10509 (arg1)->BeginDrawing();
10510
10511 wxPyEndAllowThreads(__tstate);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 Py_INCREF(Py_None); resultobj = Py_None;
10515 return resultobj;
10516 fail:
10517 return NULL;
10518 }
10519
10520
10521 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10522 PyObject *resultobj;
10523 wxDC *arg1 = (wxDC *) 0 ;
10524 PyObject * obj0 = 0 ;
10525 char *kwnames[] = {
10526 (char *) "self", NULL
10527 };
10528
10529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 (arg1)->EndDrawing();
10535
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 Py_INCREF(Py_None); resultobj = Py_None;
10540 return resultobj;
10541 fail:
10542 return NULL;
10543 }
10544
10545
10546 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj;
10548 wxDC *arg1 = (wxDC *) 0 ;
10549 int arg2 ;
10550 int arg3 ;
10551 wxColour *arg4 = 0 ;
10552 int arg5 = (int) wxFLOOD_SURFACE ;
10553 bool result;
10554 wxColour temp4 ;
10555 PyObject * obj0 = 0 ;
10556 PyObject * obj1 = 0 ;
10557 PyObject * obj2 = 0 ;
10558 PyObject * obj3 = 0 ;
10559 PyObject * obj4 = 0 ;
10560 char *kwnames[] = {
10561 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10562 };
10563
10564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10567 arg2 = (int)SWIG_As_int(obj1);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 arg3 = (int)SWIG_As_int(obj2);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 {
10572 arg4 = &temp4;
10573 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10574 }
10575 if (obj4) {
10576 arg5 = (int)SWIG_As_int(obj4);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10582
10583 wxPyEndAllowThreads(__tstate);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 {
10587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10588 }
10589 return resultobj;
10590 fail:
10591 return NULL;
10592 }
10593
10594
10595 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj;
10597 wxDC *arg1 = (wxDC *) 0 ;
10598 wxPoint *arg2 = 0 ;
10599 wxColour *arg3 = 0 ;
10600 int arg4 = (int) wxFLOOD_SURFACE ;
10601 bool result;
10602 wxPoint temp2 ;
10603 wxColour temp3 ;
10604 PyObject * obj0 = 0 ;
10605 PyObject * obj1 = 0 ;
10606 PyObject * obj2 = 0 ;
10607 PyObject * obj3 = 0 ;
10608 char *kwnames[] = {
10609 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10610 };
10611
10612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10615 {
10616 arg2 = &temp2;
10617 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10618 }
10619 {
10620 arg3 = &temp3;
10621 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10622 }
10623 if (obj3) {
10624 arg4 = (int)SWIG_As_int(obj3);
10625 if (PyErr_Occurred()) SWIG_fail;
10626 }
10627 {
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10630
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 {
10635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10636 }
10637 return resultobj;
10638 fail:
10639 return NULL;
10640 }
10641
10642
10643 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
10644 PyObject *resultobj;
10645 wxDC *arg1 = (wxDC *) 0 ;
10646 int arg2 ;
10647 int arg3 ;
10648 wxColour result;
10649 PyObject * obj0 = 0 ;
10650 PyObject * obj1 = 0 ;
10651 PyObject * obj2 = 0 ;
10652 char *kwnames[] = {
10653 (char *) "self",(char *) "x",(char *) "y", NULL
10654 };
10655
10656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10659 arg2 = (int)SWIG_As_int(obj1);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 arg3 = (int)SWIG_As_int(obj2);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 {
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 result = wxDC_GetPixel(arg1,arg2,arg3);
10666
10667 wxPyEndAllowThreads(__tstate);
10668 if (PyErr_Occurred()) SWIG_fail;
10669 }
10670 {
10671 wxColour * resultptr;
10672 resultptr = new wxColour((wxColour &) result);
10673 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10674 }
10675 return resultobj;
10676 fail:
10677 return NULL;
10678 }
10679
10680
10681 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj;
10683 wxDC *arg1 = (wxDC *) 0 ;
10684 wxPoint *arg2 = 0 ;
10685 wxColour result;
10686 wxPoint temp2 ;
10687 PyObject * obj0 = 0 ;
10688 PyObject * obj1 = 0 ;
10689 char *kwnames[] = {
10690 (char *) "self",(char *) "pt", NULL
10691 };
10692
10693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10696 {
10697 arg2 = &temp2;
10698 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10699 }
10700 {
10701 PyThreadState* __tstate = wxPyBeginAllowThreads();
10702 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10703
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 {
10708 wxColour * resultptr;
10709 resultptr = new wxColour((wxColour &) result);
10710 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10711 }
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj;
10720 wxDC *arg1 = (wxDC *) 0 ;
10721 int arg2 ;
10722 int arg3 ;
10723 int arg4 ;
10724 int arg5 ;
10725 PyObject * obj0 = 0 ;
10726 PyObject * obj1 = 0 ;
10727 PyObject * obj2 = 0 ;
10728 PyObject * obj3 = 0 ;
10729 PyObject * obj4 = 0 ;
10730 char *kwnames[] = {
10731 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10732 };
10733
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10737 arg2 = (int)SWIG_As_int(obj1);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 arg3 = (int)SWIG_As_int(obj2);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 arg4 = (int)SWIG_As_int(obj3);
10742 if (PyErr_Occurred()) SWIG_fail;
10743 arg5 = (int)SWIG_As_int(obj4);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 {
10746 PyThreadState* __tstate = wxPyBeginAllowThreads();
10747 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10748
10749 wxPyEndAllowThreads(__tstate);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 }
10752 Py_INCREF(Py_None); resultobj = Py_None;
10753 return resultobj;
10754 fail:
10755 return NULL;
10756 }
10757
10758
10759 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
10760 PyObject *resultobj;
10761 wxDC *arg1 = (wxDC *) 0 ;
10762 wxPoint *arg2 = 0 ;
10763 wxPoint *arg3 = 0 ;
10764 wxPoint temp2 ;
10765 wxPoint temp3 ;
10766 PyObject * obj0 = 0 ;
10767 PyObject * obj1 = 0 ;
10768 PyObject * obj2 = 0 ;
10769 char *kwnames[] = {
10770 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10776 {
10777 arg2 = &temp2;
10778 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10779 }
10780 {
10781 arg3 = &temp3;
10782 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10783 }
10784 {
10785 PyThreadState* __tstate = wxPyBeginAllowThreads();
10786 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10787
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 Py_INCREF(Py_None); resultobj = Py_None;
10792 return resultobj;
10793 fail:
10794 return NULL;
10795 }
10796
10797
10798 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
10799 PyObject *resultobj;
10800 wxDC *arg1 = (wxDC *) 0 ;
10801 int arg2 ;
10802 int arg3 ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 PyObject * obj2 = 0 ;
10806 char *kwnames[] = {
10807 (char *) "self",(char *) "x",(char *) "y", NULL
10808 };
10809
10810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10813 arg2 = (int)SWIG_As_int(obj1);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 arg3 = (int)SWIG_As_int(obj2);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 (arg1)->CrossHair(arg2,arg3);
10820
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 Py_INCREF(Py_None); resultobj = Py_None;
10825 return resultobj;
10826 fail:
10827 return NULL;
10828 }
10829
10830
10831 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10832 PyObject *resultobj;
10833 wxDC *arg1 = (wxDC *) 0 ;
10834 wxPoint *arg2 = 0 ;
10835 wxPoint temp2 ;
10836 PyObject * obj0 = 0 ;
10837 PyObject * obj1 = 0 ;
10838 char *kwnames[] = {
10839 (char *) "self",(char *) "pt", NULL
10840 };
10841
10842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10845 {
10846 arg2 = &temp2;
10847 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10848 }
10849 {
10850 PyThreadState* __tstate = wxPyBeginAllowThreads();
10851 (arg1)->CrossHair((wxPoint const &)*arg2);
10852
10853 wxPyEndAllowThreads(__tstate);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 Py_INCREF(Py_None); resultobj = Py_None;
10857 return resultobj;
10858 fail:
10859 return NULL;
10860 }
10861
10862
10863 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
10864 PyObject *resultobj;
10865 wxDC *arg1 = (wxDC *) 0 ;
10866 int arg2 ;
10867 int arg3 ;
10868 int arg4 ;
10869 int arg5 ;
10870 int arg6 ;
10871 int arg7 ;
10872 PyObject * obj0 = 0 ;
10873 PyObject * obj1 = 0 ;
10874 PyObject * obj2 = 0 ;
10875 PyObject * obj3 = 0 ;
10876 PyObject * obj4 = 0 ;
10877 PyObject * obj5 = 0 ;
10878 PyObject * obj6 = 0 ;
10879 char *kwnames[] = {
10880 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10881 };
10882
10883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10886 arg2 = (int)SWIG_As_int(obj1);
10887 if (PyErr_Occurred()) SWIG_fail;
10888 arg3 = (int)SWIG_As_int(obj2);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 arg4 = (int)SWIG_As_int(obj3);
10891 if (PyErr_Occurred()) SWIG_fail;
10892 arg5 = (int)SWIG_As_int(obj4);
10893 if (PyErr_Occurred()) SWIG_fail;
10894 arg6 = (int)SWIG_As_int(obj5);
10895 if (PyErr_Occurred()) SWIG_fail;
10896 arg7 = (int)SWIG_As_int(obj6);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10901
10902 wxPyEndAllowThreads(__tstate);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 Py_INCREF(Py_None); resultobj = Py_None;
10906 return resultobj;
10907 fail:
10908 return NULL;
10909 }
10910
10911
10912 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10913 PyObject *resultobj;
10914 wxDC *arg1 = (wxDC *) 0 ;
10915 wxPoint *arg2 = 0 ;
10916 wxPoint *arg3 = 0 ;
10917 wxPoint *arg4 = 0 ;
10918 wxPoint temp2 ;
10919 wxPoint temp3 ;
10920 wxPoint temp4 ;
10921 PyObject * obj0 = 0 ;
10922 PyObject * obj1 = 0 ;
10923 PyObject * obj2 = 0 ;
10924 PyObject * obj3 = 0 ;
10925 char *kwnames[] = {
10926 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
10927 };
10928
10929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10932 {
10933 arg2 = &temp2;
10934 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10935 }
10936 {
10937 arg3 = &temp3;
10938 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10939 }
10940 {
10941 arg4 = &temp4;
10942 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10943 }
10944 {
10945 PyThreadState* __tstate = wxPyBeginAllowThreads();
10946 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10947
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 Py_INCREF(Py_None); resultobj = Py_None;
10952 return resultobj;
10953 fail:
10954 return NULL;
10955 }
10956
10957
10958 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
10959 PyObject *resultobj;
10960 wxDC *arg1 = (wxDC *) 0 ;
10961 int arg2 ;
10962 int arg3 ;
10963 int arg4 ;
10964 int arg5 ;
10965 PyObject * obj0 = 0 ;
10966 PyObject * obj1 = 0 ;
10967 PyObject * obj2 = 0 ;
10968 PyObject * obj3 = 0 ;
10969 PyObject * obj4 = 0 ;
10970 char *kwnames[] = {
10971 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10972 };
10973
10974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10977 arg2 = (int)SWIG_As_int(obj1);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 arg3 = (int)SWIG_As_int(obj2);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 arg4 = (int)SWIG_As_int(obj3);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 arg5 = (int)SWIG_As_int(obj4);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10988
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 Py_INCREF(Py_None); resultobj = Py_None;
10993 return resultobj;
10994 fail:
10995 return NULL;
10996 }
10997
10998
10999 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
11000 PyObject *resultobj;
11001 wxDC *arg1 = (wxDC *) 0 ;
11002 wxRect *arg2 = 0 ;
11003 wxRect temp2 ;
11004 PyObject * obj0 = 0 ;
11005 PyObject * obj1 = 0 ;
11006 char *kwnames[] = {
11007 (char *) "self",(char *) "rect", NULL
11008 };
11009
11010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11013 {
11014 arg2 = &temp2;
11015 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11016 }
11017 {
11018 PyThreadState* __tstate = wxPyBeginAllowThreads();
11019 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11020
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 Py_INCREF(Py_None); resultobj = Py_None;
11025 return resultobj;
11026 fail:
11027 return NULL;
11028 }
11029
11030
11031 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
11032 PyObject *resultobj;
11033 wxDC *arg1 = (wxDC *) 0 ;
11034 int arg2 ;
11035 int arg3 ;
11036 int arg4 ;
11037 int arg5 ;
11038 double arg6 ;
11039 double arg7 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 PyObject * obj2 = 0 ;
11043 PyObject * obj3 = 0 ;
11044 PyObject * obj4 = 0 ;
11045 PyObject * obj5 = 0 ;
11046 PyObject * obj6 = 0 ;
11047 char *kwnames[] = {
11048 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
11049 };
11050
11051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11054 arg2 = (int)SWIG_As_int(obj1);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 arg3 = (int)SWIG_As_int(obj2);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 arg4 = (int)SWIG_As_int(obj3);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 arg5 = (int)SWIG_As_int(obj4);
11061 if (PyErr_Occurred()) SWIG_fail;
11062 arg6 = (double)SWIG_As_double(obj5);
11063 if (PyErr_Occurred()) SWIG_fail;
11064 arg7 = (double)SWIG_As_double(obj6);
11065 if (PyErr_Occurred()) SWIG_fail;
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11069
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 Py_INCREF(Py_None); resultobj = Py_None;
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11081 PyObject *resultobj;
11082 wxDC *arg1 = (wxDC *) 0 ;
11083 wxPoint *arg2 = 0 ;
11084 wxSize *arg3 = 0 ;
11085 double arg4 ;
11086 double arg5 ;
11087 wxPoint temp2 ;
11088 wxSize temp3 ;
11089 PyObject * obj0 = 0 ;
11090 PyObject * obj1 = 0 ;
11091 PyObject * obj2 = 0 ;
11092 PyObject * obj3 = 0 ;
11093 PyObject * obj4 = 0 ;
11094 char *kwnames[] = {
11095 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
11096 };
11097
11098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11101 {
11102 arg2 = &temp2;
11103 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11104 }
11105 {
11106 arg3 = &temp3;
11107 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11108 }
11109 arg4 = (double)SWIG_As_double(obj3);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 arg5 = (double)SWIG_As_double(obj4);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11116
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 Py_INCREF(Py_None); resultobj = Py_None;
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj;
11129 wxDC *arg1 = (wxDC *) 0 ;
11130 int arg2 ;
11131 int arg3 ;
11132 PyObject * obj0 = 0 ;
11133 PyObject * obj1 = 0 ;
11134 PyObject * obj2 = 0 ;
11135 char *kwnames[] = {
11136 (char *) "self",(char *) "x",(char *) "y", NULL
11137 };
11138
11139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11142 arg2 = (int)SWIG_As_int(obj1);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 arg3 = (int)SWIG_As_int(obj2);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 {
11147 PyThreadState* __tstate = wxPyBeginAllowThreads();
11148 (arg1)->DrawPoint(arg2,arg3);
11149
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 }
11153 Py_INCREF(Py_None); resultobj = Py_None;
11154 return resultobj;
11155 fail:
11156 return NULL;
11157 }
11158
11159
11160 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11161 PyObject *resultobj;
11162 wxDC *arg1 = (wxDC *) 0 ;
11163 wxPoint *arg2 = 0 ;
11164 wxPoint temp2 ;
11165 PyObject * obj0 = 0 ;
11166 PyObject * obj1 = 0 ;
11167 char *kwnames[] = {
11168 (char *) "self",(char *) "pt", NULL
11169 };
11170
11171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11174 {
11175 arg2 = &temp2;
11176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11177 }
11178 {
11179 PyThreadState* __tstate = wxPyBeginAllowThreads();
11180 (arg1)->DrawPoint((wxPoint const &)*arg2);
11181
11182 wxPyEndAllowThreads(__tstate);
11183 if (PyErr_Occurred()) SWIG_fail;
11184 }
11185 Py_INCREF(Py_None); resultobj = Py_None;
11186 return resultobj;
11187 fail:
11188 return NULL;
11189 }
11190
11191
11192 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11193 PyObject *resultobj;
11194 wxDC *arg1 = (wxDC *) 0 ;
11195 int arg2 ;
11196 int arg3 ;
11197 int arg4 ;
11198 int arg5 ;
11199 PyObject * obj0 = 0 ;
11200 PyObject * obj1 = 0 ;
11201 PyObject * obj2 = 0 ;
11202 PyObject * obj3 = 0 ;
11203 PyObject * obj4 = 0 ;
11204 char *kwnames[] = {
11205 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11206 };
11207
11208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11211 arg2 = (int)SWIG_As_int(obj1);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 arg3 = (int)SWIG_As_int(obj2);
11214 if (PyErr_Occurred()) SWIG_fail;
11215 arg4 = (int)SWIG_As_int(obj3);
11216 if (PyErr_Occurred()) SWIG_fail;
11217 arg5 = (int)SWIG_As_int(obj4);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11222
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 Py_INCREF(Py_None); resultobj = Py_None;
11227 return resultobj;
11228 fail:
11229 return NULL;
11230 }
11231
11232
11233 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11234 PyObject *resultobj;
11235 wxDC *arg1 = (wxDC *) 0 ;
11236 wxRect *arg2 = 0 ;
11237 wxRect temp2 ;
11238 PyObject * obj0 = 0 ;
11239 PyObject * obj1 = 0 ;
11240 char *kwnames[] = {
11241 (char *) "self",(char *) "rect", NULL
11242 };
11243
11244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11247 {
11248 arg2 = &temp2;
11249 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11250 }
11251 {
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 (arg1)->DrawRectangle((wxRect const &)*arg2);
11254
11255 wxPyEndAllowThreads(__tstate);
11256 if (PyErr_Occurred()) SWIG_fail;
11257 }
11258 Py_INCREF(Py_None); resultobj = Py_None;
11259 return resultobj;
11260 fail:
11261 return NULL;
11262 }
11263
11264
11265 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11266 PyObject *resultobj;
11267 wxDC *arg1 = (wxDC *) 0 ;
11268 wxPoint *arg2 = 0 ;
11269 wxSize *arg3 = 0 ;
11270 wxPoint temp2 ;
11271 wxSize temp3 ;
11272 PyObject * obj0 = 0 ;
11273 PyObject * obj1 = 0 ;
11274 PyObject * obj2 = 0 ;
11275 char *kwnames[] = {
11276 (char *) "self",(char *) "pt",(char *) "sz", NULL
11277 };
11278
11279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11282 {
11283 arg2 = &temp2;
11284 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11285 }
11286 {
11287 arg3 = &temp3;
11288 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11289 }
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
11292 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11293
11294 wxPyEndAllowThreads(__tstate);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
11297 Py_INCREF(Py_None); resultobj = Py_None;
11298 return resultobj;
11299 fail:
11300 return NULL;
11301 }
11302
11303
11304 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11305 PyObject *resultobj;
11306 wxDC *arg1 = (wxDC *) 0 ;
11307 int arg2 ;
11308 int arg3 ;
11309 int arg4 ;
11310 int arg5 ;
11311 double arg6 ;
11312 PyObject * obj0 = 0 ;
11313 PyObject * obj1 = 0 ;
11314 PyObject * obj2 = 0 ;
11315 PyObject * obj3 = 0 ;
11316 PyObject * obj4 = 0 ;
11317 PyObject * obj5 = 0 ;
11318 char *kwnames[] = {
11319 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11320 };
11321
11322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11325 arg2 = (int)SWIG_As_int(obj1);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 arg3 = (int)SWIG_As_int(obj2);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 arg4 = (int)SWIG_As_int(obj3);
11330 if (PyErr_Occurred()) SWIG_fail;
11331 arg5 = (int)SWIG_As_int(obj4);
11332 if (PyErr_Occurred()) SWIG_fail;
11333 arg6 = (double)SWIG_As_double(obj5);
11334 if (PyErr_Occurred()) SWIG_fail;
11335 {
11336 PyThreadState* __tstate = wxPyBeginAllowThreads();
11337 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11338
11339 wxPyEndAllowThreads(__tstate);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 }
11342 Py_INCREF(Py_None); resultobj = Py_None;
11343 return resultobj;
11344 fail:
11345 return NULL;
11346 }
11347
11348
11349 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11350 PyObject *resultobj;
11351 wxDC *arg1 = (wxDC *) 0 ;
11352 wxRect *arg2 = 0 ;
11353 double arg3 ;
11354 wxRect temp2 ;
11355 PyObject * obj0 = 0 ;
11356 PyObject * obj1 = 0 ;
11357 PyObject * obj2 = 0 ;
11358 char *kwnames[] = {
11359 (char *) "self",(char *) "r",(char *) "radius", NULL
11360 };
11361
11362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11365 {
11366 arg2 = &temp2;
11367 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11368 }
11369 arg3 = (double)SWIG_As_double(obj2);
11370 if (PyErr_Occurred()) SWIG_fail;
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11374
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 Py_INCREF(Py_None); resultobj = Py_None;
11379 return resultobj;
11380 fail:
11381 return NULL;
11382 }
11383
11384
11385 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11386 PyObject *resultobj;
11387 wxDC *arg1 = (wxDC *) 0 ;
11388 wxPoint *arg2 = 0 ;
11389 wxSize *arg3 = 0 ;
11390 double arg4 ;
11391 wxPoint temp2 ;
11392 wxSize temp3 ;
11393 PyObject * obj0 = 0 ;
11394 PyObject * obj1 = 0 ;
11395 PyObject * obj2 = 0 ;
11396 PyObject * obj3 = 0 ;
11397 char *kwnames[] = {
11398 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11399 };
11400
11401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11404 {
11405 arg2 = &temp2;
11406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11407 }
11408 {
11409 arg3 = &temp3;
11410 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11411 }
11412 arg4 = (double)SWIG_As_double(obj3);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 {
11415 PyThreadState* __tstate = wxPyBeginAllowThreads();
11416 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11417
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 Py_INCREF(Py_None); resultobj = Py_None;
11422 return resultobj;
11423 fail:
11424 return NULL;
11425 }
11426
11427
11428 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
11429 PyObject *resultobj;
11430 wxDC *arg1 = (wxDC *) 0 ;
11431 int arg2 ;
11432 int arg3 ;
11433 int arg4 ;
11434 PyObject * obj0 = 0 ;
11435 PyObject * obj1 = 0 ;
11436 PyObject * obj2 = 0 ;
11437 PyObject * obj3 = 0 ;
11438 char *kwnames[] = {
11439 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11440 };
11441
11442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11445 arg2 = (int)SWIG_As_int(obj1);
11446 if (PyErr_Occurred()) SWIG_fail;
11447 arg3 = (int)SWIG_As_int(obj2);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 arg4 = (int)SWIG_As_int(obj3);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 {
11452 PyThreadState* __tstate = wxPyBeginAllowThreads();
11453 (arg1)->DrawCircle(arg2,arg3,arg4);
11454
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 Py_INCREF(Py_None); resultobj = Py_None;
11459 return resultobj;
11460 fail:
11461 return NULL;
11462 }
11463
11464
11465 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
11466 PyObject *resultobj;
11467 wxDC *arg1 = (wxDC *) 0 ;
11468 wxPoint *arg2 = 0 ;
11469 int arg3 ;
11470 wxPoint temp2 ;
11471 PyObject * obj0 = 0 ;
11472 PyObject * obj1 = 0 ;
11473 PyObject * obj2 = 0 ;
11474 char *kwnames[] = {
11475 (char *) "self",(char *) "pt",(char *) "radius", NULL
11476 };
11477
11478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11481 {
11482 arg2 = &temp2;
11483 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11484 }
11485 arg3 = (int)SWIG_As_int(obj2);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 {
11488 PyThreadState* __tstate = wxPyBeginAllowThreads();
11489 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11490
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 Py_INCREF(Py_None); resultobj = Py_None;
11495 return resultobj;
11496 fail:
11497 return NULL;
11498 }
11499
11500
11501 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
11502 PyObject *resultobj;
11503 wxDC *arg1 = (wxDC *) 0 ;
11504 int arg2 ;
11505 int arg3 ;
11506 int arg4 ;
11507 int arg5 ;
11508 PyObject * obj0 = 0 ;
11509 PyObject * obj1 = 0 ;
11510 PyObject * obj2 = 0 ;
11511 PyObject * obj3 = 0 ;
11512 PyObject * obj4 = 0 ;
11513 char *kwnames[] = {
11514 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11515 };
11516
11517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11520 arg2 = (int)SWIG_As_int(obj1);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 arg3 = (int)SWIG_As_int(obj2);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 arg4 = (int)SWIG_As_int(obj3);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 arg5 = (int)SWIG_As_int(obj4);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11531
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 Py_INCREF(Py_None); resultobj = Py_None;
11536 return resultobj;
11537 fail:
11538 return NULL;
11539 }
11540
11541
11542 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj;
11544 wxDC *arg1 = (wxDC *) 0 ;
11545 wxRect *arg2 = 0 ;
11546 wxRect temp2 ;
11547 PyObject * obj0 = 0 ;
11548 PyObject * obj1 = 0 ;
11549 char *kwnames[] = {
11550 (char *) "self",(char *) "rect", NULL
11551 };
11552
11553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11556 {
11557 arg2 = &temp2;
11558 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11559 }
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 (arg1)->DrawEllipse((wxRect const &)*arg2);
11563
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 Py_INCREF(Py_None); resultobj = Py_None;
11568 return resultobj;
11569 fail:
11570 return NULL;
11571 }
11572
11573
11574 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11575 PyObject *resultobj;
11576 wxDC *arg1 = (wxDC *) 0 ;
11577 wxPoint *arg2 = 0 ;
11578 wxSize *arg3 = 0 ;
11579 wxPoint temp2 ;
11580 wxSize temp3 ;
11581 PyObject * obj0 = 0 ;
11582 PyObject * obj1 = 0 ;
11583 PyObject * obj2 = 0 ;
11584 char *kwnames[] = {
11585 (char *) "self",(char *) "pt",(char *) "sz", NULL
11586 };
11587
11588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11591 {
11592 arg2 = &temp2;
11593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11594 }
11595 {
11596 arg3 = &temp3;
11597 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11598 }
11599 {
11600 PyThreadState* __tstate = wxPyBeginAllowThreads();
11601 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11602
11603 wxPyEndAllowThreads(__tstate);
11604 if (PyErr_Occurred()) SWIG_fail;
11605 }
11606 Py_INCREF(Py_None); resultobj = Py_None;
11607 return resultobj;
11608 fail:
11609 return NULL;
11610 }
11611
11612
11613 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11614 PyObject *resultobj;
11615 wxDC *arg1 = (wxDC *) 0 ;
11616 wxIcon *arg2 = 0 ;
11617 int arg3 ;
11618 int arg4 ;
11619 PyObject * obj0 = 0 ;
11620 PyObject * obj1 = 0 ;
11621 PyObject * obj2 = 0 ;
11622 PyObject * obj3 = 0 ;
11623 char *kwnames[] = {
11624 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11625 };
11626
11627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11631 SWIG_POINTER_EXCEPTION | 0)) == -1)
11632 SWIG_fail;
11633 if (arg2 == NULL) {
11634 PyErr_SetString(PyExc_TypeError,"null reference");
11635 SWIG_fail;
11636 }
11637 arg3 = (int)SWIG_As_int(obj2);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 arg4 = (int)SWIG_As_int(obj3);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 {
11642 PyThreadState* __tstate = wxPyBeginAllowThreads();
11643 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11644
11645 wxPyEndAllowThreads(__tstate);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 }
11648 Py_INCREF(Py_None); resultobj = Py_None;
11649 return resultobj;
11650 fail:
11651 return NULL;
11652 }
11653
11654
11655 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11656 PyObject *resultobj;
11657 wxDC *arg1 = (wxDC *) 0 ;
11658 wxIcon *arg2 = 0 ;
11659 wxPoint *arg3 = 0 ;
11660 wxPoint temp3 ;
11661 PyObject * obj0 = 0 ;
11662 PyObject * obj1 = 0 ;
11663 PyObject * obj2 = 0 ;
11664 char *kwnames[] = {
11665 (char *) "self",(char *) "icon",(char *) "pt", NULL
11666 };
11667
11668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11671 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11672 SWIG_POINTER_EXCEPTION | 0)) == -1)
11673 SWIG_fail;
11674 if (arg2 == NULL) {
11675 PyErr_SetString(PyExc_TypeError,"null reference");
11676 SWIG_fail;
11677 }
11678 {
11679 arg3 = &temp3;
11680 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11681 }
11682 {
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
11684 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11685
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 Py_INCREF(Py_None); resultobj = Py_None;
11690 return resultobj;
11691 fail:
11692 return NULL;
11693 }
11694
11695
11696 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11697 PyObject *resultobj;
11698 wxDC *arg1 = (wxDC *) 0 ;
11699 wxBitmap *arg2 = 0 ;
11700 int arg3 ;
11701 int arg4 ;
11702 bool arg5 = (bool) false ;
11703 PyObject * obj0 = 0 ;
11704 PyObject * obj1 = 0 ;
11705 PyObject * obj2 = 0 ;
11706 PyObject * obj3 = 0 ;
11707 PyObject * obj4 = 0 ;
11708 char *kwnames[] = {
11709 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11710 };
11711
11712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11716 SWIG_POINTER_EXCEPTION | 0)) == -1)
11717 SWIG_fail;
11718 if (arg2 == NULL) {
11719 PyErr_SetString(PyExc_TypeError,"null reference");
11720 SWIG_fail;
11721 }
11722 arg3 = (int)SWIG_As_int(obj2);
11723 if (PyErr_Occurred()) SWIG_fail;
11724 arg4 = (int)SWIG_As_int(obj3);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 if (obj4) {
11727 arg5 = (bool)SWIG_As_bool(obj4);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 {
11731 PyThreadState* __tstate = wxPyBeginAllowThreads();
11732 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11733
11734 wxPyEndAllowThreads(__tstate);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 Py_INCREF(Py_None); resultobj = Py_None;
11738 return resultobj;
11739 fail:
11740 return NULL;
11741 }
11742
11743
11744 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11745 PyObject *resultobj;
11746 wxDC *arg1 = (wxDC *) 0 ;
11747 wxBitmap *arg2 = 0 ;
11748 wxPoint *arg3 = 0 ;
11749 bool arg4 = (bool) false ;
11750 wxPoint temp3 ;
11751 PyObject * obj0 = 0 ;
11752 PyObject * obj1 = 0 ;
11753 PyObject * obj2 = 0 ;
11754 PyObject * obj3 = 0 ;
11755 char *kwnames[] = {
11756 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11757 };
11758
11759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11762 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11763 SWIG_POINTER_EXCEPTION | 0)) == -1)
11764 SWIG_fail;
11765 if (arg2 == NULL) {
11766 PyErr_SetString(PyExc_TypeError,"null reference");
11767 SWIG_fail;
11768 }
11769 {
11770 arg3 = &temp3;
11771 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11772 }
11773 if (obj3) {
11774 arg4 = (bool)SWIG_As_bool(obj3);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 }
11777 {
11778 PyThreadState* __tstate = wxPyBeginAllowThreads();
11779 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11780
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 Py_INCREF(Py_None); resultobj = Py_None;
11785 return resultobj;
11786 fail:
11787 return NULL;
11788 }
11789
11790
11791 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
11792 PyObject *resultobj;
11793 wxDC *arg1 = (wxDC *) 0 ;
11794 wxString *arg2 = 0 ;
11795 int arg3 ;
11796 int arg4 ;
11797 bool temp2 = false ;
11798 PyObject * obj0 = 0 ;
11799 PyObject * obj1 = 0 ;
11800 PyObject * obj2 = 0 ;
11801 PyObject * obj3 = 0 ;
11802 char *kwnames[] = {
11803 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11804 };
11805
11806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11809 {
11810 arg2 = wxString_in_helper(obj1);
11811 if (arg2 == NULL) SWIG_fail;
11812 temp2 = true;
11813 }
11814 arg3 = (int)SWIG_As_int(obj2);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 arg4 = (int)SWIG_As_int(obj3);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 {
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11821
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 Py_INCREF(Py_None); resultobj = Py_None;
11826 {
11827 if (temp2)
11828 delete arg2;
11829 }
11830 return resultobj;
11831 fail:
11832 {
11833 if (temp2)
11834 delete arg2;
11835 }
11836 return NULL;
11837 }
11838
11839
11840 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11841 PyObject *resultobj;
11842 wxDC *arg1 = (wxDC *) 0 ;
11843 wxString *arg2 = 0 ;
11844 wxPoint *arg3 = 0 ;
11845 bool temp2 = false ;
11846 wxPoint temp3 ;
11847 PyObject * obj0 = 0 ;
11848 PyObject * obj1 = 0 ;
11849 PyObject * obj2 = 0 ;
11850 char *kwnames[] = {
11851 (char *) "self",(char *) "text",(char *) "pt", NULL
11852 };
11853
11854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11857 {
11858 arg2 = wxString_in_helper(obj1);
11859 if (arg2 == NULL) SWIG_fail;
11860 temp2 = true;
11861 }
11862 {
11863 arg3 = &temp3;
11864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11865 }
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11869
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 Py_INCREF(Py_None); resultobj = Py_None;
11874 {
11875 if (temp2)
11876 delete arg2;
11877 }
11878 return resultobj;
11879 fail:
11880 {
11881 if (temp2)
11882 delete arg2;
11883 }
11884 return NULL;
11885 }
11886
11887
11888 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
11889 PyObject *resultobj;
11890 wxDC *arg1 = (wxDC *) 0 ;
11891 wxString *arg2 = 0 ;
11892 int arg3 ;
11893 int arg4 ;
11894 double arg5 ;
11895 bool temp2 = false ;
11896 PyObject * obj0 = 0 ;
11897 PyObject * obj1 = 0 ;
11898 PyObject * obj2 = 0 ;
11899 PyObject * obj3 = 0 ;
11900 PyObject * obj4 = 0 ;
11901 char *kwnames[] = {
11902 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11903 };
11904
11905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11908 {
11909 arg2 = wxString_in_helper(obj1);
11910 if (arg2 == NULL) SWIG_fail;
11911 temp2 = true;
11912 }
11913 arg3 = (int)SWIG_As_int(obj2);
11914 if (PyErr_Occurred()) SWIG_fail;
11915 arg4 = (int)SWIG_As_int(obj3);
11916 if (PyErr_Occurred()) SWIG_fail;
11917 arg5 = (double)SWIG_As_double(obj4);
11918 if (PyErr_Occurred()) SWIG_fail;
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11922
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 Py_INCREF(Py_None); resultobj = Py_None;
11927 {
11928 if (temp2)
11929 delete arg2;
11930 }
11931 return resultobj;
11932 fail:
11933 {
11934 if (temp2)
11935 delete arg2;
11936 }
11937 return NULL;
11938 }
11939
11940
11941 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11942 PyObject *resultobj;
11943 wxDC *arg1 = (wxDC *) 0 ;
11944 wxString *arg2 = 0 ;
11945 wxPoint *arg3 = 0 ;
11946 double arg4 ;
11947 bool temp2 = false ;
11948 wxPoint temp3 ;
11949 PyObject * obj0 = 0 ;
11950 PyObject * obj1 = 0 ;
11951 PyObject * obj2 = 0 ;
11952 PyObject * obj3 = 0 ;
11953 char *kwnames[] = {
11954 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11955 };
11956
11957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11960 {
11961 arg2 = wxString_in_helper(obj1);
11962 if (arg2 == NULL) SWIG_fail;
11963 temp2 = true;
11964 }
11965 {
11966 arg3 = &temp3;
11967 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11968 }
11969 arg4 = (double)SWIG_As_double(obj3);
11970 if (PyErr_Occurred()) SWIG_fail;
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11974
11975 wxPyEndAllowThreads(__tstate);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 Py_INCREF(Py_None); resultobj = Py_None;
11979 {
11980 if (temp2)
11981 delete arg2;
11982 }
11983 return resultobj;
11984 fail:
11985 {
11986 if (temp2)
11987 delete arg2;
11988 }
11989 return NULL;
11990 }
11991
11992
11993 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
11994 PyObject *resultobj;
11995 wxDC *arg1 = (wxDC *) 0 ;
11996 int arg2 ;
11997 int arg3 ;
11998 int arg4 ;
11999 int arg5 ;
12000 wxDC *arg6 = (wxDC *) 0 ;
12001 int arg7 ;
12002 int arg8 ;
12003 int arg9 = (int) wxCOPY ;
12004 bool arg10 = (bool) false ;
12005 int arg11 = (int) -1 ;
12006 int arg12 = (int) -1 ;
12007 bool result;
12008 PyObject * obj0 = 0 ;
12009 PyObject * obj1 = 0 ;
12010 PyObject * obj2 = 0 ;
12011 PyObject * obj3 = 0 ;
12012 PyObject * obj4 = 0 ;
12013 PyObject * obj5 = 0 ;
12014 PyObject * obj6 = 0 ;
12015 PyObject * obj7 = 0 ;
12016 PyObject * obj8 = 0 ;
12017 PyObject * obj9 = 0 ;
12018 PyObject * obj10 = 0 ;
12019 PyObject * obj11 = 0 ;
12020 char *kwnames[] = {
12021 (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
12022 };
12023
12024 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;
12025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12027 arg2 = (int)SWIG_As_int(obj1);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 arg3 = (int)SWIG_As_int(obj2);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 arg4 = (int)SWIG_As_int(obj3);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 arg5 = (int)SWIG_As_int(obj4);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12037 arg7 = (int)SWIG_As_int(obj6);
12038 if (PyErr_Occurred()) SWIG_fail;
12039 arg8 = (int)SWIG_As_int(obj7);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 if (obj8) {
12042 arg9 = (int)SWIG_As_int(obj8);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 if (obj9) {
12046 arg10 = (bool)SWIG_As_bool(obj9);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 if (obj10) {
12050 arg11 = (int)SWIG_As_int(obj10);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 if (obj11) {
12054 arg12 = (int)SWIG_As_int(obj11);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 {
12058 PyThreadState* __tstate = wxPyBeginAllowThreads();
12059 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12060
12061 wxPyEndAllowThreads(__tstate);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 }
12064 {
12065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12066 }
12067 return resultobj;
12068 fail:
12069 return NULL;
12070 }
12071
12072
12073 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12074 PyObject *resultobj;
12075 wxDC *arg1 = (wxDC *) 0 ;
12076 wxPoint *arg2 = 0 ;
12077 wxSize *arg3 = 0 ;
12078 wxDC *arg4 = (wxDC *) 0 ;
12079 wxPoint *arg5 = 0 ;
12080 int arg6 = (int) wxCOPY ;
12081 bool arg7 = (bool) false ;
12082 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12083 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12084 bool result;
12085 wxPoint temp2 ;
12086 wxSize temp3 ;
12087 wxPoint temp5 ;
12088 wxPoint temp8 ;
12089 PyObject * obj0 = 0 ;
12090 PyObject * obj1 = 0 ;
12091 PyObject * obj2 = 0 ;
12092 PyObject * obj3 = 0 ;
12093 PyObject * obj4 = 0 ;
12094 PyObject * obj5 = 0 ;
12095 PyObject * obj6 = 0 ;
12096 PyObject * obj7 = 0 ;
12097 char *kwnames[] = {
12098 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12099 };
12100
12101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12104 {
12105 arg2 = &temp2;
12106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12107 }
12108 {
12109 arg3 = &temp3;
12110 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12111 }
12112 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12114 {
12115 arg5 = &temp5;
12116 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12117 }
12118 if (obj5) {
12119 arg6 = (int)SWIG_As_int(obj5);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 if (obj6) {
12123 arg7 = (bool)SWIG_As_bool(obj6);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 if (obj7) {
12127 {
12128 arg8 = &temp8;
12129 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12130 }
12131 }
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12135
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 {
12140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12141 }
12142 return resultobj;
12143 fail:
12144 return NULL;
12145 }
12146
12147
12148 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12149 PyObject *resultobj;
12150 wxDC *arg1 = (wxDC *) 0 ;
12151 int arg2 ;
12152 int arg3 ;
12153 int arg4 ;
12154 int arg5 ;
12155 PyObject * obj0 = 0 ;
12156 PyObject * obj1 = 0 ;
12157 PyObject * obj2 = 0 ;
12158 PyObject * obj3 = 0 ;
12159 PyObject * obj4 = 0 ;
12160 char *kwnames[] = {
12161 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12162 };
12163
12164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12167 arg2 = (int)SWIG_As_int(obj1);
12168 if (PyErr_Occurred()) SWIG_fail;
12169 arg3 = (int)SWIG_As_int(obj2);
12170 if (PyErr_Occurred()) SWIG_fail;
12171 arg4 = (int)SWIG_As_int(obj3);
12172 if (PyErr_Occurred()) SWIG_fail;
12173 arg5 = (int)SWIG_As_int(obj4);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12178
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 Py_INCREF(Py_None); resultobj = Py_None;
12183 return resultobj;
12184 fail:
12185 return NULL;
12186 }
12187
12188
12189 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12190 PyObject *resultobj;
12191 wxDC *arg1 = (wxDC *) 0 ;
12192 wxPoint *arg2 = 0 ;
12193 wxSize *arg3 = 0 ;
12194 wxPoint temp2 ;
12195 wxSize temp3 ;
12196 PyObject * obj0 = 0 ;
12197 PyObject * obj1 = 0 ;
12198 PyObject * obj2 = 0 ;
12199 char *kwnames[] = {
12200 (char *) "self",(char *) "pt",(char *) "sz", NULL
12201 };
12202
12203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12206 {
12207 arg2 = &temp2;
12208 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12209 }
12210 {
12211 arg3 = &temp3;
12212 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12213 }
12214 {
12215 PyThreadState* __tstate = wxPyBeginAllowThreads();
12216 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12217
12218 wxPyEndAllowThreads(__tstate);
12219 if (PyErr_Occurred()) SWIG_fail;
12220 }
12221 Py_INCREF(Py_None); resultobj = Py_None;
12222 return resultobj;
12223 fail:
12224 return NULL;
12225 }
12226
12227
12228 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12229 PyObject *resultobj;
12230 wxDC *arg1 = (wxDC *) 0 ;
12231 wxRegion *arg2 = 0 ;
12232 PyObject * obj0 = 0 ;
12233 PyObject * obj1 = 0 ;
12234 char *kwnames[] = {
12235 (char *) "self",(char *) "region", NULL
12236 };
12237
12238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12242 SWIG_POINTER_EXCEPTION | 0)) == -1)
12243 SWIG_fail;
12244 if (arg2 == NULL) {
12245 PyErr_SetString(PyExc_TypeError,"null reference");
12246 SWIG_fail;
12247 }
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12251
12252 wxPyEndAllowThreads(__tstate);
12253 if (PyErr_Occurred()) SWIG_fail;
12254 }
12255 Py_INCREF(Py_None); resultobj = Py_None;
12256 return resultobj;
12257 fail:
12258 return NULL;
12259 }
12260
12261
12262 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12263 PyObject *resultobj;
12264 wxDC *arg1 = (wxDC *) 0 ;
12265 wxRect *arg2 = 0 ;
12266 wxRect temp2 ;
12267 PyObject * obj0 = 0 ;
12268 PyObject * obj1 = 0 ;
12269 char *kwnames[] = {
12270 (char *) "self",(char *) "rect", NULL
12271 };
12272
12273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12276 {
12277 arg2 = &temp2;
12278 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12279 }
12280 {
12281 PyThreadState* __tstate = wxPyBeginAllowThreads();
12282 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12283
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 Py_INCREF(Py_None); resultobj = Py_None;
12288 return resultobj;
12289 fail:
12290 return NULL;
12291 }
12292
12293
12294 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
12295 PyObject *resultobj;
12296 wxDC *arg1 = (wxDC *) 0 ;
12297 int arg2 ;
12298 wxPoint *arg3 = (wxPoint *) 0 ;
12299 int arg4 = (int) 0 ;
12300 int arg5 = (int) 0 ;
12301 PyObject * obj0 = 0 ;
12302 PyObject * obj1 = 0 ;
12303 PyObject * obj2 = 0 ;
12304 PyObject * obj3 = 0 ;
12305 char *kwnames[] = {
12306 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12307 };
12308
12309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12312 {
12313 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12314 if (arg3 == NULL) SWIG_fail;
12315 }
12316 if (obj2) {
12317 arg4 = (int)SWIG_As_int(obj2);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 if (obj3) {
12321 arg5 = (int)SWIG_As_int(obj3);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12327
12328 wxPyEndAllowThreads(__tstate);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 }
12331 Py_INCREF(Py_None); resultobj = Py_None;
12332 {
12333 if (arg3) delete [] arg3;
12334 }
12335 return resultobj;
12336 fail:
12337 {
12338 if (arg3) delete [] arg3;
12339 }
12340 return NULL;
12341 }
12342
12343
12344 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
12345 PyObject *resultobj;
12346 wxDC *arg1 = (wxDC *) 0 ;
12347 int arg2 ;
12348 wxPoint *arg3 = (wxPoint *) 0 ;
12349 int arg4 = (int) 0 ;
12350 int arg5 = (int) 0 ;
12351 int arg6 = (int) wxODDEVEN_RULE ;
12352 PyObject * obj0 = 0 ;
12353 PyObject * obj1 = 0 ;
12354 PyObject * obj2 = 0 ;
12355 PyObject * obj3 = 0 ;
12356 PyObject * obj4 = 0 ;
12357 char *kwnames[] = {
12358 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12359 };
12360
12361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12364 {
12365 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12366 if (arg3 == NULL) SWIG_fail;
12367 }
12368 if (obj2) {
12369 arg4 = (int)SWIG_As_int(obj2);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 if (obj3) {
12373 arg5 = (int)SWIG_As_int(obj3);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 if (obj4) {
12377 arg6 = (int)SWIG_As_int(obj4);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12383
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 Py_INCREF(Py_None); resultobj = Py_None;
12388 {
12389 if (arg3) delete [] arg3;
12390 }
12391 return resultobj;
12392 fail:
12393 {
12394 if (arg3) delete [] arg3;
12395 }
12396 return NULL;
12397 }
12398
12399
12400 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12401 PyObject *resultobj;
12402 wxDC *arg1 = (wxDC *) 0 ;
12403 wxString *arg2 = 0 ;
12404 wxRect *arg3 = 0 ;
12405 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12406 int arg5 = (int) -1 ;
12407 bool temp2 = false ;
12408 wxRect temp3 ;
12409 PyObject * obj0 = 0 ;
12410 PyObject * obj1 = 0 ;
12411 PyObject * obj2 = 0 ;
12412 PyObject * obj3 = 0 ;
12413 PyObject * obj4 = 0 ;
12414 char *kwnames[] = {
12415 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12416 };
12417
12418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12421 {
12422 arg2 = wxString_in_helper(obj1);
12423 if (arg2 == NULL) SWIG_fail;
12424 temp2 = true;
12425 }
12426 {
12427 arg3 = &temp3;
12428 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12429 }
12430 if (obj3) {
12431 arg4 = (int)SWIG_As_int(obj3);
12432 if (PyErr_Occurred()) SWIG_fail;
12433 }
12434 if (obj4) {
12435 arg5 = (int)SWIG_As_int(obj4);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 {
12439 PyThreadState* __tstate = wxPyBeginAllowThreads();
12440 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12441
12442 wxPyEndAllowThreads(__tstate);
12443 if (PyErr_Occurred()) SWIG_fail;
12444 }
12445 Py_INCREF(Py_None); resultobj = Py_None;
12446 {
12447 if (temp2)
12448 delete arg2;
12449 }
12450 return resultobj;
12451 fail:
12452 {
12453 if (temp2)
12454 delete arg2;
12455 }
12456 return NULL;
12457 }
12458
12459
12460 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj;
12462 wxDC *arg1 = (wxDC *) 0 ;
12463 wxString *arg2 = 0 ;
12464 wxBitmap *arg3 = 0 ;
12465 wxRect *arg4 = 0 ;
12466 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12467 int arg6 = (int) -1 ;
12468 wxRect result;
12469 bool temp2 = false ;
12470 wxRect temp4 ;
12471 PyObject * obj0 = 0 ;
12472 PyObject * obj1 = 0 ;
12473 PyObject * obj2 = 0 ;
12474 PyObject * obj3 = 0 ;
12475 PyObject * obj4 = 0 ;
12476 PyObject * obj5 = 0 ;
12477 char *kwnames[] = {
12478 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12479 };
12480
12481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12484 {
12485 arg2 = wxString_in_helper(obj1);
12486 if (arg2 == NULL) SWIG_fail;
12487 temp2 = true;
12488 }
12489 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12490 SWIG_POINTER_EXCEPTION | 0)) == -1)
12491 SWIG_fail;
12492 if (arg3 == NULL) {
12493 PyErr_SetString(PyExc_TypeError,"null reference");
12494 SWIG_fail;
12495 }
12496 {
12497 arg4 = &temp4;
12498 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12499 }
12500 if (obj4) {
12501 arg5 = (int)SWIG_As_int(obj4);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 }
12504 if (obj5) {
12505 arg6 = (int)SWIG_As_int(obj5);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12511
12512 wxPyEndAllowThreads(__tstate);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 }
12515 {
12516 wxRect * resultptr;
12517 resultptr = new wxRect((wxRect &) result);
12518 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12519 }
12520 {
12521 if (temp2)
12522 delete arg2;
12523 }
12524 return resultobj;
12525 fail:
12526 {
12527 if (temp2)
12528 delete arg2;
12529 }
12530 return NULL;
12531 }
12532
12533
12534 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
12535 PyObject *resultobj;
12536 wxDC *arg1 = (wxDC *) 0 ;
12537 int arg2 ;
12538 wxPoint *arg3 = (wxPoint *) 0 ;
12539 PyObject * obj0 = 0 ;
12540 PyObject * obj1 = 0 ;
12541 char *kwnames[] = {
12542 (char *) "self",(char *) "points", NULL
12543 };
12544
12545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12548 {
12549 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12550 if (arg3 == NULL) SWIG_fail;
12551 }
12552 {
12553 PyThreadState* __tstate = wxPyBeginAllowThreads();
12554 (arg1)->DrawSpline(arg2,arg3);
12555
12556 wxPyEndAllowThreads(__tstate);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 }
12559 Py_INCREF(Py_None); resultobj = Py_None;
12560 {
12561 if (arg3) delete [] arg3;
12562 }
12563 return resultobj;
12564 fail:
12565 {
12566 if (arg3) delete [] arg3;
12567 }
12568 return NULL;
12569 }
12570
12571
12572 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
12573 PyObject *resultobj;
12574 wxDC *arg1 = (wxDC *) 0 ;
12575 PyObject * obj0 = 0 ;
12576 char *kwnames[] = {
12577 (char *) "self", NULL
12578 };
12579
12580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 (arg1)->Clear();
12586
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 Py_INCREF(Py_None); resultobj = Py_None;
12591 return resultobj;
12592 fail:
12593 return NULL;
12594 }
12595
12596
12597 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj;
12599 wxDC *arg1 = (wxDC *) 0 ;
12600 wxString *arg2 = 0 ;
12601 bool result;
12602 bool temp2 = false ;
12603 PyObject * obj0 = 0 ;
12604 PyObject * obj1 = 0 ;
12605 char *kwnames[] = {
12606 (char *) "self",(char *) "message", NULL
12607 };
12608
12609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12612 {
12613 arg2 = wxString_in_helper(obj1);
12614 if (arg2 == NULL) SWIG_fail;
12615 temp2 = true;
12616 }
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12620
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 {
12625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12626 }
12627 {
12628 if (temp2)
12629 delete arg2;
12630 }
12631 return resultobj;
12632 fail:
12633 {
12634 if (temp2)
12635 delete arg2;
12636 }
12637 return NULL;
12638 }
12639
12640
12641 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12642 PyObject *resultobj;
12643 wxDC *arg1 = (wxDC *) 0 ;
12644 PyObject * obj0 = 0 ;
12645 char *kwnames[] = {
12646 (char *) "self", NULL
12647 };
12648
12649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12652 {
12653 PyThreadState* __tstate = wxPyBeginAllowThreads();
12654 (arg1)->EndDoc();
12655
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 Py_INCREF(Py_None); resultobj = Py_None;
12660 return resultobj;
12661 fail:
12662 return NULL;
12663 }
12664
12665
12666 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
12667 PyObject *resultobj;
12668 wxDC *arg1 = (wxDC *) 0 ;
12669 PyObject * obj0 = 0 ;
12670 char *kwnames[] = {
12671 (char *) "self", NULL
12672 };
12673
12674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12677 {
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 (arg1)->StartPage();
12680
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 Py_INCREF(Py_None); resultobj = Py_None;
12685 return resultobj;
12686 fail:
12687 return NULL;
12688 }
12689
12690
12691 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
12692 PyObject *resultobj;
12693 wxDC *arg1 = (wxDC *) 0 ;
12694 PyObject * obj0 = 0 ;
12695 char *kwnames[] = {
12696 (char *) "self", NULL
12697 };
12698
12699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 (arg1)->EndPage();
12705
12706 wxPyEndAllowThreads(__tstate);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 Py_INCREF(Py_None); resultobj = Py_None;
12710 return resultobj;
12711 fail:
12712 return NULL;
12713 }
12714
12715
12716 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
12717 PyObject *resultobj;
12718 wxDC *arg1 = (wxDC *) 0 ;
12719 wxFont *arg2 = 0 ;
12720 PyObject * obj0 = 0 ;
12721 PyObject * obj1 = 0 ;
12722 char *kwnames[] = {
12723 (char *) "self",(char *) "font", NULL
12724 };
12725
12726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12729 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12730 SWIG_POINTER_EXCEPTION | 0)) == -1)
12731 SWIG_fail;
12732 if (arg2 == NULL) {
12733 PyErr_SetString(PyExc_TypeError,"null reference");
12734 SWIG_fail;
12735 }
12736 {
12737 PyThreadState* __tstate = wxPyBeginAllowThreads();
12738 (arg1)->SetFont((wxFont const &)*arg2);
12739
12740 wxPyEndAllowThreads(__tstate);
12741 if (PyErr_Occurred()) SWIG_fail;
12742 }
12743 Py_INCREF(Py_None); resultobj = Py_None;
12744 return resultobj;
12745 fail:
12746 return NULL;
12747 }
12748
12749
12750 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
12751 PyObject *resultobj;
12752 wxDC *arg1 = (wxDC *) 0 ;
12753 wxPen *arg2 = 0 ;
12754 PyObject * obj0 = 0 ;
12755 PyObject * obj1 = 0 ;
12756 char *kwnames[] = {
12757 (char *) "self",(char *) "pen", NULL
12758 };
12759
12760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12764 SWIG_POINTER_EXCEPTION | 0)) == -1)
12765 SWIG_fail;
12766 if (arg2 == NULL) {
12767 PyErr_SetString(PyExc_TypeError,"null reference");
12768 SWIG_fail;
12769 }
12770 {
12771 PyThreadState* __tstate = wxPyBeginAllowThreads();
12772 (arg1)->SetPen((wxPen const &)*arg2);
12773
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 Py_INCREF(Py_None); resultobj = Py_None;
12778 return resultobj;
12779 fail:
12780 return NULL;
12781 }
12782
12783
12784 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj;
12786 wxDC *arg1 = (wxDC *) 0 ;
12787 wxBrush *arg2 = 0 ;
12788 PyObject * obj0 = 0 ;
12789 PyObject * obj1 = 0 ;
12790 char *kwnames[] = {
12791 (char *) "self",(char *) "brush", NULL
12792 };
12793
12794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12798 SWIG_POINTER_EXCEPTION | 0)) == -1)
12799 SWIG_fail;
12800 if (arg2 == NULL) {
12801 PyErr_SetString(PyExc_TypeError,"null reference");
12802 SWIG_fail;
12803 }
12804 {
12805 PyThreadState* __tstate = wxPyBeginAllowThreads();
12806 (arg1)->SetBrush((wxBrush const &)*arg2);
12807
12808 wxPyEndAllowThreads(__tstate);
12809 if (PyErr_Occurred()) SWIG_fail;
12810 }
12811 Py_INCREF(Py_None); resultobj = Py_None;
12812 return resultobj;
12813 fail:
12814 return NULL;
12815 }
12816
12817
12818 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
12819 PyObject *resultobj;
12820 wxDC *arg1 = (wxDC *) 0 ;
12821 wxBrush *arg2 = 0 ;
12822 PyObject * obj0 = 0 ;
12823 PyObject * obj1 = 0 ;
12824 char *kwnames[] = {
12825 (char *) "self",(char *) "brush", NULL
12826 };
12827
12828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12831 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12832 SWIG_POINTER_EXCEPTION | 0)) == -1)
12833 SWIG_fail;
12834 if (arg2 == NULL) {
12835 PyErr_SetString(PyExc_TypeError,"null reference");
12836 SWIG_fail;
12837 }
12838 {
12839 PyThreadState* __tstate = wxPyBeginAllowThreads();
12840 (arg1)->SetBackground((wxBrush const &)*arg2);
12841
12842 wxPyEndAllowThreads(__tstate);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 Py_INCREF(Py_None); resultobj = Py_None;
12846 return resultobj;
12847 fail:
12848 return NULL;
12849 }
12850
12851
12852 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
12853 PyObject *resultobj;
12854 wxDC *arg1 = (wxDC *) 0 ;
12855 int arg2 ;
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 char *kwnames[] = {
12859 (char *) "self",(char *) "mode", NULL
12860 };
12861
12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12865 arg2 = (int)SWIG_As_int(obj1);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 (arg1)->SetBackgroundMode(arg2);
12870
12871 wxPyEndAllowThreads(__tstate);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 Py_INCREF(Py_None); resultobj = Py_None;
12875 return resultobj;
12876 fail:
12877 return NULL;
12878 }
12879
12880
12881 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
12882 PyObject *resultobj;
12883 wxDC *arg1 = (wxDC *) 0 ;
12884 wxPalette *arg2 = 0 ;
12885 PyObject * obj0 = 0 ;
12886 PyObject * obj1 = 0 ;
12887 char *kwnames[] = {
12888 (char *) "self",(char *) "palette", NULL
12889 };
12890
12891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12895 SWIG_POINTER_EXCEPTION | 0)) == -1)
12896 SWIG_fail;
12897 if (arg2 == NULL) {
12898 PyErr_SetString(PyExc_TypeError,"null reference");
12899 SWIG_fail;
12900 }
12901 {
12902 PyThreadState* __tstate = wxPyBeginAllowThreads();
12903 (arg1)->SetPalette((wxPalette const &)*arg2);
12904
12905 wxPyEndAllowThreads(__tstate);
12906 if (PyErr_Occurred()) SWIG_fail;
12907 }
12908 Py_INCREF(Py_None); resultobj = Py_None;
12909 return resultobj;
12910 fail:
12911 return NULL;
12912 }
12913
12914
12915 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12916 PyObject *resultobj;
12917 wxDC *arg1 = (wxDC *) 0 ;
12918 PyObject * obj0 = 0 ;
12919 char *kwnames[] = {
12920 (char *) "self", NULL
12921 };
12922
12923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 (arg1)->DestroyClippingRegion();
12929
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 Py_INCREF(Py_None); resultobj = Py_None;
12934 return resultobj;
12935 fail:
12936 return NULL;
12937 }
12938
12939
12940 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxDC *arg1 = (wxDC *) 0 ;
12943 int *arg2 = (int *) 0 ;
12944 int *arg3 = (int *) 0 ;
12945 int *arg4 = (int *) 0 ;
12946 int *arg5 = (int *) 0 ;
12947 int temp2 ;
12948 int res2 = 0 ;
12949 int temp3 ;
12950 int res3 = 0 ;
12951 int temp4 ;
12952 int res4 = 0 ;
12953 int temp5 ;
12954 int res5 = 0 ;
12955 PyObject * obj0 = 0 ;
12956 char *kwnames[] = {
12957 (char *) "self", NULL
12958 };
12959
12960 arg2 = &temp2; res2 = SWIG_NEWOBJ;
12961 arg3 = &temp3; res3 = SWIG_NEWOBJ;
12962 arg4 = &temp4; res4 = SWIG_NEWOBJ;
12963 arg5 = &temp5; res5 = SWIG_NEWOBJ;
12964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12970
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 Py_INCREF(Py_None); resultobj = Py_None;
12975 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
12976 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
12977 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
12978 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
12979 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
12980 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
12981 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
12982 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
12983 return resultobj;
12984 fail:
12985 return NULL;
12986 }
12987
12988
12989 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12990 PyObject *resultobj;
12991 wxDC *arg1 = (wxDC *) 0 ;
12992 wxRect result;
12993 PyObject * obj0 = 0 ;
12994 char *kwnames[] = {
12995 (char *) "self", NULL
12996 };
12997
12998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13001 {
13002 PyThreadState* __tstate = wxPyBeginAllowThreads();
13003 result = wxDC_GetClippingRect(arg1);
13004
13005 wxPyEndAllowThreads(__tstate);
13006 if (PyErr_Occurred()) SWIG_fail;
13007 }
13008 {
13009 wxRect * resultptr;
13010 resultptr = new wxRect((wxRect &) result);
13011 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13012 }
13013 return resultobj;
13014 fail:
13015 return NULL;
13016 }
13017
13018
13019 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
13020 PyObject *resultobj;
13021 wxDC *arg1 = (wxDC *) 0 ;
13022 int result;
13023 PyObject * obj0 = 0 ;
13024 char *kwnames[] = {
13025 (char *) "self", NULL
13026 };
13027
13028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = (int)((wxDC const *)arg1)->GetCharHeight();
13034
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 resultobj = SWIG_From_int((int)result);
13039 return resultobj;
13040 fail:
13041 return NULL;
13042 }
13043
13044
13045 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj;
13047 wxDC *arg1 = (wxDC *) 0 ;
13048 int result;
13049 PyObject * obj0 = 0 ;
13050 char *kwnames[] = {
13051 (char *) "self", NULL
13052 };
13053
13054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 result = (int)((wxDC const *)arg1)->GetCharWidth();
13060
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 resultobj = SWIG_From_int((int)result);
13065 return resultobj;
13066 fail:
13067 return NULL;
13068 }
13069
13070
13071 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13072 PyObject *resultobj;
13073 wxDC *arg1 = (wxDC *) 0 ;
13074 wxString *arg2 = 0 ;
13075 int *arg3 = (int *) 0 ;
13076 int *arg4 = (int *) 0 ;
13077 bool temp2 = false ;
13078 int temp3 ;
13079 int res3 = 0 ;
13080 int temp4 ;
13081 int res4 = 0 ;
13082 PyObject * obj0 = 0 ;
13083 PyObject * obj1 = 0 ;
13084 char *kwnames[] = {
13085 (char *) "self",(char *) "string", NULL
13086 };
13087
13088 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13089 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13093 {
13094 arg2 = wxString_in_helper(obj1);
13095 if (arg2 == NULL) SWIG_fail;
13096 temp2 = true;
13097 }
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13101
13102 wxPyEndAllowThreads(__tstate);
13103 if (PyErr_Occurred()) SWIG_fail;
13104 }
13105 Py_INCREF(Py_None); resultobj = Py_None;
13106 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13107 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13108 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13109 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13110 {
13111 if (temp2)
13112 delete arg2;
13113 }
13114 return resultobj;
13115 fail:
13116 {
13117 if (temp2)
13118 delete arg2;
13119 }
13120 return NULL;
13121 }
13122
13123
13124 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13125 PyObject *resultobj;
13126 wxDC *arg1 = (wxDC *) 0 ;
13127 wxString *arg2 = 0 ;
13128 int *arg3 = (int *) 0 ;
13129 int *arg4 = (int *) 0 ;
13130 int *arg5 = (int *) 0 ;
13131 int *arg6 = (int *) 0 ;
13132 wxFont *arg7 = (wxFont *) NULL ;
13133 bool temp2 = false ;
13134 int temp3 ;
13135 int res3 = 0 ;
13136 int temp4 ;
13137 int res4 = 0 ;
13138 int temp5 ;
13139 int res5 = 0 ;
13140 int temp6 ;
13141 int res6 = 0 ;
13142 PyObject * obj0 = 0 ;
13143 PyObject * obj1 = 0 ;
13144 PyObject * obj2 = 0 ;
13145 char *kwnames[] = {
13146 (char *) "self",(char *) "string",(char *) "font", NULL
13147 };
13148
13149 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13150 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13151 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13152 arg6 = &temp6; res6 = SWIG_NEWOBJ;
13153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13156 {
13157 arg2 = wxString_in_helper(obj1);
13158 if (arg2 == NULL) SWIG_fail;
13159 temp2 = true;
13160 }
13161 if (obj2) {
13162 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13164 }
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13168
13169 wxPyEndAllowThreads(__tstate);
13170 if (PyErr_Occurred()) SWIG_fail;
13171 }
13172 Py_INCREF(Py_None); resultobj = Py_None;
13173 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13174 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13175 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13176 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13177 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13178 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13179 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13180 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
13181 {
13182 if (temp2)
13183 delete arg2;
13184 }
13185 return resultobj;
13186 fail:
13187 {
13188 if (temp2)
13189 delete arg2;
13190 }
13191 return NULL;
13192 }
13193
13194
13195 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj;
13197 wxDC *arg1 = (wxDC *) 0 ;
13198 wxString *arg2 = 0 ;
13199 int *arg3 = (int *) 0 ;
13200 int *arg4 = (int *) 0 ;
13201 int *arg5 = (int *) 0 ;
13202 wxFont *arg6 = (wxFont *) NULL ;
13203 bool temp2 = false ;
13204 int temp3 ;
13205 int res3 = 0 ;
13206 int temp4 ;
13207 int res4 = 0 ;
13208 int temp5 ;
13209 int res5 = 0 ;
13210 PyObject * obj0 = 0 ;
13211 PyObject * obj1 = 0 ;
13212 PyObject * obj2 = 0 ;
13213 char *kwnames[] = {
13214 (char *) "self",(char *) "text",(char *) "font", NULL
13215 };
13216
13217 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13218 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13219 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13223 {
13224 arg2 = wxString_in_helper(obj1);
13225 if (arg2 == NULL) SWIG_fail;
13226 temp2 = true;
13227 }
13228 if (obj2) {
13229 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13231 }
13232 {
13233 PyThreadState* __tstate = wxPyBeginAllowThreads();
13234 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13235
13236 wxPyEndAllowThreads(__tstate);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 }
13239 Py_INCREF(Py_None); resultobj = Py_None;
13240 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13241 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13242 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13243 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13244 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13245 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13246 {
13247 if (temp2)
13248 delete arg2;
13249 }
13250 return resultobj;
13251 fail:
13252 {
13253 if (temp2)
13254 delete arg2;
13255 }
13256 return NULL;
13257 }
13258
13259
13260 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
13261 PyObject *resultobj;
13262 wxDC *arg1 = (wxDC *) 0 ;
13263 wxString *arg2 = 0 ;
13264 wxArrayInt result;
13265 bool temp2 = false ;
13266 PyObject * obj0 = 0 ;
13267 PyObject * obj1 = 0 ;
13268 char *kwnames[] = {
13269 (char *) "self",(char *) "text", NULL
13270 };
13271
13272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13275 {
13276 arg2 = wxString_in_helper(obj1);
13277 if (arg2 == NULL) SWIG_fail;
13278 temp2 = true;
13279 }
13280 {
13281 PyThreadState* __tstate = wxPyBeginAllowThreads();
13282 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13283
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 {
13288 resultobj = PyList_New(0);
13289 size_t idx;
13290 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13291 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13292 PyList_Append(resultobj, val);
13293 Py_DECREF(val);
13294 }
13295 }
13296 {
13297 if (temp2)
13298 delete arg2;
13299 }
13300 return resultobj;
13301 fail:
13302 {
13303 if (temp2)
13304 delete arg2;
13305 }
13306 return NULL;
13307 }
13308
13309
13310 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
13311 PyObject *resultobj;
13312 wxDC *arg1 = (wxDC *) 0 ;
13313 wxSize result;
13314 PyObject * obj0 = 0 ;
13315 char *kwnames[] = {
13316 (char *) "self", NULL
13317 };
13318
13319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13322 {
13323 PyThreadState* __tstate = wxPyBeginAllowThreads();
13324 result = (arg1)->GetSize();
13325
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 {
13330 wxSize * resultptr;
13331 resultptr = new wxSize((wxSize &) result);
13332 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13333 }
13334 return resultobj;
13335 fail:
13336 return NULL;
13337 }
13338
13339
13340 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13341 PyObject *resultobj;
13342 wxDC *arg1 = (wxDC *) 0 ;
13343 int *arg2 = (int *) 0 ;
13344 int *arg3 = (int *) 0 ;
13345 int temp2 ;
13346 int res2 = 0 ;
13347 int temp3 ;
13348 int res3 = 0 ;
13349 PyObject * obj0 = 0 ;
13350 char *kwnames[] = {
13351 (char *) "self", NULL
13352 };
13353
13354 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13355 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13359 {
13360 PyThreadState* __tstate = wxPyBeginAllowThreads();
13361 (arg1)->GetSize(arg2,arg3);
13362
13363 wxPyEndAllowThreads(__tstate);
13364 if (PyErr_Occurred()) SWIG_fail;
13365 }
13366 Py_INCREF(Py_None); resultobj = Py_None;
13367 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13368 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13369 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13370 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13371 return resultobj;
13372 fail:
13373 return NULL;
13374 }
13375
13376
13377 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
13378 PyObject *resultobj;
13379 wxDC *arg1 = (wxDC *) 0 ;
13380 wxSize result;
13381 PyObject * obj0 = 0 ;
13382 char *kwnames[] = {
13383 (char *) "self", NULL
13384 };
13385
13386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 result = ((wxDC const *)arg1)->GetSizeMM();
13392
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 {
13397 wxSize * resultptr;
13398 resultptr = new wxSize((wxSize &) result);
13399 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13400 }
13401 return resultobj;
13402 fail:
13403 return NULL;
13404 }
13405
13406
13407 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13408 PyObject *resultobj;
13409 wxDC *arg1 = (wxDC *) 0 ;
13410 int *arg2 = (int *) 0 ;
13411 int *arg3 = (int *) 0 ;
13412 int temp2 ;
13413 int res2 = 0 ;
13414 int temp3 ;
13415 int res3 = 0 ;
13416 PyObject * obj0 = 0 ;
13417 char *kwnames[] = {
13418 (char *) "self", NULL
13419 };
13420
13421 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13422 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 Py_INCREF(Py_None); resultobj = Py_None;
13434 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13435 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13436 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13437 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13438 return resultobj;
13439 fail:
13440 return NULL;
13441 }
13442
13443
13444 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
13445 PyObject *resultobj;
13446 wxDC *arg1 = (wxDC *) 0 ;
13447 int arg2 ;
13448 int result;
13449 PyObject * obj0 = 0 ;
13450 PyObject * obj1 = 0 ;
13451 char *kwnames[] = {
13452 (char *) "self",(char *) "x", NULL
13453 };
13454
13455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13458 arg2 = (int)SWIG_As_int(obj1);
13459 if (PyErr_Occurred()) SWIG_fail;
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13463
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_From_int((int)result);
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj;
13476 wxDC *arg1 = (wxDC *) 0 ;
13477 int arg2 ;
13478 int result;
13479 PyObject * obj0 = 0 ;
13480 PyObject * obj1 = 0 ;
13481 char *kwnames[] = {
13482 (char *) "self",(char *) "y", NULL
13483 };
13484
13485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13488 arg2 = (int)SWIG_As_int(obj1);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13493
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 resultobj = SWIG_From_int((int)result);
13498 return resultobj;
13499 fail:
13500 return NULL;
13501 }
13502
13503
13504 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13505 PyObject *resultobj;
13506 wxDC *arg1 = (wxDC *) 0 ;
13507 int arg2 ;
13508 int result;
13509 PyObject * obj0 = 0 ;
13510 PyObject * obj1 = 0 ;
13511 char *kwnames[] = {
13512 (char *) "self",(char *) "x", NULL
13513 };
13514
13515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13518 arg2 = (int)SWIG_As_int(obj1);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13523
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 resultobj = SWIG_From_int((int)result);
13528 return resultobj;
13529 fail:
13530 return NULL;
13531 }
13532
13533
13534 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13535 PyObject *resultobj;
13536 wxDC *arg1 = (wxDC *) 0 ;
13537 int arg2 ;
13538 int result;
13539 PyObject * obj0 = 0 ;
13540 PyObject * obj1 = 0 ;
13541 char *kwnames[] = {
13542 (char *) "self",(char *) "y", NULL
13543 };
13544
13545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13548 arg2 = (int)SWIG_As_int(obj1);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13553
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 resultobj = SWIG_From_int((int)result);
13558 return resultobj;
13559 fail:
13560 return NULL;
13561 }
13562
13563
13564 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
13565 PyObject *resultobj;
13566 wxDC *arg1 = (wxDC *) 0 ;
13567 int arg2 ;
13568 int result;
13569 PyObject * obj0 = 0 ;
13570 PyObject * obj1 = 0 ;
13571 char *kwnames[] = {
13572 (char *) "self",(char *) "x", NULL
13573 };
13574
13575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13578 arg2 = (int)SWIG_As_int(obj1);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13583
13584 wxPyEndAllowThreads(__tstate);
13585 if (PyErr_Occurred()) SWIG_fail;
13586 }
13587 resultobj = SWIG_From_int((int)result);
13588 return resultobj;
13589 fail:
13590 return NULL;
13591 }
13592
13593
13594 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
13595 PyObject *resultobj;
13596 wxDC *arg1 = (wxDC *) 0 ;
13597 int arg2 ;
13598 int result;
13599 PyObject * obj0 = 0 ;
13600 PyObject * obj1 = 0 ;
13601 char *kwnames[] = {
13602 (char *) "self",(char *) "y", NULL
13603 };
13604
13605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13608 arg2 = (int)SWIG_As_int(obj1);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13613
13614 wxPyEndAllowThreads(__tstate);
13615 if (PyErr_Occurred()) SWIG_fail;
13616 }
13617 resultobj = SWIG_From_int((int)result);
13618 return resultobj;
13619 fail:
13620 return NULL;
13621 }
13622
13623
13624 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13625 PyObject *resultobj;
13626 wxDC *arg1 = (wxDC *) 0 ;
13627 int arg2 ;
13628 int result;
13629 PyObject * obj0 = 0 ;
13630 PyObject * obj1 = 0 ;
13631 char *kwnames[] = {
13632 (char *) "self",(char *) "x", NULL
13633 };
13634
13635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13638 arg2 = (int)SWIG_As_int(obj1);
13639 if (PyErr_Occurred()) SWIG_fail;
13640 {
13641 PyThreadState* __tstate = wxPyBeginAllowThreads();
13642 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13643
13644 wxPyEndAllowThreads(__tstate);
13645 if (PyErr_Occurred()) SWIG_fail;
13646 }
13647 resultobj = SWIG_From_int((int)result);
13648 return resultobj;
13649 fail:
13650 return NULL;
13651 }
13652
13653
13654 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13655 PyObject *resultobj;
13656 wxDC *arg1 = (wxDC *) 0 ;
13657 int arg2 ;
13658 int result;
13659 PyObject * obj0 = 0 ;
13660 PyObject * obj1 = 0 ;
13661 char *kwnames[] = {
13662 (char *) "self",(char *) "y", NULL
13663 };
13664
13665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13668 arg2 = (int)SWIG_As_int(obj1);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 {
13671 PyThreadState* __tstate = wxPyBeginAllowThreads();
13672 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13673
13674 wxPyEndAllowThreads(__tstate);
13675 if (PyErr_Occurred()) SWIG_fail;
13676 }
13677 resultobj = SWIG_From_int((int)result);
13678 return resultobj;
13679 fail:
13680 return NULL;
13681 }
13682
13683
13684 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13685 PyObject *resultobj;
13686 wxDC *arg1 = (wxDC *) 0 ;
13687 bool result;
13688 PyObject * obj0 = 0 ;
13689 char *kwnames[] = {
13690 (char *) "self", NULL
13691 };
13692
13693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13696 {
13697 PyThreadState* __tstate = wxPyBeginAllowThreads();
13698 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13699
13700 wxPyEndAllowThreads(__tstate);
13701 if (PyErr_Occurred()) SWIG_fail;
13702 }
13703 {
13704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13705 }
13706 return resultobj;
13707 fail:
13708 return NULL;
13709 }
13710
13711
13712 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxDC *arg1 = (wxDC *) 0 ;
13715 bool result;
13716 PyObject * obj0 = 0 ;
13717 char *kwnames[] = {
13718 (char *) "self", NULL
13719 };
13720
13721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13727
13728 wxPyEndAllowThreads(__tstate);
13729 if (PyErr_Occurred()) SWIG_fail;
13730 }
13731 {
13732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13733 }
13734 return resultobj;
13735 fail:
13736 return NULL;
13737 }
13738
13739
13740 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
13741 PyObject *resultobj;
13742 wxDC *arg1 = (wxDC *) 0 ;
13743 int result;
13744 PyObject * obj0 = 0 ;
13745 char *kwnames[] = {
13746 (char *) "self", NULL
13747 };
13748
13749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13752 {
13753 PyThreadState* __tstate = wxPyBeginAllowThreads();
13754 result = (int)((wxDC const *)arg1)->GetDepth();
13755
13756 wxPyEndAllowThreads(__tstate);
13757 if (PyErr_Occurred()) SWIG_fail;
13758 }
13759 resultobj = SWIG_From_int((int)result);
13760 return resultobj;
13761 fail:
13762 return NULL;
13763 }
13764
13765
13766 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
13767 PyObject *resultobj;
13768 wxDC *arg1 = (wxDC *) 0 ;
13769 wxSize result;
13770 PyObject * obj0 = 0 ;
13771 char *kwnames[] = {
13772 (char *) "self", NULL
13773 };
13774
13775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13778 {
13779 PyThreadState* __tstate = wxPyBeginAllowThreads();
13780 result = ((wxDC const *)arg1)->GetPPI();
13781
13782 wxPyEndAllowThreads(__tstate);
13783 if (PyErr_Occurred()) SWIG_fail;
13784 }
13785 {
13786 wxSize * resultptr;
13787 resultptr = new wxSize((wxSize &) result);
13788 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13789 }
13790 return resultobj;
13791 fail:
13792 return NULL;
13793 }
13794
13795
13796 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
13797 PyObject *resultobj;
13798 wxDC *arg1 = (wxDC *) 0 ;
13799 bool result;
13800 PyObject * obj0 = 0 ;
13801 char *kwnames[] = {
13802 (char *) "self", NULL
13803 };
13804
13805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13808 {
13809 PyThreadState* __tstate = wxPyBeginAllowThreads();
13810 result = (bool)((wxDC const *)arg1)->Ok();
13811
13812 wxPyEndAllowThreads(__tstate);
13813 if (PyErr_Occurred()) SWIG_fail;
13814 }
13815 {
13816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13817 }
13818 return resultobj;
13819 fail:
13820 return NULL;
13821 }
13822
13823
13824 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13825 PyObject *resultobj;
13826 wxDC *arg1 = (wxDC *) 0 ;
13827 int result;
13828 PyObject * obj0 = 0 ;
13829 char *kwnames[] = {
13830 (char *) "self", NULL
13831 };
13832
13833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13836 {
13837 PyThreadState* __tstate = wxPyBeginAllowThreads();
13838 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13839
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_From_int((int)result);
13844 return resultobj;
13845 fail:
13846 return NULL;
13847 }
13848
13849
13850 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13851 PyObject *resultobj;
13852 wxDC *arg1 = (wxDC *) 0 ;
13853 wxBrush *result;
13854 PyObject * obj0 = 0 ;
13855 char *kwnames[] = {
13856 (char *) "self", NULL
13857 };
13858
13859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13862 {
13863 PyThreadState* __tstate = wxPyBeginAllowThreads();
13864 {
13865 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13866 result = (wxBrush *) &_result_ref;
13867 }
13868
13869 wxPyEndAllowThreads(__tstate);
13870 if (PyErr_Occurred()) SWIG_fail;
13871 }
13872 {
13873 wxBrush* resultptr = new wxBrush(*result);
13874 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13875 }
13876 return resultobj;
13877 fail:
13878 return NULL;
13879 }
13880
13881
13882 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
13883 PyObject *resultobj;
13884 wxDC *arg1 = (wxDC *) 0 ;
13885 wxBrush *result;
13886 PyObject * obj0 = 0 ;
13887 char *kwnames[] = {
13888 (char *) "self", NULL
13889 };
13890
13891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13894 {
13895 PyThreadState* __tstate = wxPyBeginAllowThreads();
13896 {
13897 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13898 result = (wxBrush *) &_result_ref;
13899 }
13900
13901 wxPyEndAllowThreads(__tstate);
13902 if (PyErr_Occurred()) SWIG_fail;
13903 }
13904 {
13905 wxBrush* resultptr = new wxBrush(*result);
13906 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13907 }
13908 return resultobj;
13909 fail:
13910 return NULL;
13911 }
13912
13913
13914 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj;
13916 wxDC *arg1 = (wxDC *) 0 ;
13917 wxFont *result;
13918 PyObject * obj0 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "self", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 {
13929 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13930 result = (wxFont *) &_result_ref;
13931 }
13932
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 {
13937 wxFont* resultptr = new wxFont(*result);
13938 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13939 }
13940 return resultobj;
13941 fail:
13942 return NULL;
13943 }
13944
13945
13946 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
13947 PyObject *resultobj;
13948 wxDC *arg1 = (wxDC *) 0 ;
13949 wxPen *result;
13950 PyObject * obj0 = 0 ;
13951 char *kwnames[] = {
13952 (char *) "self", NULL
13953 };
13954
13955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 {
13961 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13962 result = (wxPen *) &_result_ref;
13963 }
13964
13965 wxPyEndAllowThreads(__tstate);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 {
13969 wxPen* resultptr = new wxPen(*result);
13970 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13971 }
13972 return resultobj;
13973 fail:
13974 return NULL;
13975 }
13976
13977
13978 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13979 PyObject *resultobj;
13980 wxDC *arg1 = (wxDC *) 0 ;
13981 wxColour *result;
13982 PyObject * obj0 = 0 ;
13983 char *kwnames[] = {
13984 (char *) "self", NULL
13985 };
13986
13987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 {
13993 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13994 result = (wxColour *) &_result_ref;
13995 }
13996
13997 wxPyEndAllowThreads(__tstate);
13998 if (PyErr_Occurred()) SWIG_fail;
13999 }
14000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14001 return resultobj;
14002 fail:
14003 return NULL;
14004 }
14005
14006
14007 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14008 PyObject *resultobj;
14009 wxDC *arg1 = (wxDC *) 0 ;
14010 wxColour *result;
14011 PyObject * obj0 = 0 ;
14012 char *kwnames[] = {
14013 (char *) "self", NULL
14014 };
14015
14016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14019 {
14020 PyThreadState* __tstate = wxPyBeginAllowThreads();
14021 {
14022 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14023 result = (wxColour *) &_result_ref;
14024 }
14025
14026 wxPyEndAllowThreads(__tstate);
14027 if (PyErr_Occurred()) SWIG_fail;
14028 }
14029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14030 return resultobj;
14031 fail:
14032 return NULL;
14033 }
14034
14035
14036 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14037 PyObject *resultobj;
14038 wxDC *arg1 = (wxDC *) 0 ;
14039 wxColour *arg2 = 0 ;
14040 wxColour temp2 ;
14041 PyObject * obj0 = 0 ;
14042 PyObject * obj1 = 0 ;
14043 char *kwnames[] = {
14044 (char *) "self",(char *) "colour", NULL
14045 };
14046
14047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14050 {
14051 arg2 = &temp2;
14052 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14053 }
14054 {
14055 PyThreadState* __tstate = wxPyBeginAllowThreads();
14056 (arg1)->SetTextForeground((wxColour const &)*arg2);
14057
14058 wxPyEndAllowThreads(__tstate);
14059 if (PyErr_Occurred()) SWIG_fail;
14060 }
14061 Py_INCREF(Py_None); resultobj = Py_None;
14062 return resultobj;
14063 fail:
14064 return NULL;
14065 }
14066
14067
14068 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14069 PyObject *resultobj;
14070 wxDC *arg1 = (wxDC *) 0 ;
14071 wxColour *arg2 = 0 ;
14072 wxColour temp2 ;
14073 PyObject * obj0 = 0 ;
14074 PyObject * obj1 = 0 ;
14075 char *kwnames[] = {
14076 (char *) "self",(char *) "colour", NULL
14077 };
14078
14079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14082 {
14083 arg2 = &temp2;
14084 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14085 }
14086 {
14087 PyThreadState* __tstate = wxPyBeginAllowThreads();
14088 (arg1)->SetTextBackground((wxColour const &)*arg2);
14089
14090 wxPyEndAllowThreads(__tstate);
14091 if (PyErr_Occurred()) SWIG_fail;
14092 }
14093 Py_INCREF(Py_None); resultobj = Py_None;
14094 return resultobj;
14095 fail:
14096 return NULL;
14097 }
14098
14099
14100 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14101 PyObject *resultobj;
14102 wxDC *arg1 = (wxDC *) 0 ;
14103 int result;
14104 PyObject * obj0 = 0 ;
14105 char *kwnames[] = {
14106 (char *) "self", NULL
14107 };
14108
14109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = (int)((wxDC const *)arg1)->GetMapMode();
14115
14116 wxPyEndAllowThreads(__tstate);
14117 if (PyErr_Occurred()) SWIG_fail;
14118 }
14119 resultobj = SWIG_From_int((int)result);
14120 return resultobj;
14121 fail:
14122 return NULL;
14123 }
14124
14125
14126 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14127 PyObject *resultobj;
14128 wxDC *arg1 = (wxDC *) 0 ;
14129 int arg2 ;
14130 PyObject * obj0 = 0 ;
14131 PyObject * obj1 = 0 ;
14132 char *kwnames[] = {
14133 (char *) "self",(char *) "mode", NULL
14134 };
14135
14136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14139 arg2 = (int)SWIG_As_int(obj1);
14140 if (PyErr_Occurred()) SWIG_fail;
14141 {
14142 PyThreadState* __tstate = wxPyBeginAllowThreads();
14143 (arg1)->SetMapMode(arg2);
14144
14145 wxPyEndAllowThreads(__tstate);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 }
14148 Py_INCREF(Py_None); resultobj = Py_None;
14149 return resultobj;
14150 fail:
14151 return NULL;
14152 }
14153
14154
14155 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14156 PyObject *resultobj;
14157 wxDC *arg1 = (wxDC *) 0 ;
14158 double *arg2 = (double *) 0 ;
14159 double *arg3 = (double *) 0 ;
14160 double temp2 ;
14161 int res2 = 0 ;
14162 double temp3 ;
14163 int res3 = 0 ;
14164 PyObject * obj0 = 0 ;
14165 char *kwnames[] = {
14166 (char *) "self", NULL
14167 };
14168
14169 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14170 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",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 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14177
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 Py_INCREF(Py_None); resultobj = Py_None;
14182 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14183 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14184 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14185 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14186 return resultobj;
14187 fail:
14188 return NULL;
14189 }
14190
14191
14192 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14193 PyObject *resultobj;
14194 wxDC *arg1 = (wxDC *) 0 ;
14195 double arg2 ;
14196 double arg3 ;
14197 PyObject * obj0 = 0 ;
14198 PyObject * obj1 = 0 ;
14199 PyObject * obj2 = 0 ;
14200 char *kwnames[] = {
14201 (char *) "self",(char *) "x",(char *) "y", NULL
14202 };
14203
14204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14207 arg2 = (double)SWIG_As_double(obj1);
14208 if (PyErr_Occurred()) SWIG_fail;
14209 arg3 = (double)SWIG_As_double(obj2);
14210 if (PyErr_Occurred()) SWIG_fail;
14211 {
14212 PyThreadState* __tstate = wxPyBeginAllowThreads();
14213 (arg1)->SetUserScale(arg2,arg3);
14214
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 Py_INCREF(Py_None); resultobj = Py_None;
14219 return resultobj;
14220 fail:
14221 return NULL;
14222 }
14223
14224
14225 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14226 PyObject *resultobj;
14227 wxDC *arg1 = (wxDC *) 0 ;
14228 double *arg2 = (double *) 0 ;
14229 double *arg3 = (double *) 0 ;
14230 double temp2 ;
14231 int res2 = 0 ;
14232 double temp3 ;
14233 int res3 = 0 ;
14234 PyObject * obj0 = 0 ;
14235 char *kwnames[] = {
14236 (char *) "self", NULL
14237 };
14238
14239 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14240 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14244 {
14245 PyThreadState* __tstate = wxPyBeginAllowThreads();
14246 (arg1)->GetLogicalScale(arg2,arg3);
14247
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 Py_INCREF(Py_None); resultobj = Py_None;
14252 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14253 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14254 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14255 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14256 return resultobj;
14257 fail:
14258 return NULL;
14259 }
14260
14261
14262 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14263 PyObject *resultobj;
14264 wxDC *arg1 = (wxDC *) 0 ;
14265 double arg2 ;
14266 double arg3 ;
14267 PyObject * obj0 = 0 ;
14268 PyObject * obj1 = 0 ;
14269 PyObject * obj2 = 0 ;
14270 char *kwnames[] = {
14271 (char *) "self",(char *) "x",(char *) "y", NULL
14272 };
14273
14274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14277 arg2 = (double)SWIG_As_double(obj1);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 arg3 = (double)SWIG_As_double(obj2);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 {
14282 PyThreadState* __tstate = wxPyBeginAllowThreads();
14283 (arg1)->SetLogicalScale(arg2,arg3);
14284
14285 wxPyEndAllowThreads(__tstate);
14286 if (PyErr_Occurred()) SWIG_fail;
14287 }
14288 Py_INCREF(Py_None); resultobj = Py_None;
14289 return resultobj;
14290 fail:
14291 return NULL;
14292 }
14293
14294
14295 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14296 PyObject *resultobj;
14297 wxDC *arg1 = (wxDC *) 0 ;
14298 wxPoint result;
14299 PyObject * obj0 = 0 ;
14300 char *kwnames[] = {
14301 (char *) "self", NULL
14302 };
14303
14304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14307 {
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14310
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315 wxPoint * resultptr;
14316 resultptr = new wxPoint((wxPoint &) result);
14317 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14318 }
14319 return resultobj;
14320 fail:
14321 return NULL;
14322 }
14323
14324
14325 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14326 PyObject *resultobj;
14327 wxDC *arg1 = (wxDC *) 0 ;
14328 int *arg2 = (int *) 0 ;
14329 int *arg3 = (int *) 0 ;
14330 int temp2 ;
14331 int res2 = 0 ;
14332 int temp3 ;
14333 int res3 = 0 ;
14334 PyObject * obj0 = 0 ;
14335 char *kwnames[] = {
14336 (char *) "self", NULL
14337 };
14338
14339 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14340 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14344 {
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14347
14348 wxPyEndAllowThreads(__tstate);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 }
14351 Py_INCREF(Py_None); resultobj = Py_None;
14352 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14353 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14354 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14355 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14356 return resultobj;
14357 fail:
14358 return NULL;
14359 }
14360
14361
14362 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14363 PyObject *resultobj;
14364 wxDC *arg1 = (wxDC *) 0 ;
14365 int arg2 ;
14366 int arg3 ;
14367 PyObject * obj0 = 0 ;
14368 PyObject * obj1 = 0 ;
14369 PyObject * obj2 = 0 ;
14370 char *kwnames[] = {
14371 (char *) "self",(char *) "x",(char *) "y", NULL
14372 };
14373
14374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14377 arg2 = (int)SWIG_As_int(obj1);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 arg3 = (int)SWIG_As_int(obj2);
14380 if (PyErr_Occurred()) SWIG_fail;
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 (arg1)->SetLogicalOrigin(arg2,arg3);
14384
14385 wxPyEndAllowThreads(__tstate);
14386 if (PyErr_Occurred()) SWIG_fail;
14387 }
14388 Py_INCREF(Py_None); resultobj = Py_None;
14389 return resultobj;
14390 fail:
14391 return NULL;
14392 }
14393
14394
14395 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14396 PyObject *resultobj;
14397 wxDC *arg1 = (wxDC *) 0 ;
14398 wxPoint *arg2 = 0 ;
14399 wxPoint temp2 ;
14400 PyObject * obj0 = 0 ;
14401 PyObject * obj1 = 0 ;
14402 char *kwnames[] = {
14403 (char *) "self",(char *) "point", NULL
14404 };
14405
14406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14409 {
14410 arg2 = &temp2;
14411 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14412 }
14413 {
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14416
14417 wxPyEndAllowThreads(__tstate);
14418 if (PyErr_Occurred()) SWIG_fail;
14419 }
14420 Py_INCREF(Py_None); resultobj = Py_None;
14421 return resultobj;
14422 fail:
14423 return NULL;
14424 }
14425
14426
14427 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14428 PyObject *resultobj;
14429 wxDC *arg1 = (wxDC *) 0 ;
14430 wxPoint result;
14431 PyObject * obj0 = 0 ;
14432 char *kwnames[] = {
14433 (char *) "self", NULL
14434 };
14435
14436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14439 {
14440 PyThreadState* __tstate = wxPyBeginAllowThreads();
14441 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14442
14443 wxPyEndAllowThreads(__tstate);
14444 if (PyErr_Occurred()) SWIG_fail;
14445 }
14446 {
14447 wxPoint * resultptr;
14448 resultptr = new wxPoint((wxPoint &) result);
14449 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14450 }
14451 return resultobj;
14452 fail:
14453 return NULL;
14454 }
14455
14456
14457 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14458 PyObject *resultobj;
14459 wxDC *arg1 = (wxDC *) 0 ;
14460 int *arg2 = (int *) 0 ;
14461 int *arg3 = (int *) 0 ;
14462 int temp2 ;
14463 int res2 = 0 ;
14464 int temp3 ;
14465 int res3 = 0 ;
14466 PyObject * obj0 = 0 ;
14467 char *kwnames[] = {
14468 (char *) "self", NULL
14469 };
14470
14471 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14472 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14476 {
14477 PyThreadState* __tstate = wxPyBeginAllowThreads();
14478 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14479
14480 wxPyEndAllowThreads(__tstate);
14481 if (PyErr_Occurred()) SWIG_fail;
14482 }
14483 Py_INCREF(Py_None); resultobj = Py_None;
14484 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14485 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14486 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14487 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14488 return resultobj;
14489 fail:
14490 return NULL;
14491 }
14492
14493
14494 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14495 PyObject *resultobj;
14496 wxDC *arg1 = (wxDC *) 0 ;
14497 int arg2 ;
14498 int arg3 ;
14499 PyObject * obj0 = 0 ;
14500 PyObject * obj1 = 0 ;
14501 PyObject * obj2 = 0 ;
14502 char *kwnames[] = {
14503 (char *) "self",(char *) "x",(char *) "y", NULL
14504 };
14505
14506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14509 arg2 = (int)SWIG_As_int(obj1);
14510 if (PyErr_Occurred()) SWIG_fail;
14511 arg3 = (int)SWIG_As_int(obj2);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 {
14514 PyThreadState* __tstate = wxPyBeginAllowThreads();
14515 (arg1)->SetDeviceOrigin(arg2,arg3);
14516
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 Py_INCREF(Py_None); resultobj = Py_None;
14521 return resultobj;
14522 fail:
14523 return NULL;
14524 }
14525
14526
14527 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj;
14529 wxDC *arg1 = (wxDC *) 0 ;
14530 wxPoint *arg2 = 0 ;
14531 wxPoint temp2 ;
14532 PyObject * obj0 = 0 ;
14533 PyObject * obj1 = 0 ;
14534 char *kwnames[] = {
14535 (char *) "self",(char *) "point", NULL
14536 };
14537
14538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14541 {
14542 arg2 = &temp2;
14543 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14544 }
14545 {
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
14547 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14548
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 Py_INCREF(Py_None); resultobj = Py_None;
14553 return resultobj;
14554 fail:
14555 return NULL;
14556 }
14557
14558
14559 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
14560 PyObject *resultobj;
14561 wxDC *arg1 = (wxDC *) 0 ;
14562 bool arg2 ;
14563 bool arg3 ;
14564 PyObject * obj0 = 0 ;
14565 PyObject * obj1 = 0 ;
14566 PyObject * obj2 = 0 ;
14567 char *kwnames[] = {
14568 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14569 };
14570
14571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14574 arg2 = (bool)SWIG_As_bool(obj1);
14575 if (PyErr_Occurred()) SWIG_fail;
14576 arg3 = (bool)SWIG_As_bool(obj2);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 {
14579 PyThreadState* __tstate = wxPyBeginAllowThreads();
14580 (arg1)->SetAxisOrientation(arg2,arg3);
14581
14582 wxPyEndAllowThreads(__tstate);
14583 if (PyErr_Occurred()) SWIG_fail;
14584 }
14585 Py_INCREF(Py_None); resultobj = Py_None;
14586 return resultobj;
14587 fail:
14588 return NULL;
14589 }
14590
14591
14592 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14593 PyObject *resultobj;
14594 wxDC *arg1 = (wxDC *) 0 ;
14595 int result;
14596 PyObject * obj0 = 0 ;
14597 char *kwnames[] = {
14598 (char *) "self", NULL
14599 };
14600
14601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14607
14608 wxPyEndAllowThreads(__tstate);
14609 if (PyErr_Occurred()) SWIG_fail;
14610 }
14611 resultobj = SWIG_From_int((int)result);
14612 return resultobj;
14613 fail:
14614 return NULL;
14615 }
14616
14617
14618 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14619 PyObject *resultobj;
14620 wxDC *arg1 = (wxDC *) 0 ;
14621 int arg2 ;
14622 PyObject * obj0 = 0 ;
14623 PyObject * obj1 = 0 ;
14624 char *kwnames[] = {
14625 (char *) "self",(char *) "function", NULL
14626 };
14627
14628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14631 arg2 = (int)SWIG_As_int(obj1);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 {
14634 PyThreadState* __tstate = wxPyBeginAllowThreads();
14635 (arg1)->SetLogicalFunction(arg2);
14636
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 Py_INCREF(Py_None); resultobj = Py_None;
14641 return resultobj;
14642 fail:
14643 return NULL;
14644 }
14645
14646
14647 static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14648 PyObject *resultobj;
14649 wxDC *arg1 = (wxDC *) 0 ;
14650 bool arg2 ;
14651 PyObject * obj0 = 0 ;
14652 PyObject * obj1 = 0 ;
14653 char *kwnames[] = {
14654 (char *) "self",(char *) "optimize", NULL
14655 };
14656
14657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14660 arg2 = (bool)SWIG_As_bool(obj1);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 {
14663 PyThreadState* __tstate = wxPyBeginAllowThreads();
14664 (arg1)->SetOptimization(arg2);
14665
14666 wxPyEndAllowThreads(__tstate);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 Py_INCREF(Py_None); resultobj = Py_None;
14670 return resultobj;
14671 fail:
14672 return NULL;
14673 }
14674
14675
14676 static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14677 PyObject *resultobj;
14678 wxDC *arg1 = (wxDC *) 0 ;
14679 bool result;
14680 PyObject * obj0 = 0 ;
14681 char *kwnames[] = {
14682 (char *) "self", NULL
14683 };
14684
14685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14688 {
14689 PyThreadState* __tstate = wxPyBeginAllowThreads();
14690 result = (bool)(arg1)->GetOptimization();
14691
14692 wxPyEndAllowThreads(__tstate);
14693 if (PyErr_Occurred()) SWIG_fail;
14694 }
14695 {
14696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14697 }
14698 return resultobj;
14699 fail:
14700 return NULL;
14701 }
14702
14703
14704 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14705 PyObject *resultobj;
14706 wxDC *arg1 = (wxDC *) 0 ;
14707 int arg2 ;
14708 int arg3 ;
14709 PyObject * obj0 = 0 ;
14710 PyObject * obj1 = 0 ;
14711 PyObject * obj2 = 0 ;
14712 char *kwnames[] = {
14713 (char *) "self",(char *) "x",(char *) "y", NULL
14714 };
14715
14716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14719 arg2 = (int)SWIG_As_int(obj1);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 arg3 = (int)SWIG_As_int(obj2);
14722 if (PyErr_Occurred()) SWIG_fail;
14723 {
14724 PyThreadState* __tstate = wxPyBeginAllowThreads();
14725 (arg1)->CalcBoundingBox(arg2,arg3);
14726
14727 wxPyEndAllowThreads(__tstate);
14728 if (PyErr_Occurred()) SWIG_fail;
14729 }
14730 Py_INCREF(Py_None); resultobj = Py_None;
14731 return resultobj;
14732 fail:
14733 return NULL;
14734 }
14735
14736
14737 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14738 PyObject *resultobj;
14739 wxDC *arg1 = (wxDC *) 0 ;
14740 wxPoint *arg2 = 0 ;
14741 wxPoint temp2 ;
14742 PyObject * obj0 = 0 ;
14743 PyObject * obj1 = 0 ;
14744 char *kwnames[] = {
14745 (char *) "self",(char *) "point", NULL
14746 };
14747
14748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14751 {
14752 arg2 = &temp2;
14753 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14754 }
14755 {
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14758
14759 wxPyEndAllowThreads(__tstate);
14760 if (PyErr_Occurred()) SWIG_fail;
14761 }
14762 Py_INCREF(Py_None); resultobj = Py_None;
14763 return resultobj;
14764 fail:
14765 return NULL;
14766 }
14767
14768
14769 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14770 PyObject *resultobj;
14771 wxDC *arg1 = (wxDC *) 0 ;
14772 PyObject * obj0 = 0 ;
14773 char *kwnames[] = {
14774 (char *) "self", NULL
14775 };
14776
14777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 (arg1)->ResetBoundingBox();
14783
14784 wxPyEndAllowThreads(__tstate);
14785 if (PyErr_Occurred()) SWIG_fail;
14786 }
14787 Py_INCREF(Py_None); resultobj = Py_None;
14788 return resultobj;
14789 fail:
14790 return NULL;
14791 }
14792
14793
14794 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
14795 PyObject *resultobj;
14796 wxDC *arg1 = (wxDC *) 0 ;
14797 int result;
14798 PyObject * obj0 = 0 ;
14799 char *kwnames[] = {
14800 (char *) "self", NULL
14801 };
14802
14803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14806 {
14807 PyThreadState* __tstate = wxPyBeginAllowThreads();
14808 result = (int)((wxDC const *)arg1)->MinX();
14809
14810 wxPyEndAllowThreads(__tstate);
14811 if (PyErr_Occurred()) SWIG_fail;
14812 }
14813 resultobj = SWIG_From_int((int)result);
14814 return resultobj;
14815 fail:
14816 return NULL;
14817 }
14818
14819
14820 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
14821 PyObject *resultobj;
14822 wxDC *arg1 = (wxDC *) 0 ;
14823 int result;
14824 PyObject * obj0 = 0 ;
14825 char *kwnames[] = {
14826 (char *) "self", NULL
14827 };
14828
14829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14832 {
14833 PyThreadState* __tstate = wxPyBeginAllowThreads();
14834 result = (int)((wxDC const *)arg1)->MaxX();
14835
14836 wxPyEndAllowThreads(__tstate);
14837 if (PyErr_Occurred()) SWIG_fail;
14838 }
14839 resultobj = SWIG_From_int((int)result);
14840 return resultobj;
14841 fail:
14842 return NULL;
14843 }
14844
14845
14846 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
14847 PyObject *resultobj;
14848 wxDC *arg1 = (wxDC *) 0 ;
14849 int result;
14850 PyObject * obj0 = 0 ;
14851 char *kwnames[] = {
14852 (char *) "self", NULL
14853 };
14854
14855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 result = (int)((wxDC const *)arg1)->MinY();
14861
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 resultobj = SWIG_From_int((int)result);
14866 return resultobj;
14867 fail:
14868 return NULL;
14869 }
14870
14871
14872 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
14873 PyObject *resultobj;
14874 wxDC *arg1 = (wxDC *) 0 ;
14875 int result;
14876 PyObject * obj0 = 0 ;
14877 char *kwnames[] = {
14878 (char *) "self", NULL
14879 };
14880
14881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 result = (int)((wxDC const *)arg1)->MaxY();
14887
14888 wxPyEndAllowThreads(__tstate);
14889 if (PyErr_Occurred()) SWIG_fail;
14890 }
14891 resultobj = SWIG_From_int((int)result);
14892 return resultobj;
14893 fail:
14894 return NULL;
14895 }
14896
14897
14898 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14899 PyObject *resultobj;
14900 wxDC *arg1 = (wxDC *) 0 ;
14901 int *arg2 = (int *) 0 ;
14902 int *arg3 = (int *) 0 ;
14903 int *arg4 = (int *) 0 ;
14904 int *arg5 = (int *) 0 ;
14905 int temp2 ;
14906 int res2 = 0 ;
14907 int temp3 ;
14908 int res3 = 0 ;
14909 int temp4 ;
14910 int res4 = 0 ;
14911 int temp5 ;
14912 int res5 = 0 ;
14913 PyObject * obj0 = 0 ;
14914 char *kwnames[] = {
14915 (char *) "self", NULL
14916 };
14917
14918 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14919 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14920 arg4 = &temp4; res4 = SWIG_NEWOBJ;
14921 arg5 = &temp5; res5 = SWIG_NEWOBJ;
14922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
14927 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14928
14929 wxPyEndAllowThreads(__tstate);
14930 if (PyErr_Occurred()) SWIG_fail;
14931 }
14932 Py_INCREF(Py_None); resultobj = Py_None;
14933 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14934 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14935 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14936 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14937 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
14938 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
14939 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
14940 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
14941 return resultobj;
14942 fail:
14943 return NULL;
14944 }
14945
14946
14947 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
14948 PyObject *resultobj;
14949 wxDC *arg1 = (wxDC *) 0 ;
14950 PyObject *arg2 = (PyObject *) 0 ;
14951 PyObject *arg3 = (PyObject *) 0 ;
14952 PyObject *arg4 = (PyObject *) 0 ;
14953 PyObject *result;
14954 PyObject * obj0 = 0 ;
14955 PyObject * obj1 = 0 ;
14956 PyObject * obj2 = 0 ;
14957 PyObject * obj3 = 0 ;
14958 char *kwnames[] = {
14959 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14960 };
14961
14962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14965 arg2 = obj1;
14966 arg3 = obj2;
14967 arg4 = obj3;
14968 {
14969 PyThreadState* __tstate = wxPyBeginAllowThreads();
14970 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14971
14972 wxPyEndAllowThreads(__tstate);
14973 if (PyErr_Occurred()) SWIG_fail;
14974 }
14975 resultobj = result;
14976 return resultobj;
14977 fail:
14978 return NULL;
14979 }
14980
14981
14982 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
14983 PyObject *resultobj;
14984 wxDC *arg1 = (wxDC *) 0 ;
14985 PyObject *arg2 = (PyObject *) 0 ;
14986 PyObject *arg3 = (PyObject *) 0 ;
14987 PyObject *arg4 = (PyObject *) 0 ;
14988 PyObject *result;
14989 PyObject * obj0 = 0 ;
14990 PyObject * obj1 = 0 ;
14991 PyObject * obj2 = 0 ;
14992 PyObject * obj3 = 0 ;
14993 char *kwnames[] = {
14994 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14995 };
14996
14997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15000 arg2 = obj1;
15001 arg3 = obj2;
15002 arg4 = obj3;
15003 {
15004 PyThreadState* __tstate = wxPyBeginAllowThreads();
15005 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15006
15007 wxPyEndAllowThreads(__tstate);
15008 if (PyErr_Occurred()) SWIG_fail;
15009 }
15010 resultobj = result;
15011 return resultobj;
15012 fail:
15013 return NULL;
15014 }
15015
15016
15017 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
15018 PyObject *resultobj;
15019 wxDC *arg1 = (wxDC *) 0 ;
15020 PyObject *arg2 = (PyObject *) 0 ;
15021 PyObject *arg3 = (PyObject *) 0 ;
15022 PyObject *arg4 = (PyObject *) 0 ;
15023 PyObject *result;
15024 PyObject * obj0 = 0 ;
15025 PyObject * obj1 = 0 ;
15026 PyObject * obj2 = 0 ;
15027 PyObject * obj3 = 0 ;
15028 char *kwnames[] = {
15029 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15030 };
15031
15032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15035 arg2 = obj1;
15036 arg3 = obj2;
15037 arg4 = obj3;
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15041
15042 wxPyEndAllowThreads(__tstate);
15043 if (PyErr_Occurred()) SWIG_fail;
15044 }
15045 resultobj = result;
15046 return resultobj;
15047 fail:
15048 return NULL;
15049 }
15050
15051
15052 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
15053 PyObject *resultobj;
15054 wxDC *arg1 = (wxDC *) 0 ;
15055 PyObject *arg2 = (PyObject *) 0 ;
15056 PyObject *arg3 = (PyObject *) 0 ;
15057 PyObject *arg4 = (PyObject *) 0 ;
15058 PyObject *result;
15059 PyObject * obj0 = 0 ;
15060 PyObject * obj1 = 0 ;
15061 PyObject * obj2 = 0 ;
15062 PyObject * obj3 = 0 ;
15063 char *kwnames[] = {
15064 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15065 };
15066
15067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15070 arg2 = obj1;
15071 arg3 = obj2;
15072 arg4 = obj3;
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15076
15077 wxPyEndAllowThreads(__tstate);
15078 if (PyErr_Occurred()) SWIG_fail;
15079 }
15080 resultobj = result;
15081 return resultobj;
15082 fail:
15083 return NULL;
15084 }
15085
15086
15087 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj;
15089 wxDC *arg1 = (wxDC *) 0 ;
15090 PyObject *arg2 = (PyObject *) 0 ;
15091 PyObject *arg3 = (PyObject *) 0 ;
15092 PyObject *arg4 = (PyObject *) 0 ;
15093 PyObject *result;
15094 PyObject * obj0 = 0 ;
15095 PyObject * obj1 = 0 ;
15096 PyObject * obj2 = 0 ;
15097 PyObject * obj3 = 0 ;
15098 char *kwnames[] = {
15099 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15100 };
15101
15102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15105 arg2 = obj1;
15106 arg3 = obj2;
15107 arg4 = obj3;
15108 {
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
15110 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15111
15112 wxPyEndAllowThreads(__tstate);
15113 if (PyErr_Occurred()) SWIG_fail;
15114 }
15115 resultobj = result;
15116 return resultobj;
15117 fail:
15118 return NULL;
15119 }
15120
15121
15122 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
15123 PyObject *resultobj;
15124 wxDC *arg1 = (wxDC *) 0 ;
15125 PyObject *arg2 = (PyObject *) 0 ;
15126 PyObject *arg3 = (PyObject *) 0 ;
15127 PyObject *arg4 = (PyObject *) 0 ;
15128 PyObject *arg5 = (PyObject *) 0 ;
15129 PyObject *result;
15130 PyObject * obj0 = 0 ;
15131 PyObject * obj1 = 0 ;
15132 PyObject * obj2 = 0 ;
15133 PyObject * obj3 = 0 ;
15134 PyObject * obj4 = 0 ;
15135 char *kwnames[] = {
15136 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15137 };
15138
15139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15142 arg2 = obj1;
15143 arg3 = obj2;
15144 arg4 = obj3;
15145 arg5 = obj4;
15146 {
15147 PyThreadState* __tstate = wxPyBeginAllowThreads();
15148 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15149
15150 wxPyEndAllowThreads(__tstate);
15151 if (PyErr_Occurred()) SWIG_fail;
15152 }
15153 resultobj = result;
15154 return resultobj;
15155 fail:
15156 return NULL;
15157 }
15158
15159
15160 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
15161 PyObject *obj;
15162 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15163 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15164 Py_INCREF(obj);
15165 return Py_BuildValue((char *)"");
15166 }
15167 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
15168 PyObject *resultobj;
15169 wxMemoryDC *result;
15170 char *kwnames[] = {
15171 NULL
15172 };
15173
15174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15175 {
15176 if (!wxPyCheckForApp()) SWIG_fail;
15177 PyThreadState* __tstate = wxPyBeginAllowThreads();
15178 result = (wxMemoryDC *)new wxMemoryDC();
15179
15180 wxPyEndAllowThreads(__tstate);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 }
15183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15184 return resultobj;
15185 fail:
15186 return NULL;
15187 }
15188
15189
15190 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
15191 PyObject *resultobj;
15192 wxDC *arg1 = (wxDC *) 0 ;
15193 wxMemoryDC *result;
15194 PyObject * obj0 = 0 ;
15195 char *kwnames[] = {
15196 (char *) "oldDC", NULL
15197 };
15198
15199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15202 {
15203 if (!wxPyCheckForApp()) SWIG_fail;
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15211 return resultobj;
15212 fail:
15213 return NULL;
15214 }
15215
15216
15217 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj;
15219 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15220 wxBitmap *arg2 = 0 ;
15221 PyObject * obj0 = 0 ;
15222 PyObject * obj1 = 0 ;
15223 char *kwnames[] = {
15224 (char *) "self",(char *) "bitmap", NULL
15225 };
15226
15227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15230 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15231 SWIG_POINTER_EXCEPTION | 0)) == -1)
15232 SWIG_fail;
15233 if (arg2 == NULL) {
15234 PyErr_SetString(PyExc_TypeError,"null reference");
15235 SWIG_fail;
15236 }
15237 {
15238 PyThreadState* __tstate = wxPyBeginAllowThreads();
15239 (arg1)->SelectObject((wxBitmap const &)*arg2);
15240
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 Py_INCREF(Py_None); resultobj = Py_None;
15245 return resultobj;
15246 fail:
15247 return NULL;
15248 }
15249
15250
15251 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
15252 PyObject *obj;
15253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15254 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15255 Py_INCREF(obj);
15256 return Py_BuildValue((char *)"");
15257 }
15258 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
15259 PyObject *resultobj;
15260 wxDC *arg1 = (wxDC *) 0 ;
15261 wxBitmap *arg2 = 0 ;
15262 wxBufferedDC *result;
15263 PyObject * obj0 = 0 ;
15264 PyObject * obj1 = 0 ;
15265
15266 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15269 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15270 SWIG_POINTER_EXCEPTION | 0)) == -1)
15271 SWIG_fail;
15272 if (arg2 == NULL) {
15273 PyErr_SetString(PyExc_TypeError,"null reference");
15274 SWIG_fail;
15275 }
15276 {
15277 if (!wxPyCheckForApp()) SWIG_fail;
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15280
15281 wxPyEndAllowThreads(__tstate);
15282 if (PyErr_Occurred()) SWIG_fail;
15283 }
15284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15285 return resultobj;
15286 fail:
15287 return NULL;
15288 }
15289
15290
15291 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
15292 PyObject *resultobj;
15293 wxDC *arg1 = (wxDC *) 0 ;
15294 wxSize *arg2 = 0 ;
15295 wxBufferedDC *result;
15296 wxSize temp2 ;
15297 PyObject * obj0 = 0 ;
15298 PyObject * obj1 = 0 ;
15299
15300 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15303 {
15304 arg2 = &temp2;
15305 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15306 }
15307 {
15308 if (!wxPyCheckForApp()) SWIG_fail;
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15311
15312 wxPyEndAllowThreads(__tstate);
15313 if (PyErr_Occurred()) SWIG_fail;
15314 }
15315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15316 return resultobj;
15317 fail:
15318 return NULL;
15319 }
15320
15321
15322 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15323 int argc;
15324 PyObject *argv[3];
15325 int ii;
15326
15327 argc = PyObject_Length(args);
15328 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15329 argv[ii] = PyTuple_GetItem(args,ii);
15330 }
15331 if (argc == 2) {
15332 int _v;
15333 {
15334 void *ptr;
15335 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15336 _v = 0;
15337 PyErr_Clear();
15338 } else {
15339 _v = 1;
15340 }
15341 }
15342 if (_v) {
15343 {
15344 void *ptr;
15345 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15346 _v = 0;
15347 PyErr_Clear();
15348 } else {
15349 _v = 1;
15350 }
15351 }
15352 if (_v) {
15353 return _wrap_new_BufferedDC__SWIG_0(self,args);
15354 }
15355 }
15356 }
15357 if (argc == 2) {
15358 int _v;
15359 {
15360 void *ptr;
15361 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15362 _v = 0;
15363 PyErr_Clear();
15364 } else {
15365 _v = 1;
15366 }
15367 }
15368 if (_v) {
15369 {
15370 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15371 }
15372 if (_v) {
15373 return _wrap_new_BufferedDC__SWIG_1(self,args);
15374 }
15375 }
15376 }
15377
15378 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15379 return NULL;
15380 }
15381
15382
15383 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
15384 PyObject *resultobj;
15385 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15386 PyObject * obj0 = 0 ;
15387 char *kwnames[] = {
15388 (char *) "self", NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 delete arg1;
15397
15398 wxPyEndAllowThreads(__tstate);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
15401 Py_INCREF(Py_None); resultobj = Py_None;
15402 return resultobj;
15403 fail:
15404 return NULL;
15405 }
15406
15407
15408 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
15409 PyObject *resultobj;
15410 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15411 PyObject * obj0 = 0 ;
15412 char *kwnames[] = {
15413 (char *) "self", NULL
15414 };
15415
15416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15419 {
15420 PyThreadState* __tstate = wxPyBeginAllowThreads();
15421 (arg1)->UnMask();
15422
15423 wxPyEndAllowThreads(__tstate);
15424 if (PyErr_Occurred()) SWIG_fail;
15425 }
15426 Py_INCREF(Py_None); resultobj = Py_None;
15427 return resultobj;
15428 fail:
15429 return NULL;
15430 }
15431
15432
15433 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
15434 PyObject *obj;
15435 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15436 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15437 Py_INCREF(obj);
15438 return Py_BuildValue((char *)"");
15439 }
15440 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15441 PyObject *resultobj;
15442 wxWindow *arg1 = (wxWindow *) 0 ;
15443 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15444 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15445 wxBufferedPaintDC *result;
15446 PyObject * obj0 = 0 ;
15447 PyObject * obj1 = 0 ;
15448 char *kwnames[] = {
15449 (char *) "window",(char *) "buffer", NULL
15450 };
15451
15452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15455 if (obj1) {
15456 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15457 SWIG_POINTER_EXCEPTION | 0)) == -1)
15458 SWIG_fail;
15459 if (arg2 == NULL) {
15460 PyErr_SetString(PyExc_TypeError,"null reference");
15461 SWIG_fail;
15462 }
15463 }
15464 {
15465 if (!wxPyCheckForApp()) SWIG_fail;
15466 PyThreadState* __tstate = wxPyBeginAllowThreads();
15467 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15468
15469 wxPyEndAllowThreads(__tstate);
15470 if (PyErr_Occurred()) SWIG_fail;
15471 }
15472 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15473 return resultobj;
15474 fail:
15475 return NULL;
15476 }
15477
15478
15479 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
15480 PyObject *obj;
15481 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15482 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15483 Py_INCREF(obj);
15484 return Py_BuildValue((char *)"");
15485 }
15486 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
15487 PyObject *resultobj;
15488 wxScreenDC *result;
15489 char *kwnames[] = {
15490 NULL
15491 };
15492
15493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15494 {
15495 if (!wxPyCheckForApp()) SWIG_fail;
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 result = (wxScreenDC *)new wxScreenDC();
15498
15499 wxPyEndAllowThreads(__tstate);
15500 if (PyErr_Occurred()) SWIG_fail;
15501 }
15502 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15503 return resultobj;
15504 fail:
15505 return NULL;
15506 }
15507
15508
15509 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
15510 PyObject *resultobj;
15511 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15512 wxWindow *arg2 = (wxWindow *) 0 ;
15513 bool result;
15514 PyObject * obj0 = 0 ;
15515 PyObject * obj1 = 0 ;
15516 char *kwnames[] = {
15517 (char *) "self",(char *) "window", NULL
15518 };
15519
15520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15523 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15525 {
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15528
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 {
15533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15534 }
15535 return resultobj;
15536 fail:
15537 return NULL;
15538 }
15539
15540
15541 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj;
15543 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15544 wxRect *arg2 = (wxRect *) NULL ;
15545 bool result;
15546 PyObject * obj0 = 0 ;
15547 PyObject * obj1 = 0 ;
15548 char *kwnames[] = {
15549 (char *) "self",(char *) "rect", NULL
15550 };
15551
15552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15555 if (obj1) {
15556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15558 }
15559 {
15560 PyThreadState* __tstate = wxPyBeginAllowThreads();
15561 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15562
15563 wxPyEndAllowThreads(__tstate);
15564 if (PyErr_Occurred()) SWIG_fail;
15565 }
15566 {
15567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15568 }
15569 return resultobj;
15570 fail:
15571 return NULL;
15572 }
15573
15574
15575 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj;
15577 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15578 bool result;
15579 PyObject * obj0 = 0 ;
15580 char *kwnames[] = {
15581 (char *) "self", NULL
15582 };
15583
15584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15587 {
15588 PyThreadState* __tstate = wxPyBeginAllowThreads();
15589 result = (bool)(arg1)->EndDrawingOnTop();
15590
15591 wxPyEndAllowThreads(__tstate);
15592 if (PyErr_Occurred()) SWIG_fail;
15593 }
15594 {
15595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15596 }
15597 return resultobj;
15598 fail:
15599 return NULL;
15600 }
15601
15602
15603 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
15604 PyObject *obj;
15605 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15606 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15607 Py_INCREF(obj);
15608 return Py_BuildValue((char *)"");
15609 }
15610 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
15611 PyObject *resultobj;
15612 wxWindow *arg1 = (wxWindow *) 0 ;
15613 wxClientDC *result;
15614 PyObject * obj0 = 0 ;
15615 char *kwnames[] = {
15616 (char *) "win", NULL
15617 };
15618
15619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15622 {
15623 if (!wxPyCheckForApp()) SWIG_fail;
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 result = (wxClientDC *)new wxClientDC(arg1);
15626
15627 wxPyEndAllowThreads(__tstate);
15628 if (PyErr_Occurred()) SWIG_fail;
15629 }
15630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15631 return resultobj;
15632 fail:
15633 return NULL;
15634 }
15635
15636
15637 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
15638 PyObject *obj;
15639 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15640 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15641 Py_INCREF(obj);
15642 return Py_BuildValue((char *)"");
15643 }
15644 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15645 PyObject *resultobj;
15646 wxWindow *arg1 = (wxWindow *) 0 ;
15647 wxPaintDC *result;
15648 PyObject * obj0 = 0 ;
15649 char *kwnames[] = {
15650 (char *) "win", NULL
15651 };
15652
15653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15656 {
15657 if (!wxPyCheckForApp()) SWIG_fail;
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 result = (wxPaintDC *)new wxPaintDC(arg1);
15660
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15665 return resultobj;
15666 fail:
15667 return NULL;
15668 }
15669
15670
15671 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
15672 PyObject *obj;
15673 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15674 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15675 Py_INCREF(obj);
15676 return Py_BuildValue((char *)"");
15677 }
15678 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
15679 PyObject *resultobj;
15680 wxWindow *arg1 = (wxWindow *) 0 ;
15681 wxWindowDC *result;
15682 PyObject * obj0 = 0 ;
15683 char *kwnames[] = {
15684 (char *) "win", NULL
15685 };
15686
15687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15690 {
15691 if (!wxPyCheckForApp()) SWIG_fail;
15692 PyThreadState* __tstate = wxPyBeginAllowThreads();
15693 result = (wxWindowDC *)new wxWindowDC(arg1);
15694
15695 wxPyEndAllowThreads(__tstate);
15696 if (PyErr_Occurred()) SWIG_fail;
15697 }
15698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15699 return resultobj;
15700 fail:
15701 return NULL;
15702 }
15703
15704
15705 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
15706 PyObject *obj;
15707 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15708 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15709 Py_INCREF(obj);
15710 return Py_BuildValue((char *)"");
15711 }
15712 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
15713 PyObject *resultobj;
15714 wxDC *arg1 = 0 ;
15715 bool arg2 ;
15716 wxMirrorDC *result;
15717 PyObject * obj0 = 0 ;
15718 PyObject * obj1 = 0 ;
15719 char *kwnames[] = {
15720 (char *) "dc",(char *) "mirror", NULL
15721 };
15722
15723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15725 SWIG_POINTER_EXCEPTION | 0)) == -1)
15726 SWIG_fail;
15727 if (arg1 == NULL) {
15728 PyErr_SetString(PyExc_TypeError,"null reference");
15729 SWIG_fail;
15730 }
15731 arg2 = (bool)SWIG_As_bool(obj1);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 {
15734 if (!wxPyCheckForApp()) SWIG_fail;
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15737
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15742 return resultobj;
15743 fail:
15744 return NULL;
15745 }
15746
15747
15748 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
15749 PyObject *obj;
15750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15751 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15752 Py_INCREF(obj);
15753 return Py_BuildValue((char *)"");
15754 }
15755 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
15756 PyObject *resultobj;
15757 wxPrintData *arg1 = 0 ;
15758 wxPostScriptDC *result;
15759 PyObject * obj0 = 0 ;
15760 char *kwnames[] = {
15761 (char *) "printData", NULL
15762 };
15763
15764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15766 SWIG_POINTER_EXCEPTION | 0)) == -1)
15767 SWIG_fail;
15768 if (arg1 == NULL) {
15769 PyErr_SetString(PyExc_TypeError,"null reference");
15770 SWIG_fail;
15771 }
15772 {
15773 if (!wxPyCheckForApp()) SWIG_fail;
15774 PyThreadState* __tstate = wxPyBeginAllowThreads();
15775 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15776
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15781 return resultobj;
15782 fail:
15783 return NULL;
15784 }
15785
15786
15787 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15788 PyObject *resultobj;
15789 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15790 wxPrintData *result;
15791 PyObject * obj0 = 0 ;
15792 char *kwnames[] = {
15793 (char *) "self", NULL
15794 };
15795
15796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15799 {
15800 PyThreadState* __tstate = wxPyBeginAllowThreads();
15801 {
15802 wxPrintData &_result_ref = (arg1)->GetPrintData();
15803 result = (wxPrintData *) &_result_ref;
15804 }
15805
15806 wxPyEndAllowThreads(__tstate);
15807 if (PyErr_Occurred()) SWIG_fail;
15808 }
15809 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15810 return resultobj;
15811 fail:
15812 return NULL;
15813 }
15814
15815
15816 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15817 PyObject *resultobj;
15818 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15819 wxPrintData *arg2 = 0 ;
15820 PyObject * obj0 = 0 ;
15821 PyObject * obj1 = 0 ;
15822 char *kwnames[] = {
15823 (char *) "self",(char *) "data", NULL
15824 };
15825
15826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15829 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15830 SWIG_POINTER_EXCEPTION | 0)) == -1)
15831 SWIG_fail;
15832 if (arg2 == NULL) {
15833 PyErr_SetString(PyExc_TypeError,"null reference");
15834 SWIG_fail;
15835 }
15836 {
15837 PyThreadState* __tstate = wxPyBeginAllowThreads();
15838 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15839
15840 wxPyEndAllowThreads(__tstate);
15841 if (PyErr_Occurred()) SWIG_fail;
15842 }
15843 Py_INCREF(Py_None); resultobj = Py_None;
15844 return resultobj;
15845 fail:
15846 return NULL;
15847 }
15848
15849
15850 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15851 PyObject *resultobj;
15852 int arg1 ;
15853 PyObject * obj0 = 0 ;
15854 char *kwnames[] = {
15855 (char *) "ppi", NULL
15856 };
15857
15858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15859 arg1 = (int)SWIG_As_int(obj0);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 {
15862 PyThreadState* __tstate = wxPyBeginAllowThreads();
15863 wxPostScriptDC::SetResolution(arg1);
15864
15865 wxPyEndAllowThreads(__tstate);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 Py_INCREF(Py_None); resultobj = Py_None;
15869 return resultobj;
15870 fail:
15871 return NULL;
15872 }
15873
15874
15875 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj;
15877 int result;
15878 char *kwnames[] = {
15879 NULL
15880 };
15881
15882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15883 {
15884 PyThreadState* __tstate = wxPyBeginAllowThreads();
15885 result = (int)wxPostScriptDC::GetResolution();
15886
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 resultobj = SWIG_From_int((int)result);
15891 return resultobj;
15892 fail:
15893 return NULL;
15894 }
15895
15896
15897 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
15898 PyObject *obj;
15899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15900 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15901 Py_INCREF(obj);
15902 return Py_BuildValue((char *)"");
15903 }
15904 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj;
15906 wxString const &arg1_defvalue = wxPyEmptyString ;
15907 wxString *arg1 = (wxString *) &arg1_defvalue ;
15908 wxMetaFile *result;
15909 bool temp1 = false ;
15910 PyObject * obj0 = 0 ;
15911 char *kwnames[] = {
15912 (char *) "filename", NULL
15913 };
15914
15915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15916 if (obj0) {
15917 {
15918 arg1 = wxString_in_helper(obj0);
15919 if (arg1 == NULL) SWIG_fail;
15920 temp1 = true;
15921 }
15922 }
15923 {
15924 if (!wxPyCheckForApp()) SWIG_fail;
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15927
15928 wxPyEndAllowThreads(__tstate);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15932 {
15933 if (temp1)
15934 delete arg1;
15935 }
15936 return resultobj;
15937 fail:
15938 {
15939 if (temp1)
15940 delete arg1;
15941 }
15942 return NULL;
15943 }
15944
15945
15946 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
15947 PyObject *obj;
15948 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15949 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15950 Py_INCREF(obj);
15951 return Py_BuildValue((char *)"");
15952 }
15953 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
15954 PyObject *resultobj;
15955 wxString const &arg1_defvalue = wxPyEmptyString ;
15956 wxString *arg1 = (wxString *) &arg1_defvalue ;
15957 int arg2 = (int) 0 ;
15958 int arg3 = (int) 0 ;
15959 wxString const &arg4_defvalue = wxPyEmptyString ;
15960 wxString *arg4 = (wxString *) &arg4_defvalue ;
15961 wxMetaFileDC *result;
15962 bool temp1 = false ;
15963 bool temp4 = false ;
15964 PyObject * obj0 = 0 ;
15965 PyObject * obj1 = 0 ;
15966 PyObject * obj2 = 0 ;
15967 PyObject * obj3 = 0 ;
15968 char *kwnames[] = {
15969 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15970 };
15971
15972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15973 if (obj0) {
15974 {
15975 arg1 = wxString_in_helper(obj0);
15976 if (arg1 == NULL) SWIG_fail;
15977 temp1 = true;
15978 }
15979 }
15980 if (obj1) {
15981 arg2 = (int)SWIG_As_int(obj1);
15982 if (PyErr_Occurred()) SWIG_fail;
15983 }
15984 if (obj2) {
15985 arg3 = (int)SWIG_As_int(obj2);
15986 if (PyErr_Occurred()) SWIG_fail;
15987 }
15988 if (obj3) {
15989 {
15990 arg4 = wxString_in_helper(obj3);
15991 if (arg4 == NULL) SWIG_fail;
15992 temp4 = true;
15993 }
15994 }
15995 {
15996 if (!wxPyCheckForApp()) SWIG_fail;
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
15998 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15999
16000 wxPyEndAllowThreads(__tstate);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
16003 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16004 {
16005 if (temp1)
16006 delete arg1;
16007 }
16008 {
16009 if (temp4)
16010 delete arg4;
16011 }
16012 return resultobj;
16013 fail:
16014 {
16015 if (temp1)
16016 delete arg1;
16017 }
16018 {
16019 if (temp4)
16020 delete arg4;
16021 }
16022 return NULL;
16023 }
16024
16025
16026 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
16027 PyObject *obj;
16028 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16029 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16030 Py_INCREF(obj);
16031 return Py_BuildValue((char *)"");
16032 }
16033 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
16034 PyObject *resultobj;
16035 wxPrintData *arg1 = 0 ;
16036 wxPrinterDC *result;
16037 PyObject * obj0 = 0 ;
16038 char *kwnames[] = {
16039 (char *) "printData", NULL
16040 };
16041
16042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16044 SWIG_POINTER_EXCEPTION | 0)) == -1)
16045 SWIG_fail;
16046 if (arg1 == NULL) {
16047 PyErr_SetString(PyExc_TypeError,"null reference");
16048 SWIG_fail;
16049 }
16050 {
16051 if (!wxPyCheckForApp()) SWIG_fail;
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16054
16055 wxPyEndAllowThreads(__tstate);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 }
16058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16059 return resultobj;
16060 fail:
16061 return NULL;
16062 }
16063
16064
16065 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
16066 PyObject *obj;
16067 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16068 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16069 Py_INCREF(obj);
16070 return Py_BuildValue((char *)"");
16071 }
16072 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16073 PyObject *resultobj;
16074 int arg1 ;
16075 int arg2 ;
16076 int arg3 = (int) true ;
16077 int arg4 = (int) 1 ;
16078 wxImageList *result;
16079 PyObject * obj0 = 0 ;
16080 PyObject * obj1 = 0 ;
16081 PyObject * obj2 = 0 ;
16082 PyObject * obj3 = 0 ;
16083 char *kwnames[] = {
16084 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16085 };
16086
16087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16088 arg1 = (int)SWIG_As_int(obj0);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 arg2 = (int)SWIG_As_int(obj1);
16091 if (PyErr_Occurred()) SWIG_fail;
16092 if (obj2) {
16093 arg3 = (int)SWIG_As_int(obj2);
16094 if (PyErr_Occurred()) SWIG_fail;
16095 }
16096 if (obj3) {
16097 arg4 = (int)SWIG_As_int(obj3);
16098 if (PyErr_Occurred()) SWIG_fail;
16099 }
16100 {
16101 if (!wxPyCheckForApp()) SWIG_fail;
16102 PyThreadState* __tstate = wxPyBeginAllowThreads();
16103 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16104
16105 wxPyEndAllowThreads(__tstate);
16106 if (PyErr_Occurred()) SWIG_fail;
16107 }
16108 {
16109 resultobj = wxPyMake_wxObject(result, 1);
16110 }
16111 return resultobj;
16112 fail:
16113 return NULL;
16114 }
16115
16116
16117 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj;
16119 wxImageList *arg1 = (wxImageList *) 0 ;
16120 PyObject * obj0 = 0 ;
16121 char *kwnames[] = {
16122 (char *) "self", NULL
16123 };
16124
16125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 delete arg1;
16131
16132 wxPyEndAllowThreads(__tstate);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 }
16135 Py_INCREF(Py_None); resultobj = Py_None;
16136 return resultobj;
16137 fail:
16138 return NULL;
16139 }
16140
16141
16142 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
16143 PyObject *resultobj;
16144 wxImageList *arg1 = (wxImageList *) 0 ;
16145 wxBitmap *arg2 = 0 ;
16146 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16147 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16148 int result;
16149 PyObject * obj0 = 0 ;
16150 PyObject * obj1 = 0 ;
16151 PyObject * obj2 = 0 ;
16152 char *kwnames[] = {
16153 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16154 };
16155
16156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16159 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16160 SWIG_POINTER_EXCEPTION | 0)) == -1)
16161 SWIG_fail;
16162 if (arg2 == NULL) {
16163 PyErr_SetString(PyExc_TypeError,"null reference");
16164 SWIG_fail;
16165 }
16166 if (obj2) {
16167 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16168 SWIG_POINTER_EXCEPTION | 0)) == -1)
16169 SWIG_fail;
16170 if (arg3 == NULL) {
16171 PyErr_SetString(PyExc_TypeError,"null reference");
16172 SWIG_fail;
16173 }
16174 }
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16178
16179 wxPyEndAllowThreads(__tstate);
16180 if (PyErr_Occurred()) SWIG_fail;
16181 }
16182 resultobj = SWIG_From_int((int)result);
16183 return resultobj;
16184 fail:
16185 return NULL;
16186 }
16187
16188
16189 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
16190 PyObject *resultobj;
16191 wxImageList *arg1 = (wxImageList *) 0 ;
16192 wxBitmap *arg2 = 0 ;
16193 wxColour *arg3 = 0 ;
16194 int result;
16195 wxColour temp3 ;
16196 PyObject * obj0 = 0 ;
16197 PyObject * obj1 = 0 ;
16198 PyObject * obj2 = 0 ;
16199 char *kwnames[] = {
16200 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16201 };
16202
16203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16207 SWIG_POINTER_EXCEPTION | 0)) == -1)
16208 SWIG_fail;
16209 if (arg2 == NULL) {
16210 PyErr_SetString(PyExc_TypeError,"null reference");
16211 SWIG_fail;
16212 }
16213 {
16214 arg3 = &temp3;
16215 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16216 }
16217 {
16218 PyThreadState* __tstate = wxPyBeginAllowThreads();
16219 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16220
16221 wxPyEndAllowThreads(__tstate);
16222 if (PyErr_Occurred()) SWIG_fail;
16223 }
16224 resultobj = SWIG_From_int((int)result);
16225 return resultobj;
16226 fail:
16227 return NULL;
16228 }
16229
16230
16231 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
16232 PyObject *resultobj;
16233 wxImageList *arg1 = (wxImageList *) 0 ;
16234 wxIcon *arg2 = 0 ;
16235 int result;
16236 PyObject * obj0 = 0 ;
16237 PyObject * obj1 = 0 ;
16238 char *kwnames[] = {
16239 (char *) "self",(char *) "icon", NULL
16240 };
16241
16242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16245 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16246 SWIG_POINTER_EXCEPTION | 0)) == -1)
16247 SWIG_fail;
16248 if (arg2 == NULL) {
16249 PyErr_SetString(PyExc_TypeError,"null reference");
16250 SWIG_fail;
16251 }
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
16254 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16255
16256 wxPyEndAllowThreads(__tstate);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 resultobj = SWIG_From_int((int)result);
16260 return resultobj;
16261 fail:
16262 return NULL;
16263 }
16264
16265
16266 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj;
16268 wxImageList *arg1 = (wxImageList *) 0 ;
16269 int arg2 ;
16270 wxBitmap *arg3 = 0 ;
16271 bool result;
16272 PyObject * obj0 = 0 ;
16273 PyObject * obj1 = 0 ;
16274 PyObject * obj2 = 0 ;
16275 char *kwnames[] = {
16276 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16277 };
16278
16279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16282 arg2 = (int)SWIG_As_int(obj1);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16285 SWIG_POINTER_EXCEPTION | 0)) == -1)
16286 SWIG_fail;
16287 if (arg3 == NULL) {
16288 PyErr_SetString(PyExc_TypeError,"null reference");
16289 SWIG_fail;
16290 }
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16294
16295 wxPyEndAllowThreads(__tstate);
16296 if (PyErr_Occurred()) SWIG_fail;
16297 }
16298 {
16299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16300 }
16301 return resultobj;
16302 fail:
16303 return NULL;
16304 }
16305
16306
16307 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
16308 PyObject *resultobj;
16309 wxImageList *arg1 = (wxImageList *) 0 ;
16310 int arg2 ;
16311 wxDC *arg3 = 0 ;
16312 int arg4 ;
16313 int arg5 ;
16314 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16315 bool arg7 = (bool) (bool)false ;
16316 bool result;
16317 PyObject * obj0 = 0 ;
16318 PyObject * obj1 = 0 ;
16319 PyObject * obj2 = 0 ;
16320 PyObject * obj3 = 0 ;
16321 PyObject * obj4 = 0 ;
16322 PyObject * obj5 = 0 ;
16323 PyObject * obj6 = 0 ;
16324 char *kwnames[] = {
16325 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16326 };
16327
16328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16331 arg2 = (int)SWIG_As_int(obj1);
16332 if (PyErr_Occurred()) SWIG_fail;
16333 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16334 SWIG_POINTER_EXCEPTION | 0)) == -1)
16335 SWIG_fail;
16336 if (arg3 == NULL) {
16337 PyErr_SetString(PyExc_TypeError,"null reference");
16338 SWIG_fail;
16339 }
16340 arg4 = (int)SWIG_As_int(obj3);
16341 if (PyErr_Occurred()) SWIG_fail;
16342 arg5 = (int)SWIG_As_int(obj4);
16343 if (PyErr_Occurred()) SWIG_fail;
16344 if (obj5) {
16345 arg6 = (int)SWIG_As_int(obj5);
16346 if (PyErr_Occurred()) SWIG_fail;
16347 }
16348 if (obj6) {
16349 arg7 = (bool)SWIG_As_bool(obj6);
16350 if (PyErr_Occurred()) SWIG_fail;
16351 }
16352 {
16353 PyThreadState* __tstate = wxPyBeginAllowThreads();
16354 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16355
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
16359 {
16360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16361 }
16362 return resultobj;
16363 fail:
16364 return NULL;
16365 }
16366
16367
16368 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
16369 PyObject *resultobj;
16370 wxImageList *arg1 = (wxImageList *) 0 ;
16371 int result;
16372 PyObject * obj0 = 0 ;
16373 char *kwnames[] = {
16374 (char *) "self", NULL
16375 };
16376
16377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 result = (int)(arg1)->GetImageCount();
16383
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 resultobj = SWIG_From_int((int)result);
16388 return resultobj;
16389 fail:
16390 return NULL;
16391 }
16392
16393
16394 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
16395 PyObject *resultobj;
16396 wxImageList *arg1 = (wxImageList *) 0 ;
16397 int arg2 ;
16398 bool result;
16399 PyObject * obj0 = 0 ;
16400 PyObject * obj1 = 0 ;
16401 char *kwnames[] = {
16402 (char *) "self",(char *) "index", NULL
16403 };
16404
16405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16408 arg2 = (int)SWIG_As_int(obj1);
16409 if (PyErr_Occurred()) SWIG_fail;
16410 {
16411 PyThreadState* __tstate = wxPyBeginAllowThreads();
16412 result = (bool)(arg1)->Remove(arg2);
16413
16414 wxPyEndAllowThreads(__tstate);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 }
16417 {
16418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16419 }
16420 return resultobj;
16421 fail:
16422 return NULL;
16423 }
16424
16425
16426 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
16427 PyObject *resultobj;
16428 wxImageList *arg1 = (wxImageList *) 0 ;
16429 bool result;
16430 PyObject * obj0 = 0 ;
16431 char *kwnames[] = {
16432 (char *) "self", NULL
16433 };
16434
16435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 result = (bool)(arg1)->RemoveAll();
16441
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 {
16446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16447 }
16448 return resultobj;
16449 fail:
16450 return NULL;
16451 }
16452
16453
16454 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj;
16456 wxImageList *arg1 = (wxImageList *) 0 ;
16457 int arg2 ;
16458 int *arg3 = 0 ;
16459 int *arg4 = 0 ;
16460 int temp3 ;
16461 int res3 = 0 ;
16462 int temp4 ;
16463 int res4 = 0 ;
16464 PyObject * obj0 = 0 ;
16465 PyObject * obj1 = 0 ;
16466 char *kwnames[] = {
16467 (char *) "self",(char *) "index", NULL
16468 };
16469
16470 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16471 arg4 = &temp4; res4 = SWIG_NEWOBJ;
16472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16475 arg2 = (int)SWIG_As_int(obj1);
16476 if (PyErr_Occurred()) SWIG_fail;
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 (arg1)->GetSize(arg2,*arg3,*arg4);
16480
16481 wxPyEndAllowThreads(__tstate);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 }
16484 Py_INCREF(Py_None); resultobj = Py_None;
16485 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16486 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16487 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16488 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
16489 return resultobj;
16490 fail:
16491 return NULL;
16492 }
16493
16494
16495 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
16496 PyObject *obj;
16497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16498 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16499 Py_INCREF(obj);
16500 return Py_BuildValue((char *)"");
16501 }
16502 static int _wrap_NORMAL_FONT_set(PyObject *) {
16503 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16504 return 1;
16505 }
16506
16507
16508 static PyObject *_wrap_NORMAL_FONT_get() {
16509 PyObject *pyobj;
16510
16511 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16512 return pyobj;
16513 }
16514
16515
16516 static int _wrap_SMALL_FONT_set(PyObject *) {
16517 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16518 return 1;
16519 }
16520
16521
16522 static PyObject *_wrap_SMALL_FONT_get() {
16523 PyObject *pyobj;
16524
16525 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16526 return pyobj;
16527 }
16528
16529
16530 static int _wrap_ITALIC_FONT_set(PyObject *) {
16531 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16532 return 1;
16533 }
16534
16535
16536 static PyObject *_wrap_ITALIC_FONT_get() {
16537 PyObject *pyobj;
16538
16539 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16540 return pyobj;
16541 }
16542
16543
16544 static int _wrap_SWISS_FONT_set(PyObject *) {
16545 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16546 return 1;
16547 }
16548
16549
16550 static PyObject *_wrap_SWISS_FONT_get() {
16551 PyObject *pyobj;
16552
16553 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16554 return pyobj;
16555 }
16556
16557
16558 static int _wrap_RED_PEN_set(PyObject *) {
16559 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16560 return 1;
16561 }
16562
16563
16564 static PyObject *_wrap_RED_PEN_get() {
16565 PyObject *pyobj;
16566
16567 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16568 return pyobj;
16569 }
16570
16571
16572 static int _wrap_CYAN_PEN_set(PyObject *) {
16573 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16574 return 1;
16575 }
16576
16577
16578 static PyObject *_wrap_CYAN_PEN_get() {
16579 PyObject *pyobj;
16580
16581 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16582 return pyobj;
16583 }
16584
16585
16586 static int _wrap_GREEN_PEN_set(PyObject *) {
16587 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16588 return 1;
16589 }
16590
16591
16592 static PyObject *_wrap_GREEN_PEN_get() {
16593 PyObject *pyobj;
16594
16595 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16596 return pyobj;
16597 }
16598
16599
16600 static int _wrap_BLACK_PEN_set(PyObject *) {
16601 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16602 return 1;
16603 }
16604
16605
16606 static PyObject *_wrap_BLACK_PEN_get() {
16607 PyObject *pyobj;
16608
16609 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16610 return pyobj;
16611 }
16612
16613
16614 static int _wrap_WHITE_PEN_set(PyObject *) {
16615 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16616 return 1;
16617 }
16618
16619
16620 static PyObject *_wrap_WHITE_PEN_get() {
16621 PyObject *pyobj;
16622
16623 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16624 return pyobj;
16625 }
16626
16627
16628 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16629 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16630 return 1;
16631 }
16632
16633
16634 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16635 PyObject *pyobj;
16636
16637 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16638 return pyobj;
16639 }
16640
16641
16642 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16643 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16644 return 1;
16645 }
16646
16647
16648 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16649 PyObject *pyobj;
16650
16651 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16652 return pyobj;
16653 }
16654
16655
16656 static int _wrap_GREY_PEN_set(PyObject *) {
16657 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16658 return 1;
16659 }
16660
16661
16662 static PyObject *_wrap_GREY_PEN_get() {
16663 PyObject *pyobj;
16664
16665 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16666 return pyobj;
16667 }
16668
16669
16670 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16671 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16672 return 1;
16673 }
16674
16675
16676 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16677 PyObject *pyobj;
16678
16679 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16680 return pyobj;
16681 }
16682
16683
16684 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16685 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16686 return 1;
16687 }
16688
16689
16690 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16691 PyObject *pyobj;
16692
16693 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16694 return pyobj;
16695 }
16696
16697
16698 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16699 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16700 return 1;
16701 }
16702
16703
16704 static PyObject *_wrap_BLUE_BRUSH_get() {
16705 PyObject *pyobj;
16706
16707 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16708 return pyobj;
16709 }
16710
16711
16712 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16713 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16714 return 1;
16715 }
16716
16717
16718 static PyObject *_wrap_GREEN_BRUSH_get() {
16719 PyObject *pyobj;
16720
16721 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16722 return pyobj;
16723 }
16724
16725
16726 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16727 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16728 return 1;
16729 }
16730
16731
16732 static PyObject *_wrap_WHITE_BRUSH_get() {
16733 PyObject *pyobj;
16734
16735 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16736 return pyobj;
16737 }
16738
16739
16740 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16741 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16742 return 1;
16743 }
16744
16745
16746 static PyObject *_wrap_BLACK_BRUSH_get() {
16747 PyObject *pyobj;
16748
16749 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16750 return pyobj;
16751 }
16752
16753
16754 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16755 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16756 return 1;
16757 }
16758
16759
16760 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16761 PyObject *pyobj;
16762
16763 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16764 return pyobj;
16765 }
16766
16767
16768 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16769 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16770 return 1;
16771 }
16772
16773
16774 static PyObject *_wrap_CYAN_BRUSH_get() {
16775 PyObject *pyobj;
16776
16777 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16778 return pyobj;
16779 }
16780
16781
16782 static int _wrap_RED_BRUSH_set(PyObject *) {
16783 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16784 return 1;
16785 }
16786
16787
16788 static PyObject *_wrap_RED_BRUSH_get() {
16789 PyObject *pyobj;
16790
16791 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16792 return pyobj;
16793 }
16794
16795
16796 static int _wrap_GREY_BRUSH_set(PyObject *) {
16797 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16798 return 1;
16799 }
16800
16801
16802 static PyObject *_wrap_GREY_BRUSH_get() {
16803 PyObject *pyobj;
16804
16805 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16806 return pyobj;
16807 }
16808
16809
16810 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16811 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16812 return 1;
16813 }
16814
16815
16816 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16817 PyObject *pyobj;
16818
16819 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16820 return pyobj;
16821 }
16822
16823
16824 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16825 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16826 return 1;
16827 }
16828
16829
16830 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16831 PyObject *pyobj;
16832
16833 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16834 return pyobj;
16835 }
16836
16837
16838 static int _wrap_BLACK_set(PyObject *) {
16839 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16840 return 1;
16841 }
16842
16843
16844 static PyObject *_wrap_BLACK_get() {
16845 PyObject *pyobj;
16846
16847 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16848 return pyobj;
16849 }
16850
16851
16852 static int _wrap_WHITE_set(PyObject *) {
16853 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16854 return 1;
16855 }
16856
16857
16858 static PyObject *_wrap_WHITE_get() {
16859 PyObject *pyobj;
16860
16861 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16862 return pyobj;
16863 }
16864
16865
16866 static int _wrap_RED_set(PyObject *) {
16867 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16868 return 1;
16869 }
16870
16871
16872 static PyObject *_wrap_RED_get() {
16873 PyObject *pyobj;
16874
16875 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16876 return pyobj;
16877 }
16878
16879
16880 static int _wrap_BLUE_set(PyObject *) {
16881 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16882 return 1;
16883 }
16884
16885
16886 static PyObject *_wrap_BLUE_get() {
16887 PyObject *pyobj;
16888
16889 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16890 return pyobj;
16891 }
16892
16893
16894 static int _wrap_GREEN_set(PyObject *) {
16895 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16896 return 1;
16897 }
16898
16899
16900 static PyObject *_wrap_GREEN_get() {
16901 PyObject *pyobj;
16902
16903 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16904 return pyobj;
16905 }
16906
16907
16908 static int _wrap_CYAN_set(PyObject *) {
16909 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16910 return 1;
16911 }
16912
16913
16914 static PyObject *_wrap_CYAN_get() {
16915 PyObject *pyobj;
16916
16917 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16918 return pyobj;
16919 }
16920
16921
16922 static int _wrap_LIGHT_GREY_set(PyObject *) {
16923 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16924 return 1;
16925 }
16926
16927
16928 static PyObject *_wrap_LIGHT_GREY_get() {
16929 PyObject *pyobj;
16930
16931 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16932 return pyobj;
16933 }
16934
16935
16936 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
16937 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16938 return 1;
16939 }
16940
16941
16942 static PyObject *_wrap_STANDARD_CURSOR_get() {
16943 PyObject *pyobj;
16944
16945 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16946 return pyobj;
16947 }
16948
16949
16950 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
16951 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16952 return 1;
16953 }
16954
16955
16956 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16957 PyObject *pyobj;
16958
16959 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16960 return pyobj;
16961 }
16962
16963
16964 static int _wrap_CROSS_CURSOR_set(PyObject *) {
16965 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16966 return 1;
16967 }
16968
16969
16970 static PyObject *_wrap_CROSS_CURSOR_get() {
16971 PyObject *pyobj;
16972
16973 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16974 return pyobj;
16975 }
16976
16977
16978 static int _wrap_NullBitmap_set(PyObject *) {
16979 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16980 return 1;
16981 }
16982
16983
16984 static PyObject *_wrap_NullBitmap_get() {
16985 PyObject *pyobj;
16986
16987 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16988 return pyobj;
16989 }
16990
16991
16992 static int _wrap_NullIcon_set(PyObject *) {
16993 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16994 return 1;
16995 }
16996
16997
16998 static PyObject *_wrap_NullIcon_get() {
16999 PyObject *pyobj;
17000
17001 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17002 return pyobj;
17003 }
17004
17005
17006 static int _wrap_NullCursor_set(PyObject *) {
17007 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17008 return 1;
17009 }
17010
17011
17012 static PyObject *_wrap_NullCursor_get() {
17013 PyObject *pyobj;
17014
17015 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17016 return pyobj;
17017 }
17018
17019
17020 static int _wrap_NullPen_set(PyObject *) {
17021 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17022 return 1;
17023 }
17024
17025
17026 static PyObject *_wrap_NullPen_get() {
17027 PyObject *pyobj;
17028
17029 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17030 return pyobj;
17031 }
17032
17033
17034 static int _wrap_NullBrush_set(PyObject *) {
17035 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17036 return 1;
17037 }
17038
17039
17040 static PyObject *_wrap_NullBrush_get() {
17041 PyObject *pyobj;
17042
17043 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17044 return pyobj;
17045 }
17046
17047
17048 static int _wrap_NullPalette_set(PyObject *) {
17049 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17050 return 1;
17051 }
17052
17053
17054 static PyObject *_wrap_NullPalette_get() {
17055 PyObject *pyobj;
17056
17057 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17058 return pyobj;
17059 }
17060
17061
17062 static int _wrap_NullFont_set(PyObject *) {
17063 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17064 return 1;
17065 }
17066
17067
17068 static PyObject *_wrap_NullFont_get() {
17069 PyObject *pyobj;
17070
17071 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17072 return pyobj;
17073 }
17074
17075
17076 static int _wrap_NullColour_set(PyObject *) {
17077 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17078 return 1;
17079 }
17080
17081
17082 static PyObject *_wrap_NullColour_get() {
17083 PyObject *pyobj;
17084
17085 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17086 return pyobj;
17087 }
17088
17089
17090 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
17091 PyObject *resultobj;
17092 wxPenList *arg1 = (wxPenList *) 0 ;
17093 wxPen *arg2 = (wxPen *) 0 ;
17094 PyObject * obj0 = 0 ;
17095 PyObject * obj1 = 0 ;
17096 char *kwnames[] = {
17097 (char *) "self",(char *) "pen", NULL
17098 };
17099
17100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17103 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17105 {
17106 PyThreadState* __tstate = wxPyBeginAllowThreads();
17107 (arg1)->AddPen(arg2);
17108
17109 wxPyEndAllowThreads(__tstate);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 Py_INCREF(Py_None); resultobj = Py_None;
17113 return resultobj;
17114 fail:
17115 return NULL;
17116 }
17117
17118
17119 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
17120 PyObject *resultobj;
17121 wxPenList *arg1 = (wxPenList *) 0 ;
17122 wxColour *arg2 = 0 ;
17123 int arg3 ;
17124 int arg4 ;
17125 wxPen *result;
17126 wxColour temp2 ;
17127 PyObject * obj0 = 0 ;
17128 PyObject * obj1 = 0 ;
17129 PyObject * obj2 = 0 ;
17130 PyObject * obj3 = 0 ;
17131 char *kwnames[] = {
17132 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17133 };
17134
17135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17138 {
17139 arg2 = &temp2;
17140 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17141 }
17142 arg3 = (int)SWIG_As_int(obj2);
17143 if (PyErr_Occurred()) SWIG_fail;
17144 arg4 = (int)SWIG_As_int(obj3);
17145 if (PyErr_Occurred()) SWIG_fail;
17146 {
17147 PyThreadState* __tstate = wxPyBeginAllowThreads();
17148 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17149
17150 wxPyEndAllowThreads(__tstate);
17151 if (PyErr_Occurred()) SWIG_fail;
17152 }
17153 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17154 return resultobj;
17155 fail:
17156 return NULL;
17157 }
17158
17159
17160 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
17161 PyObject *resultobj;
17162 wxPenList *arg1 = (wxPenList *) 0 ;
17163 wxPen *arg2 = (wxPen *) 0 ;
17164 PyObject * obj0 = 0 ;
17165 PyObject * obj1 = 0 ;
17166 char *kwnames[] = {
17167 (char *) "self",(char *) "pen", NULL
17168 };
17169
17170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17173 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17175 {
17176 PyThreadState* __tstate = wxPyBeginAllowThreads();
17177 (arg1)->RemovePen(arg2);
17178
17179 wxPyEndAllowThreads(__tstate);
17180 if (PyErr_Occurred()) SWIG_fail;
17181 }
17182 Py_INCREF(Py_None); resultobj = Py_None;
17183 return resultobj;
17184 fail:
17185 return NULL;
17186 }
17187
17188
17189 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17190 PyObject *resultobj;
17191 wxPenList *arg1 = (wxPenList *) 0 ;
17192 int result;
17193 PyObject * obj0 = 0 ;
17194 char *kwnames[] = {
17195 (char *) "self", NULL
17196 };
17197
17198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17201 {
17202 PyThreadState* __tstate = wxPyBeginAllowThreads();
17203 result = (int)(arg1)->GetCount();
17204
17205 wxPyEndAllowThreads(__tstate);
17206 if (PyErr_Occurred()) SWIG_fail;
17207 }
17208 resultobj = SWIG_From_int((int)result);
17209 return resultobj;
17210 fail:
17211 return NULL;
17212 }
17213
17214
17215 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
17216 PyObject *obj;
17217 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17218 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17219 Py_INCREF(obj);
17220 return Py_BuildValue((char *)"");
17221 }
17222 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17223 PyObject *resultobj;
17224 wxBrushList *arg1 = (wxBrushList *) 0 ;
17225 wxBrush *arg2 = (wxBrush *) 0 ;
17226 PyObject * obj0 = 0 ;
17227 PyObject * obj1 = 0 ;
17228 char *kwnames[] = {
17229 (char *) "self",(char *) "brush", NULL
17230 };
17231
17232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 (arg1)->AddBrush(arg2);
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 Py_INCREF(Py_None); resultobj = Py_None;
17245 return resultobj;
17246 fail:
17247 return NULL;
17248 }
17249
17250
17251 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17252 PyObject *resultobj;
17253 wxBrushList *arg1 = (wxBrushList *) 0 ;
17254 wxColour *arg2 = 0 ;
17255 int arg3 ;
17256 wxBrush *result;
17257 wxColour temp2 ;
17258 PyObject * obj0 = 0 ;
17259 PyObject * obj1 = 0 ;
17260 PyObject * obj2 = 0 ;
17261 char *kwnames[] = {
17262 (char *) "self",(char *) "colour",(char *) "style", NULL
17263 };
17264
17265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17268 {
17269 arg2 = &temp2;
17270 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17271 }
17272 arg3 = (int)SWIG_As_int(obj2);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 {
17275 PyThreadState* __tstate = wxPyBeginAllowThreads();
17276 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17277
17278 wxPyEndAllowThreads(__tstate);
17279 if (PyErr_Occurred()) SWIG_fail;
17280 }
17281 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17282 return resultobj;
17283 fail:
17284 return NULL;
17285 }
17286
17287
17288 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17289 PyObject *resultobj;
17290 wxBrushList *arg1 = (wxBrushList *) 0 ;
17291 wxBrush *arg2 = (wxBrush *) 0 ;
17292 PyObject * obj0 = 0 ;
17293 PyObject * obj1 = 0 ;
17294 char *kwnames[] = {
17295 (char *) "self",(char *) "brush", NULL
17296 };
17297
17298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17301 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17303 {
17304 PyThreadState* __tstate = wxPyBeginAllowThreads();
17305 (arg1)->RemoveBrush(arg2);
17306
17307 wxPyEndAllowThreads(__tstate);
17308 if (PyErr_Occurred()) SWIG_fail;
17309 }
17310 Py_INCREF(Py_None); resultobj = Py_None;
17311 return resultobj;
17312 fail:
17313 return NULL;
17314 }
17315
17316
17317 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17318 PyObject *resultobj;
17319 wxBrushList *arg1 = (wxBrushList *) 0 ;
17320 int result;
17321 PyObject * obj0 = 0 ;
17322 char *kwnames[] = {
17323 (char *) "self", NULL
17324 };
17325
17326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17329 {
17330 PyThreadState* __tstate = wxPyBeginAllowThreads();
17331 result = (int)(arg1)->GetCount();
17332
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 resultobj = SWIG_From_int((int)result);
17337 return resultobj;
17338 fail:
17339 return NULL;
17340 }
17341
17342
17343 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
17344 PyObject *obj;
17345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17346 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17347 Py_INCREF(obj);
17348 return Py_BuildValue((char *)"");
17349 }
17350 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17351 PyObject *resultobj;
17352 wxColourDatabase *result;
17353 char *kwnames[] = {
17354 NULL
17355 };
17356
17357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17358 {
17359 if (!wxPyCheckForApp()) SWIG_fail;
17360 PyThreadState* __tstate = wxPyBeginAllowThreads();
17361 result = (wxColourDatabase *)new wxColourDatabase();
17362
17363 wxPyEndAllowThreads(__tstate);
17364 if (PyErr_Occurred()) SWIG_fail;
17365 }
17366 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17367 return resultobj;
17368 fail:
17369 return NULL;
17370 }
17371
17372
17373 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj;
17375 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17376 PyObject * obj0 = 0 ;
17377 char *kwnames[] = {
17378 (char *) "self", NULL
17379 };
17380
17381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17384 {
17385 PyThreadState* __tstate = wxPyBeginAllowThreads();
17386 delete arg1;
17387
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 Py_INCREF(Py_None); resultobj = Py_None;
17392 return resultobj;
17393 fail:
17394 return NULL;
17395 }
17396
17397
17398 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
17399 PyObject *resultobj;
17400 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17401 wxString *arg2 = 0 ;
17402 wxColour result;
17403 bool temp2 = false ;
17404 PyObject * obj0 = 0 ;
17405 PyObject * obj1 = 0 ;
17406 char *kwnames[] = {
17407 (char *) "self",(char *) "name", NULL
17408 };
17409
17410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17413 {
17414 arg2 = wxString_in_helper(obj1);
17415 if (arg2 == NULL) SWIG_fail;
17416 temp2 = true;
17417 }
17418 {
17419 PyThreadState* __tstate = wxPyBeginAllowThreads();
17420 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17421
17422 wxPyEndAllowThreads(__tstate);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 }
17425 {
17426 wxColour * resultptr;
17427 resultptr = new wxColour((wxColour &) result);
17428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17429 }
17430 {
17431 if (temp2)
17432 delete arg2;
17433 }
17434 return resultobj;
17435 fail:
17436 {
17437 if (temp2)
17438 delete arg2;
17439 }
17440 return NULL;
17441 }
17442
17443
17444 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
17445 PyObject *resultobj;
17446 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17447 wxColour *arg2 = 0 ;
17448 wxString result;
17449 wxColour temp2 ;
17450 PyObject * obj0 = 0 ;
17451 PyObject * obj1 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "self",(char *) "colour", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17459 {
17460 arg2 = &temp2;
17461 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17462 }
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17466
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 {
17471 #if wxUSE_UNICODE
17472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17473 #else
17474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17475 #endif
17476 }
17477 return resultobj;
17478 fail:
17479 return NULL;
17480 }
17481
17482
17483 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
17484 PyObject *resultobj;
17485 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17486 wxString *arg2 = 0 ;
17487 wxColour *arg3 = 0 ;
17488 bool temp2 = false ;
17489 wxColour temp3 ;
17490 PyObject * obj0 = 0 ;
17491 PyObject * obj1 = 0 ;
17492 PyObject * obj2 = 0 ;
17493 char *kwnames[] = {
17494 (char *) "self",(char *) "name",(char *) "colour", NULL
17495 };
17496
17497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17500 {
17501 arg2 = wxString_in_helper(obj1);
17502 if (arg2 == NULL) SWIG_fail;
17503 temp2 = true;
17504 }
17505 {
17506 arg3 = &temp3;
17507 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17508 }
17509 {
17510 PyThreadState* __tstate = wxPyBeginAllowThreads();
17511 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17512
17513 wxPyEndAllowThreads(__tstate);
17514 if (PyErr_Occurred()) SWIG_fail;
17515 }
17516 Py_INCREF(Py_None); resultobj = Py_None;
17517 {
17518 if (temp2)
17519 delete arg2;
17520 }
17521 return resultobj;
17522 fail:
17523 {
17524 if (temp2)
17525 delete arg2;
17526 }
17527 return NULL;
17528 }
17529
17530
17531 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
17532 PyObject *resultobj;
17533 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17534 wxString *arg2 = 0 ;
17535 int arg3 ;
17536 int arg4 ;
17537 int arg5 ;
17538 bool temp2 = false ;
17539 PyObject * obj0 = 0 ;
17540 PyObject * obj1 = 0 ;
17541 PyObject * obj2 = 0 ;
17542 PyObject * obj3 = 0 ;
17543 PyObject * obj4 = 0 ;
17544 char *kwnames[] = {
17545 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17546 };
17547
17548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17551 {
17552 arg2 = wxString_in_helper(obj1);
17553 if (arg2 == NULL) SWIG_fail;
17554 temp2 = true;
17555 }
17556 arg3 = (int)SWIG_As_int(obj2);
17557 if (PyErr_Occurred()) SWIG_fail;
17558 arg4 = (int)SWIG_As_int(obj3);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 arg5 = (int)SWIG_As_int(obj4);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 {
17563 PyThreadState* __tstate = wxPyBeginAllowThreads();
17564 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17565
17566 wxPyEndAllowThreads(__tstate);
17567 if (PyErr_Occurred()) SWIG_fail;
17568 }
17569 Py_INCREF(Py_None); resultobj = Py_None;
17570 {
17571 if (temp2)
17572 delete arg2;
17573 }
17574 return resultobj;
17575 fail:
17576 {
17577 if (temp2)
17578 delete arg2;
17579 }
17580 return NULL;
17581 }
17582
17583
17584 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
17585 PyObject *obj;
17586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17587 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17588 Py_INCREF(obj);
17589 return Py_BuildValue((char *)"");
17590 }
17591 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
17592 PyObject *resultobj;
17593 wxFontList *arg1 = (wxFontList *) 0 ;
17594 wxFont *arg2 = (wxFont *) 0 ;
17595 PyObject * obj0 = 0 ;
17596 PyObject * obj1 = 0 ;
17597 char *kwnames[] = {
17598 (char *) "self",(char *) "font", NULL
17599 };
17600
17601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 (arg1)->AddFont(arg2);
17609
17610 wxPyEndAllowThreads(__tstate);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 }
17613 Py_INCREF(Py_None); resultobj = Py_None;
17614 return resultobj;
17615 fail:
17616 return NULL;
17617 }
17618
17619
17620 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
17621 PyObject *resultobj;
17622 wxFontList *arg1 = (wxFontList *) 0 ;
17623 int arg2 ;
17624 int arg3 ;
17625 int arg4 ;
17626 int arg5 ;
17627 bool arg6 = (bool) false ;
17628 wxString const &arg7_defvalue = wxPyEmptyString ;
17629 wxString *arg7 = (wxString *) &arg7_defvalue ;
17630 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17631 wxFont *result;
17632 bool temp7 = false ;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 PyObject * obj2 = 0 ;
17636 PyObject * obj3 = 0 ;
17637 PyObject * obj4 = 0 ;
17638 PyObject * obj5 = 0 ;
17639 PyObject * obj6 = 0 ;
17640 PyObject * obj7 = 0 ;
17641 char *kwnames[] = {
17642 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17643 };
17644
17645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17648 arg2 = (int)SWIG_As_int(obj1);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 arg3 = (int)SWIG_As_int(obj2);
17651 if (PyErr_Occurred()) SWIG_fail;
17652 arg4 = (int)SWIG_As_int(obj3);
17653 if (PyErr_Occurred()) SWIG_fail;
17654 arg5 = (int)SWIG_As_int(obj4);
17655 if (PyErr_Occurred()) SWIG_fail;
17656 if (obj5) {
17657 arg6 = (bool)SWIG_As_bool(obj5);
17658 if (PyErr_Occurred()) SWIG_fail;
17659 }
17660 if (obj6) {
17661 {
17662 arg7 = wxString_in_helper(obj6);
17663 if (arg7 == NULL) SWIG_fail;
17664 temp7 = true;
17665 }
17666 }
17667 if (obj7) {
17668 arg8 = (int)SWIG_As_int(obj7);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
17671 {
17672 PyThreadState* __tstate = wxPyBeginAllowThreads();
17673 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17674
17675 wxPyEndAllowThreads(__tstate);
17676 if (PyErr_Occurred()) SWIG_fail;
17677 }
17678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17679 {
17680 if (temp7)
17681 delete arg7;
17682 }
17683 return resultobj;
17684 fail:
17685 {
17686 if (temp7)
17687 delete arg7;
17688 }
17689 return NULL;
17690 }
17691
17692
17693 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
17694 PyObject *resultobj;
17695 wxFontList *arg1 = (wxFontList *) 0 ;
17696 wxFont *arg2 = (wxFont *) 0 ;
17697 PyObject * obj0 = 0 ;
17698 PyObject * obj1 = 0 ;
17699 char *kwnames[] = {
17700 (char *) "self",(char *) "font", NULL
17701 };
17702
17703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17706 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17708 {
17709 PyThreadState* __tstate = wxPyBeginAllowThreads();
17710 (arg1)->RemoveFont(arg2);
17711
17712 wxPyEndAllowThreads(__tstate);
17713 if (PyErr_Occurred()) SWIG_fail;
17714 }
17715 Py_INCREF(Py_None); resultobj = Py_None;
17716 return resultobj;
17717 fail:
17718 return NULL;
17719 }
17720
17721
17722 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17723 PyObject *resultobj;
17724 wxFontList *arg1 = (wxFontList *) 0 ;
17725 int result;
17726 PyObject * obj0 = 0 ;
17727 char *kwnames[] = {
17728 (char *) "self", NULL
17729 };
17730
17731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17734 {
17735 PyThreadState* __tstate = wxPyBeginAllowThreads();
17736 result = (int)(arg1)->GetCount();
17737
17738 wxPyEndAllowThreads(__tstate);
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 resultobj = SWIG_From_int((int)result);
17742 return resultobj;
17743 fail:
17744 return NULL;
17745 }
17746
17747
17748 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
17749 PyObject *obj;
17750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17751 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17752 Py_INCREF(obj);
17753 return Py_BuildValue((char *)"");
17754 }
17755 static int _wrap_TheFontList_set(PyObject *) {
17756 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17757 return 1;
17758 }
17759
17760
17761 static PyObject *_wrap_TheFontList_get() {
17762 PyObject *pyobj;
17763
17764 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17765 return pyobj;
17766 }
17767
17768
17769 static int _wrap_ThePenList_set(PyObject *) {
17770 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17771 return 1;
17772 }
17773
17774
17775 static PyObject *_wrap_ThePenList_get() {
17776 PyObject *pyobj;
17777
17778 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17779 return pyobj;
17780 }
17781
17782
17783 static int _wrap_TheBrushList_set(PyObject *) {
17784 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17785 return 1;
17786 }
17787
17788
17789 static PyObject *_wrap_TheBrushList_get() {
17790 PyObject *pyobj;
17791
17792 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17793 return pyobj;
17794 }
17795
17796
17797 static int _wrap_TheColourDatabase_set(PyObject *) {
17798 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17799 return 1;
17800 }
17801
17802
17803 static PyObject *_wrap_TheColourDatabase_get() {
17804 PyObject *pyobj;
17805
17806 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17807 return pyobj;
17808 }
17809
17810
17811 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
17812 PyObject *resultobj;
17813 wxEffects *result;
17814 char *kwnames[] = {
17815 NULL
17816 };
17817
17818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17819 {
17820 PyThreadState* __tstate = wxPyBeginAllowThreads();
17821 result = (wxEffects *)new wxEffects();
17822
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17827 return resultobj;
17828 fail:
17829 return NULL;
17830 }
17831
17832
17833 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj;
17835 wxEffects *arg1 = (wxEffects *) 0 ;
17836 wxColour result;
17837 PyObject * obj0 = 0 ;
17838 char *kwnames[] = {
17839 (char *) "self", NULL
17840 };
17841
17842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 result = ((wxEffects const *)arg1)->GetHighlightColour();
17848
17849 wxPyEndAllowThreads(__tstate);
17850 if (PyErr_Occurred()) SWIG_fail;
17851 }
17852 {
17853 wxColour * resultptr;
17854 resultptr = new wxColour((wxColour &) result);
17855 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17856 }
17857 return resultobj;
17858 fail:
17859 return NULL;
17860 }
17861
17862
17863 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17864 PyObject *resultobj;
17865 wxEffects *arg1 = (wxEffects *) 0 ;
17866 wxColour result;
17867 PyObject * obj0 = 0 ;
17868 char *kwnames[] = {
17869 (char *) "self", NULL
17870 };
17871
17872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17875 {
17876 PyThreadState* __tstate = wxPyBeginAllowThreads();
17877 result = ((wxEffects const *)arg1)->GetLightShadow();
17878
17879 wxPyEndAllowThreads(__tstate);
17880 if (PyErr_Occurred()) SWIG_fail;
17881 }
17882 {
17883 wxColour * resultptr;
17884 resultptr = new wxColour((wxColour &) result);
17885 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17886 }
17887 return resultobj;
17888 fail:
17889 return NULL;
17890 }
17891
17892
17893 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
17894 PyObject *resultobj;
17895 wxEffects *arg1 = (wxEffects *) 0 ;
17896 wxColour result;
17897 PyObject * obj0 = 0 ;
17898 char *kwnames[] = {
17899 (char *) "self", NULL
17900 };
17901
17902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17905 {
17906 PyThreadState* __tstate = wxPyBeginAllowThreads();
17907 result = ((wxEffects const *)arg1)->GetFaceColour();
17908
17909 wxPyEndAllowThreads(__tstate);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 }
17912 {
17913 wxColour * resultptr;
17914 resultptr = new wxColour((wxColour &) result);
17915 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17916 }
17917 return resultobj;
17918 fail:
17919 return NULL;
17920 }
17921
17922
17923 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17924 PyObject *resultobj;
17925 wxEffects *arg1 = (wxEffects *) 0 ;
17926 wxColour result;
17927 PyObject * obj0 = 0 ;
17928 char *kwnames[] = {
17929 (char *) "self", NULL
17930 };
17931
17932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17935 {
17936 PyThreadState* __tstate = wxPyBeginAllowThreads();
17937 result = ((wxEffects const *)arg1)->GetMediumShadow();
17938
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 {
17943 wxColour * resultptr;
17944 resultptr = new wxColour((wxColour &) result);
17945 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17946 }
17947 return resultobj;
17948 fail:
17949 return NULL;
17950 }
17951
17952
17953 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17954 PyObject *resultobj;
17955 wxEffects *arg1 = (wxEffects *) 0 ;
17956 wxColour result;
17957 PyObject * obj0 = 0 ;
17958 char *kwnames[] = {
17959 (char *) "self", NULL
17960 };
17961
17962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17965 {
17966 PyThreadState* __tstate = wxPyBeginAllowThreads();
17967 result = ((wxEffects const *)arg1)->GetDarkShadow();
17968
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 {
17973 wxColour * resultptr;
17974 resultptr = new wxColour((wxColour &) result);
17975 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17976 }
17977 return resultobj;
17978 fail:
17979 return NULL;
17980 }
17981
17982
17983 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
17984 PyObject *resultobj;
17985 wxEffects *arg1 = (wxEffects *) 0 ;
17986 wxColour *arg2 = 0 ;
17987 wxColour temp2 ;
17988 PyObject * obj0 = 0 ;
17989 PyObject * obj1 = 0 ;
17990 char *kwnames[] = {
17991 (char *) "self",(char *) "c", NULL
17992 };
17993
17994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17997 {
17998 arg2 = &temp2;
17999 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18000 }
18001 {
18002 PyThreadState* __tstate = wxPyBeginAllowThreads();
18003 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18004
18005 wxPyEndAllowThreads(__tstate);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 }
18008 Py_INCREF(Py_None); resultobj = Py_None;
18009 return resultobj;
18010 fail:
18011 return NULL;
18012 }
18013
18014
18015 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18016 PyObject *resultobj;
18017 wxEffects *arg1 = (wxEffects *) 0 ;
18018 wxColour *arg2 = 0 ;
18019 wxColour temp2 ;
18020 PyObject * obj0 = 0 ;
18021 PyObject * obj1 = 0 ;
18022 char *kwnames[] = {
18023 (char *) "self",(char *) "c", NULL
18024 };
18025
18026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18029 {
18030 arg2 = &temp2;
18031 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18032 }
18033 {
18034 PyThreadState* __tstate = wxPyBeginAllowThreads();
18035 (arg1)->SetLightShadow((wxColour const &)*arg2);
18036
18037 wxPyEndAllowThreads(__tstate);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 Py_INCREF(Py_None); resultobj = Py_None;
18041 return resultobj;
18042 fail:
18043 return NULL;
18044 }
18045
18046
18047 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj;
18049 wxEffects *arg1 = (wxEffects *) 0 ;
18050 wxColour *arg2 = 0 ;
18051 wxColour temp2 ;
18052 PyObject * obj0 = 0 ;
18053 PyObject * obj1 = 0 ;
18054 char *kwnames[] = {
18055 (char *) "self",(char *) "c", NULL
18056 };
18057
18058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18061 {
18062 arg2 = &temp2;
18063 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18064 }
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 (arg1)->SetFaceColour((wxColour const &)*arg2);
18068
18069 wxPyEndAllowThreads(__tstate);
18070 if (PyErr_Occurred()) SWIG_fail;
18071 }
18072 Py_INCREF(Py_None); resultobj = Py_None;
18073 return resultobj;
18074 fail:
18075 return NULL;
18076 }
18077
18078
18079 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18080 PyObject *resultobj;
18081 wxEffects *arg1 = (wxEffects *) 0 ;
18082 wxColour *arg2 = 0 ;
18083 wxColour temp2 ;
18084 PyObject * obj0 = 0 ;
18085 PyObject * obj1 = 0 ;
18086 char *kwnames[] = {
18087 (char *) "self",(char *) "c", NULL
18088 };
18089
18090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18093 {
18094 arg2 = &temp2;
18095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18096 }
18097 {
18098 PyThreadState* __tstate = wxPyBeginAllowThreads();
18099 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18100
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 Py_INCREF(Py_None); resultobj = Py_None;
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj;
18113 wxEffects *arg1 = (wxEffects *) 0 ;
18114 wxColour *arg2 = 0 ;
18115 wxColour temp2 ;
18116 PyObject * obj0 = 0 ;
18117 PyObject * obj1 = 0 ;
18118 char *kwnames[] = {
18119 (char *) "self",(char *) "c", NULL
18120 };
18121
18122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18125 {
18126 arg2 = &temp2;
18127 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18128 }
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18132
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 Py_INCREF(Py_None); resultobj = Py_None;
18137 return resultobj;
18138 fail:
18139 return NULL;
18140 }
18141
18142
18143 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18144 PyObject *resultobj;
18145 wxEffects *arg1 = (wxEffects *) 0 ;
18146 wxColour *arg2 = 0 ;
18147 wxColour *arg3 = 0 ;
18148 wxColour *arg4 = 0 ;
18149 wxColour *arg5 = 0 ;
18150 wxColour *arg6 = 0 ;
18151 wxColour temp2 ;
18152 wxColour temp3 ;
18153 wxColour temp4 ;
18154 wxColour temp5 ;
18155 wxColour temp6 ;
18156 PyObject * obj0 = 0 ;
18157 PyObject * obj1 = 0 ;
18158 PyObject * obj2 = 0 ;
18159 PyObject * obj3 = 0 ;
18160 PyObject * obj4 = 0 ;
18161 PyObject * obj5 = 0 ;
18162 char *kwnames[] = {
18163 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18164 };
18165
18166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18169 {
18170 arg2 = &temp2;
18171 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18172 }
18173 {
18174 arg3 = &temp3;
18175 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18176 }
18177 {
18178 arg4 = &temp4;
18179 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18180 }
18181 {
18182 arg5 = &temp5;
18183 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18184 }
18185 {
18186 arg6 = &temp6;
18187 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18188 }
18189 {
18190 PyThreadState* __tstate = wxPyBeginAllowThreads();
18191 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18192
18193 wxPyEndAllowThreads(__tstate);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 }
18196 Py_INCREF(Py_None); resultobj = Py_None;
18197 return resultobj;
18198 fail:
18199 return NULL;
18200 }
18201
18202
18203 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
18204 PyObject *resultobj;
18205 wxEffects *arg1 = (wxEffects *) 0 ;
18206 wxDC *arg2 = 0 ;
18207 wxRect *arg3 = 0 ;
18208 int arg4 = (int) 1 ;
18209 wxRect temp3 ;
18210 PyObject * obj0 = 0 ;
18211 PyObject * obj1 = 0 ;
18212 PyObject * obj2 = 0 ;
18213 PyObject * obj3 = 0 ;
18214 char *kwnames[] = {
18215 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18216 };
18217
18218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18222 SWIG_POINTER_EXCEPTION | 0)) == -1)
18223 SWIG_fail;
18224 if (arg2 == NULL) {
18225 PyErr_SetString(PyExc_TypeError,"null reference");
18226 SWIG_fail;
18227 }
18228 {
18229 arg3 = &temp3;
18230 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18231 }
18232 if (obj3) {
18233 arg4 = (int)SWIG_As_int(obj3);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 }
18236 {
18237 PyThreadState* __tstate = wxPyBeginAllowThreads();
18238 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18239
18240 wxPyEndAllowThreads(__tstate);
18241 if (PyErr_Occurred()) SWIG_fail;
18242 }
18243 Py_INCREF(Py_None); resultobj = Py_None;
18244 return resultobj;
18245 fail:
18246 return NULL;
18247 }
18248
18249
18250 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18251 PyObject *resultobj;
18252 wxEffects *arg1 = (wxEffects *) 0 ;
18253 wxRect *arg2 = 0 ;
18254 wxDC *arg3 = 0 ;
18255 wxBitmap *arg4 = 0 ;
18256 bool result;
18257 wxRect temp2 ;
18258 PyObject * obj0 = 0 ;
18259 PyObject * obj1 = 0 ;
18260 PyObject * obj2 = 0 ;
18261 PyObject * obj3 = 0 ;
18262 char *kwnames[] = {
18263 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18264 };
18265
18266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18269 {
18270 arg2 = &temp2;
18271 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18272 }
18273 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18274 SWIG_POINTER_EXCEPTION | 0)) == -1)
18275 SWIG_fail;
18276 if (arg3 == NULL) {
18277 PyErr_SetString(PyExc_TypeError,"null reference");
18278 SWIG_fail;
18279 }
18280 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18281 SWIG_POINTER_EXCEPTION | 0)) == -1)
18282 SWIG_fail;
18283 if (arg4 == NULL) {
18284 PyErr_SetString(PyExc_TypeError,"null reference");
18285 SWIG_fail;
18286 }
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18290
18291 wxPyEndAllowThreads(__tstate);
18292 if (PyErr_Occurred()) SWIG_fail;
18293 }
18294 {
18295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18296 }
18297 return resultobj;
18298 fail:
18299 return NULL;
18300 }
18301
18302
18303 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
18304 PyObject *obj;
18305 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18306 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18307 Py_INCREF(obj);
18308 return Py_BuildValue((char *)"");
18309 }
18310 static PyMethodDef SwigMethods[] = {
18311 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18312 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18313 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18314 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18315 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18316 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18317 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18318 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18319 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18320 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18321 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18322 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18323 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18324 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18325 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18326 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18327 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18328 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18329 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18330 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18331 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18332 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18333 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18334 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18335 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18336 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18337 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18338 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18339 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18340 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18341 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18342 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18343 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18344 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18345 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18346 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18347 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18348 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18349 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18350 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18351 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18352 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18353 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18354 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18355 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18356 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL },
18357 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18358 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18359 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18360 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18361 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18362 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18363 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18364 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18365 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18366 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18367 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18368 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18369 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18370 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18371 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18372 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18373 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18374 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18375 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18376 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18377 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18378 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18379 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18380 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18381 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18382 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18383 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18384 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18385 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18386 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18387 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18388 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18389 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18390 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18391 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18392 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18393 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18394 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18395 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18396 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18397 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18398 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18399 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18400 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18401 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18402 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18403 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18404 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18405 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18406 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18407 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18408 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18409 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18410 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18411 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18412 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18413 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18414 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18415 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18416 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18417 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18418 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18419 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18420 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18421 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18422 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18423 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18424 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18425 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18426 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18427 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18428 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18429 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18430 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18431 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18432 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18433 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18434 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18435 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18436 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18437 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18438 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18439 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18440 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18441 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18442 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18443 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
18444 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18445 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18446 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18447 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18448 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18449 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18450 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18451 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18452 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18453 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18454 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18455 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18456 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18457 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18458 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18459 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18460 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18461 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18462 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18463 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18464 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18465 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18466 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18467 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18468 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18469 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18470 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18471 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18472 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18473 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18474 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18475 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18476 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18477 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18478 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18479 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18480 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18481 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18482 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18483 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18484 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18485 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18486 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18487 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18488 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18489 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18490 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18491 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18492 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18493 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18494 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18495 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18496 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18497 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18498 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18499 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18500 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18501 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18502 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18503 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18504 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18505 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18506 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18507 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18508 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18509 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18510 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18511 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18512 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18513 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18514 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18515 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18516 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18517 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18518 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18519 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18520 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18521 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18522 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18523 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18524 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18525 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18526 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18527 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18528 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18529 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18530 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18531 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18532 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18533 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18534 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18535 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18536 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18537 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
18538 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18539 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18540 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18541 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18542 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18543 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18544 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18545 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18546 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18547 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18548 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18549 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18550 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18551 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18552 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18553 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18554 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18555 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18556 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18557 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18558 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18559 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18560 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18561 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18562 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18563 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18564 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18565 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18566 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18567 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18568 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18569 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
18570 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18571 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18572 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18573 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18574 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18575 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18576 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18577 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
18578 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
18579 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
18580 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
18581 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
18582 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
18583 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
18584 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
18585 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18586 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18587 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
18588 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
18589 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18590 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18591 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18592 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18593 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18594 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18595 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
18596 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
18597 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
18598 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
18599 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
18600 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18601 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
18602 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18603 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18604 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
18605 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
18606 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
18607 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18608 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
18609 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18610 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18611 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18612 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
18613 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18614 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18615 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
18616 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
18617 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
18618 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18619 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18620 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
18621 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18622 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18623 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18624 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
18625 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18626 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
18627 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18628 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
18629 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18630 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
18631 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
18632 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
18633 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18634 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18635 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18636 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18637 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18638 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18639 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18640 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18641 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18642 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
18643 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18644 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
18645 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
18646 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18647 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18648 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18649 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18650 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18651 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
18652 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18653 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
18654 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18655 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
18656 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18657 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18658 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18659 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18660 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18661 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
18662 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
18663 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18664 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18665 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
18666 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18667 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18668 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18669 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
18670 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
18671 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18672 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18673 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18674 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18675 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18676 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
18677 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18678 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18679 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18680 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18681 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18682 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18683 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18684 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18685 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
18686 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18687 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18688 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
18689 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18690 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
18691 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
18692 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18693 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18694 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
18695 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
18696 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18697 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18698 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18699 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18700 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18701 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
18702 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18703 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18704 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18705 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18706 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18707 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18708 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18709 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18710 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18711 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18712 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18713 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18714 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18715 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18716 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18717 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18718 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18719 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18720 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18721 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18722 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18723 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18724 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18725 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18726 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
18727 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18728 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18729 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18730 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18731 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18732 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18733 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18734 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
18735 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
18736 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
18737 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
18738 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18739 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
18740 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
18741 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
18742 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
18743 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
18744 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
18745 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
18746 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
18747 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
18748 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
18749 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
18750 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
18751 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
18752 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
18753 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
18754 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18755 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
18756 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
18757 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
18758 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18759 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18760 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
18761 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
18762 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
18763 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18764 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
18765 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
18766 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
18767 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
18768 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
18769 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
18770 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18771 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18772 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18773 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18774 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
18775 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18776 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
18777 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
18778 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
18779 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
18780 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
18781 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18782 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18783 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
18784 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
18785 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18786 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
18787 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
18788 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
18789 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
18790 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
18791 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18792 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
18793 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
18794 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
18795 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
18796 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18797 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
18798 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18799 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18800 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18801 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18802 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
18803 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18804 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18805 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
18806 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
18807 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
18808 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
18809 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
18810 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
18811 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
18812 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
18813 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18814 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
18815 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
18816 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18817 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18818 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18819 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18820 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18821 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18822 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18823 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18824 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18825 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18826 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18827 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
18828 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18829 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
18830 { NULL, NULL, 0, NULL }
18831 };
18832
18833
18834 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18835
18836 static void *_p_wxControlTo_p_wxWindow(void *x) {
18837 return (void *)((wxWindow *) ((wxControl *) x));
18838 }
18839 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18840 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18841 }
18842 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18843 return (void *)((wxWindow *) ((wxMenuBar *) x));
18844 }
18845 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18846 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18847 }
18848 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18849 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18850 }
18851 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18852 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18853 }
18854 static void *_p_wxPenTo_p_wxObject(void *x) {
18855 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18856 }
18857 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18858 return (void *)((wxObject *) ((wxRegionIterator *) x));
18859 }
18860 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18861 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18862 }
18863 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18864 return (void *)((wxObject *) ((wxSizerItem *) x));
18865 }
18866 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18867 return (void *)((wxObject *) ((wxColourDatabase *) x));
18868 }
18869 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18870 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18871 }
18872 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18873 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18874 }
18875 static void *_p_wxIconTo_p_wxObject(void *x) {
18876 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18877 }
18878 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18879 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18880 }
18881 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18882 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18883 }
18884 static void *_p_wxSizerTo_p_wxObject(void *x) {
18885 return (void *)((wxObject *) ((wxSizer *) x));
18886 }
18887 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18888 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18889 }
18890 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18891 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18892 }
18893 static void *_p_wxPenListTo_p_wxObject(void *x) {
18894 return (void *)((wxObject *) ((wxPenList *) x));
18895 }
18896 static void *_p_wxEventTo_p_wxObject(void *x) {
18897 return (void *)((wxObject *) ((wxEvent *) x));
18898 }
18899 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18900 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18901 }
18902 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18903 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18904 }
18905 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18906 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18907 }
18908 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18909 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18910 }
18911 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18912 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18913 }
18914 static void *_p_wxDCTo_p_wxObject(void *x) {
18915 return (void *)((wxObject *) ((wxDC *) x));
18916 }
18917 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18918 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18919 }
18920 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18921 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18922 }
18923 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18924 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18925 }
18926 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18927 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18928 }
18929 static void *_p_wxControlTo_p_wxObject(void *x) {
18930 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18931 }
18932 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18933 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18934 }
18935 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18936 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18937 }
18938 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18939 return (void *)((wxObject *) ((wxFSFile *) x));
18940 }
18941 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18942 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18943 }
18944 static void *_p_wxRegionTo_p_wxObject(void *x) {
18945 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18946 }
18947 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18948 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18949 }
18950 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18951 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18952 }
18953 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18954 return (void *)((wxObject *) ((wxGDIObject *) x));
18955 }
18956 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18957 return (void *)((wxObject *) ((wxEffects *) x));
18958 }
18959 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18960 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18961 }
18962 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18963 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18964 }
18965 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18966 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18967 }
18968 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18969 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18970 }
18971 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18972 return (void *)((wxObject *) ((wxMenuItem *) x));
18973 }
18974 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18975 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18976 }
18977 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18978 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18979 }
18980 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18981 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18982 }
18983 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18984 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18985 }
18986 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18987 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18988 }
18989 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18990 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18991 }
18992 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18993 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18994 }
18995 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18996 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18997 }
18998 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18999 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19000 }
19001 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19002 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19003 }
19004 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19005 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19006 }
19007 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19008 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19009 }
19010 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19011 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19012 }
19013 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19014 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19015 }
19016 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19017 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19018 }
19019 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19020 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19021 }
19022 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19023 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19024 }
19025 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19026 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19027 }
19028 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19029 return (void *)((wxObject *) ((wxImageHandler *) x));
19030 }
19031 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19032 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19033 }
19034 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19035 return (void *)((wxObject *) ((wxEvtHandler *) x));
19036 }
19037 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19038 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19039 }
19040 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19041 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19042 }
19043 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19044 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19045 }
19046 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19047 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19048 }
19049 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19050 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19051 }
19052 static void *_p_wxImageTo_p_wxObject(void *x) {
19053 return (void *)((wxObject *) ((wxImage *) x));
19054 }
19055 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19056 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19057 }
19058 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19059 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19060 }
19061 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19062 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19063 }
19064 static void *_p_wxImageListTo_p_wxObject(void *x) {
19065 return (void *)((wxObject *) ((wxImageList *) x));
19066 }
19067 static void *_p_wxCursorTo_p_wxObject(void *x) {
19068 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19069 }
19070 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19071 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19072 }
19073 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19074 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19075 }
19076 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19077 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19078 }
19079 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19080 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19081 }
19082 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19083 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19084 }
19085 static void *_p_wxWindowTo_p_wxObject(void *x) {
19086 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19087 }
19088 static void *_p_wxMenuTo_p_wxObject(void *x) {
19089 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19090 }
19091 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19092 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19093 }
19094 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19095 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19096 }
19097 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19098 return (void *)((wxObject *) ((wxBrushList *) x));
19099 }
19100 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19101 return (void *)((wxObject *) ((wxFileSystem *) x));
19102 }
19103 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19104 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19105 }
19106 static void *_p_wxMaskTo_p_wxObject(void *x) {
19107 return (void *)((wxObject *) ((wxMask *) x));
19108 }
19109 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19111 }
19112 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19113 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19114 }
19115 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19116 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19117 }
19118 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19119 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19120 }
19121 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19122 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19123 }
19124 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19125 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19126 }
19127 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19128 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19129 }
19130 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19131 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19132 }
19133 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19134 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19135 }
19136 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19137 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19138 }
19139 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19140 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19141 }
19142 static void *_p_wxFontTo_p_wxObject(void *x) {
19143 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19144 }
19145 static void *_p_wxBrushTo_p_wxObject(void *x) {
19146 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19147 }
19148 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19149 return (void *)((wxObject *) ((wxMetaFile *) x));
19150 }
19151 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19152 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19153 }
19154 static void *_p_wxColourTo_p_wxObject(void *x) {
19155 return (void *)((wxObject *) ((wxColour *) x));
19156 }
19157 static void *_p_wxFontListTo_p_wxObject(void *x) {
19158 return (void *)((wxObject *) ((wxFontList *) x));
19159 }
19160 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19161 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19162 }
19163 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19164 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19165 }
19166 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19167 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19168 }
19169 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19170 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19171 }
19172 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19173 return (void *)((wxDC *) ((wxScreenDC *) x));
19174 }
19175 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19176 return (void *)((wxDC *) ((wxMirrorDC *) x));
19177 }
19178 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19179 return (void *)((wxDC *) ((wxMemoryDC *) x));
19180 }
19181 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19182 return (void *)((wxDC *) ((wxWindowDC *) x));
19183 }
19184 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19185 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19186 }
19187 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19188 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19189 }
19190 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19191 return (void *)((wxDC *) ((wxClientDC *) x));
19192 }
19193 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19194 return (void *)((wxDC *) ((wxPaintDC *) x));
19195 }
19196 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19197 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19198 }
19199 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19200 return (void *)((wxDC *) ((wxPrinterDC *) x));
19201 }
19202 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19203 return (void *)((wxGDIObject *) ((wxIcon *) x));
19204 }
19205 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19206 return (void *)((wxGDIObject *) ((wxPalette *) x));
19207 }
19208 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19209 return (void *)((wxGDIObject *) ((wxPen *) x));
19210 }
19211 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19212 return (void *)((wxGDIObject *) ((wxFont *) x));
19213 }
19214 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19215 return (void *)((wxGDIObject *) ((wxCursor *) x));
19216 }
19217 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19218 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19219 }
19220 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19221 return (void *)((wxGDIObject *) ((wxRegion *) x));
19222 }
19223 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19224 return (void *)((wxGDIObject *) ((wxBrush *) x));
19225 }
19226 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}};
19227 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}};
19228 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}};
19229 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}};
19230 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}};
19231 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}};
19232 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}};
19233 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}};
19234 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}};
19235 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}};
19236 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}};
19237 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}};
19238 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}};
19239 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}};
19240 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}};
19241 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}};
19242 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}};
19243 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}};
19244 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}};
19245 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}};
19246 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}};
19247 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}};
19248 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}};
19249 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}};
19250 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}};
19251 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}};
19252 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}};
19253 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}};
19254 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}};
19255 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}};
19256 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}};
19257 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}};
19258 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}};
19259 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}};
19260 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}};
19261 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}};
19262 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}};
19263 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}};
19264 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}};
19265 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}};
19266 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}};
19267 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}};
19268 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}};
19269 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}};
19270 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}};
19271 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}};
19272 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}};
19273 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}};
19274 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}};
19275 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}};
19276 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}};
19277 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}};
19278 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}};
19279 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}};
19280 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}};
19281
19282 static swig_type_info *swig_types_initial[] = {
19283 _swigt__p_wxPostScriptDC,
19284 _swigt__p_wxBrush,
19285 _swigt__p_wxColour,
19286 _swigt__p_wxDC,
19287 _swigt__p_wxMirrorDC,
19288 _swigt__p_byte,
19289 _swigt__p_wxPyFontEnumerator,
19290 _swigt__p_char,
19291 _swigt__p_wxIconLocation,
19292 _swigt__p_wxImage,
19293 _swigt__p_wxMetaFileDC,
19294 _swigt__p_wxMask,
19295 _swigt__p_wxSize,
19296 _swigt__p_wxFont,
19297 _swigt__p_wxWindow,
19298 _swigt__p_double,
19299 _swigt__p_wxMemoryDC,
19300 _swigt__p_wxFontMapper,
19301 _swigt__p_wxEffects,
19302 _swigt__p_wxNativeEncodingInfo,
19303 _swigt__p_wxPalette,
19304 _swigt__p_wxBitmap,
19305 _swigt__p_wxObject,
19306 _swigt__p_wxRegionIterator,
19307 _swigt__p_wxRect,
19308 _swigt__p_wxString,
19309 _swigt__p_wxPrinterDC,
19310 _swigt__p_wxIconBundle,
19311 _swigt__p_wxPoint,
19312 _swigt__p_wxDash,
19313 _swigt__p_wxScreenDC,
19314 _swigt__p_wxCursor,
19315 _swigt__p_wxClientDC,
19316 _swigt__p_wxBufferedDC,
19317 _swigt__p_wxImageList,
19318 _swigt__p_unsigned_char,
19319 _swigt__p_wxGDIObject,
19320 _swigt__p_wxIcon,
19321 _swigt__p_wxLocale,
19322 _swigt__p_wxRegion,
19323 _swigt__p_wxLanguageInfo,
19324 _swigt__p_wxConfigBase,
19325 _swigt__p_wxWindowDC,
19326 _swigt__p_wxPrintData,
19327 _swigt__p_wxBrushList,
19328 _swigt__p_wxFontList,
19329 _swigt__p_wxPen,
19330 _swigt__p_wxBufferedPaintDC,
19331 _swigt__p_wxPaintDC,
19332 _swigt__p_wxPenList,
19333 _swigt__p_int,
19334 _swigt__p_wxMetaFile,
19335 _swigt__p_wxNativeFontInfo,
19336 _swigt__p_wxEncodingConverter,
19337 _swigt__p_wxColourDatabase,
19338 0
19339 };
19340
19341
19342 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19343
19344 static swig_const_info swig_const_table[] = {
19345 {0, 0, 0, 0.0, 0, 0}};
19346
19347 #ifdef __cplusplus
19348 }
19349 #endif
19350
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 SWIGEXPORT(void) SWIG_init(void) {
19355 static PyObject *SWIG_globals = 0;
19356 static int typeinit = 0;
19357 PyObject *m, *d;
19358 int i;
19359 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19360 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19361 d = PyModule_GetDict(m);
19362
19363 if (!typeinit) {
19364 for (i = 0; swig_types_initial[i]; i++) {
19365 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19366 }
19367 typeinit = 1;
19368 }
19369 SWIG_InstallConstants(d,swig_const_table);
19370
19371 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
19372 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
19373 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
19374 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
19375 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
19376 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
19377 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
19378 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
19379 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
19380 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
19381 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
19382 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
19383 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
19384 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
19385 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
19386 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
19387 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
19388 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
19389 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
19390 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
19391 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
19392 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
19393 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
19394 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
19395 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
19396 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
19397 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
19398 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
19399 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
19400 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
19401 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
19402 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
19403 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
19404 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
19405 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
19406 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
19407 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
19408 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
19409 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
19410 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
19411 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
19412 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
19413 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
19414 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
19415 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
19416 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
19417 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
19418 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
19419 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
19420 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
19421 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
19422 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
19423 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
19424 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
19425 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
19426 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
19427 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
19428 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
19429 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
19430 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
19431 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
19432 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
19433 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
19434 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
19435 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
19436 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
19437 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
19438 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
19439 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
19440 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
19441 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
19442 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
19443 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
19444 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
19445 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
19446 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
19447 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
19448 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
19449 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
19450 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
19451 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
19452 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
19453 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
19454 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
19455 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
19456 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
19457 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
19458 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
19459 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
19460 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
19461 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
19462 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
19463 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
19464 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
19465 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
19466 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
19467 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
19468 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
19469 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
19470 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
19471 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
19472 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
19473 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
19474 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
19475 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
19476 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
19477 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
19478 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
19479 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
19480 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
19481 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
19482 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
19483 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
19484 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
19485 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
19486 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
19487 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
19488 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
19489 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
19490 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
19491 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
19492 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
19493 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
19494 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
19495 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
19496 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
19497 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
19498
19499 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19500
19501 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
19502 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
19503 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
19504 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
19505 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
19506 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
19507 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
19508 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
19509 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
19510 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
19511 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
19512 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
19513 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
19514 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
19515 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
19516 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
19517 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
19518 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
19519 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
19520 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19521 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
19522 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
19523 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
19524 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
19525 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
19526 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
19527 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
19528 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
19529 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
19530 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
19531 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
19532 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
19533 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
19534 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
19535 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
19536 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
19537 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
19538 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
19539 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
19540 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
19541 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
19542 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
19543 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
19544 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
19545 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19546 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19547 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
19548 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
19549 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
19550 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
19551 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
19552 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
19553 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
19554 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
19555 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
19556 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
19557 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
19558 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
19559 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
19560 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19561 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
19562 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19563 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
19564 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19565 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
19566 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
19567 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
19568 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19569 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19570 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19571 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19572 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19573 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
19574 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
19575 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
19576 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
19577 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
19578 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
19579 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
19580 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
19581 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
19582 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19583 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
19584 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
19585 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
19586 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
19587 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
19588 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
19589 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19590 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
19591 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19592 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19593 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
19594 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
19595 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
19596 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
19597 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
19598 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
19599 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
19600 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
19601 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
19602 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
19603 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
19604 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
19605 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
19606 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
19607 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
19608 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
19609 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
19610 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
19611 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
19612 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
19613 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
19614 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
19615 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
19616 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
19617 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
19618 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
19619 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
19620 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
19621 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
19622 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
19623 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
19624 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
19625 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
19626 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
19627 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
19628 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
19629 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
19630 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
19631 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
19632 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
19633 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19634 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
19635 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
19636 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
19637 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
19638 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
19639 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
19640 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
19641 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
19642 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
19643 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
19644 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19645 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19646 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
19647 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
19648 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
19649 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
19650 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
19651 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
19652 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19653 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
19654 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
19655 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
19656 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
19657 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
19658 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19659 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
19660 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
19661 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
19662 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
19663 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
19664 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19665 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
19666 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
19667 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
19668 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
19669 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
19670 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
19671 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
19672 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
19673 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
19674 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
19675 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
19676 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
19677 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
19678 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
19679 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
19680 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
19681 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19682 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19683 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
19684 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19685 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
19686 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
19687 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
19688 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
19689 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
19690 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
19691 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
19692 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
19693 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19694 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
19695 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
19696 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
19697 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
19698 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
19699 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
19700 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
19701 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
19702 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
19703 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
19704 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
19705 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
19706 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
19707 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
19708 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
19709 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
19710 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
19711 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
19712 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
19713 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
19714 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
19715 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
19716 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
19717 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
19718 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
19719 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
19720 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
19721 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
19722 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
19723 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
19724 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
19725 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
19726 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
19727 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
19728 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
19729 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
19730 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
19731 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
19732 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
19733 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
19734 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
19735 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
19736 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
19737 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
19738 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
19739 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
19740 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
19741 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
19742 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
19743 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
19744 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
19745 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
19746 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
19747 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
19748 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
19749 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
19750 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
19751 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
19752 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
19753 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
19754 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19755 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19756 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19757 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19758 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19759 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19760 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19761 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19762 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19763 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19764 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19765 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19766 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19767 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19768 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19769 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19770 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19771 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19772 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19773 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19774 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19775 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19776 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19777 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19778 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19779 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19780 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19781 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19782 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19783 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19784 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19785 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19786 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19787 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19788 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19789 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19790 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19791 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19792 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19793 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19794 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19795 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19796 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19797 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19798 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19799 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19800 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19801
19802 // Work around a chicken/egg problem in drawlist.cpp
19803 wxPyDrawList_SetAPIPtr();
19804
19805 }
19806