]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
todos, cleanups, detabified
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
212 #define SWIGTYPE_p_wxBrush swig_types[1]
213 #define SWIGTYPE_p_wxColour swig_types[2]
214 #define SWIGTYPE_p_wxDC swig_types[3]
215 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
216 #define SWIGTYPE_p_byte swig_types[5]
217 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
218 #define SWIGTYPE_p_char swig_types[7]
219 #define SWIGTYPE_p_wxIconLocation swig_types[8]
220 #define SWIGTYPE_p_wxImage swig_types[9]
221 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
222 #define SWIGTYPE_p_wxMask swig_types[11]
223 #define SWIGTYPE_p_wxSize swig_types[12]
224 #define SWIGTYPE_p_wxFont swig_types[13]
225 #define SWIGTYPE_p_wxWindow swig_types[14]
226 #define SWIGTYPE_p_double swig_types[15]
227 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
228 #define SWIGTYPE_p_wxFontMapper swig_types[17]
229 #define SWIGTYPE_p_wxEffects swig_types[18]
230 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
231 #define SWIGTYPE_p_wxPalette swig_types[20]
232 #define SWIGTYPE_p_wxBitmap swig_types[21]
233 #define SWIGTYPE_p_wxObject swig_types[22]
234 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
235 #define SWIGTYPE_p_wxRect swig_types[24]
236 #define SWIGTYPE_p_wxString swig_types[25]
237 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
238 #define SWIGTYPE_p_wxIconBundle swig_types[27]
239 #define SWIGTYPE_p_wxPoint swig_types[28]
240 #define SWIGTYPE_p_wxDash swig_types[29]
241 #define SWIGTYPE_p_wxScreenDC swig_types[30]
242 #define SWIGTYPE_p_wxCursor swig_types[31]
243 #define SWIGTYPE_p_wxClientDC swig_types[32]
244 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
245 #define SWIGTYPE_p_wxImageList swig_types[34]
246 #define SWIGTYPE_p_unsigned_char swig_types[35]
247 #define SWIGTYPE_p_wxGDIObject swig_types[36]
248 #define SWIGTYPE_p_wxIcon swig_types[37]
249 #define SWIGTYPE_p_wxLocale swig_types[38]
250 #define SWIGTYPE_p_wxRegion swig_types[39]
251 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
252 #define SWIGTYPE_p_wxConfigBase swig_types[41]
253 #define SWIGTYPE_p_wxWindowDC swig_types[42]
254 #define SWIGTYPE_p_wxPrintData swig_types[43]
255 #define SWIGTYPE_p_wxBrushList swig_types[44]
256 #define SWIGTYPE_p_wxFontList swig_types[45]
257 #define SWIGTYPE_p_wxPen swig_types[46]
258 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
259 #define SWIGTYPE_p_wxPaintDC swig_types[48]
260 #define SWIGTYPE_p_wxPenList swig_types[49]
261 #define SWIGTYPE_p_int swig_types[50]
262 #define SWIGTYPE_p_wxMetaFile swig_types[51]
263 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
264 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
265 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
266 static swig_type_info *swig_types[56];
267
268 /* -------- TYPES TABLE (END) -------- */
269
270
271 /*-----------------------------------------------
272 @(target):= _gdi_.so
273 ------------------------------------------------*/
274 #define SWIG_init init_gdi_
275
276 #define SWIG_name "_gdi_"
277
278 /* Auxiliar swig macros that appear in the header */
279
280 #define SWIG_OLDOBJ 1
281 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
282 #define SWIG_PYSTR SWIG_NEWOBJ + 1
283
284 #ifdef __cplusplus
285 #define SWIGSTATICINLINE(a) static inline a
286 #define SWIGSTATIC(a) static a
287 #define swig_new_array(size,Type) (new Type[(size)])
288 #define swig_delete(cptr) delete cptr
289 #define swig_delete_array(cptr) delete[] cptr
290 #define swig_const_cast(a,Type) const_cast<Type >(a)
291 #define swig_static_cast(a,Type) static_cast<Type >(a)
292 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
293 #define swig_new_copy(ptr,Type) (new Type(*ptr))
294 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
295
296 #else /* C case */
297
298 #define SWIGSTATICINLINE(a) static a
299 #define SWIGSTATIC(a) static a
300 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
301 #define swig_delete(cptr) free((char*)cptr)
302 #define swig_delete_array(cptr) free((char*)cptr)
303 #define swig_const_cast(a,Type) (Type)(a)
304 #define swig_static_cast(a,Type) (Type)(a)
305 #define swig_reinterpret_cast(a,Type) (Type)(a)
306 #define swig_numeric_cast(a,Type) (Type)(a)
307 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
308
309 #endif /* __cplusplus */
310
311
312 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
313 #define SWIG_From_signed_SS_char PyInt_FromLong
314 /*@@*/
315 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
316 #define SWIG_From_unsigned_SS_char PyInt_FromLong
317 /*@@*/
318 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
319 #define SWIG_From_short PyInt_FromLong
320 /*@@*/
321 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
322 #define SWIG_From_unsigned_SS_short PyInt_FromLong
323 /*@@*/
324 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
325 #define SWIG_From_int PyInt_FromLong
326 /*@@*/
327 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
328 #define SWIG_From_long PyInt_FromLong
329 /*@@*/
330 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
331 #define SWIG_From_float PyFloat_FromDouble
332 /*@@*/
333 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
334 #define SWIG_From_double PyFloat_FromDouble
335 /*@@*/
336
337
338 #include "wx/wxPython/wxPython.h"
339 #include "wx/wxPython/pyclasses.h"
340
341
342 static const wxString wxPyEmptyString(wxEmptyString);
343
344 #include <limits.h>
345
346
347 SWIGSTATICINLINE(int)
348 SWIG_CheckLongInRange(long value, long min_value, long max_value,
349 const char *errmsg)
350 {
351 if (value < min_value) {
352 if (errmsg) {
353 PyErr_Format(PyExc_OverflowError,
354 "value %ld is less than '%s' minimum %ld",
355 value, errmsg, min_value);
356 }
357 return 0;
358 } else if (value > max_value) {
359 if (errmsg) {
360 PyErr_Format(PyExc_OverflowError,
361 "value %ld is greater than '%s' maximum %ld",
362 value, errmsg, max_value);
363 }
364 return 0;
365 }
366 return 1;
367 }
368
369
370 // See my_fragments.i
371 SWIGSTATICINLINE(int)
372 SWIG_AsVal_long(PyObject* obj, long* val)
373 {
374 if (PyNumber_Check(obj)) {
375 if (val) *val = PyInt_AsLong(obj);
376 return 1;
377 }
378 else {
379 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
380 obj->ob_type->tp_name);
381 PyErr_SetObject(PyExc_TypeError, errmsg);
382 Py_DECREF(errmsg);
383 }
384 return 0;
385 }
386
387
388 #if INT_MAX != LONG_MAX
389 SWIGSTATICINLINE(int)
390 SWIG_AsVal_int(PyObject *obj, int *val)
391 {
392 const char* errmsg = val ? "int" : 0;
393 long v;
394 if (SWIG_AsVal_long(obj, &v)) {
395 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
396 if (val) *val = swig_numeric_cast(v, int);
397 return 1;
398 } else {
399 return 0;
400 }
401 } else {
402 PyErr_Clear();
403 }
404 if (val) {
405 PyErr_SetString(PyExc_TypeError, "an int is expected");
406 }
407 return 0;
408 }
409 #else
410 SWIGSTATICINLINE(int)
411 SWIG_AsVal_int(PyObject *obj, int *val)
412 {
413 return SWIG_AsVal_long(obj,(long*)val);
414 }
415 #endif
416
417
418 SWIGSTATICINLINE(int)
419 SWIG_AsVal_bool(PyObject *obj, bool *val)
420 {
421 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
422 if (obj == Py_True) {
423 if (val) *val = true;
424 return 1;
425 }
426 if (obj == Py_False) {
427 if (val) *val = false;
428 return 1;
429 }
430 int res = 0;
431 if (SWIG_AsVal_int(obj, &res)) {
432 if (val) *val = (bool)res;
433 return 1;
434 }
435 if (val) {
436 PyErr_SetString(PyExc_TypeError, "a bool is expected");
437 }
438 return 0;
439 }
440
441
442 SWIGSTATICINLINE(bool)
443 SWIG_As_bool(PyObject* obj)
444 {
445 bool v;
446 if (!SWIG_AsVal_bool(obj, &v)) {
447 /*
448 this is needed to make valgrind/purify happier. the other
449 solution is throw an exception, but since this code should work
450 with plain C ....
451 */
452 memset((void*)&v, 0, sizeof(bool));
453 }
454 return v;
455 }
456
457
458 SWIGSTATICINLINE(int)
459 SWIG_Check_bool(PyObject* obj)
460 {
461 return SWIG_AsVal_bool(obj, (bool*)0);
462 }
463
464
465 // See my_fragments.i
466 SWIGSTATICINLINE(int)
467 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
468 {
469 long v = 0;
470 if (SWIG_AsVal_long(obj, &v) && v < 0) {
471 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
472 return 0;
473 }
474 else if (val)
475 *val = (unsigned long)v;
476 return 1;
477 }
478
479
480 SWIGSTATICINLINE(int)
481 SWIG_CheckUnsignedLongInRange(unsigned long value,
482 unsigned long max_value,
483 const char *errmsg)
484 {
485 if (value > max_value) {
486 if (errmsg) {
487 PyErr_Format(PyExc_OverflowError,
488 "value %ld is greater than '%s' minimum %ld",
489 value, errmsg, max_value);
490 }
491 return 0;
492 }
493 return 1;
494 }
495
496
497 SWIGSTATICINLINE(int)
498 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
499 {
500 const char* errmsg = val ? "unsigned char" : 0;
501 unsigned long v;
502 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
503 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
504 if (val) *val = swig_numeric_cast(v, unsigned char);
505 return 1;
506 } else {
507 return 0;
508 }
509 } else {
510 PyErr_Clear();
511 }
512 if (val) {
513 PyErr_SetString(PyExc_TypeError, "an unsigned char is expected");
514 }
515 return 0;
516 }
517
518
519 SWIGSTATICINLINE(unsigned char)
520 SWIG_As_unsigned_SS_char(PyObject* obj)
521 {
522 unsigned char v;
523 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
524 /*
525 this is needed to make valgrind/purify happier. the other
526 solution is throw an exception, but since this code should work
527 with plain C ....
528 */
529 memset((void*)&v, 0, sizeof(unsigned char));
530 }
531 return v;
532 }
533
534
535 SWIGSTATICINLINE(int)
536 SWIG_Check_unsigned_SS_char(PyObject* obj)
537 {
538 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
539 }
540
541
542 SWIGSTATICINLINE(unsigned long)
543 SWIG_As_unsigned_SS_long(PyObject* obj)
544 {
545 unsigned long v;
546 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
547 /*
548 this is needed to make valgrind/purify happier. the other
549 solution is throw an exception, but since this code should work
550 with plain C ....
551 */
552 memset((void*)&v, 0, sizeof(unsigned long));
553 }
554 return v;
555 }
556
557
558 SWIGSTATICINLINE(int)
559 SWIG_Check_unsigned_SS_long(PyObject* obj)
560 {
561 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
562 }
563
564 PyObject *wxColour_Get(wxColour *self){
565 PyObject* rv = PyTuple_New(3);
566 int red = -1;
567 int green = -1;
568 int blue = -1;
569 if (self->Ok()) {
570 red = self->Red();
571 green = self->Green();
572 blue = self->Blue();
573 }
574 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
575 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
576 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
577 return rv;
578 }
579 unsigned long wxColour_GetRGB(wxColour *self){
580 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
581 }
582
583 SWIGSTATICINLINE(PyObject* )
584 SWIG_From_unsigned_SS_long(unsigned long value)
585 {
586 return (value > LONG_MAX) ?
587 PyLong_FromUnsignedLong(value)
588 : PyInt_FromLong(swig_numeric_cast(value,long));
589 }
590
591
592 SWIGSTATICINLINE(int)
593 SWIG_As_int(PyObject* obj)
594 {
595 int v;
596 if (!SWIG_AsVal_int(obj, &v)) {
597 /*
598 this is needed to make valgrind/purify happier. the other
599 solution is throw an exception, but since this code should work
600 with plain C ....
601 */
602 memset((void*)&v, 0, sizeof(int));
603 }
604 return v;
605 }
606
607
608 SWIGSTATICINLINE(int)
609 SWIG_Check_int(PyObject* obj)
610 {
611 return SWIG_AsVal_int(obj, (int*)0);
612 }
613
614
615 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
616 PyObject* o2;
617 PyObject* o3;
618
619 if (!target) {
620 target = o;
621 } else if (target == Py_None) {
622 Py_DECREF(Py_None);
623 target = o;
624 } else {
625 if (!PyTuple_Check(target)) {
626 o2 = target;
627 target = PyTuple_New(1);
628 PyTuple_SetItem(target, 0, o2);
629 }
630 o3 = PyTuple_New(1);
631 PyTuple_SetItem(o3, 0, o);
632
633 o2 = target;
634 target = PySequence_Concat(o2, o3);
635 Py_DECREF(o2);
636 Py_DECREF(o3);
637 }
638 return target;
639 }
640
641
642 PyObject *wxPen_GetDashes(wxPen *self){
643 wxDash* dashes;
644 int count = self->GetDashes(&dashes);
645 bool blocked = wxPyBeginBlockThreads();
646 PyObject* retval = PyList_New(0);
647 for (int x=0; x<count; x++) {
648 PyObject* pyint = PyInt_FromLong(dashes[x]);
649 PyList_Append(retval, pyint);
650 Py_DECREF(pyint);
651 }
652 wxPyEndBlockThreads(blocked);
653 return retval;
654 }
655 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
656 bool blocked = wxPyBeginBlockThreads();
657 int size = PyList_Size(pyDashes);
658 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
659
660 // black magic warning! The array of wxDashes needs to exist as
661 // long as the pen does because wxPen does not copy the array. So
662 // stick a copy in a Python string object and attach it to _self,
663 // and then call SetDashes with a pointer to that array. Then
664 // when the Python pen object is destroyed the array will be
665 // cleaned up too.
666 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
667 PyObject_SetAttrString(_self, "_dashes", strDashes);
668
669 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
670 delete [] dashes;
671 Py_DECREF(strDashes);
672 wxPyEndBlockThreads(blocked);
673 }
674 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
675 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
676
677 SWIGSTATICINLINE(int)
678 SWIG_AsVal_short(PyObject *obj, short *val)
679 {
680 const char* errmsg = val ? "short" : 0;
681 long v;
682 if (SWIG_AsVal_long(obj, &v)) {
683 if (SWIG_CheckLongInRange(v, SHRT_MIN, SHRT_MAX, errmsg)) {
684 if (val) *val = swig_numeric_cast(v, short);
685 return 1;
686 } else {
687 return 0;
688 }
689 } else {
690 PyErr_Clear();
691 }
692 if (val) {
693 PyErr_SetString(PyExc_TypeError, "a short is expected");
694 }
695 return 0;
696 }
697
698
699 SWIGSTATICINLINE(short)
700 SWIG_As_short(PyObject* obj)
701 {
702 short v;
703 if (!SWIG_AsVal_short(obj, &v)) {
704 /*
705 this is needed to make valgrind/purify happier. the other
706 solution is throw an exception, but since this code should work
707 with plain C ....
708 */
709 memset((void*)&v, 0, sizeof(short));
710 }
711 return v;
712 }
713
714
715 SWIGSTATICINLINE(int)
716 SWIG_Check_short(PyObject* obj)
717 {
718 return SWIG_AsVal_short(obj, (short*)0);
719 }
720
721
722 #include <wx/image.h>
723
724 static char** ConvertListOfStrings(PyObject* listOfStrings) {
725 char** cArray = NULL;
726 int count;
727
728 if (!PyList_Check(listOfStrings)) {
729 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
730 return NULL;
731 }
732 count = PyList_Size(listOfStrings);
733 cArray = new char*[count];
734
735 for(int x=0; x<count; x++) {
736 // TODO: Need some validation and error checking here
737 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
738 }
739 return cArray;
740 }
741
742
743 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
744 char** cArray = NULL;
745 wxBitmap* bmp;
746
747 cArray = ConvertListOfStrings(listOfStrings);
748 if (! cArray)
749 return NULL;
750 bmp = new wxBitmap(cArray);
751 delete [] cArray;
752 return bmp;
753 }
754 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
755 char* buf;
756 int length;
757 PyString_AsStringAndSize(bits, &buf, &length);
758 return new wxBitmap(buf, width, height, depth);
759 }
760 wxSize wxBitmap_GetSize(wxBitmap *self){
761 wxSize size(self->GetWidth(), self->GetHeight());
762 return size;
763 }
764 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
765 wxMask *mask = new wxMask(*self, colour);
766 self->SetMask(mask);
767 }
768 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
769 self->SetWidth(size.x);
770 self->SetHeight(size.y);
771 }
772 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
773 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
774 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
775 if ( !colour.Ok() )
776 return new wxMask(bitmap, *wxBLACK);
777 else
778 return new wxMask(bitmap, colour);
779 }
780
781 #include <wx/iconbndl.h>
782
783 wxIcon *new_wxIcon(wxBitmap const &bmp){
784 wxIcon* icon = new wxIcon();
785 icon->CopyFromBitmap(bmp);
786 return icon;
787 }
788 wxIcon *new_wxIcon(PyObject *listOfStrings){
789 char** cArray = NULL;
790 wxIcon* icon;
791
792 cArray = ConvertListOfStrings(listOfStrings);
793 if (! cArray)
794 return NULL;
795 icon = new wxIcon(cArray);
796 delete [] cArray;
797 return icon;
798 }
799 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
800
801
802
803 return new wxIconLocation(*filename);
804
805 }
806 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
807
808
809
810 // do nothing
811
812 }
813 int wxIconLocation_GetIndex(wxIconLocation *self){
814
815
816
817 return -1;
818
819 }
820
821 SWIGSTATICINLINE(long)
822 SWIG_As_long(PyObject* obj)
823 {
824 long v;
825 if (!SWIG_AsVal_long(obj, &v)) {
826 /*
827 this is needed to make valgrind/purify happier. the other
828 solution is throw an exception, but since this code should work
829 with plain C ....
830 */
831 memset((void*)&v, 0, sizeof(long));
832 }
833 return v;
834 }
835
836
837 SWIGSTATICINLINE(int)
838 SWIG_Check_long(PyObject* obj)
839 {
840 return SWIG_AsVal_long(obj, (long*)0);
841 }
842
843 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
844 #ifdef __WXGTK__
845 wxCHECK_MSG(False, NULL,
846 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
847 #else
848 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
849 #endif
850 }
851
852
853 void wxRegionIterator_Next(wxRegionIterator *self){
854 (*self) ++;
855 }
856 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
857 return self->operator bool();
858 }
859
860 #include <wx/fontutil.h>
861 #include <wx/fontmap.h>
862 #include <wx/fontenum.h>
863
864 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
865 return self->ToString();
866 }
867
868 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
869 static wxNativeEncodingInfo info;
870 if ( wxGetNativeFontEncoding(encoding, &info) )
871 return &info;
872 else
873 return NULL;
874 }
875
876 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
877 wxFontEncoding alt_enc;
878 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
879 return PyInt_FromLong(alt_enc);
880 else {
881 Py_INCREF(Py_None);
882 return Py_None;
883 }
884 }
885 wxFont *new_wxFont(wxString const &info){
886 wxNativeFontInfo nfi;
887 nfi.FromString(info);
888 return new wxFont(nfi);
889 }
890 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
891 return wxFont::New(pointSize, family, flags, face, encoding);
892 }
893 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
894 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
895
896 class wxPyFontEnumerator : public wxFontEnumerator {
897 public:
898 wxPyFontEnumerator() {}
899 ~wxPyFontEnumerator() {}
900
901 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
902 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
903
904 PYPRIVATE;
905 };
906
907 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
908 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
909
910
911 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
912 wxArrayString* arr = self->GetEncodings();
913 if (arr)
914 return wxArrayString2PyList_helper(*arr);
915 else
916 return PyList_New(0);
917 }
918 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
919 wxArrayString* arr = self->GetFacenames();
920 if (arr)
921 return wxArrayString2PyList_helper(*arr);
922 else
923 return PyList_New(0);
924 }
925
926
927 wxLocale *new_wxLocale(int language,int flags){
928 if (language == -1)
929 return new wxLocale();
930 else
931 return new wxLocale(language, flags);
932 }
933
934 #include "wx/wxPython/pydrawxxx.h"
935
936 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
937 wxColour col;
938 self->GetPixel(x, y, &col);
939 return col;
940 }
941 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
942 wxColour col;
943 self->GetPixel(pt, &col);
944 return col;
945 }
946
947 // See my_fragments.i
948 SWIGSTATICINLINE(int)
949 SWIG_AsVal_double(PyObject *obj, double* val)
950 {
951 if (PyNumber_Check(obj)) {
952 if (val) *val = PyFloat_AsDouble(obj);
953 return 1;
954 }
955 else {
956 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
957 obj->ob_type->tp_name);
958 PyErr_SetObject(PyExc_TypeError, errmsg);
959 Py_DECREF(errmsg);
960 }
961 return 0;
962 }
963
964
965 SWIGSTATICINLINE(double)
966 SWIG_As_double(PyObject* obj)
967 {
968 double v;
969 if (!SWIG_AsVal_double(obj, &v)) {
970 /*
971 this is needed to make valgrind/purify happier. the other
972 solution is throw an exception, but since this code should work
973 with plain C ....
974 */
975 memset((void*)&v, 0, sizeof(double));
976 }
977 return v;
978 }
979
980
981 SWIGSTATICINLINE(int)
982 SWIG_Check_double(PyObject* obj)
983 {
984 return SWIG_AsVal_double(obj, (double*)0);
985 }
986
987 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
988 wxRect rv;
989 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
990 return rv;
991 }
992
993 wxRect wxDC_GetClippingRect(wxDC *self){
994 wxRect rect;
995 self->GetClippingBox(rect);
996 return rect;
997 }
998 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
999 wxArrayInt widths;
1000 self->GetPartialTextExtents(text, widths);
1001 return widths;
1002 }
1003
1004 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
1005 self->SetLogicalOrigin(point.x, point.y);
1006 }
1007 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
1008 self->SetDeviceOrigin(point.x, point.y);
1009 }
1010 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
1011 self->CalcBoundingBox(point.x, point.y);
1012 }
1013 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1014 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
1015 }
1016 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1017 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
1018 }
1019 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1020 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
1021 }
1022 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1023 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
1024 }
1025 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1026 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
1027 }
1028 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
1029 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
1030 }
1031
1032 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
1033 *x1 = dc->MinX();
1034 *y1 = dc->MinY();
1035 *x2 = dc->MaxX();
1036 *y2 = dc->MaxY();
1037 }
1038
1039
1040 #include <wx/dcbuffer.h>
1041
1042
1043 #include <wx/dcps.h>
1044
1045
1046 #include <wx/metafile.h>
1047
1048
1049
1050 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1051 self->AddColour(name, wxColour(red, green, blue));
1052 }
1053
1054 #include <wx/effects.h>
1055
1056 #ifdef __cplusplus
1057 extern "C" {
1058 #endif
1059 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1060 PyObject *resultobj;
1061 wxGDIObject *result;
1062 char *kwnames[] = {
1063 NULL
1064 };
1065
1066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1067 {
1068 if (!wxPyCheckForApp()) SWIG_fail;
1069 PyThreadState* __tstate = wxPyBeginAllowThreads();
1070 result = (wxGDIObject *)new wxGDIObject();
1071
1072 wxPyEndAllowThreads(__tstate);
1073 if (PyErr_Occurred()) SWIG_fail;
1074 }
1075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1076 return resultobj;
1077 fail:
1078 return NULL;
1079 }
1080
1081
1082 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1083 PyObject *resultobj;
1084 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1085 PyObject * obj0 = 0 ;
1086 char *kwnames[] = {
1087 (char *) "self", NULL
1088 };
1089
1090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1093 {
1094 PyThreadState* __tstate = wxPyBeginAllowThreads();
1095 delete arg1;
1096
1097 wxPyEndAllowThreads(__tstate);
1098 if (PyErr_Occurred()) SWIG_fail;
1099 }
1100 Py_INCREF(Py_None); resultobj = Py_None;
1101 return resultobj;
1102 fail:
1103 return NULL;
1104 }
1105
1106
1107 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1108 PyObject *resultobj;
1109 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1110 bool result;
1111 PyObject * obj0 = 0 ;
1112 char *kwnames[] = {
1113 (char *) "self", NULL
1114 };
1115
1116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1119 {
1120 PyThreadState* __tstate = wxPyBeginAllowThreads();
1121 result = (bool)(arg1)->GetVisible();
1122
1123 wxPyEndAllowThreads(__tstate);
1124 if (PyErr_Occurred()) SWIG_fail;
1125 }
1126 {
1127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1128 }
1129 return resultobj;
1130 fail:
1131 return NULL;
1132 }
1133
1134
1135 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1136 PyObject *resultobj;
1137 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1138 bool arg2 ;
1139 PyObject * obj0 = 0 ;
1140 PyObject * obj1 = 0 ;
1141 char *kwnames[] = {
1142 (char *) "self",(char *) "visible", NULL
1143 };
1144
1145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1148 arg2 = (bool)SWIG_As_bool(obj1);
1149 if (PyErr_Occurred()) SWIG_fail;
1150 {
1151 PyThreadState* __tstate = wxPyBeginAllowThreads();
1152 (arg1)->SetVisible(arg2);
1153
1154 wxPyEndAllowThreads(__tstate);
1155 if (PyErr_Occurred()) SWIG_fail;
1156 }
1157 Py_INCREF(Py_None); resultobj = Py_None;
1158 return resultobj;
1159 fail:
1160 return NULL;
1161 }
1162
1163
1164 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1165 PyObject *resultobj;
1166 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1167 bool result;
1168 PyObject * obj0 = 0 ;
1169 char *kwnames[] = {
1170 (char *) "self", NULL
1171 };
1172
1173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1176 {
1177 PyThreadState* __tstate = wxPyBeginAllowThreads();
1178 result = (bool)(arg1)->IsNull();
1179
1180 wxPyEndAllowThreads(__tstate);
1181 if (PyErr_Occurred()) SWIG_fail;
1182 }
1183 {
1184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1185 }
1186 return resultobj;
1187 fail:
1188 return NULL;
1189 }
1190
1191
1192 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1193 PyObject *obj;
1194 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1195 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1196 Py_INCREF(obj);
1197 return Py_BuildValue((char *)"");
1198 }
1199 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1200 PyObject *resultobj;
1201 byte arg1 = (byte) 0 ;
1202 byte arg2 = (byte) 0 ;
1203 byte arg3 = (byte) 0 ;
1204 wxColour *result;
1205 PyObject * obj0 = 0 ;
1206 PyObject * obj1 = 0 ;
1207 PyObject * obj2 = 0 ;
1208 char *kwnames[] = {
1209 (char *) "red",(char *) "green",(char *) "blue", NULL
1210 };
1211
1212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1213 if (obj0) {
1214 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
1215 if (PyErr_Occurred()) SWIG_fail;
1216 }
1217 if (obj1) {
1218 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1219 if (PyErr_Occurred()) SWIG_fail;
1220 }
1221 if (obj2) {
1222 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1223 if (PyErr_Occurred()) SWIG_fail;
1224 }
1225 {
1226 PyThreadState* __tstate = wxPyBeginAllowThreads();
1227 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1228
1229 wxPyEndAllowThreads(__tstate);
1230 if (PyErr_Occurred()) SWIG_fail;
1231 }
1232 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1233 return resultobj;
1234 fail:
1235 return NULL;
1236 }
1237
1238
1239 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1240 PyObject *resultobj;
1241 wxString *arg1 = 0 ;
1242 wxColour *result;
1243 bool temp1 = False ;
1244 PyObject * obj0 = 0 ;
1245 char *kwnames[] = {
1246 (char *) "colorName", NULL
1247 };
1248
1249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1250 {
1251 arg1 = wxString_in_helper(obj0);
1252 if (arg1 == NULL) SWIG_fail;
1253 temp1 = True;
1254 }
1255 {
1256 if (!wxPyCheckForApp()) SWIG_fail;
1257 PyThreadState* __tstate = wxPyBeginAllowThreads();
1258 result = (wxColour *)new wxColour((wxString const &)*arg1);
1259
1260 wxPyEndAllowThreads(__tstate);
1261 if (PyErr_Occurred()) SWIG_fail;
1262 }
1263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1264 {
1265 if (temp1)
1266 delete arg1;
1267 }
1268 return resultobj;
1269 fail:
1270 {
1271 if (temp1)
1272 delete arg1;
1273 }
1274 return NULL;
1275 }
1276
1277
1278 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1279 PyObject *resultobj;
1280 unsigned long arg1 ;
1281 wxColour *result;
1282 PyObject * obj0 = 0 ;
1283 char *kwnames[] = {
1284 (char *) "colRGB", NULL
1285 };
1286
1287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1288 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
1289 if (PyErr_Occurred()) SWIG_fail;
1290 {
1291 PyThreadState* __tstate = wxPyBeginAllowThreads();
1292 result = (wxColour *)new wxColour(arg1);
1293
1294 wxPyEndAllowThreads(__tstate);
1295 if (PyErr_Occurred()) SWIG_fail;
1296 }
1297 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1298 return resultobj;
1299 fail:
1300 return NULL;
1301 }
1302
1303
1304 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1305 PyObject *resultobj;
1306 wxColour *arg1 = (wxColour *) 0 ;
1307 PyObject * obj0 = 0 ;
1308 char *kwnames[] = {
1309 (char *) "self", NULL
1310 };
1311
1312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1315 {
1316 PyThreadState* __tstate = wxPyBeginAllowThreads();
1317 delete arg1;
1318
1319 wxPyEndAllowThreads(__tstate);
1320 if (PyErr_Occurred()) SWIG_fail;
1321 }
1322 Py_INCREF(Py_None); resultobj = Py_None;
1323 return resultobj;
1324 fail:
1325 return NULL;
1326 }
1327
1328
1329 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1330 PyObject *resultobj;
1331 wxColour *arg1 = (wxColour *) 0 ;
1332 byte result;
1333 PyObject * obj0 = 0 ;
1334 char *kwnames[] = {
1335 (char *) "self", NULL
1336 };
1337
1338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1341 {
1342 PyThreadState* __tstate = wxPyBeginAllowThreads();
1343 result = (byte)(arg1)->Red();
1344
1345 wxPyEndAllowThreads(__tstate);
1346 if (PyErr_Occurred()) SWIG_fail;
1347 }
1348 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1349 return resultobj;
1350 fail:
1351 return NULL;
1352 }
1353
1354
1355 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1356 PyObject *resultobj;
1357 wxColour *arg1 = (wxColour *) 0 ;
1358 byte result;
1359 PyObject * obj0 = 0 ;
1360 char *kwnames[] = {
1361 (char *) "self", NULL
1362 };
1363
1364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1367 {
1368 PyThreadState* __tstate = wxPyBeginAllowThreads();
1369 result = (byte)(arg1)->Green();
1370
1371 wxPyEndAllowThreads(__tstate);
1372 if (PyErr_Occurred()) SWIG_fail;
1373 }
1374 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1375 return resultobj;
1376 fail:
1377 return NULL;
1378 }
1379
1380
1381 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1382 PyObject *resultobj;
1383 wxColour *arg1 = (wxColour *) 0 ;
1384 byte result;
1385 PyObject * obj0 = 0 ;
1386 char *kwnames[] = {
1387 (char *) "self", NULL
1388 };
1389
1390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1393 {
1394 PyThreadState* __tstate = wxPyBeginAllowThreads();
1395 result = (byte)(arg1)->Blue();
1396
1397 wxPyEndAllowThreads(__tstate);
1398 if (PyErr_Occurred()) SWIG_fail;
1399 }
1400 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1401 return resultobj;
1402 fail:
1403 return NULL;
1404 }
1405
1406
1407 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1408 PyObject *resultobj;
1409 wxColour *arg1 = (wxColour *) 0 ;
1410 bool result;
1411 PyObject * obj0 = 0 ;
1412 char *kwnames[] = {
1413 (char *) "self", NULL
1414 };
1415
1416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1419 {
1420 PyThreadState* __tstate = wxPyBeginAllowThreads();
1421 result = (bool)(arg1)->Ok();
1422
1423 wxPyEndAllowThreads(__tstate);
1424 if (PyErr_Occurred()) SWIG_fail;
1425 }
1426 {
1427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1428 }
1429 return resultobj;
1430 fail:
1431 return NULL;
1432 }
1433
1434
1435 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1436 PyObject *resultobj;
1437 wxColour *arg1 = (wxColour *) 0 ;
1438 byte arg2 ;
1439 byte arg3 ;
1440 byte arg4 ;
1441 PyObject * obj0 = 0 ;
1442 PyObject * obj1 = 0 ;
1443 PyObject * obj2 = 0 ;
1444 PyObject * obj3 = 0 ;
1445 char *kwnames[] = {
1446 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1447 };
1448
1449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1452 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1453 if (PyErr_Occurred()) SWIG_fail;
1454 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1455 if (PyErr_Occurred()) SWIG_fail;
1456 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1457 if (PyErr_Occurred()) SWIG_fail;
1458 {
1459 PyThreadState* __tstate = wxPyBeginAllowThreads();
1460 (arg1)->Set(arg2,arg3,arg4);
1461
1462 wxPyEndAllowThreads(__tstate);
1463 if (PyErr_Occurred()) SWIG_fail;
1464 }
1465 Py_INCREF(Py_None); resultobj = Py_None;
1466 return resultobj;
1467 fail:
1468 return NULL;
1469 }
1470
1471
1472 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1473 PyObject *resultobj;
1474 wxColour *arg1 = (wxColour *) 0 ;
1475 unsigned long arg2 ;
1476 PyObject * obj0 = 0 ;
1477 PyObject * obj1 = 0 ;
1478 char *kwnames[] = {
1479 (char *) "self",(char *) "colRGB", NULL
1480 };
1481
1482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1485 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
1486 if (PyErr_Occurred()) SWIG_fail;
1487 {
1488 PyThreadState* __tstate = wxPyBeginAllowThreads();
1489 (arg1)->Set(arg2);
1490
1491 wxPyEndAllowThreads(__tstate);
1492 if (PyErr_Occurred()) SWIG_fail;
1493 }
1494 Py_INCREF(Py_None); resultobj = Py_None;
1495 return resultobj;
1496 fail:
1497 return NULL;
1498 }
1499
1500
1501 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1502 PyObject *resultobj;
1503 wxColour *arg1 = (wxColour *) 0 ;
1504 wxString *arg2 = 0 ;
1505 bool temp2 = False ;
1506 PyObject * obj0 = 0 ;
1507 PyObject * obj1 = 0 ;
1508 char *kwnames[] = {
1509 (char *) "self",(char *) "colourName", NULL
1510 };
1511
1512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1515 {
1516 arg2 = wxString_in_helper(obj1);
1517 if (arg2 == NULL) SWIG_fail;
1518 temp2 = True;
1519 }
1520 {
1521 PyThreadState* __tstate = wxPyBeginAllowThreads();
1522 (arg1)->InitFromName((wxString const &)*arg2);
1523
1524 wxPyEndAllowThreads(__tstate);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 }
1527 Py_INCREF(Py_None); resultobj = Py_None;
1528 {
1529 if (temp2)
1530 delete arg2;
1531 }
1532 return resultobj;
1533 fail:
1534 {
1535 if (temp2)
1536 delete arg2;
1537 }
1538 return NULL;
1539 }
1540
1541
1542 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1543 PyObject *resultobj;
1544 wxColour *arg1 = (wxColour *) 0 ;
1545 long result;
1546 PyObject * obj0 = 0 ;
1547 char *kwnames[] = {
1548 (char *) "self", NULL
1549 };
1550
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 result = (long)((wxColour const *)arg1)->GetPixel();
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 resultobj = SWIG_From_long((long)result);
1562 return resultobj;
1563 fail:
1564 return NULL;
1565 }
1566
1567
1568 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1569 PyObject *resultobj;
1570 wxColour *arg1 = (wxColour *) 0 ;
1571 wxColour *arg2 = 0 ;
1572 bool result;
1573 wxColour temp2 ;
1574 PyObject * obj0 = 0 ;
1575 PyObject * obj1 = 0 ;
1576 char *kwnames[] = {
1577 (char *) "self",(char *) "colour", NULL
1578 };
1579
1580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1583 {
1584 arg2 = &temp2;
1585 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1586 }
1587 {
1588 PyThreadState* __tstate = wxPyBeginAllowThreads();
1589 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1590
1591 wxPyEndAllowThreads(__tstate);
1592 if (PyErr_Occurred()) SWIG_fail;
1593 }
1594 {
1595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1596 }
1597 return resultobj;
1598 fail:
1599 return NULL;
1600 }
1601
1602
1603 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1604 PyObject *resultobj;
1605 wxColour *arg1 = (wxColour *) 0 ;
1606 wxColour *arg2 = 0 ;
1607 bool result;
1608 wxColour temp2 ;
1609 PyObject * obj0 = 0 ;
1610 PyObject * obj1 = 0 ;
1611 char *kwnames[] = {
1612 (char *) "self",(char *) "colour", NULL
1613 };
1614
1615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1618 {
1619 arg2 = &temp2;
1620 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1621 }
1622 {
1623 PyThreadState* __tstate = wxPyBeginAllowThreads();
1624 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1625
1626 wxPyEndAllowThreads(__tstate);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 }
1629 {
1630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1631 }
1632 return resultobj;
1633 fail:
1634 return NULL;
1635 }
1636
1637
1638 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1639 PyObject *resultobj;
1640 wxColour *arg1 = (wxColour *) 0 ;
1641 PyObject *result;
1642 PyObject * obj0 = 0 ;
1643 char *kwnames[] = {
1644 (char *) "self", NULL
1645 };
1646
1647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1650 {
1651 PyThreadState* __tstate = wxPyBeginAllowThreads();
1652 result = (PyObject *)wxColour_Get(arg1);
1653
1654 wxPyEndAllowThreads(__tstate);
1655 if (PyErr_Occurred()) SWIG_fail;
1656 }
1657 resultobj = result;
1658 return resultobj;
1659 fail:
1660 return NULL;
1661 }
1662
1663
1664 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1665 PyObject *resultobj;
1666 wxColour *arg1 = (wxColour *) 0 ;
1667 unsigned long result;
1668 PyObject * obj0 = 0 ;
1669 char *kwnames[] = {
1670 (char *) "self", NULL
1671 };
1672
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1676 {
1677 PyThreadState* __tstate = wxPyBeginAllowThreads();
1678 result = (unsigned long)wxColour_GetRGB(arg1);
1679
1680 wxPyEndAllowThreads(__tstate);
1681 if (PyErr_Occurred()) SWIG_fail;
1682 }
1683 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
1684 return resultobj;
1685 fail:
1686 return NULL;
1687 }
1688
1689
1690 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1691 PyObject *obj;
1692 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1693 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1694 Py_INCREF(obj);
1695 return Py_BuildValue((char *)"");
1696 }
1697 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1698 PyObject *resultobj;
1699 int arg1 ;
1700 unsigned char *arg2 = (unsigned char *) 0 ;
1701 unsigned char *arg3 = (unsigned char *) 0 ;
1702 unsigned char *arg4 = (unsigned char *) 0 ;
1703 wxPalette *result;
1704 PyObject * obj0 = 0 ;
1705 PyObject * obj1 = 0 ;
1706 PyObject * obj2 = 0 ;
1707 PyObject * obj3 = 0 ;
1708 char *kwnames[] = {
1709 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1710 };
1711
1712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1713 arg1 = (int)SWIG_As_int(obj0);
1714 if (PyErr_Occurred()) SWIG_fail;
1715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1717 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1719 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1721 {
1722 if (!wxPyCheckForApp()) SWIG_fail;
1723 PyThreadState* __tstate = wxPyBeginAllowThreads();
1724 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1725
1726 wxPyEndAllowThreads(__tstate);
1727 if (PyErr_Occurred()) SWIG_fail;
1728 }
1729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1730 return resultobj;
1731 fail:
1732 return NULL;
1733 }
1734
1735
1736 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1737 PyObject *resultobj;
1738 wxPalette *arg1 = (wxPalette *) 0 ;
1739 PyObject * obj0 = 0 ;
1740 char *kwnames[] = {
1741 (char *) "self", NULL
1742 };
1743
1744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1747 {
1748 PyThreadState* __tstate = wxPyBeginAllowThreads();
1749 delete arg1;
1750
1751 wxPyEndAllowThreads(__tstate);
1752 if (PyErr_Occurred()) SWIG_fail;
1753 }
1754 Py_INCREF(Py_None); resultobj = Py_None;
1755 return resultobj;
1756 fail:
1757 return NULL;
1758 }
1759
1760
1761 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1762 PyObject *resultobj;
1763 wxPalette *arg1 = (wxPalette *) 0 ;
1764 byte arg2 ;
1765 byte arg3 ;
1766 byte arg4 ;
1767 int result;
1768 PyObject * obj0 = 0 ;
1769 PyObject * obj1 = 0 ;
1770 PyObject * obj2 = 0 ;
1771 PyObject * obj3 = 0 ;
1772 char *kwnames[] = {
1773 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1774 };
1775
1776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1779 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1780 if (PyErr_Occurred()) SWIG_fail;
1781 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1782 if (PyErr_Occurred()) SWIG_fail;
1783 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1784 if (PyErr_Occurred()) SWIG_fail;
1785 {
1786 PyThreadState* __tstate = wxPyBeginAllowThreads();
1787 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1788
1789 wxPyEndAllowThreads(__tstate);
1790 if (PyErr_Occurred()) SWIG_fail;
1791 }
1792 resultobj = SWIG_From_int((int)result);
1793 return resultobj;
1794 fail:
1795 return NULL;
1796 }
1797
1798
1799 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1800 PyObject *resultobj;
1801 wxPalette *arg1 = (wxPalette *) 0 ;
1802 int arg2 ;
1803 byte *arg3 = (byte *) 0 ;
1804 byte *arg4 = (byte *) 0 ;
1805 byte *arg5 = (byte *) 0 ;
1806 bool result;
1807 byte temp3 ;
1808 int res3 = 0 ;
1809 byte temp4 ;
1810 int res4 = 0 ;
1811 byte temp5 ;
1812 int res5 = 0 ;
1813 PyObject * obj0 = 0 ;
1814 PyObject * obj1 = 0 ;
1815 char *kwnames[] = {
1816 (char *) "self",(char *) "pixel", NULL
1817 };
1818
1819 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1820 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1821 arg5 = &temp5; res5 = SWIG_NEWOBJ;
1822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1825 arg2 = (int)SWIG_As_int(obj1);
1826 if (PyErr_Occurred()) SWIG_fail;
1827 {
1828 PyThreadState* __tstate = wxPyBeginAllowThreads();
1829 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1830
1831 wxPyEndAllowThreads(__tstate);
1832 if (PyErr_Occurred()) SWIG_fail;
1833 }
1834 {
1835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1836 }
1837 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1838 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1839 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1840 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1841 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1842 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
1843 return resultobj;
1844 fail:
1845 return NULL;
1846 }
1847
1848
1849 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1850 PyObject *resultobj;
1851 wxPalette *arg1 = (wxPalette *) 0 ;
1852 bool result;
1853 PyObject * obj0 = 0 ;
1854 char *kwnames[] = {
1855 (char *) "self", NULL
1856 };
1857
1858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1861 {
1862 PyThreadState* __tstate = wxPyBeginAllowThreads();
1863 result = (bool)(arg1)->Ok();
1864
1865 wxPyEndAllowThreads(__tstate);
1866 if (PyErr_Occurred()) SWIG_fail;
1867 }
1868 {
1869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1870 }
1871 return resultobj;
1872 fail:
1873 return NULL;
1874 }
1875
1876
1877 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1878 PyObject *obj;
1879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1880 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1881 Py_INCREF(obj);
1882 return Py_BuildValue((char *)"");
1883 }
1884 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1885 PyObject *resultobj;
1886 wxColour *arg1 = 0 ;
1887 int arg2 = (int) 1 ;
1888 int arg3 = (int) wxSOLID ;
1889 wxPen *result;
1890 wxColour temp1 ;
1891 PyObject * obj0 = 0 ;
1892 PyObject * obj1 = 0 ;
1893 PyObject * obj2 = 0 ;
1894 char *kwnames[] = {
1895 (char *) "colour",(char *) "width",(char *) "style", NULL
1896 };
1897
1898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1899 {
1900 arg1 = &temp1;
1901 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1902 }
1903 if (obj1) {
1904 arg2 = (int)SWIG_As_int(obj1);
1905 if (PyErr_Occurred()) SWIG_fail;
1906 }
1907 if (obj2) {
1908 arg3 = (int)SWIG_As_int(obj2);
1909 if (PyErr_Occurred()) SWIG_fail;
1910 }
1911 {
1912 if (!wxPyCheckForApp()) SWIG_fail;
1913 PyThreadState* __tstate = wxPyBeginAllowThreads();
1914 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1915
1916 wxPyEndAllowThreads(__tstate);
1917 if (PyErr_Occurred()) SWIG_fail;
1918 }
1919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1920 return resultobj;
1921 fail:
1922 return NULL;
1923 }
1924
1925
1926 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1927 PyObject *resultobj;
1928 wxPen *arg1 = (wxPen *) 0 ;
1929 PyObject * obj0 = 0 ;
1930 char *kwnames[] = {
1931 (char *) "self", NULL
1932 };
1933
1934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1937 {
1938 PyThreadState* __tstate = wxPyBeginAllowThreads();
1939 delete arg1;
1940
1941 wxPyEndAllowThreads(__tstate);
1942 if (PyErr_Occurred()) SWIG_fail;
1943 }
1944 Py_INCREF(Py_None); resultobj = Py_None;
1945 return resultobj;
1946 fail:
1947 return NULL;
1948 }
1949
1950
1951 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1952 PyObject *resultobj;
1953 wxPen *arg1 = (wxPen *) 0 ;
1954 int result;
1955 PyObject * obj0 = 0 ;
1956 char *kwnames[] = {
1957 (char *) "self", NULL
1958 };
1959
1960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1963 {
1964 PyThreadState* __tstate = wxPyBeginAllowThreads();
1965 result = (int)(arg1)->GetCap();
1966
1967 wxPyEndAllowThreads(__tstate);
1968 if (PyErr_Occurred()) SWIG_fail;
1969 }
1970 resultobj = SWIG_From_int((int)result);
1971 return resultobj;
1972 fail:
1973 return NULL;
1974 }
1975
1976
1977 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1978 PyObject *resultobj;
1979 wxPen *arg1 = (wxPen *) 0 ;
1980 wxColour result;
1981 PyObject * obj0 = 0 ;
1982 char *kwnames[] = {
1983 (char *) "self", NULL
1984 };
1985
1986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1989 {
1990 PyThreadState* __tstate = wxPyBeginAllowThreads();
1991 result = (arg1)->GetColour();
1992
1993 wxPyEndAllowThreads(__tstate);
1994 if (PyErr_Occurred()) SWIG_fail;
1995 }
1996 {
1997 wxColour * resultptr;
1998 resultptr = new wxColour((wxColour &) result);
1999 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2000 }
2001 return resultobj;
2002 fail:
2003 return NULL;
2004 }
2005
2006
2007 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2008 PyObject *resultobj;
2009 wxPen *arg1 = (wxPen *) 0 ;
2010 int result;
2011 PyObject * obj0 = 0 ;
2012 char *kwnames[] = {
2013 (char *) "self", NULL
2014 };
2015
2016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
2017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2019 {
2020 PyThreadState* __tstate = wxPyBeginAllowThreads();
2021 result = (int)(arg1)->GetJoin();
2022
2023 wxPyEndAllowThreads(__tstate);
2024 if (PyErr_Occurred()) SWIG_fail;
2025 }
2026 resultobj = SWIG_From_int((int)result);
2027 return resultobj;
2028 fail:
2029 return NULL;
2030 }
2031
2032
2033 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2034 PyObject *resultobj;
2035 wxPen *arg1 = (wxPen *) 0 ;
2036 int result;
2037 PyObject * obj0 = 0 ;
2038 char *kwnames[] = {
2039 (char *) "self", NULL
2040 };
2041
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2045 {
2046 PyThreadState* __tstate = wxPyBeginAllowThreads();
2047 result = (int)(arg1)->GetStyle();
2048
2049 wxPyEndAllowThreads(__tstate);
2050 if (PyErr_Occurred()) SWIG_fail;
2051 }
2052 resultobj = SWIG_From_int((int)result);
2053 return resultobj;
2054 fail:
2055 return NULL;
2056 }
2057
2058
2059 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2060 PyObject *resultobj;
2061 wxPen *arg1 = (wxPen *) 0 ;
2062 int result;
2063 PyObject * obj0 = 0 ;
2064 char *kwnames[] = {
2065 (char *) "self", NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 result = (int)(arg1)->GetWidth();
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 resultobj = SWIG_From_int((int)result);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082 }
2083
2084
2085 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2086 PyObject *resultobj;
2087 wxPen *arg1 = (wxPen *) 0 ;
2088 bool result;
2089 PyObject * obj0 = 0 ;
2090 char *kwnames[] = {
2091 (char *) "self", NULL
2092 };
2093
2094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2097 {
2098 PyThreadState* __tstate = wxPyBeginAllowThreads();
2099 result = (bool)(arg1)->Ok();
2100
2101 wxPyEndAllowThreads(__tstate);
2102 if (PyErr_Occurred()) SWIG_fail;
2103 }
2104 {
2105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2106 }
2107 return resultobj;
2108 fail:
2109 return NULL;
2110 }
2111
2112
2113 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2114 PyObject *resultobj;
2115 wxPen *arg1 = (wxPen *) 0 ;
2116 int arg2 ;
2117 PyObject * obj0 = 0 ;
2118 PyObject * obj1 = 0 ;
2119 char *kwnames[] = {
2120 (char *) "self",(char *) "cap_style", NULL
2121 };
2122
2123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2126 arg2 = (int)SWIG_As_int(obj1);
2127 if (PyErr_Occurred()) SWIG_fail;
2128 {
2129 PyThreadState* __tstate = wxPyBeginAllowThreads();
2130 (arg1)->SetCap(arg2);
2131
2132 wxPyEndAllowThreads(__tstate);
2133 if (PyErr_Occurred()) SWIG_fail;
2134 }
2135 Py_INCREF(Py_None); resultobj = Py_None;
2136 return resultobj;
2137 fail:
2138 return NULL;
2139 }
2140
2141
2142 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2143 PyObject *resultobj;
2144 wxPen *arg1 = (wxPen *) 0 ;
2145 wxColour *arg2 = 0 ;
2146 wxColour temp2 ;
2147 PyObject * obj0 = 0 ;
2148 PyObject * obj1 = 0 ;
2149 char *kwnames[] = {
2150 (char *) "self",(char *) "colour", NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2156 {
2157 arg2 = &temp2;
2158 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2159 }
2160 {
2161 PyThreadState* __tstate = wxPyBeginAllowThreads();
2162 (arg1)->SetColour(*arg2);
2163
2164 wxPyEndAllowThreads(__tstate);
2165 if (PyErr_Occurred()) SWIG_fail;
2166 }
2167 Py_INCREF(Py_None); resultobj = Py_None;
2168 return resultobj;
2169 fail:
2170 return NULL;
2171 }
2172
2173
2174 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2175 PyObject *resultobj;
2176 wxPen *arg1 = (wxPen *) 0 ;
2177 int arg2 ;
2178 PyObject * obj0 = 0 ;
2179 PyObject * obj1 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self",(char *) "join_style", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2187 arg2 = (int)SWIG_As_int(obj1);
2188 if (PyErr_Occurred()) SWIG_fail;
2189 {
2190 PyThreadState* __tstate = wxPyBeginAllowThreads();
2191 (arg1)->SetJoin(arg2);
2192
2193 wxPyEndAllowThreads(__tstate);
2194 if (PyErr_Occurred()) SWIG_fail;
2195 }
2196 Py_INCREF(Py_None); resultobj = Py_None;
2197 return resultobj;
2198 fail:
2199 return NULL;
2200 }
2201
2202
2203 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2204 PyObject *resultobj;
2205 wxPen *arg1 = (wxPen *) 0 ;
2206 int arg2 ;
2207 PyObject * obj0 = 0 ;
2208 PyObject * obj1 = 0 ;
2209 char *kwnames[] = {
2210 (char *) "self",(char *) "style", NULL
2211 };
2212
2213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2216 arg2 = (int)SWIG_As_int(obj1);
2217 if (PyErr_Occurred()) SWIG_fail;
2218 {
2219 PyThreadState* __tstate = wxPyBeginAllowThreads();
2220 (arg1)->SetStyle(arg2);
2221
2222 wxPyEndAllowThreads(__tstate);
2223 if (PyErr_Occurred()) SWIG_fail;
2224 }
2225 Py_INCREF(Py_None); resultobj = Py_None;
2226 return resultobj;
2227 fail:
2228 return NULL;
2229 }
2230
2231
2232 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2233 PyObject *resultobj;
2234 wxPen *arg1 = (wxPen *) 0 ;
2235 int arg2 ;
2236 PyObject * obj0 = 0 ;
2237 PyObject * obj1 = 0 ;
2238 char *kwnames[] = {
2239 (char *) "self",(char *) "width", NULL
2240 };
2241
2242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2245 arg2 = (int)SWIG_As_int(obj1);
2246 if (PyErr_Occurred()) SWIG_fail;
2247 {
2248 PyThreadState* __tstate = wxPyBeginAllowThreads();
2249 (arg1)->SetWidth(arg2);
2250
2251 wxPyEndAllowThreads(__tstate);
2252 if (PyErr_Occurred()) SWIG_fail;
2253 }
2254 Py_INCREF(Py_None); resultobj = Py_None;
2255 return resultobj;
2256 fail:
2257 return NULL;
2258 }
2259
2260
2261 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2262 PyObject *resultobj;
2263 wxPen *arg1 = (wxPen *) 0 ;
2264 int arg2 ;
2265 wxDash *arg3 = (wxDash *) 0 ;
2266 PyObject * obj0 = 0 ;
2267 PyObject * obj1 = 0 ;
2268 char *kwnames[] = {
2269 (char *) "self",(char *) "dashes", NULL
2270 };
2271
2272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2275 {
2276 arg2 = PyList_Size(obj1);
2277 arg3 = (wxDash*)byte_LIST_helper(obj1);
2278 if (arg3 == NULL) SWIG_fail;
2279 }
2280 {
2281 PyThreadState* __tstate = wxPyBeginAllowThreads();
2282 (arg1)->SetDashes(arg2,arg3);
2283
2284 wxPyEndAllowThreads(__tstate);
2285 if (PyErr_Occurred()) SWIG_fail;
2286 }
2287 Py_INCREF(Py_None); resultobj = Py_None;
2288 {
2289 if (arg3) delete [] arg3;
2290 }
2291 return resultobj;
2292 fail:
2293 {
2294 if (arg3) delete [] arg3;
2295 }
2296 return NULL;
2297 }
2298
2299
2300 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2301 PyObject *resultobj;
2302 wxPen *arg1 = (wxPen *) 0 ;
2303 PyObject *result;
2304 PyObject * obj0 = 0 ;
2305 char *kwnames[] = {
2306 (char *) "self", NULL
2307 };
2308
2309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2312 {
2313 PyThreadState* __tstate = wxPyBeginAllowThreads();
2314 result = (PyObject *)wxPen_GetDashes(arg1);
2315
2316 wxPyEndAllowThreads(__tstate);
2317 if (PyErr_Occurred()) SWIG_fail;
2318 }
2319 resultobj = result;
2320 return resultobj;
2321 fail:
2322 return NULL;
2323 }
2324
2325
2326 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2327 PyObject *resultobj;
2328 wxPen *arg1 = (wxPen *) 0 ;
2329 PyObject *arg2 = (PyObject *) 0 ;
2330 PyObject *arg3 = (PyObject *) 0 ;
2331 PyObject * obj0 = 0 ;
2332 PyObject * obj1 = 0 ;
2333 PyObject * obj2 = 0 ;
2334 char *kwnames[] = {
2335 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2336 };
2337
2338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2341 arg2 = obj1;
2342 arg3 = obj2;
2343 {
2344 PyThreadState* __tstate = wxPyBeginAllowThreads();
2345 wxPen__SetDashes(arg1,arg2,arg3);
2346
2347 wxPyEndAllowThreads(__tstate);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 }
2350 Py_INCREF(Py_None); resultobj = Py_None;
2351 return resultobj;
2352 fail:
2353 return NULL;
2354 }
2355
2356
2357 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2358 PyObject *resultobj;
2359 wxPen *arg1 = (wxPen *) 0 ;
2360 wxPen *arg2 = (wxPen *) 0 ;
2361 bool result;
2362 PyObject * obj0 = 0 ;
2363 PyObject * obj1 = 0 ;
2364 char *kwnames[] = {
2365 (char *) "self",(char *) "other", NULL
2366 };
2367
2368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2373 {
2374 PyThreadState* __tstate = wxPyBeginAllowThreads();
2375 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2376
2377 wxPyEndAllowThreads(__tstate);
2378 if (PyErr_Occurred()) SWIG_fail;
2379 }
2380 {
2381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2382 }
2383 return resultobj;
2384 fail:
2385 return NULL;
2386 }
2387
2388
2389 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2390 PyObject *resultobj;
2391 wxPen *arg1 = (wxPen *) 0 ;
2392 wxPen *arg2 = (wxPen *) 0 ;
2393 bool result;
2394 PyObject * obj0 = 0 ;
2395 PyObject * obj1 = 0 ;
2396 char *kwnames[] = {
2397 (char *) "self",(char *) "other", NULL
2398 };
2399
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2403 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2405 {
2406 PyThreadState* __tstate = wxPyBeginAllowThreads();
2407 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2408
2409 wxPyEndAllowThreads(__tstate);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 }
2412 {
2413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2414 }
2415 return resultobj;
2416 fail:
2417 return NULL;
2418 }
2419
2420
2421 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2422 PyObject *obj;
2423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2424 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2425 Py_INCREF(obj);
2426 return Py_BuildValue((char *)"");
2427 }
2428 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2429 PyObject *resultobj;
2430 wxColour *arg1 = 0 ;
2431 int arg2 = (int) wxSOLID ;
2432 wxBrush *result;
2433 wxColour temp1 ;
2434 PyObject * obj0 = 0 ;
2435 PyObject * obj1 = 0 ;
2436 char *kwnames[] = {
2437 (char *) "colour",(char *) "style", NULL
2438 };
2439
2440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2441 {
2442 arg1 = &temp1;
2443 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2444 }
2445 if (obj1) {
2446 arg2 = (int)SWIG_As_int(obj1);
2447 if (PyErr_Occurred()) SWIG_fail;
2448 }
2449 {
2450 if (!wxPyCheckForApp()) SWIG_fail;
2451 PyThreadState* __tstate = wxPyBeginAllowThreads();
2452 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2453
2454 wxPyEndAllowThreads(__tstate);
2455 if (PyErr_Occurred()) SWIG_fail;
2456 }
2457 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2458 return resultobj;
2459 fail:
2460 return NULL;
2461 }
2462
2463
2464 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2465 PyObject *resultobj;
2466 wxBrush *arg1 = (wxBrush *) 0 ;
2467 PyObject * obj0 = 0 ;
2468 char *kwnames[] = {
2469 (char *) "self", NULL
2470 };
2471
2472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2475 {
2476 PyThreadState* __tstate = wxPyBeginAllowThreads();
2477 delete arg1;
2478
2479 wxPyEndAllowThreads(__tstate);
2480 if (PyErr_Occurred()) SWIG_fail;
2481 }
2482 Py_INCREF(Py_None); resultobj = Py_None;
2483 return resultobj;
2484 fail:
2485 return NULL;
2486 }
2487
2488
2489 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2490 PyObject *resultobj;
2491 wxBrush *arg1 = (wxBrush *) 0 ;
2492 wxColour *arg2 = 0 ;
2493 wxColour temp2 ;
2494 PyObject * obj0 = 0 ;
2495 PyObject * obj1 = 0 ;
2496 char *kwnames[] = {
2497 (char *) "self",(char *) "col", NULL
2498 };
2499
2500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2503 {
2504 arg2 = &temp2;
2505 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2506 }
2507 {
2508 PyThreadState* __tstate = wxPyBeginAllowThreads();
2509 (arg1)->SetColour((wxColour const &)*arg2);
2510
2511 wxPyEndAllowThreads(__tstate);
2512 if (PyErr_Occurred()) SWIG_fail;
2513 }
2514 Py_INCREF(Py_None); resultobj = Py_None;
2515 return resultobj;
2516 fail:
2517 return NULL;
2518 }
2519
2520
2521 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2522 PyObject *resultobj;
2523 wxBrush *arg1 = (wxBrush *) 0 ;
2524 int arg2 ;
2525 PyObject * obj0 = 0 ;
2526 PyObject * obj1 = 0 ;
2527 char *kwnames[] = {
2528 (char *) "self",(char *) "style", NULL
2529 };
2530
2531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2534 arg2 = (int)SWIG_As_int(obj1);
2535 if (PyErr_Occurred()) SWIG_fail;
2536 {
2537 PyThreadState* __tstate = wxPyBeginAllowThreads();
2538 (arg1)->SetStyle(arg2);
2539
2540 wxPyEndAllowThreads(__tstate);
2541 if (PyErr_Occurred()) SWIG_fail;
2542 }
2543 Py_INCREF(Py_None); resultobj = Py_None;
2544 return resultobj;
2545 fail:
2546 return NULL;
2547 }
2548
2549
2550 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2551 PyObject *resultobj;
2552 wxBrush *arg1 = (wxBrush *) 0 ;
2553 wxBitmap *arg2 = 0 ;
2554 PyObject * obj0 = 0 ;
2555 PyObject * obj1 = 0 ;
2556 char *kwnames[] = {
2557 (char *) "self",(char *) "stipple", NULL
2558 };
2559
2560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2564 SWIG_POINTER_EXCEPTION | 0)) == -1)
2565 SWIG_fail;
2566 if (arg2 == NULL) {
2567 PyErr_SetString(PyExc_TypeError,"null reference");
2568 SWIG_fail;
2569 }
2570 {
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 (arg1)->SetStipple((wxBitmap const &)*arg2);
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 Py_INCREF(Py_None); resultobj = Py_None;
2578 return resultobj;
2579 fail:
2580 return NULL;
2581 }
2582
2583
2584 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2585 PyObject *resultobj;
2586 wxBrush *arg1 = (wxBrush *) 0 ;
2587 wxColour result;
2588 PyObject * obj0 = 0 ;
2589 char *kwnames[] = {
2590 (char *) "self", NULL
2591 };
2592
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2596 {
2597 PyThreadState* __tstate = wxPyBeginAllowThreads();
2598 result = ((wxBrush const *)arg1)->GetColour();
2599
2600 wxPyEndAllowThreads(__tstate);
2601 if (PyErr_Occurred()) SWIG_fail;
2602 }
2603 {
2604 wxColour * resultptr;
2605 resultptr = new wxColour((wxColour &) result);
2606 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2607 }
2608 return resultobj;
2609 fail:
2610 return NULL;
2611 }
2612
2613
2614 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 wxBrush *arg1 = (wxBrush *) 0 ;
2617 int result;
2618 PyObject * obj0 = 0 ;
2619 char *kwnames[] = {
2620 (char *) "self", NULL
2621 };
2622
2623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2626 {
2627 PyThreadState* __tstate = wxPyBeginAllowThreads();
2628 result = (int)((wxBrush const *)arg1)->GetStyle();
2629
2630 wxPyEndAllowThreads(__tstate);
2631 if (PyErr_Occurred()) SWIG_fail;
2632 }
2633 resultobj = SWIG_From_int((int)result);
2634 return resultobj;
2635 fail:
2636 return NULL;
2637 }
2638
2639
2640 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2641 PyObject *resultobj;
2642 wxBrush *arg1 = (wxBrush *) 0 ;
2643 wxBitmap *result;
2644 PyObject * obj0 = 0 ;
2645 char *kwnames[] = {
2646 (char *) "self", NULL
2647 };
2648
2649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2652 {
2653 PyThreadState* __tstate = wxPyBeginAllowThreads();
2654 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2655
2656 wxPyEndAllowThreads(__tstate);
2657 if (PyErr_Occurred()) SWIG_fail;
2658 }
2659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2660 return resultobj;
2661 fail:
2662 return NULL;
2663 }
2664
2665
2666 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2667 PyObject *resultobj;
2668 wxBrush *arg1 = (wxBrush *) 0 ;
2669 bool result;
2670 PyObject * obj0 = 0 ;
2671 char *kwnames[] = {
2672 (char *) "self", NULL
2673 };
2674
2675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2678 {
2679 PyThreadState* __tstate = wxPyBeginAllowThreads();
2680 result = (bool)(arg1)->Ok();
2681
2682 wxPyEndAllowThreads(__tstate);
2683 if (PyErr_Occurred()) SWIG_fail;
2684 }
2685 {
2686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2687 }
2688 return resultobj;
2689 fail:
2690 return NULL;
2691 }
2692
2693
2694 static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2695 PyObject *resultobj;
2696 wxBrush *arg1 = (wxBrush *) 0 ;
2697 short result;
2698 PyObject * obj0 = 0 ;
2699 char *kwnames[] = {
2700 (char *) "self", NULL
2701 };
2702
2703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2706 {
2707 PyThreadState* __tstate = wxPyBeginAllowThreads();
2708 result = (short)(arg1)->MacGetTheme();
2709
2710 wxPyEndAllowThreads(__tstate);
2711 if (PyErr_Occurred()) SWIG_fail;
2712 }
2713 resultobj = SWIG_From_short((short)result);
2714 return resultobj;
2715 fail:
2716 return NULL;
2717 }
2718
2719
2720 static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2721 PyObject *resultobj;
2722 wxBrush *arg1 = (wxBrush *) 0 ;
2723 short arg2 ;
2724 PyObject * obj0 = 0 ;
2725 PyObject * obj1 = 0 ;
2726 char *kwnames[] = {
2727 (char *) "self",(char *) "macThemeBrush", NULL
2728 };
2729
2730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2733 arg2 = (short)SWIG_As_short(obj1);
2734 if (PyErr_Occurred()) SWIG_fail;
2735 {
2736 PyThreadState* __tstate = wxPyBeginAllowThreads();
2737 (arg1)->MacSetTheme(arg2);
2738
2739 wxPyEndAllowThreads(__tstate);
2740 if (PyErr_Occurred()) SWIG_fail;
2741 }
2742 Py_INCREF(Py_None); resultobj = Py_None;
2743 return resultobj;
2744 fail:
2745 return NULL;
2746 }
2747
2748
2749 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2750 PyObject *obj;
2751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2752 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2753 Py_INCREF(obj);
2754 return Py_BuildValue((char *)"");
2755 }
2756 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2757 PyObject *resultobj;
2758 wxString *arg1 = 0 ;
2759 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2760 wxBitmap *result;
2761 bool temp1 = False ;
2762 PyObject * obj0 = 0 ;
2763 PyObject * obj1 = 0 ;
2764 char *kwnames[] = {
2765 (char *) "name",(char *) "type", NULL
2766 };
2767
2768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2769 {
2770 arg1 = wxString_in_helper(obj0);
2771 if (arg1 == NULL) SWIG_fail;
2772 temp1 = True;
2773 }
2774 if (obj1) {
2775 arg2 = (int)SWIG_As_int(obj1);
2776 if (PyErr_Occurred()) SWIG_fail;
2777 }
2778 {
2779 if (!wxPyCheckForApp()) SWIG_fail;
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) SWIG_fail;
2785 }
2786 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2787 {
2788 if (temp1)
2789 delete arg1;
2790 }
2791 return resultobj;
2792 fail:
2793 {
2794 if (temp1)
2795 delete arg1;
2796 }
2797 return NULL;
2798 }
2799
2800
2801 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2802 PyObject *resultobj;
2803 wxBitmap *arg1 = (wxBitmap *) 0 ;
2804 PyObject * obj0 = 0 ;
2805 char *kwnames[] = {
2806 (char *) "self", NULL
2807 };
2808
2809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2812 {
2813 PyThreadState* __tstate = wxPyBeginAllowThreads();
2814 delete arg1;
2815
2816 wxPyEndAllowThreads(__tstate);
2817 if (PyErr_Occurred()) SWIG_fail;
2818 }
2819 Py_INCREF(Py_None); resultobj = Py_None;
2820 return resultobj;
2821 fail:
2822 return NULL;
2823 }
2824
2825
2826 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2827 PyObject *resultobj;
2828 int arg1 ;
2829 int arg2 ;
2830 int arg3 = (int) -1 ;
2831 wxBitmap *result;
2832 PyObject * obj0 = 0 ;
2833 PyObject * obj1 = 0 ;
2834 PyObject * obj2 = 0 ;
2835 char *kwnames[] = {
2836 (char *) "width",(char *) "height",(char *) "depth", NULL
2837 };
2838
2839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2840 arg1 = (int)SWIG_As_int(obj0);
2841 if (PyErr_Occurred()) SWIG_fail;
2842 arg2 = (int)SWIG_As_int(obj1);
2843 if (PyErr_Occurred()) SWIG_fail;
2844 if (obj2) {
2845 arg3 = (int)SWIG_As_int(obj2);
2846 if (PyErr_Occurred()) SWIG_fail;
2847 }
2848 {
2849 if (!wxPyCheckForApp()) SWIG_fail;
2850 PyThreadState* __tstate = wxPyBeginAllowThreads();
2851 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2852
2853 wxPyEndAllowThreads(__tstate);
2854 if (PyErr_Occurred()) SWIG_fail;
2855 }
2856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2857 return resultobj;
2858 fail:
2859 return NULL;
2860 }
2861
2862
2863 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2864 PyObject *resultobj;
2865 wxIcon *arg1 = 0 ;
2866 wxBitmap *result;
2867 PyObject * obj0 = 0 ;
2868 char *kwnames[] = {
2869 (char *) "icon", NULL
2870 };
2871
2872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2874 SWIG_POINTER_EXCEPTION | 0)) == -1)
2875 SWIG_fail;
2876 if (arg1 == NULL) {
2877 PyErr_SetString(PyExc_TypeError,"null reference");
2878 SWIG_fail;
2879 }
2880 {
2881 if (!wxPyCheckForApp()) SWIG_fail;
2882 PyThreadState* __tstate = wxPyBeginAllowThreads();
2883 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2884
2885 wxPyEndAllowThreads(__tstate);
2886 if (PyErr_Occurred()) SWIG_fail;
2887 }
2888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2889 return resultobj;
2890 fail:
2891 return NULL;
2892 }
2893
2894
2895 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2896 PyObject *resultobj;
2897 wxImage *arg1 = 0 ;
2898 int arg2 = (int) -1 ;
2899 wxBitmap *result;
2900 PyObject * obj0 = 0 ;
2901 PyObject * obj1 = 0 ;
2902 char *kwnames[] = {
2903 (char *) "image",(char *) "depth", NULL
2904 };
2905
2906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2908 SWIG_POINTER_EXCEPTION | 0)) == -1)
2909 SWIG_fail;
2910 if (arg1 == NULL) {
2911 PyErr_SetString(PyExc_TypeError,"null reference");
2912 SWIG_fail;
2913 }
2914 if (obj1) {
2915 arg2 = (int)SWIG_As_int(obj1);
2916 if (PyErr_Occurred()) SWIG_fail;
2917 }
2918 {
2919 if (!wxPyCheckForApp()) SWIG_fail;
2920 PyThreadState* __tstate = wxPyBeginAllowThreads();
2921 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2922
2923 wxPyEndAllowThreads(__tstate);
2924 if (PyErr_Occurred()) SWIG_fail;
2925 }
2926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2927 return resultobj;
2928 fail:
2929 return NULL;
2930 }
2931
2932
2933 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
2934 PyObject *resultobj;
2935 PyObject *arg1 = (PyObject *) 0 ;
2936 wxBitmap *result;
2937 PyObject * obj0 = 0 ;
2938 char *kwnames[] = {
2939 (char *) "listOfStrings", NULL
2940 };
2941
2942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2943 arg1 = obj0;
2944 {
2945 if (!wxPyCheckForApp()) SWIG_fail;
2946 PyThreadState* __tstate = wxPyBeginAllowThreads();
2947 result = (wxBitmap *)new_wxBitmap(arg1);
2948
2949 wxPyEndAllowThreads(__tstate);
2950 if (PyErr_Occurred()) SWIG_fail;
2951 }
2952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2953 return resultobj;
2954 fail:
2955 return NULL;
2956 }
2957
2958
2959 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
2960 PyObject *resultobj;
2961 PyObject *arg1 = (PyObject *) 0 ;
2962 int arg2 ;
2963 int arg3 ;
2964 int arg4 = (int) 1 ;
2965 wxBitmap *result;
2966 PyObject * obj0 = 0 ;
2967 PyObject * obj1 = 0 ;
2968 PyObject * obj2 = 0 ;
2969 PyObject * obj3 = 0 ;
2970 char *kwnames[] = {
2971 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2972 };
2973
2974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2975 arg1 = obj0;
2976 arg2 = (int)SWIG_As_int(obj1);
2977 if (PyErr_Occurred()) SWIG_fail;
2978 arg3 = (int)SWIG_As_int(obj2);
2979 if (PyErr_Occurred()) SWIG_fail;
2980 if (obj3) {
2981 arg4 = (int)SWIG_As_int(obj3);
2982 if (PyErr_Occurred()) SWIG_fail;
2983 }
2984 {
2985 if (!wxPyCheckForApp()) SWIG_fail;
2986 PyThreadState* __tstate = wxPyBeginAllowThreads();
2987 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2988
2989 wxPyEndAllowThreads(__tstate);
2990 if (PyErr_Occurred()) SWIG_fail;
2991 }
2992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2993 return resultobj;
2994 fail:
2995 return NULL;
2996 }
2997
2998
2999 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3000 PyObject *resultobj;
3001 wxBitmap *arg1 = (wxBitmap *) 0 ;
3002 bool result;
3003 PyObject * obj0 = 0 ;
3004 char *kwnames[] = {
3005 (char *) "self", NULL
3006 };
3007
3008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3011 {
3012 PyThreadState* __tstate = wxPyBeginAllowThreads();
3013 result = (bool)(arg1)->Ok();
3014
3015 wxPyEndAllowThreads(__tstate);
3016 if (PyErr_Occurred()) SWIG_fail;
3017 }
3018 {
3019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3020 }
3021 return resultobj;
3022 fail:
3023 return NULL;
3024 }
3025
3026
3027 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3028 PyObject *resultobj;
3029 wxBitmap *arg1 = (wxBitmap *) 0 ;
3030 int result;
3031 PyObject * obj0 = 0 ;
3032 char *kwnames[] = {
3033 (char *) "self", NULL
3034 };
3035
3036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3039 {
3040 PyThreadState* __tstate = wxPyBeginAllowThreads();
3041 result = (int)(arg1)->GetWidth();
3042
3043 wxPyEndAllowThreads(__tstate);
3044 if (PyErr_Occurred()) SWIG_fail;
3045 }
3046 resultobj = SWIG_From_int((int)result);
3047 return resultobj;
3048 fail:
3049 return NULL;
3050 }
3051
3052
3053 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3054 PyObject *resultobj;
3055 wxBitmap *arg1 = (wxBitmap *) 0 ;
3056 int result;
3057 PyObject * obj0 = 0 ;
3058 char *kwnames[] = {
3059 (char *) "self", NULL
3060 };
3061
3062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3065 {
3066 PyThreadState* __tstate = wxPyBeginAllowThreads();
3067 result = (int)(arg1)->GetHeight();
3068
3069 wxPyEndAllowThreads(__tstate);
3070 if (PyErr_Occurred()) SWIG_fail;
3071 }
3072 resultobj = SWIG_From_int((int)result);
3073 return resultobj;
3074 fail:
3075 return NULL;
3076 }
3077
3078
3079 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3080 PyObject *resultobj;
3081 wxBitmap *arg1 = (wxBitmap *) 0 ;
3082 int result;
3083 PyObject * obj0 = 0 ;
3084 char *kwnames[] = {
3085 (char *) "self", NULL
3086 };
3087
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3091 {
3092 PyThreadState* __tstate = wxPyBeginAllowThreads();
3093 result = (int)(arg1)->GetDepth();
3094
3095 wxPyEndAllowThreads(__tstate);
3096 if (PyErr_Occurred()) SWIG_fail;
3097 }
3098 resultobj = SWIG_From_int((int)result);
3099 return resultobj;
3100 fail:
3101 return NULL;
3102 }
3103
3104
3105 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3106 PyObject *resultobj;
3107 wxBitmap *arg1 = (wxBitmap *) 0 ;
3108 wxSize result;
3109 PyObject * obj0 = 0 ;
3110 char *kwnames[] = {
3111 (char *) "self", NULL
3112 };
3113
3114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3117 {
3118 PyThreadState* __tstate = wxPyBeginAllowThreads();
3119 result = wxBitmap_GetSize(arg1);
3120
3121 wxPyEndAllowThreads(__tstate);
3122 if (PyErr_Occurred()) SWIG_fail;
3123 }
3124 {
3125 wxSize * resultptr;
3126 resultptr = new wxSize((wxSize &) result);
3127 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3128 }
3129 return resultobj;
3130 fail:
3131 return NULL;
3132 }
3133
3134
3135 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3136 PyObject *resultobj;
3137 wxBitmap *arg1 = (wxBitmap *) 0 ;
3138 SwigValueWrapper< wxImage > result;
3139 PyObject * obj0 = 0 ;
3140 char *kwnames[] = {
3141 (char *) "self", NULL
3142 };
3143
3144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3147 {
3148 PyThreadState* __tstate = wxPyBeginAllowThreads();
3149 result = ((wxBitmap const *)arg1)->ConvertToImage();
3150
3151 wxPyEndAllowThreads(__tstate);
3152 if (PyErr_Occurred()) SWIG_fail;
3153 }
3154 {
3155 wxImage * resultptr;
3156 resultptr = new wxImage((wxImage &) result);
3157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3158 }
3159 return resultobj;
3160 fail:
3161 return NULL;
3162 }
3163
3164
3165 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3166 PyObject *resultobj;
3167 wxBitmap *arg1 = (wxBitmap *) 0 ;
3168 wxMask *result;
3169 PyObject * obj0 = 0 ;
3170 char *kwnames[] = {
3171 (char *) "self", NULL
3172 };
3173
3174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3177 {
3178 PyThreadState* __tstate = wxPyBeginAllowThreads();
3179 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3180
3181 wxPyEndAllowThreads(__tstate);
3182 if (PyErr_Occurred()) SWIG_fail;
3183 }
3184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3185 return resultobj;
3186 fail:
3187 return NULL;
3188 }
3189
3190
3191 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3192 PyObject *resultobj;
3193 wxBitmap *arg1 = (wxBitmap *) 0 ;
3194 wxMask *arg2 = (wxMask *) 0 ;
3195 PyObject * obj0 = 0 ;
3196 PyObject * obj1 = 0 ;
3197 char *kwnames[] = {
3198 (char *) "self",(char *) "mask", NULL
3199 };
3200
3201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3206 {
3207 PyThreadState* __tstate = wxPyBeginAllowThreads();
3208 (arg1)->SetMask(arg2);
3209
3210 wxPyEndAllowThreads(__tstate);
3211 if (PyErr_Occurred()) SWIG_fail;
3212 }
3213 Py_INCREF(Py_None); resultobj = Py_None;
3214 return resultobj;
3215 fail:
3216 return NULL;
3217 }
3218
3219
3220 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3221 PyObject *resultobj;
3222 wxBitmap *arg1 = (wxBitmap *) 0 ;
3223 wxColour *arg2 = 0 ;
3224 wxColour temp2 ;
3225 PyObject * obj0 = 0 ;
3226 PyObject * obj1 = 0 ;
3227 char *kwnames[] = {
3228 (char *) "self",(char *) "colour", NULL
3229 };
3230
3231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3234 {
3235 arg2 = &temp2;
3236 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3237 }
3238 {
3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3240 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3241
3242 wxPyEndAllowThreads(__tstate);
3243 if (PyErr_Occurred()) SWIG_fail;
3244 }
3245 Py_INCREF(Py_None); resultobj = Py_None;
3246 return resultobj;
3247 fail:
3248 return NULL;
3249 }
3250
3251
3252 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3253 PyObject *resultobj;
3254 wxBitmap *arg1 = (wxBitmap *) 0 ;
3255 wxRect *arg2 = 0 ;
3256 SwigValueWrapper< wxBitmap > result;
3257 wxRect temp2 ;
3258 PyObject * obj0 = 0 ;
3259 PyObject * obj1 = 0 ;
3260 char *kwnames[] = {
3261 (char *) "self",(char *) "rect", NULL
3262 };
3263
3264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3267 {
3268 arg2 = &temp2;
3269 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3270 }
3271 {
3272 PyThreadState* __tstate = wxPyBeginAllowThreads();
3273 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3274
3275 wxPyEndAllowThreads(__tstate);
3276 if (PyErr_Occurred()) SWIG_fail;
3277 }
3278 {
3279 wxBitmap * resultptr;
3280 resultptr = new wxBitmap((wxBitmap &) result);
3281 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3282 }
3283 return resultobj;
3284 fail:
3285 return NULL;
3286 }
3287
3288
3289 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3290 PyObject *resultobj;
3291 wxBitmap *arg1 = (wxBitmap *) 0 ;
3292 wxString *arg2 = 0 ;
3293 int arg3 ;
3294 wxPalette *arg4 = (wxPalette *) NULL ;
3295 bool result;
3296 bool temp2 = False ;
3297 PyObject * obj0 = 0 ;
3298 PyObject * obj1 = 0 ;
3299 PyObject * obj2 = 0 ;
3300 PyObject * obj3 = 0 ;
3301 char *kwnames[] = {
3302 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3303 };
3304
3305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3308 {
3309 arg2 = wxString_in_helper(obj1);
3310 if (arg2 == NULL) SWIG_fail;
3311 temp2 = True;
3312 }
3313 arg3 = (int)SWIG_As_int(obj2);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 if (obj3) {
3316 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3318 }
3319 {
3320 PyThreadState* __tstate = wxPyBeginAllowThreads();
3321 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3322
3323 wxPyEndAllowThreads(__tstate);
3324 if (PyErr_Occurred()) SWIG_fail;
3325 }
3326 {
3327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3328 }
3329 {
3330 if (temp2)
3331 delete arg2;
3332 }
3333 return resultobj;
3334 fail:
3335 {
3336 if (temp2)
3337 delete arg2;
3338 }
3339 return NULL;
3340 }
3341
3342
3343 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3344 PyObject *resultobj;
3345 wxBitmap *arg1 = (wxBitmap *) 0 ;
3346 wxString *arg2 = 0 ;
3347 int arg3 ;
3348 bool result;
3349 bool temp2 = False ;
3350 PyObject * obj0 = 0 ;
3351 PyObject * obj1 = 0 ;
3352 PyObject * obj2 = 0 ;
3353 char *kwnames[] = {
3354 (char *) "self",(char *) "name",(char *) "type", NULL
3355 };
3356
3357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3360 {
3361 arg2 = wxString_in_helper(obj1);
3362 if (arg2 == NULL) SWIG_fail;
3363 temp2 = True;
3364 }
3365 arg3 = (int)SWIG_As_int(obj2);
3366 if (PyErr_Occurred()) SWIG_fail;
3367 {
3368 PyThreadState* __tstate = wxPyBeginAllowThreads();
3369 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3370
3371 wxPyEndAllowThreads(__tstate);
3372 if (PyErr_Occurred()) SWIG_fail;
3373 }
3374 {
3375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3376 }
3377 {
3378 if (temp2)
3379 delete arg2;
3380 }
3381 return resultobj;
3382 fail:
3383 {
3384 if (temp2)
3385 delete arg2;
3386 }
3387 return NULL;
3388 }
3389
3390
3391 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3392 PyObject *resultobj;
3393 wxBitmap *arg1 = (wxBitmap *) 0 ;
3394 wxIcon *arg2 = 0 ;
3395 bool result;
3396 PyObject * obj0 = 0 ;
3397 PyObject * obj1 = 0 ;
3398 char *kwnames[] = {
3399 (char *) "self",(char *) "icon", NULL
3400 };
3401
3402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3406 SWIG_POINTER_EXCEPTION | 0)) == -1)
3407 SWIG_fail;
3408 if (arg2 == NULL) {
3409 PyErr_SetString(PyExc_TypeError,"null reference");
3410 SWIG_fail;
3411 }
3412 {
3413 PyThreadState* __tstate = wxPyBeginAllowThreads();
3414 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3415
3416 wxPyEndAllowThreads(__tstate);
3417 if (PyErr_Occurred()) SWIG_fail;
3418 }
3419 {
3420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3421 }
3422 return resultobj;
3423 fail:
3424 return NULL;
3425 }
3426
3427
3428 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3429 PyObject *resultobj;
3430 wxBitmap *arg1 = (wxBitmap *) 0 ;
3431 int arg2 ;
3432 PyObject * obj0 = 0 ;
3433 PyObject * obj1 = 0 ;
3434 char *kwnames[] = {
3435 (char *) "self",(char *) "height", NULL
3436 };
3437
3438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3441 arg2 = (int)SWIG_As_int(obj1);
3442 if (PyErr_Occurred()) SWIG_fail;
3443 {
3444 PyThreadState* __tstate = wxPyBeginAllowThreads();
3445 (arg1)->SetHeight(arg2);
3446
3447 wxPyEndAllowThreads(__tstate);
3448 if (PyErr_Occurred()) SWIG_fail;
3449 }
3450 Py_INCREF(Py_None); resultobj = Py_None;
3451 return resultobj;
3452 fail:
3453 return NULL;
3454 }
3455
3456
3457 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3458 PyObject *resultobj;
3459 wxBitmap *arg1 = (wxBitmap *) 0 ;
3460 int arg2 ;
3461 PyObject * obj0 = 0 ;
3462 PyObject * obj1 = 0 ;
3463 char *kwnames[] = {
3464 (char *) "self",(char *) "width", NULL
3465 };
3466
3467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3470 arg2 = (int)SWIG_As_int(obj1);
3471 if (PyErr_Occurred()) SWIG_fail;
3472 {
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 (arg1)->SetWidth(arg2);
3475
3476 wxPyEndAllowThreads(__tstate);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 Py_INCREF(Py_None); resultobj = Py_None;
3480 return resultobj;
3481 fail:
3482 return NULL;
3483 }
3484
3485
3486 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxBitmap *arg1 = (wxBitmap *) 0 ;
3489 int arg2 ;
3490 PyObject * obj0 = 0 ;
3491 PyObject * obj1 = 0 ;
3492 char *kwnames[] = {
3493 (char *) "self",(char *) "depth", NULL
3494 };
3495
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3499 arg2 = (int)SWIG_As_int(obj1);
3500 if (PyErr_Occurred()) SWIG_fail;
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 (arg1)->SetDepth(arg2);
3504
3505 wxPyEndAllowThreads(__tstate);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 Py_INCREF(Py_None); resultobj = Py_None;
3509 return resultobj;
3510 fail:
3511 return NULL;
3512 }
3513
3514
3515 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3516 PyObject *resultobj;
3517 wxBitmap *arg1 = (wxBitmap *) 0 ;
3518 wxSize *arg2 = 0 ;
3519 wxSize temp2 ;
3520 PyObject * obj0 = 0 ;
3521 PyObject * obj1 = 0 ;
3522 char *kwnames[] = {
3523 (char *) "self",(char *) "size", NULL
3524 };
3525
3526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3529 {
3530 arg2 = &temp2;
3531 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3532 }
3533 {
3534 PyThreadState* __tstate = wxPyBeginAllowThreads();
3535 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3536
3537 wxPyEndAllowThreads(__tstate);
3538 if (PyErr_Occurred()) SWIG_fail;
3539 }
3540 Py_INCREF(Py_None); resultobj = Py_None;
3541 return resultobj;
3542 fail:
3543 return NULL;
3544 }
3545
3546
3547 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3548 PyObject *resultobj;
3549 wxBitmap *arg1 = (wxBitmap *) 0 ;
3550 wxBitmap *arg2 = (wxBitmap *) 0 ;
3551 bool result;
3552 PyObject * obj0 = 0 ;
3553 PyObject * obj1 = 0 ;
3554 char *kwnames[] = {
3555 (char *) "self",(char *) "other", NULL
3556 };
3557
3558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3563 {
3564 PyThreadState* __tstate = wxPyBeginAllowThreads();
3565 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3566
3567 wxPyEndAllowThreads(__tstate);
3568 if (PyErr_Occurred()) SWIG_fail;
3569 }
3570 {
3571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3572 }
3573 return resultobj;
3574 fail:
3575 return NULL;
3576 }
3577
3578
3579 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3580 PyObject *resultobj;
3581 wxBitmap *arg1 = (wxBitmap *) 0 ;
3582 wxBitmap *arg2 = (wxBitmap *) 0 ;
3583 bool result;
3584 PyObject * obj0 = 0 ;
3585 PyObject * obj1 = 0 ;
3586 char *kwnames[] = {
3587 (char *) "self",(char *) "other", NULL
3588 };
3589
3590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3595 {
3596 PyThreadState* __tstate = wxPyBeginAllowThreads();
3597 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3598
3599 wxPyEndAllowThreads(__tstate);
3600 if (PyErr_Occurred()) SWIG_fail;
3601 }
3602 {
3603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3604 }
3605 return resultobj;
3606 fail:
3607 return NULL;
3608 }
3609
3610
3611 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3612 PyObject *obj;
3613 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3614 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3615 Py_INCREF(obj);
3616 return Py_BuildValue((char *)"");
3617 }
3618 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3619 PyObject *resultobj;
3620 wxBitmap *arg1 = 0 ;
3621 wxColour const &arg2_defvalue = wxNullColour ;
3622 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3623 wxMask *result;
3624 wxColour temp2 ;
3625 PyObject * obj0 = 0 ;
3626 PyObject * obj1 = 0 ;
3627 char *kwnames[] = {
3628 (char *) "bitmap",(char *) "colour", NULL
3629 };
3630
3631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3633 SWIG_POINTER_EXCEPTION | 0)) == -1)
3634 SWIG_fail;
3635 if (arg1 == NULL) {
3636 PyErr_SetString(PyExc_TypeError,"null reference");
3637 SWIG_fail;
3638 }
3639 if (obj1) {
3640 {
3641 arg2 = &temp2;
3642 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3643 }
3644 }
3645 {
3646 if (!wxPyCheckForApp()) SWIG_fail;
3647 PyThreadState* __tstate = wxPyBeginAllowThreads();
3648 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3649
3650 wxPyEndAllowThreads(__tstate);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 }
3653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3654 return resultobj;
3655 fail:
3656 return NULL;
3657 }
3658
3659
3660 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3661 PyObject *obj;
3662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3663 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3664 Py_INCREF(obj);
3665 return Py_BuildValue((char *)"");
3666 }
3667 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3668 PyObject *resultobj;
3669 wxString *arg1 = 0 ;
3670 int arg2 ;
3671 int arg3 = (int) -1 ;
3672 int arg4 = (int) -1 ;
3673 wxIcon *result;
3674 bool temp1 = False ;
3675 PyObject * obj0 = 0 ;
3676 PyObject * obj1 = 0 ;
3677 PyObject * obj2 = 0 ;
3678 PyObject * obj3 = 0 ;
3679 char *kwnames[] = {
3680 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3681 };
3682
3683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3684 {
3685 arg1 = wxString_in_helper(obj0);
3686 if (arg1 == NULL) SWIG_fail;
3687 temp1 = True;
3688 }
3689 arg2 = (int)SWIG_As_int(obj1);
3690 if (PyErr_Occurred()) SWIG_fail;
3691 if (obj2) {
3692 arg3 = (int)SWIG_As_int(obj2);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 if (obj3) {
3696 arg4 = (int)SWIG_As_int(obj3);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 {
3700 if (!wxPyCheckForApp()) SWIG_fail;
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
3702 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3703
3704 wxPyEndAllowThreads(__tstate);
3705 if (PyErr_Occurred()) SWIG_fail;
3706 }
3707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3708 {
3709 if (temp1)
3710 delete arg1;
3711 }
3712 return resultobj;
3713 fail:
3714 {
3715 if (temp1)
3716 delete arg1;
3717 }
3718 return NULL;
3719 }
3720
3721
3722 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3723 PyObject *resultobj;
3724 wxIcon *arg1 = (wxIcon *) 0 ;
3725 PyObject * obj0 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "self", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3733 {
3734 PyThreadState* __tstate = wxPyBeginAllowThreads();
3735 delete arg1;
3736
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) SWIG_fail;
3739 }
3740 Py_INCREF(Py_None); resultobj = Py_None;
3741 return resultobj;
3742 fail:
3743 return NULL;
3744 }
3745
3746
3747 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3748 PyObject *resultobj;
3749 wxIcon *result;
3750 char *kwnames[] = {
3751 NULL
3752 };
3753
3754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3755 {
3756 if (!wxPyCheckForApp()) SWIG_fail;
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 result = (wxIcon *)new wxIcon();
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3764 return resultobj;
3765 fail:
3766 return NULL;
3767 }
3768
3769
3770 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3771 PyObject *resultobj;
3772 wxIconLocation *arg1 = 0 ;
3773 wxIcon *result;
3774 PyObject * obj0 = 0 ;
3775 char *kwnames[] = {
3776 (char *) "loc", NULL
3777 };
3778
3779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3781 SWIG_POINTER_EXCEPTION | 0)) == -1)
3782 SWIG_fail;
3783 if (arg1 == NULL) {
3784 PyErr_SetString(PyExc_TypeError,"null reference");
3785 SWIG_fail;
3786 }
3787 {
3788 if (!wxPyCheckForApp()) SWIG_fail;
3789 PyThreadState* __tstate = wxPyBeginAllowThreads();
3790 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3791
3792 wxPyEndAllowThreads(__tstate);
3793 if (PyErr_Occurred()) SWIG_fail;
3794 }
3795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3796 return resultobj;
3797 fail:
3798 return NULL;
3799 }
3800
3801
3802 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3803 PyObject *resultobj;
3804 wxBitmap *arg1 = 0 ;
3805 wxIcon *result;
3806 PyObject * obj0 = 0 ;
3807 char *kwnames[] = {
3808 (char *) "bmp", NULL
3809 };
3810
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3813 SWIG_POINTER_EXCEPTION | 0)) == -1)
3814 SWIG_fail;
3815 if (arg1 == NULL) {
3816 PyErr_SetString(PyExc_TypeError,"null reference");
3817 SWIG_fail;
3818 }
3819 {
3820 if (!wxPyCheckForApp()) SWIG_fail;
3821 PyThreadState* __tstate = wxPyBeginAllowThreads();
3822 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3823
3824 wxPyEndAllowThreads(__tstate);
3825 if (PyErr_Occurred()) SWIG_fail;
3826 }
3827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3828 return resultobj;
3829 fail:
3830 return NULL;
3831 }
3832
3833
3834 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3835 PyObject *resultobj;
3836 PyObject *arg1 = (PyObject *) 0 ;
3837 wxIcon *result;
3838 PyObject * obj0 = 0 ;
3839 char *kwnames[] = {
3840 (char *) "listOfStrings", NULL
3841 };
3842
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3844 arg1 = obj0;
3845 {
3846 if (!wxPyCheckForApp()) SWIG_fail;
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (wxIcon *)new_wxIcon(arg1);
3849
3850 wxPyEndAllowThreads(__tstate);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
3853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3854 return resultobj;
3855 fail:
3856 return NULL;
3857 }
3858
3859
3860 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3861 PyObject *resultobj;
3862 wxIcon *arg1 = (wxIcon *) 0 ;
3863 bool result;
3864 PyObject * obj0 = 0 ;
3865 char *kwnames[] = {
3866 (char *) "self", NULL
3867 };
3868
3869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3872 {
3873 PyThreadState* __tstate = wxPyBeginAllowThreads();
3874 result = (bool)(arg1)->Ok();
3875
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
3879 {
3880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3881 }
3882 return resultobj;
3883 fail:
3884 return NULL;
3885 }
3886
3887
3888 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3889 PyObject *resultobj;
3890 wxIcon *arg1 = (wxIcon *) 0 ;
3891 int result;
3892 PyObject * obj0 = 0 ;
3893 char *kwnames[] = {
3894 (char *) "self", NULL
3895 };
3896
3897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3900 {
3901 PyThreadState* __tstate = wxPyBeginAllowThreads();
3902 result = (int)(arg1)->GetWidth();
3903
3904 wxPyEndAllowThreads(__tstate);
3905 if (PyErr_Occurred()) SWIG_fail;
3906 }
3907 resultobj = SWIG_From_int((int)result);
3908 return resultobj;
3909 fail:
3910 return NULL;
3911 }
3912
3913
3914 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3915 PyObject *resultobj;
3916 wxIcon *arg1 = (wxIcon *) 0 ;
3917 int result;
3918 PyObject * obj0 = 0 ;
3919 char *kwnames[] = {
3920 (char *) "self", NULL
3921 };
3922
3923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3926 {
3927 PyThreadState* __tstate = wxPyBeginAllowThreads();
3928 result = (int)(arg1)->GetHeight();
3929
3930 wxPyEndAllowThreads(__tstate);
3931 if (PyErr_Occurred()) SWIG_fail;
3932 }
3933 resultobj = SWIG_From_int((int)result);
3934 return resultobj;
3935 fail:
3936 return NULL;
3937 }
3938
3939
3940 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3941 PyObject *resultobj;
3942 wxIcon *arg1 = (wxIcon *) 0 ;
3943 int result;
3944 PyObject * obj0 = 0 ;
3945 char *kwnames[] = {
3946 (char *) "self", NULL
3947 };
3948
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3952 {
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 result = (int)(arg1)->GetDepth();
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 resultobj = SWIG_From_int((int)result);
3960 return resultobj;
3961 fail:
3962 return NULL;
3963 }
3964
3965
3966 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3967 PyObject *resultobj;
3968 wxIcon *arg1 = (wxIcon *) 0 ;
3969 int arg2 ;
3970 PyObject * obj0 = 0 ;
3971 PyObject * obj1 = 0 ;
3972 char *kwnames[] = {
3973 (char *) "self",(char *) "w", NULL
3974 };
3975
3976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3979 arg2 = (int)SWIG_As_int(obj1);
3980 if (PyErr_Occurred()) SWIG_fail;
3981 {
3982 PyThreadState* __tstate = wxPyBeginAllowThreads();
3983 (arg1)->SetWidth(arg2);
3984
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 Py_INCREF(Py_None); resultobj = Py_None;
3989 return resultobj;
3990 fail:
3991 return NULL;
3992 }
3993
3994
3995 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3996 PyObject *resultobj;
3997 wxIcon *arg1 = (wxIcon *) 0 ;
3998 int arg2 ;
3999 PyObject * obj0 = 0 ;
4000 PyObject * obj1 = 0 ;
4001 char *kwnames[] = {
4002 (char *) "self",(char *) "h", NULL
4003 };
4004
4005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4008 arg2 = (int)SWIG_As_int(obj1);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 {
4011 PyThreadState* __tstate = wxPyBeginAllowThreads();
4012 (arg1)->SetHeight(arg2);
4013
4014 wxPyEndAllowThreads(__tstate);
4015 if (PyErr_Occurred()) SWIG_fail;
4016 }
4017 Py_INCREF(Py_None); resultobj = Py_None;
4018 return resultobj;
4019 fail:
4020 return NULL;
4021 }
4022
4023
4024 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4025 PyObject *resultobj;
4026 wxIcon *arg1 = (wxIcon *) 0 ;
4027 int arg2 ;
4028 PyObject * obj0 = 0 ;
4029 PyObject * obj1 = 0 ;
4030 char *kwnames[] = {
4031 (char *) "self",(char *) "d", NULL
4032 };
4033
4034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4037 arg2 = (int)SWIG_As_int(obj1);
4038 if (PyErr_Occurred()) SWIG_fail;
4039 {
4040 PyThreadState* __tstate = wxPyBeginAllowThreads();
4041 (arg1)->SetDepth(arg2);
4042
4043 wxPyEndAllowThreads(__tstate);
4044 if (PyErr_Occurred()) SWIG_fail;
4045 }
4046 Py_INCREF(Py_None); resultobj = Py_None;
4047 return resultobj;
4048 fail:
4049 return NULL;
4050 }
4051
4052
4053 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4054 PyObject *resultobj;
4055 wxIcon *arg1 = (wxIcon *) 0 ;
4056 wxBitmap *arg2 = 0 ;
4057 PyObject * obj0 = 0 ;
4058 PyObject * obj1 = 0 ;
4059 char *kwnames[] = {
4060 (char *) "self",(char *) "bmp", NULL
4061 };
4062
4063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4067 SWIG_POINTER_EXCEPTION | 0)) == -1)
4068 SWIG_fail;
4069 if (arg2 == NULL) {
4070 PyErr_SetString(PyExc_TypeError,"null reference");
4071 SWIG_fail;
4072 }
4073 {
4074 PyThreadState* __tstate = wxPyBeginAllowThreads();
4075 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4076
4077 wxPyEndAllowThreads(__tstate);
4078 if (PyErr_Occurred()) SWIG_fail;
4079 }
4080 Py_INCREF(Py_None); resultobj = Py_None;
4081 return resultobj;
4082 fail:
4083 return NULL;
4084 }
4085
4086
4087 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
4088 PyObject *obj;
4089 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4090 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4091 Py_INCREF(obj);
4092 return Py_BuildValue((char *)"");
4093 }
4094 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4095 PyObject *resultobj;
4096 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4097 int arg2 = (int) 0 ;
4098 wxIconLocation *result;
4099 bool temp1 = False ;
4100 PyObject * obj0 = 0 ;
4101 PyObject * obj1 = 0 ;
4102 char *kwnames[] = {
4103 (char *) "filename",(char *) "num", NULL
4104 };
4105
4106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4107 if (obj0) {
4108 {
4109 arg1 = wxString_in_helper(obj0);
4110 if (arg1 == NULL) SWIG_fail;
4111 temp1 = True;
4112 }
4113 }
4114 if (obj1) {
4115 arg2 = (int)SWIG_As_int(obj1);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 {
4119 PyThreadState* __tstate = wxPyBeginAllowThreads();
4120 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4121
4122 wxPyEndAllowThreads(__tstate);
4123 if (PyErr_Occurred()) SWIG_fail;
4124 }
4125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4126 {
4127 if (temp1)
4128 delete arg1;
4129 }
4130 return resultobj;
4131 fail:
4132 {
4133 if (temp1)
4134 delete arg1;
4135 }
4136 return NULL;
4137 }
4138
4139
4140 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4141 PyObject *resultobj;
4142 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4143 PyObject * obj0 = 0 ;
4144 char *kwnames[] = {
4145 (char *) "self", NULL
4146 };
4147
4148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 delete arg1;
4154
4155 wxPyEndAllowThreads(__tstate);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 Py_INCREF(Py_None); resultobj = Py_None;
4159 return resultobj;
4160 fail:
4161 return NULL;
4162 }
4163
4164
4165 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj;
4167 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4168 bool result;
4169 PyObject * obj0 = 0 ;
4170 char *kwnames[] = {
4171 (char *) "self", NULL
4172 };
4173
4174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4180
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 {
4185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4186 }
4187 return resultobj;
4188 fail:
4189 return NULL;
4190 }
4191
4192
4193 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4194 PyObject *resultobj;
4195 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4196 wxString *arg2 = 0 ;
4197 bool temp2 = False ;
4198 PyObject * obj0 = 0 ;
4199 PyObject * obj1 = 0 ;
4200 char *kwnames[] = {
4201 (char *) "self",(char *) "filename", NULL
4202 };
4203
4204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4207 {
4208 arg2 = wxString_in_helper(obj1);
4209 if (arg2 == NULL) SWIG_fail;
4210 temp2 = True;
4211 }
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 (arg1)->SetFileName((wxString const &)*arg2);
4215
4216 wxPyEndAllowThreads(__tstate);
4217 if (PyErr_Occurred()) SWIG_fail;
4218 }
4219 Py_INCREF(Py_None); resultobj = Py_None;
4220 {
4221 if (temp2)
4222 delete arg2;
4223 }
4224 return resultobj;
4225 fail:
4226 {
4227 if (temp2)
4228 delete arg2;
4229 }
4230 return NULL;
4231 }
4232
4233
4234 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4235 PyObject *resultobj;
4236 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4237 wxString *result;
4238 PyObject * obj0 = 0 ;
4239 char *kwnames[] = {
4240 (char *) "self", NULL
4241 };
4242
4243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4246 {
4247 PyThreadState* __tstate = wxPyBeginAllowThreads();
4248 {
4249 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4250 result = (wxString *) &_result_ref;
4251 }
4252
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 {
4257 #if wxUSE_UNICODE
4258 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4259 #else
4260 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4261 #endif
4262 }
4263 return resultobj;
4264 fail:
4265 return NULL;
4266 }
4267
4268
4269 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj;
4271 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4272 int arg2 ;
4273 PyObject * obj0 = 0 ;
4274 PyObject * obj1 = 0 ;
4275 char *kwnames[] = {
4276 (char *) "self",(char *) "num", NULL
4277 };
4278
4279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4282 arg2 = (int)SWIG_As_int(obj1);
4283 if (PyErr_Occurred()) SWIG_fail;
4284 {
4285 PyThreadState* __tstate = wxPyBeginAllowThreads();
4286 wxIconLocation_SetIndex(arg1,arg2);
4287
4288 wxPyEndAllowThreads(__tstate);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 Py_INCREF(Py_None); resultobj = Py_None;
4292 return resultobj;
4293 fail:
4294 return NULL;
4295 }
4296
4297
4298 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4299 PyObject *resultobj;
4300 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4301 int result;
4302 PyObject * obj0 = 0 ;
4303 char *kwnames[] = {
4304 (char *) "self", NULL
4305 };
4306
4307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 result = (int)wxIconLocation_GetIndex(arg1);
4313
4314 wxPyEndAllowThreads(__tstate);
4315 if (PyErr_Occurred()) SWIG_fail;
4316 }
4317 resultobj = SWIG_From_int((int)result);
4318 return resultobj;
4319 fail:
4320 return NULL;
4321 }
4322
4323
4324 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4325 PyObject *obj;
4326 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4327 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4328 Py_INCREF(obj);
4329 return Py_BuildValue((char *)"");
4330 }
4331 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4332 PyObject *resultobj;
4333 wxIconBundle *result;
4334 char *kwnames[] = {
4335 NULL
4336 };
4337
4338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4339 {
4340 PyThreadState* __tstate = wxPyBeginAllowThreads();
4341 result = (wxIconBundle *)new wxIconBundle();
4342
4343 wxPyEndAllowThreads(__tstate);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4347 return resultobj;
4348 fail:
4349 return NULL;
4350 }
4351
4352
4353 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4354 PyObject *resultobj;
4355 wxString *arg1 = 0 ;
4356 long arg2 ;
4357 wxIconBundle *result;
4358 bool temp1 = False ;
4359 PyObject * obj0 = 0 ;
4360 PyObject * obj1 = 0 ;
4361 char *kwnames[] = {
4362 (char *) "file",(char *) "type", NULL
4363 };
4364
4365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4366 {
4367 arg1 = wxString_in_helper(obj0);
4368 if (arg1 == NULL) SWIG_fail;
4369 temp1 = True;
4370 }
4371 arg2 = (long)SWIG_As_long(obj1);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4376
4377 wxPyEndAllowThreads(__tstate);
4378 if (PyErr_Occurred()) SWIG_fail;
4379 }
4380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4381 {
4382 if (temp1)
4383 delete arg1;
4384 }
4385 return resultobj;
4386 fail:
4387 {
4388 if (temp1)
4389 delete arg1;
4390 }
4391 return NULL;
4392 }
4393
4394
4395 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4396 PyObject *resultobj;
4397 wxIcon *arg1 = 0 ;
4398 wxIconBundle *result;
4399 PyObject * obj0 = 0 ;
4400 char *kwnames[] = {
4401 (char *) "icon", NULL
4402 };
4403
4404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4406 SWIG_POINTER_EXCEPTION | 0)) == -1)
4407 SWIG_fail;
4408 if (arg1 == NULL) {
4409 PyErr_SetString(PyExc_TypeError,"null reference");
4410 SWIG_fail;
4411 }
4412 {
4413 PyThreadState* __tstate = wxPyBeginAllowThreads();
4414 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4415
4416 wxPyEndAllowThreads(__tstate);
4417 if (PyErr_Occurred()) SWIG_fail;
4418 }
4419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4420 return resultobj;
4421 fail:
4422 return NULL;
4423 }
4424
4425
4426 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4427 PyObject *resultobj;
4428 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4429 PyObject * obj0 = 0 ;
4430 char *kwnames[] = {
4431 (char *) "self", NULL
4432 };
4433
4434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4437 {
4438 PyThreadState* __tstate = wxPyBeginAllowThreads();
4439 delete arg1;
4440
4441 wxPyEndAllowThreads(__tstate);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 }
4444 Py_INCREF(Py_None); resultobj = Py_None;
4445 return resultobj;
4446 fail:
4447 return NULL;
4448 }
4449
4450
4451 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4452 PyObject *resultobj;
4453 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4454 wxIcon *arg2 = 0 ;
4455 PyObject * obj0 = 0 ;
4456 PyObject * obj1 = 0 ;
4457 char *kwnames[] = {
4458 (char *) "self",(char *) "icon", NULL
4459 };
4460
4461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4464 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4465 SWIG_POINTER_EXCEPTION | 0)) == -1)
4466 SWIG_fail;
4467 if (arg2 == NULL) {
4468 PyErr_SetString(PyExc_TypeError,"null reference");
4469 SWIG_fail;
4470 }
4471 {
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 (arg1)->AddIcon((wxIcon const &)*arg2);
4474
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 Py_INCREF(Py_None); resultobj = Py_None;
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4486 PyObject *resultobj;
4487 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4488 wxString *arg2 = 0 ;
4489 long arg3 ;
4490 bool temp2 = False ;
4491 PyObject * obj0 = 0 ;
4492 PyObject * obj1 = 0 ;
4493 PyObject * obj2 = 0 ;
4494 char *kwnames[] = {
4495 (char *) "self",(char *) "file",(char *) "type", NULL
4496 };
4497
4498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4501 {
4502 arg2 = wxString_in_helper(obj1);
4503 if (arg2 == NULL) SWIG_fail;
4504 temp2 = True;
4505 }
4506 arg3 = (long)SWIG_As_long(obj2);
4507 if (PyErr_Occurred()) SWIG_fail;
4508 {
4509 PyThreadState* __tstate = wxPyBeginAllowThreads();
4510 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4511
4512 wxPyEndAllowThreads(__tstate);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 Py_INCREF(Py_None); resultobj = Py_None;
4516 {
4517 if (temp2)
4518 delete arg2;
4519 }
4520 return resultobj;
4521 fail:
4522 {
4523 if (temp2)
4524 delete arg2;
4525 }
4526 return NULL;
4527 }
4528
4529
4530 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj;
4532 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4533 wxSize *arg2 = 0 ;
4534 wxIcon *result;
4535 wxSize temp2 ;
4536 PyObject * obj0 = 0 ;
4537 PyObject * obj1 = 0 ;
4538 char *kwnames[] = {
4539 (char *) "self",(char *) "size", NULL
4540 };
4541
4542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4545 {
4546 arg2 = &temp2;
4547 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4548 }
4549 {
4550 PyThreadState* __tstate = wxPyBeginAllowThreads();
4551 {
4552 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4553 result = (wxIcon *) &_result_ref;
4554 }
4555
4556 wxPyEndAllowThreads(__tstate);
4557 if (PyErr_Occurred()) SWIG_fail;
4558 }
4559 {
4560 wxIcon* resultptr = new wxIcon(*result);
4561 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4562 }
4563 return resultobj;
4564 fail:
4565 return NULL;
4566 }
4567
4568
4569 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4570 PyObject *obj;
4571 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4572 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4573 Py_INCREF(obj);
4574 return Py_BuildValue((char *)"");
4575 }
4576 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4577 PyObject *resultobj;
4578 wxString *arg1 = (wxString *) 0 ;
4579 long arg2 ;
4580 int arg3 = (int) 0 ;
4581 int arg4 = (int) 0 ;
4582 wxCursor *result;
4583 bool temp1 = False ;
4584 PyObject * obj0 = 0 ;
4585 PyObject * obj1 = 0 ;
4586 PyObject * obj2 = 0 ;
4587 PyObject * obj3 = 0 ;
4588 char *kwnames[] = {
4589 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4590 };
4591
4592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4593 {
4594 arg1 = wxString_in_helper(obj0);
4595 if (arg1 == NULL) SWIG_fail;
4596 temp1 = True;
4597 }
4598 arg2 = (long)SWIG_As_long(obj1);
4599 if (PyErr_Occurred()) SWIG_fail;
4600 if (obj2) {
4601 arg3 = (int)SWIG_As_int(obj2);
4602 if (PyErr_Occurred()) SWIG_fail;
4603 }
4604 if (obj3) {
4605 arg4 = (int)SWIG_As_int(obj3);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
4608 {
4609 if (!wxPyCheckForApp()) SWIG_fail;
4610 PyThreadState* __tstate = wxPyBeginAllowThreads();
4611 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4612
4613 wxPyEndAllowThreads(__tstate);
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4617 {
4618 if (temp1)
4619 delete arg1;
4620 }
4621 return resultobj;
4622 fail:
4623 {
4624 if (temp1)
4625 delete arg1;
4626 }
4627 return NULL;
4628 }
4629
4630
4631 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4632 PyObject *resultobj;
4633 wxCursor *arg1 = (wxCursor *) 0 ;
4634 PyObject * obj0 = 0 ;
4635 char *kwnames[] = {
4636 (char *) "self", NULL
4637 };
4638
4639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4642 {
4643 PyThreadState* __tstate = wxPyBeginAllowThreads();
4644 delete arg1;
4645
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 Py_INCREF(Py_None); resultobj = Py_None;
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj;
4658 int arg1 ;
4659 wxCursor *result;
4660 PyObject * obj0 = 0 ;
4661 char *kwnames[] = {
4662 (char *) "id", NULL
4663 };
4664
4665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4666 arg1 = (int)SWIG_As_int(obj0);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 {
4669 if (!wxPyCheckForApp()) SWIG_fail;
4670 PyThreadState* __tstate = wxPyBeginAllowThreads();
4671 result = (wxCursor *)new wxCursor(arg1);
4672
4673 wxPyEndAllowThreads(__tstate);
4674 if (PyErr_Occurred()) SWIG_fail;
4675 }
4676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4677 return resultobj;
4678 fail:
4679 return NULL;
4680 }
4681
4682
4683 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4684 PyObject *resultobj;
4685 wxImage *arg1 = 0 ;
4686 wxCursor *result;
4687 PyObject * obj0 = 0 ;
4688 char *kwnames[] = {
4689 (char *) "image", NULL
4690 };
4691
4692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4694 SWIG_POINTER_EXCEPTION | 0)) == -1)
4695 SWIG_fail;
4696 if (arg1 == NULL) {
4697 PyErr_SetString(PyExc_TypeError,"null reference");
4698 SWIG_fail;
4699 }
4700 {
4701 if (!wxPyCheckForApp()) SWIG_fail;
4702 PyThreadState* __tstate = wxPyBeginAllowThreads();
4703 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4704
4705 wxPyEndAllowThreads(__tstate);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4709 return resultobj;
4710 fail:
4711 return NULL;
4712 }
4713
4714
4715 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4716 PyObject *resultobj;
4717 wxCursor *arg1 = (wxCursor *) 0 ;
4718 bool result;
4719 PyObject * obj0 = 0 ;
4720 char *kwnames[] = {
4721 (char *) "self", NULL
4722 };
4723
4724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4727 {
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 result = (bool)(arg1)->Ok();
4730
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 {
4735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4736 }
4737 return resultobj;
4738 fail:
4739 return NULL;
4740 }
4741
4742
4743 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
4744 PyObject *obj;
4745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4746 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4747 Py_INCREF(obj);
4748 return Py_BuildValue((char *)"");
4749 }
4750 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4751 PyObject *resultobj;
4752 int arg1 = (int) 0 ;
4753 int arg2 = (int) 0 ;
4754 int arg3 = (int) 0 ;
4755 int arg4 = (int) 0 ;
4756 wxRegion *result;
4757 PyObject * obj0 = 0 ;
4758 PyObject * obj1 = 0 ;
4759 PyObject * obj2 = 0 ;
4760 PyObject * obj3 = 0 ;
4761 char *kwnames[] = {
4762 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4763 };
4764
4765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4766 if (obj0) {
4767 arg1 = (int)SWIG_As_int(obj0);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 }
4770 if (obj1) {
4771 arg2 = (int)SWIG_As_int(obj1);
4772 if (PyErr_Occurred()) SWIG_fail;
4773 }
4774 if (obj2) {
4775 arg3 = (int)SWIG_As_int(obj2);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 }
4778 if (obj3) {
4779 arg4 = (int)SWIG_As_int(obj3);
4780 if (PyErr_Occurred()) SWIG_fail;
4781 }
4782 {
4783 if (!wxPyCheckForApp()) SWIG_fail;
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4786
4787 wxPyEndAllowThreads(__tstate);
4788 if (PyErr_Occurred()) SWIG_fail;
4789 }
4790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4791 return resultobj;
4792 fail:
4793 return NULL;
4794 }
4795
4796
4797 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4798 PyObject *resultobj;
4799 wxBitmap *arg1 = 0 ;
4800 wxRegion *result;
4801 PyObject * obj0 = 0 ;
4802 char *kwnames[] = {
4803 (char *) "bmp", NULL
4804 };
4805
4806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4808 SWIG_POINTER_EXCEPTION | 0)) == -1)
4809 SWIG_fail;
4810 if (arg1 == NULL) {
4811 PyErr_SetString(PyExc_TypeError,"null reference");
4812 SWIG_fail;
4813 }
4814 {
4815 if (!wxPyCheckForApp()) SWIG_fail;
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4818
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4823 return resultobj;
4824 fail:
4825 return NULL;
4826 }
4827
4828
4829 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
4830 PyObject *resultobj;
4831 wxBitmap *arg1 = 0 ;
4832 wxColour *arg2 = 0 ;
4833 int arg3 = (int) 0 ;
4834 wxRegion *result;
4835 wxColour temp2 ;
4836 PyObject * obj0 = 0 ;
4837 PyObject * obj1 = 0 ;
4838 PyObject * obj2 = 0 ;
4839 char *kwnames[] = {
4840 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4841 };
4842
4843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
4844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4845 SWIG_POINTER_EXCEPTION | 0)) == -1)
4846 SWIG_fail;
4847 if (arg1 == NULL) {
4848 PyErr_SetString(PyExc_TypeError,"null reference");
4849 SWIG_fail;
4850 }
4851 {
4852 arg2 = &temp2;
4853 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4854 }
4855 if (obj2) {
4856 arg3 = (int)SWIG_As_int(obj2);
4857 if (PyErr_Occurred()) SWIG_fail;
4858 }
4859 {
4860 if (!wxPyCheckForApp()) SWIG_fail;
4861 PyThreadState* __tstate = wxPyBeginAllowThreads();
4862 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4863
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4868 return resultobj;
4869 fail:
4870 return NULL;
4871 }
4872
4873
4874 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
4875 PyObject *resultobj;
4876 int arg1 ;
4877 wxPoint *arg2 = (wxPoint *) 0 ;
4878 int arg3 = (int) wxWINDING_RULE ;
4879 wxRegion *result;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 char *kwnames[] = {
4883 (char *) "points",(char *) "fillStyle", NULL
4884 };
4885
4886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4887 {
4888 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4889 if (arg2 == NULL) SWIG_fail;
4890 }
4891 if (obj1) {
4892 arg3 = (int)SWIG_As_int(obj1);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 {
4896 if (!wxPyCheckForApp()) SWIG_fail;
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4899
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4904 {
4905 if (arg2) delete [] arg2;
4906 }
4907 return resultobj;
4908 fail:
4909 {
4910 if (arg2) delete [] arg2;
4911 }
4912 return NULL;
4913 }
4914
4915
4916 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4917 PyObject *resultobj;
4918 wxRegion *arg1 = (wxRegion *) 0 ;
4919 PyObject * obj0 = 0 ;
4920 char *kwnames[] = {
4921 (char *) "self", NULL
4922 };
4923
4924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4927 {
4928 PyThreadState* __tstate = wxPyBeginAllowThreads();
4929 delete arg1;
4930
4931 wxPyEndAllowThreads(__tstate);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 Py_INCREF(Py_None); resultobj = Py_None;
4935 return resultobj;
4936 fail:
4937 return NULL;
4938 }
4939
4940
4941 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
4942 PyObject *resultobj;
4943 wxRegion *arg1 = (wxRegion *) 0 ;
4944 PyObject * obj0 = 0 ;
4945 char *kwnames[] = {
4946 (char *) "self", NULL
4947 };
4948
4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Clear();
4955
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 Py_INCREF(Py_None); resultobj = Py_None;
4960 return resultobj;
4961 fail:
4962 return NULL;
4963 }
4964
4965
4966 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj;
4968 wxRegion *arg1 = (wxRegion *) 0 ;
4969 int arg2 ;
4970 int arg3 ;
4971 int result;
4972 PyObject * obj0 = 0 ;
4973 PyObject * obj1 = 0 ;
4974 PyObject * obj2 = 0 ;
4975 char *kwnames[] = {
4976 (char *) "self",(char *) "x",(char *) "y", NULL
4977 };
4978
4979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4982 arg2 = (int)SWIG_As_int(obj1);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 arg3 = (int)SWIG_As_int(obj2);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 result = (int)(arg1)->Contains(arg2,arg3);
4989
4990 wxPyEndAllowThreads(__tstate);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 }
4993 resultobj = SWIG_From_int((int)result);
4994 return resultobj;
4995 fail:
4996 return NULL;
4997 }
4998
4999
5000 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
5001 PyObject *resultobj;
5002 wxRegion *arg1 = (wxRegion *) 0 ;
5003 wxPoint *arg2 = 0 ;
5004 int result;
5005 wxPoint temp2 ;
5006 PyObject * obj0 = 0 ;
5007 PyObject * obj1 = 0 ;
5008 char *kwnames[] = {
5009 (char *) "self",(char *) "pt", NULL
5010 };
5011
5012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5015 {
5016 arg2 = &temp2;
5017 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5018 }
5019 {
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5022
5023 wxPyEndAllowThreads(__tstate);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 }
5026 resultobj = SWIG_From_int((int)result);
5027 return resultobj;
5028 fail:
5029 return NULL;
5030 }
5031
5032
5033 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
5034 PyObject *resultobj;
5035 wxRegion *arg1 = (wxRegion *) 0 ;
5036 wxRect *arg2 = 0 ;
5037 int result;
5038 wxRect temp2 ;
5039 PyObject * obj0 = 0 ;
5040 PyObject * obj1 = 0 ;
5041 char *kwnames[] = {
5042 (char *) "self",(char *) "rect", NULL
5043 };
5044
5045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5048 {
5049 arg2 = &temp2;
5050 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5051 }
5052 {
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5055
5056 wxPyEndAllowThreads(__tstate);
5057 if (PyErr_Occurred()) SWIG_fail;
5058 }
5059 resultobj = SWIG_From_int((int)result);
5060 return resultobj;
5061 fail:
5062 return NULL;
5063 }
5064
5065
5066 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
5067 PyObject *resultobj;
5068 wxRegion *arg1 = (wxRegion *) 0 ;
5069 int arg2 ;
5070 int arg3 ;
5071 int arg4 ;
5072 int arg5 ;
5073 int result;
5074 PyObject * obj0 = 0 ;
5075 PyObject * obj1 = 0 ;
5076 PyObject * obj2 = 0 ;
5077 PyObject * obj3 = 0 ;
5078 PyObject * obj4 = 0 ;
5079 char *kwnames[] = {
5080 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5081 };
5082
5083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5086 arg2 = (int)SWIG_As_int(obj1);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 arg3 = (int)SWIG_As_int(obj2);
5089 if (PyErr_Occurred()) SWIG_fail;
5090 arg4 = (int)SWIG_As_int(obj3);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 arg5 = (int)SWIG_As_int(obj4);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 {
5095 PyThreadState* __tstate = wxPyBeginAllowThreads();
5096 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5097
5098 wxPyEndAllowThreads(__tstate);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 resultobj = SWIG_From_int((int)result);
5102 return resultobj;
5103 fail:
5104 return NULL;
5105 }
5106
5107
5108 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
5109 PyObject *resultobj;
5110 wxRegion *arg1 = (wxRegion *) 0 ;
5111 wxRect result;
5112 PyObject * obj0 = 0 ;
5113 char *kwnames[] = {
5114 (char *) "self", NULL
5115 };
5116
5117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5120 {
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 result = (arg1)->GetBox();
5123
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) SWIG_fail;
5126 }
5127 {
5128 wxRect * resultptr;
5129 resultptr = new wxRect((wxRect &) result);
5130 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5131 }
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5139 PyObject *resultobj;
5140 wxRegion *arg1 = (wxRegion *) 0 ;
5141 int arg2 ;
5142 int arg3 ;
5143 int arg4 ;
5144 int arg5 ;
5145 bool result;
5146 PyObject * obj0 = 0 ;
5147 PyObject * obj1 = 0 ;
5148 PyObject * obj2 = 0 ;
5149 PyObject * obj3 = 0 ;
5150 PyObject * obj4 = 0 ;
5151 char *kwnames[] = {
5152 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5153 };
5154
5155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5158 arg2 = (int)SWIG_As_int(obj1);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 arg3 = (int)SWIG_As_int(obj2);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 arg4 = (int)SWIG_As_int(obj3);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 arg5 = (int)SWIG_As_int(obj4);
5165 if (PyErr_Occurred()) SWIG_fail;
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5169
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 {
5174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5175 }
5176 return resultobj;
5177 fail:
5178 return NULL;
5179 }
5180
5181
5182 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5183 PyObject *resultobj;
5184 wxRegion *arg1 = (wxRegion *) 0 ;
5185 wxRect *arg2 = 0 ;
5186 bool result;
5187 wxRect temp2 ;
5188 PyObject * obj0 = 0 ;
5189 PyObject * obj1 = 0 ;
5190 char *kwnames[] = {
5191 (char *) "self",(char *) "rect", NULL
5192 };
5193
5194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5197 {
5198 arg2 = &temp2;
5199 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5200 }
5201 {
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5204
5205 wxPyEndAllowThreads(__tstate);
5206 if (PyErr_Occurred()) SWIG_fail;
5207 }
5208 {
5209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5210 }
5211 return resultobj;
5212 fail:
5213 return NULL;
5214 }
5215
5216
5217 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5218 PyObject *resultobj;
5219 wxRegion *arg1 = (wxRegion *) 0 ;
5220 wxRegion *arg2 = 0 ;
5221 bool result;
5222 PyObject * obj0 = 0 ;
5223 PyObject * obj1 = 0 ;
5224 char *kwnames[] = {
5225 (char *) "self",(char *) "region", NULL
5226 };
5227
5228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5231 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5232 SWIG_POINTER_EXCEPTION | 0)) == -1)
5233 SWIG_fail;
5234 if (arg2 == NULL) {
5235 PyErr_SetString(PyExc_TypeError,"null reference");
5236 SWIG_fail;
5237 }
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5241
5242 wxPyEndAllowThreads(__tstate);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 {
5246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5247 }
5248 return resultobj;
5249 fail:
5250 return NULL;
5251 }
5252
5253
5254 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5255 PyObject *resultobj;
5256 wxRegion *arg1 = (wxRegion *) 0 ;
5257 bool result;
5258 PyObject * obj0 = 0 ;
5259 char *kwnames[] = {
5260 (char *) "self", NULL
5261 };
5262
5263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5266 {
5267 PyThreadState* __tstate = wxPyBeginAllowThreads();
5268 result = (bool)(arg1)->IsEmpty();
5269
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 }
5273 {
5274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5275 }
5276 return resultobj;
5277 fail:
5278 return NULL;
5279 }
5280
5281
5282 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5283 PyObject *resultobj;
5284 wxRegion *arg1 = (wxRegion *) 0 ;
5285 int arg2 ;
5286 int arg3 ;
5287 int arg4 ;
5288 int arg5 ;
5289 bool result;
5290 PyObject * obj0 = 0 ;
5291 PyObject * obj1 = 0 ;
5292 PyObject * obj2 = 0 ;
5293 PyObject * obj3 = 0 ;
5294 PyObject * obj4 = 0 ;
5295 char *kwnames[] = {
5296 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5297 };
5298
5299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5302 arg2 = (int)SWIG_As_int(obj1);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 arg3 = (int)SWIG_As_int(obj2);
5305 if (PyErr_Occurred()) SWIG_fail;
5306 arg4 = (int)SWIG_As_int(obj3);
5307 if (PyErr_Occurred()) SWIG_fail;
5308 arg5 = (int)SWIG_As_int(obj4);
5309 if (PyErr_Occurred()) SWIG_fail;
5310 {
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5313
5314 wxPyEndAllowThreads(__tstate);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 }
5317 {
5318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5319 }
5320 return resultobj;
5321 fail:
5322 return NULL;
5323 }
5324
5325
5326 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
5327 PyObject *resultobj;
5328 wxRegion *arg1 = (wxRegion *) 0 ;
5329 wxRect *arg2 = 0 ;
5330 bool result;
5331 wxRect temp2 ;
5332 PyObject * obj0 = 0 ;
5333 PyObject * obj1 = 0 ;
5334 char *kwnames[] = {
5335 (char *) "self",(char *) "rect", NULL
5336 };
5337
5338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5341 {
5342 arg2 = &temp2;
5343 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5344 }
5345 {
5346 PyThreadState* __tstate = wxPyBeginAllowThreads();
5347 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5348
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 {
5353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5354 }
5355 return resultobj;
5356 fail:
5357 return NULL;
5358 }
5359
5360
5361 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxRegion *arg1 = (wxRegion *) 0 ;
5364 wxRegion *arg2 = 0 ;
5365 bool result;
5366 PyObject * obj0 = 0 ;
5367 PyObject * obj1 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "self",(char *) "region", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5376 SWIG_POINTER_EXCEPTION | 0)) == -1)
5377 SWIG_fail;
5378 if (arg2 == NULL) {
5379 PyErr_SetString(PyExc_TypeError,"null reference");
5380 SWIG_fail;
5381 }
5382 {
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5385
5386 wxPyEndAllowThreads(__tstate);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 }
5389 {
5390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5391 }
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj;
5400 wxRegion *arg1 = (wxRegion *) 0 ;
5401 int arg2 ;
5402 int arg3 ;
5403 int arg4 ;
5404 int arg5 ;
5405 bool result;
5406 PyObject * obj0 = 0 ;
5407 PyObject * obj1 = 0 ;
5408 PyObject * obj2 = 0 ;
5409 PyObject * obj3 = 0 ;
5410 PyObject * obj4 = 0 ;
5411 char *kwnames[] = {
5412 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5413 };
5414
5415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5418 arg2 = (int)SWIG_As_int(obj1);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 arg3 = (int)SWIG_As_int(obj2);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 arg4 = (int)SWIG_As_int(obj3);
5423 if (PyErr_Occurred()) SWIG_fail;
5424 arg5 = (int)SWIG_As_int(obj4);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5429
5430 wxPyEndAllowThreads(__tstate);
5431 if (PyErr_Occurred()) SWIG_fail;
5432 }
5433 {
5434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5435 }
5436 return resultobj;
5437 fail:
5438 return NULL;
5439 }
5440
5441
5442 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
5443 PyObject *resultobj;
5444 wxRegion *arg1 = (wxRegion *) 0 ;
5445 wxRect *arg2 = 0 ;
5446 bool result;
5447 wxRect temp2 ;
5448 PyObject * obj0 = 0 ;
5449 PyObject * obj1 = 0 ;
5450 char *kwnames[] = {
5451 (char *) "self",(char *) "rect", NULL
5452 };
5453
5454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5457 {
5458 arg2 = &temp2;
5459 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5460 }
5461 {
5462 PyThreadState* __tstate = wxPyBeginAllowThreads();
5463 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5464
5465 wxPyEndAllowThreads(__tstate);
5466 if (PyErr_Occurred()) SWIG_fail;
5467 }
5468 {
5469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5470 }
5471 return resultobj;
5472 fail:
5473 return NULL;
5474 }
5475
5476
5477 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5478 PyObject *resultobj;
5479 wxRegion *arg1 = (wxRegion *) 0 ;
5480 wxRegion *arg2 = 0 ;
5481 bool result;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 char *kwnames[] = {
5485 (char *) "self",(char *) "region", NULL
5486 };
5487
5488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5492 SWIG_POINTER_EXCEPTION | 0)) == -1)
5493 SWIG_fail;
5494 if (arg2 == NULL) {
5495 PyErr_SetString(PyExc_TypeError,"null reference");
5496 SWIG_fail;
5497 }
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5501
5502 wxPyEndAllowThreads(__tstate);
5503 if (PyErr_Occurred()) SWIG_fail;
5504 }
5505 {
5506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5507 }
5508 return resultobj;
5509 fail:
5510 return NULL;
5511 }
5512
5513
5514 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj;
5516 wxRegion *arg1 = (wxRegion *) 0 ;
5517 int arg2 ;
5518 int arg3 ;
5519 int arg4 ;
5520 int arg5 ;
5521 bool result;
5522 PyObject * obj0 = 0 ;
5523 PyObject * obj1 = 0 ;
5524 PyObject * obj2 = 0 ;
5525 PyObject * obj3 = 0 ;
5526 PyObject * obj4 = 0 ;
5527 char *kwnames[] = {
5528 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5529 };
5530
5531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5534 arg2 = (int)SWIG_As_int(obj1);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 arg3 = (int)SWIG_As_int(obj2);
5537 if (PyErr_Occurred()) SWIG_fail;
5538 arg4 = (int)SWIG_As_int(obj3);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 arg5 = (int)SWIG_As_int(obj4);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5545
5546 wxPyEndAllowThreads(__tstate);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
5549 {
5550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5551 }
5552 return resultobj;
5553 fail:
5554 return NULL;
5555 }
5556
5557
5558 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
5559 PyObject *resultobj;
5560 wxRegion *arg1 = (wxRegion *) 0 ;
5561 wxRect *arg2 = 0 ;
5562 bool result;
5563 wxRect temp2 ;
5564 PyObject * obj0 = 0 ;
5565 PyObject * obj1 = 0 ;
5566 char *kwnames[] = {
5567 (char *) "self",(char *) "rect", NULL
5568 };
5569
5570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5573 {
5574 arg2 = &temp2;
5575 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5576 }
5577 {
5578 PyThreadState* __tstate = wxPyBeginAllowThreads();
5579 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5580
5581 wxPyEndAllowThreads(__tstate);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 }
5584 {
5585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5586 }
5587 return resultobj;
5588 fail:
5589 return NULL;
5590 }
5591
5592
5593 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5594 PyObject *resultobj;
5595 wxRegion *arg1 = (wxRegion *) 0 ;
5596 wxRegion *arg2 = 0 ;
5597 bool result;
5598 PyObject * obj0 = 0 ;
5599 PyObject * obj1 = 0 ;
5600 char *kwnames[] = {
5601 (char *) "self",(char *) "region", NULL
5602 };
5603
5604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5607 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5608 SWIG_POINTER_EXCEPTION | 0)) == -1)
5609 SWIG_fail;
5610 if (arg2 == NULL) {
5611 PyErr_SetString(PyExc_TypeError,"null reference");
5612 SWIG_fail;
5613 }
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5617
5618 wxPyEndAllowThreads(__tstate);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 }
5621 {
5622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5623 }
5624 return resultobj;
5625 fail:
5626 return NULL;
5627 }
5628
5629
5630 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5631 PyObject *resultobj;
5632 wxRegion *arg1 = (wxRegion *) 0 ;
5633 SwigValueWrapper< wxBitmap > result;
5634 PyObject * obj0 = 0 ;
5635 char *kwnames[] = {
5636 (char *) "self", NULL
5637 };
5638
5639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = (arg1)->ConvertToBitmap();
5645
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 {
5650 wxBitmap * resultptr;
5651 resultptr = new wxBitmap((wxBitmap &) result);
5652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5653 }
5654 return resultobj;
5655 fail:
5656 return NULL;
5657 }
5658
5659
5660 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5661 PyObject *resultobj;
5662 wxRegion *arg1 = (wxRegion *) 0 ;
5663 wxBitmap *arg2 = 0 ;
5664 bool result;
5665 PyObject * obj0 = 0 ;
5666 PyObject * obj1 = 0 ;
5667 char *kwnames[] = {
5668 (char *) "self",(char *) "bmp", NULL
5669 };
5670
5671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5675 SWIG_POINTER_EXCEPTION | 0)) == -1)
5676 SWIG_fail;
5677 if (arg2 == NULL) {
5678 PyErr_SetString(PyExc_TypeError,"null reference");
5679 SWIG_fail;
5680 }
5681 {
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5684
5685 wxPyEndAllowThreads(__tstate);
5686 if (PyErr_Occurred()) SWIG_fail;
5687 }
5688 {
5689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5690 }
5691 return resultobj;
5692 fail:
5693 return NULL;
5694 }
5695
5696
5697 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj;
5699 wxRegion *arg1 = (wxRegion *) 0 ;
5700 wxBitmap *arg2 = 0 ;
5701 wxColour *arg3 = 0 ;
5702 int arg4 = (int) 0 ;
5703 bool result;
5704 wxColour temp3 ;
5705 PyObject * obj0 = 0 ;
5706 PyObject * obj1 = 0 ;
5707 PyObject * obj2 = 0 ;
5708 PyObject * obj3 = 0 ;
5709 char *kwnames[] = {
5710 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5711 };
5712
5713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5716 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5717 SWIG_POINTER_EXCEPTION | 0)) == -1)
5718 SWIG_fail;
5719 if (arg2 == NULL) {
5720 PyErr_SetString(PyExc_TypeError,"null reference");
5721 SWIG_fail;
5722 }
5723 {
5724 arg3 = &temp3;
5725 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5726 }
5727 if (obj3) {
5728 arg4 = (int)SWIG_As_int(obj3);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 {
5732 PyThreadState* __tstate = wxPyBeginAllowThreads();
5733 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5734
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 {
5739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5740 }
5741 return resultobj;
5742 fail:
5743 return NULL;
5744 }
5745
5746
5747 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
5748 PyObject *obj;
5749 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5750 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5751 Py_INCREF(obj);
5752 return Py_BuildValue((char *)"");
5753 }
5754 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5755 PyObject *resultobj;
5756 wxRegion *arg1 = 0 ;
5757 wxRegionIterator *result;
5758 PyObject * obj0 = 0 ;
5759 char *kwnames[] = {
5760 (char *) "region", NULL
5761 };
5762
5763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5765 SWIG_POINTER_EXCEPTION | 0)) == -1)
5766 SWIG_fail;
5767 if (arg1 == NULL) {
5768 PyErr_SetString(PyExc_TypeError,"null reference");
5769 SWIG_fail;
5770 }
5771 {
5772 if (!wxPyCheckForApp()) SWIG_fail;
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5775
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5787 PyObject *resultobj;
5788 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5789 PyObject * obj0 = 0 ;
5790 char *kwnames[] = {
5791 (char *) "self", NULL
5792 };
5793
5794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 delete arg1;
5800
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 Py_INCREF(Py_None); resultobj = Py_None;
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
5812 PyObject *resultobj;
5813 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5814 int result;
5815 PyObject * obj0 = 0 ;
5816 char *kwnames[] = {
5817 (char *) "self", NULL
5818 };
5819
5820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 result = (int)(arg1)->GetX();
5826
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 resultobj = SWIG_From_int((int)result);
5831 return resultobj;
5832 fail:
5833 return NULL;
5834 }
5835
5836
5837 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5838 PyObject *resultobj;
5839 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5840 int result;
5841 PyObject * obj0 = 0 ;
5842 char *kwnames[] = {
5843 (char *) "self", NULL
5844 };
5845
5846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5849 {
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 result = (int)(arg1)->GetY();
5852
5853 wxPyEndAllowThreads(__tstate);
5854 if (PyErr_Occurred()) SWIG_fail;
5855 }
5856 resultobj = SWIG_From_int((int)result);
5857 return resultobj;
5858 fail:
5859 return NULL;
5860 }
5861
5862
5863 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
5864 PyObject *resultobj;
5865 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5866 int result;
5867 PyObject * obj0 = 0 ;
5868 char *kwnames[] = {
5869 (char *) "self", NULL
5870 };
5871
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 result = (int)(arg1)->GetW();
5878
5879 wxPyEndAllowThreads(__tstate);
5880 if (PyErr_Occurred()) SWIG_fail;
5881 }
5882 resultobj = SWIG_From_int((int)result);
5883 return resultobj;
5884 fail:
5885 return NULL;
5886 }
5887
5888
5889 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5890 PyObject *resultobj;
5891 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5892 int result;
5893 PyObject * obj0 = 0 ;
5894 char *kwnames[] = {
5895 (char *) "self", NULL
5896 };
5897
5898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5901 {
5902 PyThreadState* __tstate = wxPyBeginAllowThreads();
5903 result = (int)(arg1)->GetWidth();
5904
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 resultobj = SWIG_From_int((int)result);
5909 return resultobj;
5910 fail:
5911 return NULL;
5912 }
5913
5914
5915 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
5916 PyObject *resultobj;
5917 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5918 int result;
5919 PyObject * obj0 = 0 ;
5920 char *kwnames[] = {
5921 (char *) "self", NULL
5922 };
5923
5924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5927 {
5928 PyThreadState* __tstate = wxPyBeginAllowThreads();
5929 result = (int)(arg1)->GetH();
5930
5931 wxPyEndAllowThreads(__tstate);
5932 if (PyErr_Occurred()) SWIG_fail;
5933 }
5934 resultobj = SWIG_From_int((int)result);
5935 return resultobj;
5936 fail:
5937 return NULL;
5938 }
5939
5940
5941 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5942 PyObject *resultobj;
5943 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5944 int result;
5945 PyObject * obj0 = 0 ;
5946 char *kwnames[] = {
5947 (char *) "self", NULL
5948 };
5949
5950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5953 {
5954 PyThreadState* __tstate = wxPyBeginAllowThreads();
5955 result = (int)(arg1)->GetHeight();
5956
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 resultobj = SWIG_From_int((int)result);
5961 return resultobj;
5962 fail:
5963 return NULL;
5964 }
5965
5966
5967 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
5968 PyObject *resultobj;
5969 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5970 wxRect result;
5971 PyObject * obj0 = 0 ;
5972 char *kwnames[] = {
5973 (char *) "self", NULL
5974 };
5975
5976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 result = (arg1)->GetRect();
5982
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 {
5987 wxRect * resultptr;
5988 resultptr = new wxRect((wxRect &) result);
5989 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5990 }
5991 return resultobj;
5992 fail:
5993 return NULL;
5994 }
5995
5996
5997 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
5998 PyObject *resultobj;
5999 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6000 bool result;
6001 PyObject * obj0 = 0 ;
6002 char *kwnames[] = {
6003 (char *) "self", NULL
6004 };
6005
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 result = (bool)(arg1)->HaveRects();
6012
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 {
6017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6018 }
6019 return resultobj;
6020 fail:
6021 return NULL;
6022 }
6023
6024
6025 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
6026 PyObject *resultobj;
6027 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6028 PyObject * obj0 = 0 ;
6029 char *kwnames[] = {
6030 (char *) "self", NULL
6031 };
6032
6033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 (arg1)->Reset();
6039
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 Py_INCREF(Py_None); resultobj = Py_None;
6044 return resultobj;
6045 fail:
6046 return NULL;
6047 }
6048
6049
6050 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
6051 PyObject *resultobj;
6052 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6053 PyObject * obj0 = 0 ;
6054 char *kwnames[] = {
6055 (char *) "self", NULL
6056 };
6057
6058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6061 {
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 wxRegionIterator_Next(arg1);
6064
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 Py_INCREF(Py_None); resultobj = Py_None;
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj;
6077 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6078 bool result;
6079 PyObject * obj0 = 0 ;
6080 char *kwnames[] = {
6081 (char *) "self", NULL
6082 };
6083
6084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6087 {
6088 PyThreadState* __tstate = wxPyBeginAllowThreads();
6089 result = (bool)wxRegionIterator___nonzero__(arg1);
6090
6091 wxPyEndAllowThreads(__tstate);
6092 if (PyErr_Occurred()) SWIG_fail;
6093 }
6094 {
6095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6096 }
6097 return resultobj;
6098 fail:
6099 return NULL;
6100 }
6101
6102
6103 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
6104 PyObject *obj;
6105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6106 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6107 Py_INCREF(obj);
6108 return Py_BuildValue((char *)"");
6109 }
6110 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6111 PyObject *resultobj;
6112 wxNativeFontInfo *result;
6113 char *kwnames[] = {
6114 NULL
6115 };
6116
6117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6118 {
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6121
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6126 return resultobj;
6127 fail:
6128 return NULL;
6129 }
6130
6131
6132 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6133 PyObject *resultobj;
6134 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6135 PyObject * obj0 = 0 ;
6136 char *kwnames[] = {
6137 (char *) "self", NULL
6138 };
6139
6140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 delete arg1;
6146
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 Py_INCREF(Py_None); resultobj = Py_None;
6151 return resultobj;
6152 fail:
6153 return NULL;
6154 }
6155
6156
6157 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
6158 PyObject *resultobj;
6159 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6160 PyObject * obj0 = 0 ;
6161 char *kwnames[] = {
6162 (char *) "self", NULL
6163 };
6164
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6168 {
6169 PyThreadState* __tstate = wxPyBeginAllowThreads();
6170 (arg1)->Init();
6171
6172 wxPyEndAllowThreads(__tstate);
6173 if (PyErr_Occurred()) SWIG_fail;
6174 }
6175 Py_INCREF(Py_None); resultobj = Py_None;
6176 return resultobj;
6177 fail:
6178 return NULL;
6179 }
6180
6181
6182 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6183 PyObject *resultobj;
6184 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6185 wxFont *arg2 = 0 ;
6186 PyObject * obj0 = 0 ;
6187 PyObject * obj1 = 0 ;
6188 char *kwnames[] = {
6189 (char *) "self",(char *) "font", NULL
6190 };
6191
6192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6195 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6196 SWIG_POINTER_EXCEPTION | 0)) == -1)
6197 SWIG_fail;
6198 if (arg2 == NULL) {
6199 PyErr_SetString(PyExc_TypeError,"null reference");
6200 SWIG_fail;
6201 }
6202 {
6203 PyThreadState* __tstate = wxPyBeginAllowThreads();
6204 (arg1)->InitFromFont((wxFont const &)*arg2);
6205
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 Py_INCREF(Py_None); resultobj = Py_None;
6210 return resultobj;
6211 fail:
6212 return NULL;
6213 }
6214
6215
6216 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj;
6218 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6219 int result;
6220 PyObject * obj0 = 0 ;
6221 char *kwnames[] = {
6222 (char *) "self", NULL
6223 };
6224
6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6228 {
6229 PyThreadState* __tstate = wxPyBeginAllowThreads();
6230 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6231
6232 wxPyEndAllowThreads(__tstate);
6233 if (PyErr_Occurred()) SWIG_fail;
6234 }
6235 resultobj = SWIG_From_int((int)result);
6236 return resultobj;
6237 fail:
6238 return NULL;
6239 }
6240
6241
6242 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6243 PyObject *resultobj;
6244 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6245 int result;
6246 PyObject * obj0 = 0 ;
6247 char *kwnames[] = {
6248 (char *) "self", NULL
6249 };
6250
6251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6257
6258 wxPyEndAllowThreads(__tstate);
6259 if (PyErr_Occurred()) SWIG_fail;
6260 }
6261 resultobj = SWIG_From_int((int)result);
6262 return resultobj;
6263 fail:
6264 return NULL;
6265 }
6266
6267
6268 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6269 PyObject *resultobj;
6270 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6271 int result;
6272 PyObject * obj0 = 0 ;
6273 char *kwnames[] = {
6274 (char *) "self", NULL
6275 };
6276
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 resultobj = SWIG_From_int((int)result);
6288 return resultobj;
6289 fail:
6290 return NULL;
6291 }
6292
6293
6294 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6295 PyObject *resultobj;
6296 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6297 bool result;
6298 PyObject * obj0 = 0 ;
6299 char *kwnames[] = {
6300 (char *) "self", NULL
6301 };
6302
6303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6306 {
6307 PyThreadState* __tstate = wxPyBeginAllowThreads();
6308 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6309
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 {
6314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6315 }
6316 return resultobj;
6317 fail:
6318 return NULL;
6319 }
6320
6321
6322 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6323 PyObject *resultobj;
6324 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6325 wxString result;
6326 PyObject * obj0 = 0 ;
6327 char *kwnames[] = {
6328 (char *) "self", NULL
6329 };
6330
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6334 {
6335 PyThreadState* __tstate = wxPyBeginAllowThreads();
6336 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6337
6338 wxPyEndAllowThreads(__tstate);
6339 if (PyErr_Occurred()) SWIG_fail;
6340 }
6341 {
6342 #if wxUSE_UNICODE
6343 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6344 #else
6345 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6346 #endif
6347 }
6348 return resultobj;
6349 fail:
6350 return NULL;
6351 }
6352
6353
6354 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj;
6356 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6357 int result;
6358 PyObject * obj0 = 0 ;
6359 char *kwnames[] = {
6360 (char *) "self", NULL
6361 };
6362
6363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6366 {
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6369
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 resultobj = SWIG_From_int((int)result);
6374 return resultobj;
6375 fail:
6376 return NULL;
6377 }
6378
6379
6380 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6381 PyObject *resultobj;
6382 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6383 int result;
6384 PyObject * obj0 = 0 ;
6385 char *kwnames[] = {
6386 (char *) "self", NULL
6387 };
6388
6389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6392 {
6393 PyThreadState* __tstate = wxPyBeginAllowThreads();
6394 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6395
6396 wxPyEndAllowThreads(__tstate);
6397 if (PyErr_Occurred()) SWIG_fail;
6398 }
6399 resultobj = SWIG_From_int((int)result);
6400 return resultobj;
6401 fail:
6402 return NULL;
6403 }
6404
6405
6406 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6407 PyObject *resultobj;
6408 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6409 int arg2 ;
6410 PyObject * obj0 = 0 ;
6411 PyObject * obj1 = 0 ;
6412 char *kwnames[] = {
6413 (char *) "self",(char *) "pointsize", NULL
6414 };
6415
6416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6419 arg2 = (int)SWIG_As_int(obj1);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 {
6422 PyThreadState* __tstate = wxPyBeginAllowThreads();
6423 (arg1)->SetPointSize(arg2);
6424
6425 wxPyEndAllowThreads(__tstate);
6426 if (PyErr_Occurred()) SWIG_fail;
6427 }
6428 Py_INCREF(Py_None); resultobj = Py_None;
6429 return resultobj;
6430 fail:
6431 return NULL;
6432 }
6433
6434
6435 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6436 PyObject *resultobj;
6437 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6438 int arg2 ;
6439 PyObject * obj0 = 0 ;
6440 PyObject * obj1 = 0 ;
6441 char *kwnames[] = {
6442 (char *) "self",(char *) "style", NULL
6443 };
6444
6445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6448 arg2 = (int)SWIG_As_int(obj1);
6449 if (PyErr_Occurred()) SWIG_fail;
6450 {
6451 PyThreadState* __tstate = wxPyBeginAllowThreads();
6452 (arg1)->SetStyle((wxFontStyle )arg2);
6453
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 Py_INCREF(Py_None); resultobj = Py_None;
6458 return resultobj;
6459 fail:
6460 return NULL;
6461 }
6462
6463
6464 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6465 PyObject *resultobj;
6466 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6467 int arg2 ;
6468 PyObject * obj0 = 0 ;
6469 PyObject * obj1 = 0 ;
6470 char *kwnames[] = {
6471 (char *) "self",(char *) "weight", NULL
6472 };
6473
6474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6477 arg2 = (int)SWIG_As_int(obj1);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 {
6480 PyThreadState* __tstate = wxPyBeginAllowThreads();
6481 (arg1)->SetWeight((wxFontWeight )arg2);
6482
6483 wxPyEndAllowThreads(__tstate);
6484 if (PyErr_Occurred()) SWIG_fail;
6485 }
6486 Py_INCREF(Py_None); resultobj = Py_None;
6487 return resultobj;
6488 fail:
6489 return NULL;
6490 }
6491
6492
6493 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6494 PyObject *resultobj;
6495 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6496 bool arg2 ;
6497 PyObject * obj0 = 0 ;
6498 PyObject * obj1 = 0 ;
6499 char *kwnames[] = {
6500 (char *) "self",(char *) "underlined", NULL
6501 };
6502
6503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6506 arg2 = (bool)SWIG_As_bool(obj1);
6507 if (PyErr_Occurred()) SWIG_fail;
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 (arg1)->SetUnderlined(arg2);
6511
6512 wxPyEndAllowThreads(__tstate);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 Py_INCREF(Py_None); resultobj = Py_None;
6516 return resultobj;
6517 fail:
6518 return NULL;
6519 }
6520
6521
6522 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6523 PyObject *resultobj;
6524 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6525 wxString arg2 ;
6526 PyObject * obj0 = 0 ;
6527 PyObject * obj1 = 0 ;
6528 char *kwnames[] = {
6529 (char *) "self",(char *) "facename", NULL
6530 };
6531
6532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6535 {
6536 wxString* sptr = wxString_in_helper(obj1);
6537 if (sptr == NULL) SWIG_fail;
6538 arg2 = *sptr;
6539 delete sptr;
6540 }
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->SetFaceName(arg2);
6544
6545 wxPyEndAllowThreads(__tstate);
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 Py_INCREF(Py_None); resultobj = Py_None;
6549 return resultobj;
6550 fail:
6551 return NULL;
6552 }
6553
6554
6555 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6556 PyObject *resultobj;
6557 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6558 int arg2 ;
6559 PyObject * obj0 = 0 ;
6560 PyObject * obj1 = 0 ;
6561 char *kwnames[] = {
6562 (char *) "self",(char *) "family", NULL
6563 };
6564
6565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6568 arg2 = (int)SWIG_As_int(obj1);
6569 if (PyErr_Occurred()) SWIG_fail;
6570 {
6571 PyThreadState* __tstate = wxPyBeginAllowThreads();
6572 (arg1)->SetFamily((wxFontFamily )arg2);
6573
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 Py_INCREF(Py_None); resultobj = Py_None;
6578 return resultobj;
6579 fail:
6580 return NULL;
6581 }
6582
6583
6584 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6585 PyObject *resultobj;
6586 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6587 int arg2 ;
6588 PyObject * obj0 = 0 ;
6589 PyObject * obj1 = 0 ;
6590 char *kwnames[] = {
6591 (char *) "self",(char *) "encoding", NULL
6592 };
6593
6594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6597 arg2 = (int)SWIG_As_int(obj1);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 {
6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
6601 (arg1)->SetEncoding((wxFontEncoding )arg2);
6602
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 Py_INCREF(Py_None); resultobj = Py_None;
6607 return resultobj;
6608 fail:
6609 return NULL;
6610 }
6611
6612
6613 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6614 PyObject *resultobj;
6615 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6616 wxString *arg2 = 0 ;
6617 bool result;
6618 bool temp2 = False ;
6619 PyObject * obj0 = 0 ;
6620 PyObject * obj1 = 0 ;
6621 char *kwnames[] = {
6622 (char *) "self",(char *) "s", NULL
6623 };
6624
6625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6628 {
6629 arg2 = wxString_in_helper(obj1);
6630 if (arg2 == NULL) SWIG_fail;
6631 temp2 = True;
6632 }
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6636
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 {
6641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6642 }
6643 {
6644 if (temp2)
6645 delete arg2;
6646 }
6647 return resultobj;
6648 fail:
6649 {
6650 if (temp2)
6651 delete arg2;
6652 }
6653 return NULL;
6654 }
6655
6656
6657 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6658 PyObject *resultobj;
6659 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6660 wxString result;
6661 PyObject * obj0 = 0 ;
6662 char *kwnames[] = {
6663 (char *) "self", NULL
6664 };
6665
6666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6669 {
6670 PyThreadState* __tstate = wxPyBeginAllowThreads();
6671 result = ((wxNativeFontInfo const *)arg1)->ToString();
6672
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) SWIG_fail;
6675 }
6676 {
6677 #if wxUSE_UNICODE
6678 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6679 #else
6680 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6681 #endif
6682 }
6683 return resultobj;
6684 fail:
6685 return NULL;
6686 }
6687
6688
6689 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
6690 PyObject *resultobj;
6691 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6692 wxString result;
6693 PyObject * obj0 = 0 ;
6694 char *kwnames[] = {
6695 (char *) "self", NULL
6696 };
6697
6698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6701 {
6702 PyThreadState* __tstate = wxPyBeginAllowThreads();
6703 result = wxNativeFontInfo___str__(arg1);
6704
6705 wxPyEndAllowThreads(__tstate);
6706 if (PyErr_Occurred()) SWIG_fail;
6707 }
6708 {
6709 #if wxUSE_UNICODE
6710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6711 #else
6712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6713 #endif
6714 }
6715 return resultobj;
6716 fail:
6717 return NULL;
6718 }
6719
6720
6721 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6724 wxString *arg2 = 0 ;
6725 bool result;
6726 bool temp2 = False ;
6727 PyObject * obj0 = 0 ;
6728 PyObject * obj1 = 0 ;
6729 char *kwnames[] = {
6730 (char *) "self",(char *) "s", NULL
6731 };
6732
6733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6736 {
6737 arg2 = wxString_in_helper(obj1);
6738 if (arg2 == NULL) SWIG_fail;
6739 temp2 = True;
6740 }
6741 {
6742 PyThreadState* __tstate = wxPyBeginAllowThreads();
6743 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6744
6745 wxPyEndAllowThreads(__tstate);
6746 if (PyErr_Occurred()) SWIG_fail;
6747 }
6748 {
6749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6750 }
6751 {
6752 if (temp2)
6753 delete arg2;
6754 }
6755 return resultobj;
6756 fail:
6757 {
6758 if (temp2)
6759 delete arg2;
6760 }
6761 return NULL;
6762 }
6763
6764
6765 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6766 PyObject *resultobj;
6767 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6768 wxString result;
6769 PyObject * obj0 = 0 ;
6770 char *kwnames[] = {
6771 (char *) "self", NULL
6772 };
6773
6774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6777 {
6778 PyThreadState* __tstate = wxPyBeginAllowThreads();
6779 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6780
6781 wxPyEndAllowThreads(__tstate);
6782 if (PyErr_Occurred()) SWIG_fail;
6783 }
6784 {
6785 #if wxUSE_UNICODE
6786 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6787 #else
6788 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6789 #endif
6790 }
6791 return resultobj;
6792 fail:
6793 return NULL;
6794 }
6795
6796
6797 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
6798 PyObject *obj;
6799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6800 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6801 Py_INCREF(obj);
6802 return Py_BuildValue((char *)"");
6803 }
6804 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
6805 PyObject *resultobj;
6806 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6807 wxString *arg2 = (wxString *) 0 ;
6808 bool temp2 = False ;
6809 PyObject * obj0 = 0 ;
6810 PyObject * obj1 = 0 ;
6811 char *kwnames[] = {
6812 (char *) "self",(char *) "facename", NULL
6813 };
6814
6815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6818 {
6819 arg2 = wxString_in_helper(obj1);
6820 if (arg2 == NULL) SWIG_fail;
6821 temp2 = True;
6822 }
6823 if (arg1) (arg1)->facename = *arg2;
6824
6825 Py_INCREF(Py_None); resultobj = Py_None;
6826 {
6827 if (temp2)
6828 delete arg2;
6829 }
6830 return resultobj;
6831 fail:
6832 {
6833 if (temp2)
6834 delete arg2;
6835 }
6836 return NULL;
6837 }
6838
6839
6840 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
6841 PyObject *resultobj;
6842 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6843 wxString *result;
6844 PyObject * obj0 = 0 ;
6845 char *kwnames[] = {
6846 (char *) "self", NULL
6847 };
6848
6849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6852 result = (wxString *)& ((arg1)->facename);
6853
6854 {
6855 #if wxUSE_UNICODE
6856 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6857 #else
6858 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6859 #endif
6860 }
6861 return resultobj;
6862 fail:
6863 return NULL;
6864 }
6865
6866
6867 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
6868 PyObject *resultobj;
6869 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6870 int arg2 ;
6871 PyObject * obj0 = 0 ;
6872 PyObject * obj1 = 0 ;
6873 char *kwnames[] = {
6874 (char *) "self",(char *) "encoding", NULL
6875 };
6876
6877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6880 arg2 = (int)SWIG_As_int(obj1);
6881 if (PyErr_Occurred()) SWIG_fail;
6882 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6883
6884 Py_INCREF(Py_None); resultobj = Py_None;
6885 return resultobj;
6886 fail:
6887 return NULL;
6888 }
6889
6890
6891 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
6892 PyObject *resultobj;
6893 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6894 int result;
6895 PyObject * obj0 = 0 ;
6896 char *kwnames[] = {
6897 (char *) "self", NULL
6898 };
6899
6900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6903 result = (int) ((arg1)->encoding);
6904
6905 resultobj = SWIG_From_int((int)result);
6906 return resultobj;
6907 fail:
6908 return NULL;
6909 }
6910
6911
6912 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6913 PyObject *resultobj;
6914 wxNativeEncodingInfo *result;
6915 char *kwnames[] = {
6916 NULL
6917 };
6918
6919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6920 {
6921 PyThreadState* __tstate = wxPyBeginAllowThreads();
6922 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6923
6924 wxPyEndAllowThreads(__tstate);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6928 return resultobj;
6929 fail:
6930 return NULL;
6931 }
6932
6933
6934 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6935 PyObject *resultobj;
6936 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6937 PyObject * obj0 = 0 ;
6938 char *kwnames[] = {
6939 (char *) "self", NULL
6940 };
6941
6942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6945 {
6946 PyThreadState* __tstate = wxPyBeginAllowThreads();
6947 delete arg1;
6948
6949 wxPyEndAllowThreads(__tstate);
6950 if (PyErr_Occurred()) SWIG_fail;
6951 }
6952 Py_INCREF(Py_None); resultobj = Py_None;
6953 return resultobj;
6954 fail:
6955 return NULL;
6956 }
6957
6958
6959 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6960 PyObject *resultobj;
6961 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6962 wxString *arg2 = 0 ;
6963 bool result;
6964 bool temp2 = False ;
6965 PyObject * obj0 = 0 ;
6966 PyObject * obj1 = 0 ;
6967 char *kwnames[] = {
6968 (char *) "self",(char *) "s", NULL
6969 };
6970
6971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6974 {
6975 arg2 = wxString_in_helper(obj1);
6976 if (arg2 == NULL) SWIG_fail;
6977 temp2 = True;
6978 }
6979 {
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6982
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 {
6987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6988 }
6989 {
6990 if (temp2)
6991 delete arg2;
6992 }
6993 return resultobj;
6994 fail:
6995 {
6996 if (temp2)
6997 delete arg2;
6998 }
6999 return NULL;
7000 }
7001
7002
7003 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj;
7005 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7006 wxString result;
7007 PyObject * obj0 = 0 ;
7008 char *kwnames[] = {
7009 (char *) "self", NULL
7010 };
7011
7012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7015 {
7016 PyThreadState* __tstate = wxPyBeginAllowThreads();
7017 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7018
7019 wxPyEndAllowThreads(__tstate);
7020 if (PyErr_Occurred()) SWIG_fail;
7021 }
7022 {
7023 #if wxUSE_UNICODE
7024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7025 #else
7026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7027 #endif
7028 }
7029 return resultobj;
7030 fail:
7031 return NULL;
7032 }
7033
7034
7035 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
7036 PyObject *obj;
7037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7038 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7039 Py_INCREF(obj);
7040 return Py_BuildValue((char *)"");
7041 }
7042 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj;
7044 int arg1 ;
7045 wxNativeEncodingInfo *result;
7046 PyObject * obj0 = 0 ;
7047 char *kwnames[] = {
7048 (char *) "encoding", NULL
7049 };
7050
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7052 arg1 = (int)SWIG_As_int(obj0);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 {
7055 PyThreadState* __tstate = wxPyBeginAllowThreads();
7056 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7057
7058 wxPyEndAllowThreads(__tstate);
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7062 return resultobj;
7063 fail:
7064 return NULL;
7065 }
7066
7067
7068 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7069 PyObject *resultobj;
7070 wxNativeEncodingInfo *arg1 = 0 ;
7071 bool result;
7072 PyObject * obj0 = 0 ;
7073 char *kwnames[] = {
7074 (char *) "info", NULL
7075 };
7076
7077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7079 SWIG_POINTER_EXCEPTION | 0)) == -1)
7080 SWIG_fail;
7081 if (arg1 == NULL) {
7082 PyErr_SetString(PyExc_TypeError,"null reference");
7083 SWIG_fail;
7084 }
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 {
7093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7094 }
7095 return resultobj;
7096 fail:
7097 return NULL;
7098 }
7099
7100
7101 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7102 PyObject *resultobj;
7103 wxFontMapper *result;
7104 char *kwnames[] = {
7105 NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7109 {
7110 PyThreadState* __tstate = wxPyBeginAllowThreads();
7111 result = (wxFontMapper *)new wxFontMapper();
7112
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7117 return resultobj;
7118 fail:
7119 return NULL;
7120 }
7121
7122
7123 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj;
7125 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7126 PyObject * obj0 = 0 ;
7127 char *kwnames[] = {
7128 (char *) "self", NULL
7129 };
7130
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 delete arg1;
7137
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 Py_INCREF(Py_None); resultobj = Py_None;
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
7149 PyObject *resultobj;
7150 wxFontMapper *result;
7151 char *kwnames[] = {
7152 NULL
7153 };
7154
7155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 result = (wxFontMapper *)wxFontMapper::Get();
7159
7160 wxPyEndAllowThreads(__tstate);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7171 PyObject *resultobj;
7172 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7173 wxFontMapper *result;
7174 PyObject * obj0 = 0 ;
7175 char *kwnames[] = {
7176 (char *) "mapper", NULL
7177 };
7178
7179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7185
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7197 PyObject *resultobj;
7198 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7199 wxString *arg2 = 0 ;
7200 bool arg3 = (bool) True ;
7201 int result;
7202 bool temp2 = False ;
7203 PyObject * obj0 = 0 ;
7204 PyObject * obj1 = 0 ;
7205 PyObject * obj2 = 0 ;
7206 char *kwnames[] = {
7207 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7208 };
7209
7210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7213 {
7214 arg2 = wxString_in_helper(obj1);
7215 if (arg2 == NULL) SWIG_fail;
7216 temp2 = True;
7217 }
7218 if (obj2) {
7219 arg3 = (bool)SWIG_As_bool(obj2);
7220 if (PyErr_Occurred()) SWIG_fail;
7221 }
7222 {
7223 PyThreadState* __tstate = wxPyBeginAllowThreads();
7224 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7225
7226 wxPyEndAllowThreads(__tstate);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 resultobj = SWIG_From_int((int)result);
7230 {
7231 if (temp2)
7232 delete arg2;
7233 }
7234 return resultobj;
7235 fail:
7236 {
7237 if (temp2)
7238 delete arg2;
7239 }
7240 return NULL;
7241 }
7242
7243
7244 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
7245 PyObject *resultobj;
7246 size_t result;
7247 char *kwnames[] = {
7248 NULL
7249 };
7250
7251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7252 {
7253 PyThreadState* __tstate = wxPyBeginAllowThreads();
7254 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7255
7256 wxPyEndAllowThreads(__tstate);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7260 return resultobj;
7261 fail:
7262 return NULL;
7263 }
7264
7265
7266 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7267 PyObject *resultobj;
7268 size_t arg1 ;
7269 int result;
7270 PyObject * obj0 = 0 ;
7271 char *kwnames[] = {
7272 (char *) "n", NULL
7273 };
7274
7275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7276 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 result = (int)wxFontMapper::GetEncoding(arg1);
7281
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = SWIG_From_int((int)result);
7286 return resultobj;
7287 fail:
7288 return NULL;
7289 }
7290
7291
7292 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj;
7294 int arg1 ;
7295 wxString result;
7296 PyObject * obj0 = 0 ;
7297 char *kwnames[] = {
7298 (char *) "encoding", NULL
7299 };
7300
7301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7302 arg1 = (int)SWIG_As_int(obj0);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 {
7305 PyThreadState* __tstate = wxPyBeginAllowThreads();
7306 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7307
7308 wxPyEndAllowThreads(__tstate);
7309 if (PyErr_Occurred()) SWIG_fail;
7310 }
7311 {
7312 #if wxUSE_UNICODE
7313 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7314 #else
7315 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7316 #endif
7317 }
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
7325 PyObject *resultobj;
7326 int arg1 ;
7327 wxString result;
7328 PyObject * obj0 = 0 ;
7329 char *kwnames[] = {
7330 (char *) "encoding", NULL
7331 };
7332
7333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7334 arg1 = (int)SWIG_As_int(obj0);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 {
7337 PyThreadState* __tstate = wxPyBeginAllowThreads();
7338 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7339
7340 wxPyEndAllowThreads(__tstate);
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 {
7344 #if wxUSE_UNICODE
7345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7346 #else
7347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7348 #endif
7349 }
7350 return resultobj;
7351 fail:
7352 return NULL;
7353 }
7354
7355
7356 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
7357 PyObject *resultobj;
7358 wxString *arg1 = 0 ;
7359 int result;
7360 bool temp1 = False ;
7361 PyObject * obj0 = 0 ;
7362 char *kwnames[] = {
7363 (char *) "name", NULL
7364 };
7365
7366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7367 {
7368 arg1 = wxString_in_helper(obj0);
7369 if (arg1 == NULL) SWIG_fail;
7370 temp1 = True;
7371 }
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7375
7376 wxPyEndAllowThreads(__tstate);
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 resultobj = SWIG_From_int((int)result);
7380 {
7381 if (temp1)
7382 delete arg1;
7383 }
7384 return resultobj;
7385 fail:
7386 {
7387 if (temp1)
7388 delete arg1;
7389 }
7390 return NULL;
7391 }
7392
7393
7394 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
7395 PyObject *resultobj;
7396 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7397 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7398 PyObject * obj0 = 0 ;
7399 PyObject * obj1 = 0 ;
7400 char *kwnames[] = {
7401 (char *) "self",(char *) "config", NULL
7402 };
7403
7404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7409 {
7410 PyThreadState* __tstate = wxPyBeginAllowThreads();
7411 (arg1)->SetConfig(arg2);
7412
7413 wxPyEndAllowThreads(__tstate);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 Py_INCREF(Py_None); resultobj = Py_None;
7417 return resultobj;
7418 fail:
7419 return NULL;
7420 }
7421
7422
7423 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7424 PyObject *resultobj;
7425 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7426 wxString *arg2 = 0 ;
7427 bool temp2 = False ;
7428 PyObject * obj0 = 0 ;
7429 PyObject * obj1 = 0 ;
7430 char *kwnames[] = {
7431 (char *) "self",(char *) "prefix", NULL
7432 };
7433
7434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7437 {
7438 arg2 = wxString_in_helper(obj1);
7439 if (arg2 == NULL) SWIG_fail;
7440 temp2 = True;
7441 }
7442 {
7443 PyThreadState* __tstate = wxPyBeginAllowThreads();
7444 (arg1)->SetConfigPath((wxString const &)*arg2);
7445
7446 wxPyEndAllowThreads(__tstate);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 Py_INCREF(Py_None); resultobj = Py_None;
7450 {
7451 if (temp2)
7452 delete arg2;
7453 }
7454 return resultobj;
7455 fail:
7456 {
7457 if (temp2)
7458 delete arg2;
7459 }
7460 return NULL;
7461 }
7462
7463
7464 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7465 PyObject *resultobj;
7466 wxString result;
7467 char *kwnames[] = {
7468 NULL
7469 };
7470
7471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7472 {
7473 PyThreadState* __tstate = wxPyBeginAllowThreads();
7474 result = wxFontMapper::GetDefaultConfigPath();
7475
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 {
7480 #if wxUSE_UNICODE
7481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7482 #else
7483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7484 #endif
7485 }
7486 return resultobj;
7487 fail:
7488 return NULL;
7489 }
7490
7491
7492 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj;
7494 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7495 int arg2 ;
7496 wxString const &arg3_defvalue = wxPyEmptyString ;
7497 wxString *arg3 = (wxString *) &arg3_defvalue ;
7498 bool arg4 = (bool) True ;
7499 PyObject *result;
7500 bool temp3 = False ;
7501 PyObject * obj0 = 0 ;
7502 PyObject * obj1 = 0 ;
7503 PyObject * obj2 = 0 ;
7504 PyObject * obj3 = 0 ;
7505 char *kwnames[] = {
7506 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7507 };
7508
7509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7512 arg2 = (int)SWIG_As_int(obj1);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 if (obj2) {
7515 {
7516 arg3 = wxString_in_helper(obj2);
7517 if (arg3 == NULL) SWIG_fail;
7518 temp3 = True;
7519 }
7520 }
7521 if (obj3) {
7522 arg4 = (bool)SWIG_As_bool(obj3);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 {
7526 PyThreadState* __tstate = wxPyBeginAllowThreads();
7527 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7528
7529 wxPyEndAllowThreads(__tstate);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 resultobj = result;
7533 {
7534 if (temp3)
7535 delete arg3;
7536 }
7537 return resultobj;
7538 fail:
7539 {
7540 if (temp3)
7541 delete arg3;
7542 }
7543 return NULL;
7544 }
7545
7546
7547 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
7548 PyObject *resultobj;
7549 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7550 int arg2 ;
7551 wxString const &arg3_defvalue = wxPyEmptyString ;
7552 wxString *arg3 = (wxString *) &arg3_defvalue ;
7553 bool result;
7554 bool temp3 = False ;
7555 PyObject * obj0 = 0 ;
7556 PyObject * obj1 = 0 ;
7557 PyObject * obj2 = 0 ;
7558 char *kwnames[] = {
7559 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7560 };
7561
7562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7565 arg2 = (int)SWIG_As_int(obj1);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 if (obj2) {
7568 {
7569 arg3 = wxString_in_helper(obj2);
7570 if (arg3 == NULL) SWIG_fail;
7571 temp3 = True;
7572 }
7573 }
7574 {
7575 PyThreadState* __tstate = wxPyBeginAllowThreads();
7576 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7577
7578 wxPyEndAllowThreads(__tstate);
7579 if (PyErr_Occurred()) SWIG_fail;
7580 }
7581 {
7582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7583 }
7584 {
7585 if (temp3)
7586 delete arg3;
7587 }
7588 return resultobj;
7589 fail:
7590 {
7591 if (temp3)
7592 delete arg3;
7593 }
7594 return NULL;
7595 }
7596
7597
7598 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
7599 PyObject *resultobj;
7600 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7601 wxWindow *arg2 = (wxWindow *) 0 ;
7602 PyObject * obj0 = 0 ;
7603 PyObject * obj1 = 0 ;
7604 char *kwnames[] = {
7605 (char *) "self",(char *) "parent", NULL
7606 };
7607
7608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7611 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7613 {
7614 PyThreadState* __tstate = wxPyBeginAllowThreads();
7615 (arg1)->SetDialogParent(arg2);
7616
7617 wxPyEndAllowThreads(__tstate);
7618 if (PyErr_Occurred()) SWIG_fail;
7619 }
7620 Py_INCREF(Py_None); resultobj = Py_None;
7621 return resultobj;
7622 fail:
7623 return NULL;
7624 }
7625
7626
7627 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
7628 PyObject *resultobj;
7629 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7630 wxString *arg2 = 0 ;
7631 bool temp2 = False ;
7632 PyObject * obj0 = 0 ;
7633 PyObject * obj1 = 0 ;
7634 char *kwnames[] = {
7635 (char *) "self",(char *) "title", NULL
7636 };
7637
7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7641 {
7642 arg2 = wxString_in_helper(obj1);
7643 if (arg2 == NULL) SWIG_fail;
7644 temp2 = True;
7645 }
7646 {
7647 PyThreadState* __tstate = wxPyBeginAllowThreads();
7648 (arg1)->SetDialogTitle((wxString const &)*arg2);
7649
7650 wxPyEndAllowThreads(__tstate);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 Py_INCREF(Py_None); resultobj = Py_None;
7654 {
7655 if (temp2)
7656 delete arg2;
7657 }
7658 return resultobj;
7659 fail:
7660 {
7661 if (temp2)
7662 delete arg2;
7663 }
7664 return NULL;
7665 }
7666
7667
7668 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
7669 PyObject *obj;
7670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7671 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7672 Py_INCREF(obj);
7673 return Py_BuildValue((char *)"");
7674 }
7675 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7676 PyObject *resultobj;
7677 int arg1 ;
7678 int arg2 ;
7679 int arg3 ;
7680 int arg4 ;
7681 bool arg5 = (bool) False ;
7682 wxString const &arg6_defvalue = wxPyEmptyString ;
7683 wxString *arg6 = (wxString *) &arg6_defvalue ;
7684 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7685 wxFont *result;
7686 bool temp6 = False ;
7687 PyObject * obj0 = 0 ;
7688 PyObject * obj1 = 0 ;
7689 PyObject * obj2 = 0 ;
7690 PyObject * obj3 = 0 ;
7691 PyObject * obj4 = 0 ;
7692 PyObject * obj5 = 0 ;
7693 PyObject * obj6 = 0 ;
7694 char *kwnames[] = {
7695 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7696 };
7697
7698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7699 arg1 = (int)SWIG_As_int(obj0);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 arg2 = (int)SWIG_As_int(obj1);
7702 if (PyErr_Occurred()) SWIG_fail;
7703 arg3 = (int)SWIG_As_int(obj2);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 arg4 = (int)SWIG_As_int(obj3);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 if (obj4) {
7708 arg5 = (bool)SWIG_As_bool(obj4);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 }
7711 if (obj5) {
7712 {
7713 arg6 = wxString_in_helper(obj5);
7714 if (arg6 == NULL) SWIG_fail;
7715 temp6 = True;
7716 }
7717 }
7718 if (obj6) {
7719 arg7 = (int)SWIG_As_int(obj6);
7720 if (PyErr_Occurred()) SWIG_fail;
7721 }
7722 {
7723 if (!wxPyCheckForApp()) SWIG_fail;
7724 PyThreadState* __tstate = wxPyBeginAllowThreads();
7725 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7726
7727 wxPyEndAllowThreads(__tstate);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7731 {
7732 if (temp6)
7733 delete arg6;
7734 }
7735 return resultobj;
7736 fail:
7737 {
7738 if (temp6)
7739 delete arg6;
7740 }
7741 return NULL;
7742 }
7743
7744
7745 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7746 PyObject *resultobj;
7747 wxFont *arg1 = (wxFont *) 0 ;
7748 PyObject * obj0 = 0 ;
7749 char *kwnames[] = {
7750 (char *) "self", NULL
7751 };
7752
7753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7756 {
7757 PyThreadState* __tstate = wxPyBeginAllowThreads();
7758 delete arg1;
7759
7760 wxPyEndAllowThreads(__tstate);
7761 if (PyErr_Occurred()) SWIG_fail;
7762 }
7763 Py_INCREF(Py_None); resultobj = Py_None;
7764 return resultobj;
7765 fail:
7766 return NULL;
7767 }
7768
7769
7770 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7771 PyObject *resultobj;
7772 wxNativeFontInfo *arg1 = 0 ;
7773 wxFont *result;
7774 PyObject * obj0 = 0 ;
7775 char *kwnames[] = {
7776 (char *) "info", NULL
7777 };
7778
7779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7781 SWIG_POINTER_EXCEPTION | 0)) == -1)
7782 SWIG_fail;
7783 if (arg1 == NULL) {
7784 PyErr_SetString(PyExc_TypeError,"null reference");
7785 SWIG_fail;
7786 }
7787 {
7788 if (!wxPyCheckForApp()) SWIG_fail;
7789 PyThreadState* __tstate = wxPyBeginAllowThreads();
7790 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7791
7792 wxPyEndAllowThreads(__tstate);
7793 if (PyErr_Occurred()) SWIG_fail;
7794 }
7795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7796 return resultobj;
7797 fail:
7798 return NULL;
7799 }
7800
7801
7802 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
7803 PyObject *resultobj;
7804 wxString *arg1 = 0 ;
7805 wxFont *result;
7806 bool temp1 = False ;
7807 PyObject * obj0 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "info", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7813 {
7814 arg1 = wxString_in_helper(obj0);
7815 if (arg1 == NULL) SWIG_fail;
7816 temp1 = True;
7817 }
7818 {
7819 if (!wxPyCheckForApp()) SWIG_fail;
7820 PyThreadState* __tstate = wxPyBeginAllowThreads();
7821 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7822
7823 wxPyEndAllowThreads(__tstate);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7827 {
7828 if (temp1)
7829 delete arg1;
7830 }
7831 return resultobj;
7832 fail:
7833 {
7834 if (temp1)
7835 delete arg1;
7836 }
7837 return NULL;
7838 }
7839
7840
7841 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj;
7843 int arg1 ;
7844 int arg2 ;
7845 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7846 wxString const &arg4_defvalue = wxPyEmptyString ;
7847 wxString *arg4 = (wxString *) &arg4_defvalue ;
7848 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7849 wxFont *result;
7850 bool temp4 = False ;
7851 PyObject * obj0 = 0 ;
7852 PyObject * obj1 = 0 ;
7853 PyObject * obj2 = 0 ;
7854 PyObject * obj3 = 0 ;
7855 PyObject * obj4 = 0 ;
7856 char *kwnames[] = {
7857 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7858 };
7859
7860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7861 arg1 = (int)SWIG_As_int(obj0);
7862 if (PyErr_Occurred()) SWIG_fail;
7863 arg2 = (int)SWIG_As_int(obj1);
7864 if (PyErr_Occurred()) SWIG_fail;
7865 if (obj2) {
7866 arg3 = (int)SWIG_As_int(obj2);
7867 if (PyErr_Occurred()) SWIG_fail;
7868 }
7869 if (obj3) {
7870 {
7871 arg4 = wxString_in_helper(obj3);
7872 if (arg4 == NULL) SWIG_fail;
7873 temp4 = True;
7874 }
7875 }
7876 if (obj4) {
7877 arg5 = (int)SWIG_As_int(obj4);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 {
7881 if (!wxPyCheckForApp()) SWIG_fail;
7882 PyThreadState* __tstate = wxPyBeginAllowThreads();
7883 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7884
7885 wxPyEndAllowThreads(__tstate);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7889 {
7890 if (temp4)
7891 delete arg4;
7892 }
7893 return resultobj;
7894 fail:
7895 {
7896 if (temp4)
7897 delete arg4;
7898 }
7899 return NULL;
7900 }
7901
7902
7903 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
7904 PyObject *resultobj;
7905 wxFont *arg1 = (wxFont *) 0 ;
7906 bool result;
7907 PyObject * obj0 = 0 ;
7908 char *kwnames[] = {
7909 (char *) "self", NULL
7910 };
7911
7912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7915 {
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 result = (bool)((wxFont const *)arg1)->Ok();
7918
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 {
7923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7924 }
7925 return resultobj;
7926 fail:
7927 return NULL;
7928 }
7929
7930
7931 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
7932 PyObject *resultobj;
7933 wxFont *arg1 = (wxFont *) 0 ;
7934 wxFont *arg2 = (wxFont *) 0 ;
7935 bool result;
7936 PyObject * obj0 = 0 ;
7937 PyObject * obj1 = 0 ;
7938 char *kwnames[] = {
7939 (char *) "self",(char *) "other", NULL
7940 };
7941
7942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7945 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7950
7951 wxPyEndAllowThreads(__tstate);
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 {
7955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7956 }
7957 return resultobj;
7958 fail:
7959 return NULL;
7960 }
7961
7962
7963 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
7964 PyObject *resultobj;
7965 wxFont *arg1 = (wxFont *) 0 ;
7966 wxFont *arg2 = (wxFont *) 0 ;
7967 bool result;
7968 PyObject * obj0 = 0 ;
7969 PyObject * obj1 = 0 ;
7970 char *kwnames[] = {
7971 (char *) "self",(char *) "other", NULL
7972 };
7973
7974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7977 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7979 {
7980 PyThreadState* __tstate = wxPyBeginAllowThreads();
7981 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7982
7983 wxPyEndAllowThreads(__tstate);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
7986 {
7987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7988 }
7989 return resultobj;
7990 fail:
7991 return NULL;
7992 }
7993
7994
7995 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
7996 PyObject *resultobj;
7997 wxFont *arg1 = (wxFont *) 0 ;
7998 int result;
7999 PyObject * obj0 = 0 ;
8000 char *kwnames[] = {
8001 (char *) "self", NULL
8002 };
8003
8004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8007 {
8008 PyThreadState* __tstate = wxPyBeginAllowThreads();
8009 result = (int)((wxFont const *)arg1)->GetPointSize();
8010
8011 wxPyEndAllowThreads(__tstate);
8012 if (PyErr_Occurred()) SWIG_fail;
8013 }
8014 resultobj = SWIG_From_int((int)result);
8015 return resultobj;
8016 fail:
8017 return NULL;
8018 }
8019
8020
8021 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8022 PyObject *resultobj;
8023 wxFont *arg1 = (wxFont *) 0 ;
8024 int result;
8025 PyObject * obj0 = 0 ;
8026 char *kwnames[] = {
8027 (char *) "self", NULL
8028 };
8029
8030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8033 {
8034 PyThreadState* __tstate = wxPyBeginAllowThreads();
8035 result = (int)((wxFont const *)arg1)->GetFamily();
8036
8037 wxPyEndAllowThreads(__tstate);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 resultobj = SWIG_From_int((int)result);
8041 return resultobj;
8042 fail:
8043 return NULL;
8044 }
8045
8046
8047 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8048 PyObject *resultobj;
8049 wxFont *arg1 = (wxFont *) 0 ;
8050 int result;
8051 PyObject * obj0 = 0 ;
8052 char *kwnames[] = {
8053 (char *) "self", NULL
8054 };
8055
8056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8059 {
8060 PyThreadState* __tstate = wxPyBeginAllowThreads();
8061 result = (int)((wxFont const *)arg1)->GetStyle();
8062
8063 wxPyEndAllowThreads(__tstate);
8064 if (PyErr_Occurred()) SWIG_fail;
8065 }
8066 resultobj = SWIG_From_int((int)result);
8067 return resultobj;
8068 fail:
8069 return NULL;
8070 }
8071
8072
8073 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8074 PyObject *resultobj;
8075 wxFont *arg1 = (wxFont *) 0 ;
8076 int result;
8077 PyObject * obj0 = 0 ;
8078 char *kwnames[] = {
8079 (char *) "self", NULL
8080 };
8081
8082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8085 {
8086 PyThreadState* __tstate = wxPyBeginAllowThreads();
8087 result = (int)((wxFont const *)arg1)->GetWeight();
8088
8089 wxPyEndAllowThreads(__tstate);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 }
8092 resultobj = SWIG_From_int((int)result);
8093 return resultobj;
8094 fail:
8095 return NULL;
8096 }
8097
8098
8099 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8100 PyObject *resultobj;
8101 wxFont *arg1 = (wxFont *) 0 ;
8102 bool result;
8103 PyObject * obj0 = 0 ;
8104 char *kwnames[] = {
8105 (char *) "self", NULL
8106 };
8107
8108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8114
8115 wxPyEndAllowThreads(__tstate);
8116 if (PyErr_Occurred()) SWIG_fail;
8117 }
8118 {
8119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8120 }
8121 return resultobj;
8122 fail:
8123 return NULL;
8124 }
8125
8126
8127 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8128 PyObject *resultobj;
8129 wxFont *arg1 = (wxFont *) 0 ;
8130 wxString result;
8131 PyObject * obj0 = 0 ;
8132 char *kwnames[] = {
8133 (char *) "self", NULL
8134 };
8135
8136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8139 {
8140 PyThreadState* __tstate = wxPyBeginAllowThreads();
8141 result = ((wxFont const *)arg1)->GetFaceName();
8142
8143 wxPyEndAllowThreads(__tstate);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 {
8147 #if wxUSE_UNICODE
8148 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8149 #else
8150 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8151 #endif
8152 }
8153 return resultobj;
8154 fail:
8155 return NULL;
8156 }
8157
8158
8159 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8160 PyObject *resultobj;
8161 wxFont *arg1 = (wxFont *) 0 ;
8162 int result;
8163 PyObject * obj0 = 0 ;
8164 char *kwnames[] = {
8165 (char *) "self", NULL
8166 };
8167
8168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8171 {
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (int)((wxFont const *)arg1)->GetEncoding();
8174
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = SWIG_From_int((int)result);
8179 return resultobj;
8180 fail:
8181 return NULL;
8182 }
8183
8184
8185 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8186 PyObject *resultobj;
8187 wxFont *arg1 = (wxFont *) 0 ;
8188 wxNativeFontInfo *result;
8189 PyObject * obj0 = 0 ;
8190 char *kwnames[] = {
8191 (char *) "self", NULL
8192 };
8193
8194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8197 {
8198 PyThreadState* __tstate = wxPyBeginAllowThreads();
8199 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8200
8201 wxPyEndAllowThreads(__tstate);
8202 if (PyErr_Occurred()) SWIG_fail;
8203 }
8204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8205 return resultobj;
8206 fail:
8207 return NULL;
8208 }
8209
8210
8211 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8212 PyObject *resultobj;
8213 wxFont *arg1 = (wxFont *) 0 ;
8214 bool result;
8215 PyObject * obj0 = 0 ;
8216 char *kwnames[] = {
8217 (char *) "self", NULL
8218 };
8219
8220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8226
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
8230 {
8231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8232 }
8233 return resultobj;
8234 fail:
8235 return NULL;
8236 }
8237
8238
8239 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj;
8241 wxFont *arg1 = (wxFont *) 0 ;
8242 wxString result;
8243 PyObject * obj0 = 0 ;
8244 char *kwnames[] = {
8245 (char *) "self", NULL
8246 };
8247
8248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8251 {
8252 PyThreadState* __tstate = wxPyBeginAllowThreads();
8253 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8254
8255 wxPyEndAllowThreads(__tstate);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 {
8259 #if wxUSE_UNICODE
8260 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8261 #else
8262 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8263 #endif
8264 }
8265 return resultobj;
8266 fail:
8267 return NULL;
8268 }
8269
8270
8271 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8272 PyObject *resultobj;
8273 wxFont *arg1 = (wxFont *) 0 ;
8274 wxString result;
8275 PyObject * obj0 = 0 ;
8276 char *kwnames[] = {
8277 (char *) "self", NULL
8278 };
8279
8280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8283 {
8284 PyThreadState* __tstate = wxPyBeginAllowThreads();
8285 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8286
8287 wxPyEndAllowThreads(__tstate);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 {
8291 #if wxUSE_UNICODE
8292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8293 #else
8294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8295 #endif
8296 }
8297 return resultobj;
8298 fail:
8299 return NULL;
8300 }
8301
8302
8303 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8304 PyObject *resultobj;
8305 wxFont *arg1 = (wxFont *) 0 ;
8306 int arg2 ;
8307 PyObject * obj0 = 0 ;
8308 PyObject * obj1 = 0 ;
8309 char *kwnames[] = {
8310 (char *) "self",(char *) "pointSize", NULL
8311 };
8312
8313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8316 arg2 = (int)SWIG_As_int(obj1);
8317 if (PyErr_Occurred()) SWIG_fail;
8318 {
8319 PyThreadState* __tstate = wxPyBeginAllowThreads();
8320 (arg1)->SetPointSize(arg2);
8321
8322 wxPyEndAllowThreads(__tstate);
8323 if (PyErr_Occurred()) SWIG_fail;
8324 }
8325 Py_INCREF(Py_None); resultobj = Py_None;
8326 return resultobj;
8327 fail:
8328 return NULL;
8329 }
8330
8331
8332 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8333 PyObject *resultobj;
8334 wxFont *arg1 = (wxFont *) 0 ;
8335 int arg2 ;
8336 PyObject * obj0 = 0 ;
8337 PyObject * obj1 = 0 ;
8338 char *kwnames[] = {
8339 (char *) "self",(char *) "family", NULL
8340 };
8341
8342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8345 arg2 = (int)SWIG_As_int(obj1);
8346 if (PyErr_Occurred()) SWIG_fail;
8347 {
8348 PyThreadState* __tstate = wxPyBeginAllowThreads();
8349 (arg1)->SetFamily(arg2);
8350
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) SWIG_fail;
8353 }
8354 Py_INCREF(Py_None); resultobj = Py_None;
8355 return resultobj;
8356 fail:
8357 return NULL;
8358 }
8359
8360
8361 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8362 PyObject *resultobj;
8363 wxFont *arg1 = (wxFont *) 0 ;
8364 int arg2 ;
8365 PyObject * obj0 = 0 ;
8366 PyObject * obj1 = 0 ;
8367 char *kwnames[] = {
8368 (char *) "self",(char *) "style", NULL
8369 };
8370
8371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8374 arg2 = (int)SWIG_As_int(obj1);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 (arg1)->SetStyle(arg2);
8379
8380 wxPyEndAllowThreads(__tstate);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 Py_INCREF(Py_None); resultobj = Py_None;
8384 return resultobj;
8385 fail:
8386 return NULL;
8387 }
8388
8389
8390 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8391 PyObject *resultobj;
8392 wxFont *arg1 = (wxFont *) 0 ;
8393 int arg2 ;
8394 PyObject * obj0 = 0 ;
8395 PyObject * obj1 = 0 ;
8396 char *kwnames[] = {
8397 (char *) "self",(char *) "weight", NULL
8398 };
8399
8400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8403 arg2 = (int)SWIG_As_int(obj1);
8404 if (PyErr_Occurred()) SWIG_fail;
8405 {
8406 PyThreadState* __tstate = wxPyBeginAllowThreads();
8407 (arg1)->SetWeight(arg2);
8408
8409 wxPyEndAllowThreads(__tstate);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 Py_INCREF(Py_None); resultobj = Py_None;
8413 return resultobj;
8414 fail:
8415 return NULL;
8416 }
8417
8418
8419 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8420 PyObject *resultobj;
8421 wxFont *arg1 = (wxFont *) 0 ;
8422 wxString *arg2 = 0 ;
8423 bool temp2 = False ;
8424 PyObject * obj0 = 0 ;
8425 PyObject * obj1 = 0 ;
8426 char *kwnames[] = {
8427 (char *) "self",(char *) "faceName", NULL
8428 };
8429
8430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8433 {
8434 arg2 = wxString_in_helper(obj1);
8435 if (arg2 == NULL) SWIG_fail;
8436 temp2 = True;
8437 }
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 (arg1)->SetFaceName((wxString const &)*arg2);
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 Py_INCREF(Py_None); resultobj = Py_None;
8446 {
8447 if (temp2)
8448 delete arg2;
8449 }
8450 return resultobj;
8451 fail:
8452 {
8453 if (temp2)
8454 delete arg2;
8455 }
8456 return NULL;
8457 }
8458
8459
8460 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8461 PyObject *resultobj;
8462 wxFont *arg1 = (wxFont *) 0 ;
8463 bool arg2 ;
8464 PyObject * obj0 = 0 ;
8465 PyObject * obj1 = 0 ;
8466 char *kwnames[] = {
8467 (char *) "self",(char *) "underlined", NULL
8468 };
8469
8470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8473 arg2 = (bool)SWIG_As_bool(obj1);
8474 if (PyErr_Occurred()) SWIG_fail;
8475 {
8476 PyThreadState* __tstate = wxPyBeginAllowThreads();
8477 (arg1)->SetUnderlined(arg2);
8478
8479 wxPyEndAllowThreads(__tstate);
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 Py_INCREF(Py_None); resultobj = Py_None;
8483 return resultobj;
8484 fail:
8485 return NULL;
8486 }
8487
8488
8489 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8490 PyObject *resultobj;
8491 wxFont *arg1 = (wxFont *) 0 ;
8492 int arg2 ;
8493 PyObject * obj0 = 0 ;
8494 PyObject * obj1 = 0 ;
8495 char *kwnames[] = {
8496 (char *) "self",(char *) "encoding", NULL
8497 };
8498
8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8502 arg2 = (int)SWIG_As_int(obj1);
8503 if (PyErr_Occurred()) SWIG_fail;
8504 {
8505 PyThreadState* __tstate = wxPyBeginAllowThreads();
8506 (arg1)->SetEncoding((wxFontEncoding )arg2);
8507
8508 wxPyEndAllowThreads(__tstate);
8509 if (PyErr_Occurred()) SWIG_fail;
8510 }
8511 Py_INCREF(Py_None); resultobj = Py_None;
8512 return resultobj;
8513 fail:
8514 return NULL;
8515 }
8516
8517
8518 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8519 PyObject *resultobj;
8520 wxFont *arg1 = (wxFont *) 0 ;
8521 wxNativeFontInfo *arg2 = 0 ;
8522 PyObject * obj0 = 0 ;
8523 PyObject * obj1 = 0 ;
8524 char *kwnames[] = {
8525 (char *) "self",(char *) "info", NULL
8526 };
8527
8528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8532 SWIG_POINTER_EXCEPTION | 0)) == -1)
8533 SWIG_fail;
8534 if (arg2 == NULL) {
8535 PyErr_SetString(PyExc_TypeError,"null reference");
8536 SWIG_fail;
8537 }
8538 {
8539 PyThreadState* __tstate = wxPyBeginAllowThreads();
8540 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8541
8542 wxPyEndAllowThreads(__tstate);
8543 if (PyErr_Occurred()) SWIG_fail;
8544 }
8545 Py_INCREF(Py_None); resultobj = Py_None;
8546 return resultobj;
8547 fail:
8548 return NULL;
8549 }
8550
8551
8552 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
8553 PyObject *resultobj;
8554 wxFont *arg1 = (wxFont *) 0 ;
8555 wxString *arg2 = 0 ;
8556 bool temp2 = False ;
8557 PyObject * obj0 = 0 ;
8558 PyObject * obj1 = 0 ;
8559 char *kwnames[] = {
8560 (char *) "self",(char *) "info", NULL
8561 };
8562
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8566 {
8567 arg2 = wxString_in_helper(obj1);
8568 if (arg2 == NULL) SWIG_fail;
8569 temp2 = True;
8570 }
8571 {
8572 PyThreadState* __tstate = wxPyBeginAllowThreads();
8573 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8574
8575 wxPyEndAllowThreads(__tstate);
8576 if (PyErr_Occurred()) SWIG_fail;
8577 }
8578 Py_INCREF(Py_None); resultobj = Py_None;
8579 {
8580 if (temp2)
8581 delete arg2;
8582 }
8583 return resultobj;
8584 fail:
8585 {
8586 if (temp2)
8587 delete arg2;
8588 }
8589 return NULL;
8590 }
8591
8592
8593 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8594 PyObject *resultobj;
8595 wxFont *arg1 = (wxFont *) 0 ;
8596 wxString *arg2 = 0 ;
8597 bool temp2 = False ;
8598 PyObject * obj0 = 0 ;
8599 PyObject * obj1 = 0 ;
8600 char *kwnames[] = {
8601 (char *) "self",(char *) "info", NULL
8602 };
8603
8604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8607 {
8608 arg2 = wxString_in_helper(obj1);
8609 if (arg2 == NULL) SWIG_fail;
8610 temp2 = True;
8611 }
8612 {
8613 PyThreadState* __tstate = wxPyBeginAllowThreads();
8614 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8615
8616 wxPyEndAllowThreads(__tstate);
8617 if (PyErr_Occurred()) SWIG_fail;
8618 }
8619 Py_INCREF(Py_None); resultobj = Py_None;
8620 {
8621 if (temp2)
8622 delete arg2;
8623 }
8624 return resultobj;
8625 fail:
8626 {
8627 if (temp2)
8628 delete arg2;
8629 }
8630 return NULL;
8631 }
8632
8633
8634 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj;
8636 wxFont *arg1 = (wxFont *) 0 ;
8637 wxString result;
8638 PyObject * obj0 = 0 ;
8639 char *kwnames[] = {
8640 (char *) "self", NULL
8641 };
8642
8643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8646 {
8647 PyThreadState* __tstate = wxPyBeginAllowThreads();
8648 result = ((wxFont const *)arg1)->GetFamilyString();
8649
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 {
8654 #if wxUSE_UNICODE
8655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8656 #else
8657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8658 #endif
8659 }
8660 return resultobj;
8661 fail:
8662 return NULL;
8663 }
8664
8665
8666 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
8667 PyObject *resultobj;
8668 wxFont *arg1 = (wxFont *) 0 ;
8669 wxString result;
8670 PyObject * obj0 = 0 ;
8671 char *kwnames[] = {
8672 (char *) "self", NULL
8673 };
8674
8675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8678 {
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 result = ((wxFont const *)arg1)->GetStyleString();
8681
8682 wxPyEndAllowThreads(__tstate);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 {
8686 #if wxUSE_UNICODE
8687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8688 #else
8689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8690 #endif
8691 }
8692 return resultobj;
8693 fail:
8694 return NULL;
8695 }
8696
8697
8698 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
8699 PyObject *resultobj;
8700 wxFont *arg1 = (wxFont *) 0 ;
8701 wxString result;
8702 PyObject * obj0 = 0 ;
8703 char *kwnames[] = {
8704 (char *) "self", NULL
8705 };
8706
8707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8710 {
8711 PyThreadState* __tstate = wxPyBeginAllowThreads();
8712 result = ((wxFont const *)arg1)->GetWeightString();
8713
8714 wxPyEndAllowThreads(__tstate);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 {
8718 #if wxUSE_UNICODE
8719 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8720 #else
8721 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8722 #endif
8723 }
8724 return resultobj;
8725 fail:
8726 return NULL;
8727 }
8728
8729
8730 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8731 PyObject *resultobj;
8732 wxFont *arg1 = (wxFont *) 0 ;
8733 bool arg2 = (bool) True ;
8734 PyObject * obj0 = 0 ;
8735 PyObject * obj1 = 0 ;
8736 char *kwnames[] = {
8737 (char *) "self",(char *) "no", NULL
8738 };
8739
8740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8743 if (obj1) {
8744 arg2 = (bool)SWIG_As_bool(obj1);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 {
8748 PyThreadState* __tstate = wxPyBeginAllowThreads();
8749 (arg1)->SetNoAntiAliasing(arg2);
8750
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 Py_INCREF(Py_None); resultobj = Py_None;
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj;
8763 wxFont *arg1 = (wxFont *) 0 ;
8764 bool result;
8765 PyObject * obj0 = 0 ;
8766 char *kwnames[] = {
8767 (char *) "self", NULL
8768 };
8769
8770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 {
8781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8782 }
8783 return resultobj;
8784 fail:
8785 return NULL;
8786 }
8787
8788
8789 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8790 PyObject *resultobj;
8791 int result;
8792 char *kwnames[] = {
8793 NULL
8794 };
8795
8796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8797 {
8798 if (!wxPyCheckForApp()) SWIG_fail;
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 result = (int)wxFont::GetDefaultEncoding();
8801
8802 wxPyEndAllowThreads(__tstate);
8803 if (PyErr_Occurred()) SWIG_fail;
8804 }
8805 resultobj = SWIG_From_int((int)result);
8806 return resultobj;
8807 fail:
8808 return NULL;
8809 }
8810
8811
8812 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj;
8814 int arg1 ;
8815 PyObject * obj0 = 0 ;
8816 char *kwnames[] = {
8817 (char *) "encoding", NULL
8818 };
8819
8820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8821 arg1 = (int)SWIG_As_int(obj0);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 {
8824 if (!wxPyCheckForApp()) SWIG_fail;
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8827
8828 wxPyEndAllowThreads(__tstate);
8829 if (PyErr_Occurred()) SWIG_fail;
8830 }
8831 Py_INCREF(Py_None); resultobj = Py_None;
8832 return resultobj;
8833 fail:
8834 return NULL;
8835 }
8836
8837
8838 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
8839 PyObject *obj;
8840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8841 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8842 Py_INCREF(obj);
8843 return Py_BuildValue((char *)"");
8844 }
8845 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj;
8847 wxPyFontEnumerator *result;
8848 char *kwnames[] = {
8849 NULL
8850 };
8851
8852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8853 {
8854 if (!wxPyCheckForApp()) SWIG_fail;
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8857
8858 wxPyEndAllowThreads(__tstate);
8859 if (PyErr_Occurred()) SWIG_fail;
8860 }
8861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8862 return resultobj;
8863 fail:
8864 return NULL;
8865 }
8866
8867
8868 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8869 PyObject *resultobj;
8870 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8871 PyObject * obj0 = 0 ;
8872 char *kwnames[] = {
8873 (char *) "self", NULL
8874 };
8875
8876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8879 {
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 delete arg1;
8882
8883 wxPyEndAllowThreads(__tstate);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 Py_INCREF(Py_None); resultobj = Py_None;
8887 return resultobj;
8888 fail:
8889 return NULL;
8890 }
8891
8892
8893 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj;
8895 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8896 PyObject *arg2 = (PyObject *) 0 ;
8897 PyObject *arg3 = (PyObject *) 0 ;
8898 bool arg4 ;
8899 PyObject * obj0 = 0 ;
8900 PyObject * obj1 = 0 ;
8901 PyObject * obj2 = 0 ;
8902 PyObject * obj3 = 0 ;
8903 char *kwnames[] = {
8904 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8905 };
8906
8907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8910 arg2 = obj1;
8911 arg3 = obj2;
8912 arg4 = (bool)SWIG_As_bool(obj3);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 {
8915 PyThreadState* __tstate = wxPyBeginAllowThreads();
8916 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8917
8918 wxPyEndAllowThreads(__tstate);
8919 if (PyErr_Occurred()) SWIG_fail;
8920 }
8921 Py_INCREF(Py_None); resultobj = Py_None;
8922 return resultobj;
8923 fail:
8924 return NULL;
8925 }
8926
8927
8928 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
8929 PyObject *resultobj;
8930 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8931 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8932 bool arg3 = (bool) False ;
8933 bool result;
8934 PyObject * obj0 = 0 ;
8935 PyObject * obj1 = 0 ;
8936 PyObject * obj2 = 0 ;
8937 char *kwnames[] = {
8938 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8939 };
8940
8941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8944 if (obj1) {
8945 arg2 = (int)SWIG_As_int(obj1);
8946 if (PyErr_Occurred()) SWIG_fail;
8947 }
8948 if (obj2) {
8949 arg3 = (bool)SWIG_As_bool(obj2);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 {
8953 PyThreadState* __tstate = wxPyBeginAllowThreads();
8954 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8955
8956 wxPyEndAllowThreads(__tstate);
8957 if (PyErr_Occurred()) SWIG_fail;
8958 }
8959 {
8960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8961 }
8962 return resultobj;
8963 fail:
8964 return NULL;
8965 }
8966
8967
8968 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
8969 PyObject *resultobj;
8970 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8971 wxString const &arg2_defvalue = wxPyEmptyString ;
8972 wxString *arg2 = (wxString *) &arg2_defvalue ;
8973 bool result;
8974 bool temp2 = False ;
8975 PyObject * obj0 = 0 ;
8976 PyObject * obj1 = 0 ;
8977 char *kwnames[] = {
8978 (char *) "self",(char *) "facename", NULL
8979 };
8980
8981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8984 if (obj1) {
8985 {
8986 arg2 = wxString_in_helper(obj1);
8987 if (arg2 == NULL) SWIG_fail;
8988 temp2 = True;
8989 }
8990 }
8991 {
8992 PyThreadState* __tstate = wxPyBeginAllowThreads();
8993 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8994
8995 wxPyEndAllowThreads(__tstate);
8996 if (PyErr_Occurred()) SWIG_fail;
8997 }
8998 {
8999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9000 }
9001 {
9002 if (temp2)
9003 delete arg2;
9004 }
9005 return resultobj;
9006 fail:
9007 {
9008 if (temp2)
9009 delete arg2;
9010 }
9011 return NULL;
9012 }
9013
9014
9015 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9016 PyObject *resultobj;
9017 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9018 PyObject *result;
9019 PyObject * obj0 = 0 ;
9020 char *kwnames[] = {
9021 (char *) "self", NULL
9022 };
9023
9024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9027 {
9028 PyThreadState* __tstate = wxPyBeginAllowThreads();
9029 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9030
9031 wxPyEndAllowThreads(__tstate);
9032 if (PyErr_Occurred()) SWIG_fail;
9033 }
9034 resultobj = result;
9035 return resultobj;
9036 fail:
9037 return NULL;
9038 }
9039
9040
9041 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9042 PyObject *resultobj;
9043 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9044 PyObject *result;
9045 PyObject * obj0 = 0 ;
9046 char *kwnames[] = {
9047 (char *) "self", NULL
9048 };
9049
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9053 {
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9056
9057 wxPyEndAllowThreads(__tstate);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 }
9060 resultobj = result;
9061 return resultobj;
9062 fail:
9063 return NULL;
9064 }
9065
9066
9067 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
9068 PyObject *obj;
9069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9070 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9071 Py_INCREF(obj);
9072 return Py_BuildValue((char *)"");
9073 }
9074 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
9075 PyObject *resultobj;
9076 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9077 int arg2 ;
9078 PyObject * obj0 = 0 ;
9079 PyObject * obj1 = 0 ;
9080 char *kwnames[] = {
9081 (char *) "self",(char *) "Language", NULL
9082 };
9083
9084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9087 arg2 = (int)SWIG_As_int(obj1);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 if (arg1) (arg1)->Language = arg2;
9090
9091 Py_INCREF(Py_None); resultobj = Py_None;
9092 return resultobj;
9093 fail:
9094 return NULL;
9095 }
9096
9097
9098 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
9099 PyObject *resultobj;
9100 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9101 int result;
9102 PyObject * obj0 = 0 ;
9103 char *kwnames[] = {
9104 (char *) "self", NULL
9105 };
9106
9107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9110 result = (int) ((arg1)->Language);
9111
9112 resultobj = SWIG_From_int((int)result);
9113 return resultobj;
9114 fail:
9115 return NULL;
9116 }
9117
9118
9119 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
9120 PyObject *resultobj;
9121 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9122 wxString *arg2 = (wxString *) 0 ;
9123 bool temp2 = False ;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 char *kwnames[] = {
9127 (char *) "self",(char *) "CanonicalName", NULL
9128 };
9129
9130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9133 {
9134 arg2 = wxString_in_helper(obj1);
9135 if (arg2 == NULL) SWIG_fail;
9136 temp2 = True;
9137 }
9138 if (arg1) (arg1)->CanonicalName = *arg2;
9139
9140 Py_INCREF(Py_None); resultobj = Py_None;
9141 {
9142 if (temp2)
9143 delete arg2;
9144 }
9145 return resultobj;
9146 fail:
9147 {
9148 if (temp2)
9149 delete arg2;
9150 }
9151 return NULL;
9152 }
9153
9154
9155 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
9156 PyObject *resultobj;
9157 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9158 wxString *result;
9159 PyObject * obj0 = 0 ;
9160 char *kwnames[] = {
9161 (char *) "self", NULL
9162 };
9163
9164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9167 result = (wxString *)& ((arg1)->CanonicalName);
9168
9169 {
9170 #if wxUSE_UNICODE
9171 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9172 #else
9173 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9174 #endif
9175 }
9176 return resultobj;
9177 fail:
9178 return NULL;
9179 }
9180
9181
9182 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
9183 PyObject *resultobj;
9184 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9185 wxString *arg2 = (wxString *) 0 ;
9186 bool temp2 = False ;
9187 PyObject * obj0 = 0 ;
9188 PyObject * obj1 = 0 ;
9189 char *kwnames[] = {
9190 (char *) "self",(char *) "Description", NULL
9191 };
9192
9193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9196 {
9197 arg2 = wxString_in_helper(obj1);
9198 if (arg2 == NULL) SWIG_fail;
9199 temp2 = True;
9200 }
9201 if (arg1) (arg1)->Description = *arg2;
9202
9203 Py_INCREF(Py_None); resultobj = Py_None;
9204 {
9205 if (temp2)
9206 delete arg2;
9207 }
9208 return resultobj;
9209 fail:
9210 {
9211 if (temp2)
9212 delete arg2;
9213 }
9214 return NULL;
9215 }
9216
9217
9218 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj;
9220 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9221 wxString *result;
9222 PyObject * obj0 = 0 ;
9223 char *kwnames[] = {
9224 (char *) "self", NULL
9225 };
9226
9227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9230 result = (wxString *)& ((arg1)->Description);
9231
9232 {
9233 #if wxUSE_UNICODE
9234 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9235 #else
9236 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9237 #endif
9238 }
9239 return resultobj;
9240 fail:
9241 return NULL;
9242 }
9243
9244
9245 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
9246 PyObject *obj;
9247 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9248 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9249 Py_INCREF(obj);
9250 return Py_BuildValue((char *)"");
9251 }
9252 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9253 PyObject *resultobj;
9254 int arg1 = (int) -1 ;
9255 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9256 wxLocale *result;
9257 PyObject * obj0 = 0 ;
9258 PyObject * obj1 = 0 ;
9259 char *kwnames[] = {
9260 (char *) "language",(char *) "flags", NULL
9261 };
9262
9263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9264 if (obj0) {
9265 arg1 = (int)SWIG_As_int(obj0);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 }
9268 if (obj1) {
9269 arg2 = (int)SWIG_As_int(obj1);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 }
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 result = (wxLocale *)new_wxLocale(arg1,arg2);
9275
9276 wxPyEndAllowThreads(__tstate);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 }
9279 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9280 return resultobj;
9281 fail:
9282 return NULL;
9283 }
9284
9285
9286 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9287 PyObject *resultobj;
9288 wxLocale *arg1 = (wxLocale *) 0 ;
9289 PyObject * obj0 = 0 ;
9290 char *kwnames[] = {
9291 (char *) "self", NULL
9292 };
9293
9294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 delete arg1;
9300
9301 wxPyEndAllowThreads(__tstate);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 Py_INCREF(Py_None); resultobj = Py_None;
9305 return resultobj;
9306 fail:
9307 return NULL;
9308 }
9309
9310
9311 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
9312 PyObject *resultobj;
9313 wxLocale *arg1 = (wxLocale *) 0 ;
9314 wxString *arg2 = 0 ;
9315 wxString const &arg3_defvalue = wxPyEmptyString ;
9316 wxString *arg3 = (wxString *) &arg3_defvalue ;
9317 wxString const &arg4_defvalue = wxPyEmptyString ;
9318 wxString *arg4 = (wxString *) &arg4_defvalue ;
9319 bool arg5 = (bool) True ;
9320 bool arg6 = (bool) False ;
9321 bool result;
9322 bool temp2 = False ;
9323 bool temp3 = False ;
9324 bool temp4 = False ;
9325 PyObject * obj0 = 0 ;
9326 PyObject * obj1 = 0 ;
9327 PyObject * obj2 = 0 ;
9328 PyObject * obj3 = 0 ;
9329 PyObject * obj4 = 0 ;
9330 PyObject * obj5 = 0 ;
9331 char *kwnames[] = {
9332 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9333 };
9334
9335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9338 {
9339 arg2 = wxString_in_helper(obj1);
9340 if (arg2 == NULL) SWIG_fail;
9341 temp2 = True;
9342 }
9343 if (obj2) {
9344 {
9345 arg3 = wxString_in_helper(obj2);
9346 if (arg3 == NULL) SWIG_fail;
9347 temp3 = True;
9348 }
9349 }
9350 if (obj3) {
9351 {
9352 arg4 = wxString_in_helper(obj3);
9353 if (arg4 == NULL) SWIG_fail;
9354 temp4 = True;
9355 }
9356 }
9357 if (obj4) {
9358 arg5 = (bool)SWIG_As_bool(obj4);
9359 if (PyErr_Occurred()) SWIG_fail;
9360 }
9361 if (obj5) {
9362 arg6 = (bool)SWIG_As_bool(obj5);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9368
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 {
9373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9374 }
9375 {
9376 if (temp2)
9377 delete arg2;
9378 }
9379 {
9380 if (temp3)
9381 delete arg3;
9382 }
9383 {
9384 if (temp4)
9385 delete arg4;
9386 }
9387 return resultobj;
9388 fail:
9389 {
9390 if (temp2)
9391 delete arg2;
9392 }
9393 {
9394 if (temp3)
9395 delete arg3;
9396 }
9397 {
9398 if (temp4)
9399 delete arg4;
9400 }
9401 return NULL;
9402 }
9403
9404
9405 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
9406 PyObject *resultobj;
9407 wxLocale *arg1 = (wxLocale *) 0 ;
9408 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9409 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9410 bool result;
9411 PyObject * obj0 = 0 ;
9412 PyObject * obj1 = 0 ;
9413 PyObject * obj2 = 0 ;
9414 char *kwnames[] = {
9415 (char *) "self",(char *) "language",(char *) "flags", NULL
9416 };
9417
9418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9421 if (obj1) {
9422 arg2 = (int)SWIG_As_int(obj1);
9423 if (PyErr_Occurred()) SWIG_fail;
9424 }
9425 if (obj2) {
9426 arg3 = (int)SWIG_As_int(obj2);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 result = (bool)(arg1)->Init(arg2,arg3);
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 {
9437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9438 }
9439 return resultobj;
9440 fail:
9441 return NULL;
9442 }
9443
9444
9445 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj;
9447 int result;
9448 char *kwnames[] = {
9449 NULL
9450 };
9451
9452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 result = (int)wxLocale::GetSystemLanguage();
9456
9457 wxPyEndAllowThreads(__tstate);
9458 if (PyErr_Occurred()) SWIG_fail;
9459 }
9460 resultobj = SWIG_From_int((int)result);
9461 return resultobj;
9462 fail:
9463 return NULL;
9464 }
9465
9466
9467 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9468 PyObject *resultobj;
9469 int result;
9470 char *kwnames[] = {
9471 NULL
9472 };
9473
9474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 result = (int)wxLocale::GetSystemEncoding();
9478
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 resultobj = SWIG_From_int((int)result);
9483 return resultobj;
9484 fail:
9485 return NULL;
9486 }
9487
9488
9489 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj;
9491 wxString result;
9492 char *kwnames[] = {
9493 NULL
9494 };
9495
9496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9497 {
9498 PyThreadState* __tstate = wxPyBeginAllowThreads();
9499 result = wxLocale::GetSystemEncodingName();
9500
9501 wxPyEndAllowThreads(__tstate);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 }
9504 {
9505 #if wxUSE_UNICODE
9506 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9507 #else
9508 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9509 #endif
9510 }
9511 return resultobj;
9512 fail:
9513 return NULL;
9514 }
9515
9516
9517 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9518 PyObject *resultobj;
9519 wxLocale *arg1 = (wxLocale *) 0 ;
9520 bool result;
9521 PyObject * obj0 = 0 ;
9522 char *kwnames[] = {
9523 (char *) "self", NULL
9524 };
9525
9526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9529 {
9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
9531 result = (bool)((wxLocale const *)arg1)->IsOk();
9532
9533 wxPyEndAllowThreads(__tstate);
9534 if (PyErr_Occurred()) SWIG_fail;
9535 }
9536 {
9537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9538 }
9539 return resultobj;
9540 fail:
9541 return NULL;
9542 }
9543
9544
9545 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj;
9547 wxLocale *arg1 = (wxLocale *) 0 ;
9548 wxString result;
9549 PyObject * obj0 = 0 ;
9550 char *kwnames[] = {
9551 (char *) "self", NULL
9552 };
9553
9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9557 {
9558 PyThreadState* __tstate = wxPyBeginAllowThreads();
9559 result = ((wxLocale const *)arg1)->GetLocale();
9560
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 {
9565 #if wxUSE_UNICODE
9566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9567 #else
9568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9569 #endif
9570 }
9571 return resultobj;
9572 fail:
9573 return NULL;
9574 }
9575
9576
9577 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9578 PyObject *resultobj;
9579 wxLocale *arg1 = (wxLocale *) 0 ;
9580 int result;
9581 PyObject * obj0 = 0 ;
9582 char *kwnames[] = {
9583 (char *) "self", NULL
9584 };
9585
9586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 result = (int)((wxLocale const *)arg1)->GetLanguage();
9592
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
9596 resultobj = SWIG_From_int((int)result);
9597 return resultobj;
9598 fail:
9599 return NULL;
9600 }
9601
9602
9603 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj;
9605 wxLocale *arg1 = (wxLocale *) 0 ;
9606 wxString result;
9607 PyObject * obj0 = 0 ;
9608 char *kwnames[] = {
9609 (char *) "self", NULL
9610 };
9611
9612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 result = ((wxLocale const *)arg1)->GetSysName();
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 {
9623 #if wxUSE_UNICODE
9624 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9625 #else
9626 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9627 #endif
9628 }
9629 return resultobj;
9630 fail:
9631 return NULL;
9632 }
9633
9634
9635 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
9636 PyObject *resultobj;
9637 wxLocale *arg1 = (wxLocale *) 0 ;
9638 wxString result;
9639 PyObject * obj0 = 0 ;
9640 char *kwnames[] = {
9641 (char *) "self", NULL
9642 };
9643
9644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 result = ((wxLocale const *)arg1)->GetCanonicalName();
9650
9651 wxPyEndAllowThreads(__tstate);
9652 if (PyErr_Occurred()) SWIG_fail;
9653 }
9654 {
9655 #if wxUSE_UNICODE
9656 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9657 #else
9658 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9659 #endif
9660 }
9661 return resultobj;
9662 fail:
9663 return NULL;
9664 }
9665
9666
9667 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj;
9669 wxString *arg1 = 0 ;
9670 bool temp1 = False ;
9671 PyObject * obj0 = 0 ;
9672 char *kwnames[] = {
9673 (char *) "prefix", NULL
9674 };
9675
9676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9677 {
9678 arg1 = wxString_in_helper(obj0);
9679 if (arg1 == NULL) SWIG_fail;
9680 temp1 = True;
9681 }
9682 {
9683 PyThreadState* __tstate = wxPyBeginAllowThreads();
9684 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9685
9686 wxPyEndAllowThreads(__tstate);
9687 if (PyErr_Occurred()) SWIG_fail;
9688 }
9689 Py_INCREF(Py_None); resultobj = Py_None;
9690 {
9691 if (temp1)
9692 delete arg1;
9693 }
9694 return resultobj;
9695 fail:
9696 {
9697 if (temp1)
9698 delete arg1;
9699 }
9700 return NULL;
9701 }
9702
9703
9704 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
9705 PyObject *resultobj;
9706 wxLocale *arg1 = (wxLocale *) 0 ;
9707 wxString *arg2 = 0 ;
9708 bool result;
9709 bool temp2 = False ;
9710 PyObject * obj0 = 0 ;
9711 PyObject * obj1 = 0 ;
9712 char *kwnames[] = {
9713 (char *) "self",(char *) "szDomain", NULL
9714 };
9715
9716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9719 {
9720 arg2 = wxString_in_helper(obj1);
9721 if (arg2 == NULL) SWIG_fail;
9722 temp2 = True;
9723 }
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
9726 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9727
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 {
9732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9733 }
9734 {
9735 if (temp2)
9736 delete arg2;
9737 }
9738 return resultobj;
9739 fail:
9740 {
9741 if (temp2)
9742 delete arg2;
9743 }
9744 return NULL;
9745 }
9746
9747
9748 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
9749 PyObject *resultobj;
9750 wxLocale *arg1 = (wxLocale *) 0 ;
9751 wxString *arg2 = 0 ;
9752 bool result;
9753 bool temp2 = False ;
9754 PyObject * obj0 = 0 ;
9755 PyObject * obj1 = 0 ;
9756 char *kwnames[] = {
9757 (char *) "self",(char *) "szDomain", NULL
9758 };
9759
9760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9763 {
9764 arg2 = wxString_in_helper(obj1);
9765 if (arg2 == NULL) SWIG_fail;
9766 temp2 = True;
9767 }
9768 {
9769 PyThreadState* __tstate = wxPyBeginAllowThreads();
9770 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9771
9772 wxPyEndAllowThreads(__tstate);
9773 if (PyErr_Occurred()) SWIG_fail;
9774 }
9775 {
9776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9777 }
9778 {
9779 if (temp2)
9780 delete arg2;
9781 }
9782 return resultobj;
9783 fail:
9784 {
9785 if (temp2)
9786 delete arg2;
9787 }
9788 return NULL;
9789 }
9790
9791
9792 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9793 PyObject *resultobj;
9794 int arg1 ;
9795 wxLanguageInfo *result;
9796 PyObject * obj0 = 0 ;
9797 char *kwnames[] = {
9798 (char *) "lang", NULL
9799 };
9800
9801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9802 arg1 = (int)SWIG_As_int(obj0);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9807
9808 wxPyEndAllowThreads(__tstate);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9812 return resultobj;
9813 fail:
9814 return NULL;
9815 }
9816
9817
9818 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
9819 PyObject *resultobj;
9820 int arg1 ;
9821 wxString result;
9822 PyObject * obj0 = 0 ;
9823 char *kwnames[] = {
9824 (char *) "lang", NULL
9825 };
9826
9827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9828 arg1 = (int)SWIG_As_int(obj0);
9829 if (PyErr_Occurred()) SWIG_fail;
9830 {
9831 PyThreadState* __tstate = wxPyBeginAllowThreads();
9832 result = wxLocale::GetLanguageName(arg1);
9833
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
9837 {
9838 #if wxUSE_UNICODE
9839 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9840 #else
9841 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9842 #endif
9843 }
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9851 PyObject *resultobj;
9852 wxString *arg1 = 0 ;
9853 wxLanguageInfo *result;
9854 bool temp1 = False ;
9855 PyObject * obj0 = 0 ;
9856 char *kwnames[] = {
9857 (char *) "locale", NULL
9858 };
9859
9860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9861 {
9862 arg1 = wxString_in_helper(obj0);
9863 if (arg1 == NULL) SWIG_fail;
9864 temp1 = True;
9865 }
9866 {
9867 PyThreadState* __tstate = wxPyBeginAllowThreads();
9868 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9869
9870 wxPyEndAllowThreads(__tstate);
9871 if (PyErr_Occurred()) SWIG_fail;
9872 }
9873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9874 {
9875 if (temp1)
9876 delete arg1;
9877 }
9878 return resultobj;
9879 fail:
9880 {
9881 if (temp1)
9882 delete arg1;
9883 }
9884 return NULL;
9885 }
9886
9887
9888 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9889 PyObject *resultobj;
9890 wxLanguageInfo *arg1 = 0 ;
9891 PyObject * obj0 = 0 ;
9892 char *kwnames[] = {
9893 (char *) "info", NULL
9894 };
9895
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9898 SWIG_POINTER_EXCEPTION | 0)) == -1)
9899 SWIG_fail;
9900 if (arg1 == NULL) {
9901 PyErr_SetString(PyExc_TypeError,"null reference");
9902 SWIG_fail;
9903 }
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 Py_INCREF(Py_None); resultobj = Py_None;
9912 return resultobj;
9913 fail:
9914 return NULL;
9915 }
9916
9917
9918 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxLocale *arg1 = (wxLocale *) 0 ;
9921 wxString *arg2 = 0 ;
9922 wxString const &arg3_defvalue = wxPyEmptyString ;
9923 wxString *arg3 = (wxString *) &arg3_defvalue ;
9924 wxString result;
9925 bool temp2 = False ;
9926 bool temp3 = False ;
9927 PyObject * obj0 = 0 ;
9928 PyObject * obj1 = 0 ;
9929 PyObject * obj2 = 0 ;
9930 char *kwnames[] = {
9931 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9932 };
9933
9934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9937 {
9938 arg2 = wxString_in_helper(obj1);
9939 if (arg2 == NULL) SWIG_fail;
9940 temp2 = True;
9941 }
9942 if (obj2) {
9943 {
9944 arg3 = wxString_in_helper(obj2);
9945 if (arg3 == NULL) SWIG_fail;
9946 temp3 = True;
9947 }
9948 }
9949 {
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9952
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 {
9957 #if wxUSE_UNICODE
9958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9959 #else
9960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9961 #endif
9962 }
9963 {
9964 if (temp2)
9965 delete arg2;
9966 }
9967 {
9968 if (temp3)
9969 delete arg3;
9970 }
9971 return resultobj;
9972 fail:
9973 {
9974 if (temp2)
9975 delete arg2;
9976 }
9977 {
9978 if (temp3)
9979 delete arg3;
9980 }
9981 return NULL;
9982 }
9983
9984
9985 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
9986 PyObject *resultobj;
9987 wxLocale *arg1 = (wxLocale *) 0 ;
9988 wxString *result;
9989 PyObject * obj0 = 0 ;
9990 char *kwnames[] = {
9991 (char *) "self", NULL
9992 };
9993
9994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9997 {
9998 PyThreadState* __tstate = wxPyBeginAllowThreads();
9999 {
10000 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10001 result = (wxString *) &_result_ref;
10002 }
10003
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 {
10008 #if wxUSE_UNICODE
10009 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10010 #else
10011 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10012 #endif
10013 }
10014 return resultobj;
10015 fail:
10016 return NULL;
10017 }
10018
10019
10020 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
10021 PyObject *obj;
10022 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10023 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10024 Py_INCREF(obj);
10025 return Py_BuildValue((char *)"");
10026 }
10027 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
10028 PyObject *resultobj;
10029 wxLocale *result;
10030 char *kwnames[] = {
10031 NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 result = (wxLocale *)wxGetLocale();
10038
10039 wxPyEndAllowThreads(__tstate);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 }
10042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10043 return resultobj;
10044 fail:
10045 return NULL;
10046 }
10047
10048
10049 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
10050 PyObject *resultobj;
10051 wxString *arg1 = 0 ;
10052 wxString result;
10053 bool temp1 = False ;
10054 PyObject * obj0 = 0 ;
10055
10056 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10057 {
10058 arg1 = wxString_in_helper(obj0);
10059 if (arg1 == NULL) SWIG_fail;
10060 temp1 = True;
10061 }
10062 {
10063 PyThreadState* __tstate = wxPyBeginAllowThreads();
10064 result = wxGetTranslation((wxString const &)*arg1);
10065
10066 wxPyEndAllowThreads(__tstate);
10067 if (PyErr_Occurred()) SWIG_fail;
10068 }
10069 {
10070 #if wxUSE_UNICODE
10071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10072 #else
10073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10074 #endif
10075 }
10076 {
10077 if (temp1)
10078 delete arg1;
10079 }
10080 return resultobj;
10081 fail:
10082 {
10083 if (temp1)
10084 delete arg1;
10085 }
10086 return NULL;
10087 }
10088
10089
10090 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
10091 PyObject *resultobj;
10092 wxString *arg1 = 0 ;
10093 wxString *arg2 = 0 ;
10094 size_t arg3 ;
10095 wxString result;
10096 bool temp1 = False ;
10097 bool temp2 = False ;
10098 PyObject * obj0 = 0 ;
10099 PyObject * obj1 = 0 ;
10100 PyObject * obj2 = 0 ;
10101
10102 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10103 {
10104 arg1 = wxString_in_helper(obj0);
10105 if (arg1 == NULL) SWIG_fail;
10106 temp1 = True;
10107 }
10108 {
10109 arg2 = wxString_in_helper(obj1);
10110 if (arg2 == NULL) SWIG_fail;
10111 temp2 = True;
10112 }
10113 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 {
10116 PyThreadState* __tstate = wxPyBeginAllowThreads();
10117 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10118
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 }
10122 {
10123 #if wxUSE_UNICODE
10124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10125 #else
10126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10127 #endif
10128 }
10129 {
10130 if (temp1)
10131 delete arg1;
10132 }
10133 {
10134 if (temp2)
10135 delete arg2;
10136 }
10137 return resultobj;
10138 fail:
10139 {
10140 if (temp1)
10141 delete arg1;
10142 }
10143 {
10144 if (temp2)
10145 delete arg2;
10146 }
10147 return NULL;
10148 }
10149
10150
10151 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10152 int argc;
10153 PyObject *argv[4];
10154 int ii;
10155
10156 argc = PyObject_Length(args);
10157 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10158 argv[ii] = PyTuple_GetItem(args,ii);
10159 }
10160 if (argc == 1) {
10161 int _v;
10162 {
10163 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10164 }
10165 if (_v) {
10166 return _wrap_GetTranslation__SWIG_0(self,args);
10167 }
10168 }
10169 if (argc == 3) {
10170 int _v;
10171 {
10172 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10173 }
10174 if (_v) {
10175 {
10176 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10177 }
10178 if (_v) {
10179 _v = SWIG_Check_unsigned_SS_long(argv[2]);
10180 if (_v) {
10181 return _wrap_GetTranslation__SWIG_1(self,args);
10182 }
10183 }
10184 }
10185 }
10186
10187 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10188 return NULL;
10189 }
10190
10191
10192 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10193 PyObject *resultobj;
10194 wxEncodingConverter *result;
10195 char *kwnames[] = {
10196 NULL
10197 };
10198
10199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10200 {
10201 PyThreadState* __tstate = wxPyBeginAllowThreads();
10202 result = (wxEncodingConverter *)new wxEncodingConverter();
10203
10204 wxPyEndAllowThreads(__tstate);
10205 if (PyErr_Occurred()) SWIG_fail;
10206 }
10207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10208 return resultobj;
10209 fail:
10210 return NULL;
10211 }
10212
10213
10214 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10215 PyObject *resultobj;
10216 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10217 PyObject * obj0 = 0 ;
10218 char *kwnames[] = {
10219 (char *) "self", NULL
10220 };
10221
10222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 delete arg1;
10228
10229 wxPyEndAllowThreads(__tstate);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 Py_INCREF(Py_None); resultobj = Py_None;
10233 return resultobj;
10234 fail:
10235 return NULL;
10236 }
10237
10238
10239 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
10240 PyObject *resultobj;
10241 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10242 int arg2 ;
10243 int arg3 ;
10244 int arg4 = (int) wxCONVERT_STRICT ;
10245 bool result;
10246 PyObject * obj0 = 0 ;
10247 PyObject * obj1 = 0 ;
10248 PyObject * obj2 = 0 ;
10249 PyObject * obj3 = 0 ;
10250 char *kwnames[] = {
10251 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10252 };
10253
10254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10257 arg2 = (int)SWIG_As_int(obj1);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 arg3 = (int)SWIG_As_int(obj2);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 if (obj3) {
10262 arg4 = (int)SWIG_As_int(obj3);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10268
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 {
10273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10274 }
10275 return resultobj;
10276 fail:
10277 return NULL;
10278 }
10279
10280
10281 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj;
10283 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10284 wxString *arg2 = 0 ;
10285 wxString result;
10286 bool temp2 = False ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 char *kwnames[] = {
10290 (char *) "self",(char *) "input", NULL
10291 };
10292
10293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10296 {
10297 arg2 = wxString_in_helper(obj1);
10298 if (arg2 == NULL) SWIG_fail;
10299 temp2 = True;
10300 }
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 result = (arg1)->Convert((wxString const &)*arg2);
10304
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 {
10309 #if wxUSE_UNICODE
10310 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10311 #else
10312 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10313 #endif
10314 }
10315 {
10316 if (temp2)
10317 delete arg2;
10318 }
10319 return resultobj;
10320 fail:
10321 {
10322 if (temp2)
10323 delete arg2;
10324 }
10325 return NULL;
10326 }
10327
10328
10329 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj;
10331 int arg1 ;
10332 int arg2 = (int) wxPLATFORM_CURRENT ;
10333 wxFontEncodingArray result;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 char *kwnames[] = {
10337 (char *) "enc",(char *) "platform", NULL
10338 };
10339
10340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10341 arg1 = (int)SWIG_As_int(obj0);
10342 if (PyErr_Occurred()) SWIG_fail;
10343 if (obj1) {
10344 arg2 = (int)SWIG_As_int(obj1);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 }
10347 {
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10350
10351 wxPyEndAllowThreads(__tstate);
10352 if (PyErr_Occurred()) SWIG_fail;
10353 }
10354 {
10355 resultobj = PyList_New(0);
10356 for (size_t i=0; i < (&result)->GetCount(); i++) {
10357 PyObject* number = PyInt_FromLong((&result)->Item(i));
10358 PyList_Append(resultobj, number);
10359 Py_DECREF(number);
10360 }
10361 }
10362 return resultobj;
10363 fail:
10364 return NULL;
10365 }
10366
10367
10368 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10369 PyObject *resultobj;
10370 int arg1 ;
10371 wxFontEncodingArray result;
10372 PyObject * obj0 = 0 ;
10373 char *kwnames[] = {
10374 (char *) "enc", NULL
10375 };
10376
10377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10378 arg1 = (int)SWIG_As_int(obj0);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10383
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 {
10388 resultobj = PyList_New(0);
10389 for (size_t i=0; i < (&result)->GetCount(); i++) {
10390 PyObject* number = PyInt_FromLong((&result)->Item(i));
10391 PyList_Append(resultobj, number);
10392 Py_DECREF(number);
10393 }
10394 }
10395 return resultobj;
10396 fail:
10397 return NULL;
10398 }
10399
10400
10401 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
10402 PyObject *resultobj;
10403 int arg1 ;
10404 int arg2 ;
10405 bool result;
10406 PyObject * obj0 = 0 ;
10407 PyObject * obj1 = 0 ;
10408 char *kwnames[] = {
10409 (char *) "encIn",(char *) "encOut", NULL
10410 };
10411
10412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10413 arg1 = (int)SWIG_As_int(obj0);
10414 if (PyErr_Occurred()) SWIG_fail;
10415 arg2 = (int)SWIG_As_int(obj1);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 {
10418 PyThreadState* __tstate = wxPyBeginAllowThreads();
10419 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10420
10421 wxPyEndAllowThreads(__tstate);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 }
10424 {
10425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10426 }
10427 return resultobj;
10428 fail:
10429 return NULL;
10430 }
10431
10432
10433 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
10434 PyObject *obj;
10435 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10436 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10437 Py_INCREF(obj);
10438 return Py_BuildValue((char *)"");
10439 }
10440 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
10441 PyObject *resultobj;
10442 wxDC *arg1 = (wxDC *) 0 ;
10443 PyObject * obj0 = 0 ;
10444 char *kwnames[] = {
10445 (char *) "self", NULL
10446 };
10447
10448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10451 {
10452 PyThreadState* __tstate = wxPyBeginAllowThreads();
10453 delete arg1;
10454
10455 wxPyEndAllowThreads(__tstate);
10456 if (PyErr_Occurred()) SWIG_fail;
10457 }
10458 Py_INCREF(Py_None); resultobj = Py_None;
10459 return resultobj;
10460 fail:
10461 return NULL;
10462 }
10463
10464
10465 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10466 PyObject *resultobj;
10467 wxDC *arg1 = (wxDC *) 0 ;
10468 PyObject * obj0 = 0 ;
10469 char *kwnames[] = {
10470 (char *) "self", NULL
10471 };
10472
10473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10476 {
10477 PyThreadState* __tstate = wxPyBeginAllowThreads();
10478 (arg1)->BeginDrawing();
10479
10480 wxPyEndAllowThreads(__tstate);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 }
10483 Py_INCREF(Py_None); resultobj = Py_None;
10484 return resultobj;
10485 fail:
10486 return NULL;
10487 }
10488
10489
10490 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10491 PyObject *resultobj;
10492 wxDC *arg1 = (wxDC *) 0 ;
10493 PyObject * obj0 = 0 ;
10494 char *kwnames[] = {
10495 (char *) "self", NULL
10496 };
10497
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 (arg1)->EndDrawing();
10504
10505 wxPyEndAllowThreads(__tstate);
10506 if (PyErr_Occurred()) SWIG_fail;
10507 }
10508 Py_INCREF(Py_None); resultobj = Py_None;
10509 return resultobj;
10510 fail:
10511 return NULL;
10512 }
10513
10514
10515 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
10516 PyObject *resultobj;
10517 wxDC *arg1 = (wxDC *) 0 ;
10518 int arg2 ;
10519 int arg3 ;
10520 wxColour *arg4 = 0 ;
10521 int arg5 = (int) wxFLOOD_SURFACE ;
10522 bool result;
10523 wxColour temp4 ;
10524 PyObject * obj0 = 0 ;
10525 PyObject * obj1 = 0 ;
10526 PyObject * obj2 = 0 ;
10527 PyObject * obj3 = 0 ;
10528 PyObject * obj4 = 0 ;
10529 char *kwnames[] = {
10530 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10531 };
10532
10533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10536 arg2 = (int)SWIG_As_int(obj1);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 arg3 = (int)SWIG_As_int(obj2);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 {
10541 arg4 = &temp4;
10542 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10543 }
10544 if (obj4) {
10545 arg5 = (int)SWIG_As_int(obj4);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 }
10548 {
10549 PyThreadState* __tstate = wxPyBeginAllowThreads();
10550 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10551
10552 wxPyEndAllowThreads(__tstate);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 }
10555 {
10556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10557 }
10558 return resultobj;
10559 fail:
10560 return NULL;
10561 }
10562
10563
10564 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10565 PyObject *resultobj;
10566 wxDC *arg1 = (wxDC *) 0 ;
10567 wxPoint *arg2 = 0 ;
10568 wxColour *arg3 = 0 ;
10569 int arg4 = (int) wxFLOOD_SURFACE ;
10570 bool result;
10571 wxPoint temp2 ;
10572 wxColour temp3 ;
10573 PyObject * obj0 = 0 ;
10574 PyObject * obj1 = 0 ;
10575 PyObject * obj2 = 0 ;
10576 PyObject * obj3 = 0 ;
10577 char *kwnames[] = {
10578 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10579 };
10580
10581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10584 {
10585 arg2 = &temp2;
10586 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10587 }
10588 {
10589 arg3 = &temp3;
10590 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10591 }
10592 if (obj3) {
10593 arg4 = (int)SWIG_As_int(obj3);
10594 if (PyErr_Occurred()) SWIG_fail;
10595 }
10596 {
10597 PyThreadState* __tstate = wxPyBeginAllowThreads();
10598 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10599
10600 wxPyEndAllowThreads(__tstate);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 {
10604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10605 }
10606 return resultobj;
10607 fail:
10608 return NULL;
10609 }
10610
10611
10612 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
10613 PyObject *resultobj;
10614 wxDC *arg1 = (wxDC *) 0 ;
10615 int arg2 ;
10616 int arg3 ;
10617 wxColour result;
10618 PyObject * obj0 = 0 ;
10619 PyObject * obj1 = 0 ;
10620 PyObject * obj2 = 0 ;
10621 char *kwnames[] = {
10622 (char *) "self",(char *) "x",(char *) "y", NULL
10623 };
10624
10625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10628 arg2 = (int)SWIG_As_int(obj1);
10629 if (PyErr_Occurred()) SWIG_fail;
10630 arg3 = (int)SWIG_As_int(obj2);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 {
10633 PyThreadState* __tstate = wxPyBeginAllowThreads();
10634 result = wxDC_GetPixel(arg1,arg2,arg3);
10635
10636 wxPyEndAllowThreads(__tstate);
10637 if (PyErr_Occurred()) SWIG_fail;
10638 }
10639 {
10640 wxColour * resultptr;
10641 resultptr = new wxColour((wxColour &) result);
10642 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10643 }
10644 return resultobj;
10645 fail:
10646 return NULL;
10647 }
10648
10649
10650 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10651 PyObject *resultobj;
10652 wxDC *arg1 = (wxDC *) 0 ;
10653 wxPoint *arg2 = 0 ;
10654 wxColour result;
10655 wxPoint temp2 ;
10656 PyObject * obj0 = 0 ;
10657 PyObject * obj1 = 0 ;
10658 char *kwnames[] = {
10659 (char *) "self",(char *) "pt", NULL
10660 };
10661
10662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10665 {
10666 arg2 = &temp2;
10667 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10668 }
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10672
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 {
10677 wxColour * resultptr;
10678 resultptr = new wxColour((wxColour &) result);
10679 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10680 }
10681 return resultobj;
10682 fail:
10683 return NULL;
10684 }
10685
10686
10687 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
10688 PyObject *resultobj;
10689 wxDC *arg1 = (wxDC *) 0 ;
10690 int arg2 ;
10691 int arg3 ;
10692 int arg4 ;
10693 int arg5 ;
10694 PyObject * obj0 = 0 ;
10695 PyObject * obj1 = 0 ;
10696 PyObject * obj2 = 0 ;
10697 PyObject * obj3 = 0 ;
10698 PyObject * obj4 = 0 ;
10699 char *kwnames[] = {
10700 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10701 };
10702
10703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10706 arg2 = (int)SWIG_As_int(obj1);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 arg3 = (int)SWIG_As_int(obj2);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 arg4 = (int)SWIG_As_int(obj3);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 arg5 = (int)SWIG_As_int(obj4);
10713 if (PyErr_Occurred()) SWIG_fail;
10714 {
10715 PyThreadState* __tstate = wxPyBeginAllowThreads();
10716 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10717
10718 wxPyEndAllowThreads(__tstate);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 Py_INCREF(Py_None); resultobj = Py_None;
10722 return resultobj;
10723 fail:
10724 return NULL;
10725 }
10726
10727
10728 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
10729 PyObject *resultobj;
10730 wxDC *arg1 = (wxDC *) 0 ;
10731 wxPoint *arg2 = 0 ;
10732 wxPoint *arg3 = 0 ;
10733 wxPoint temp2 ;
10734 wxPoint temp3 ;
10735 PyObject * obj0 = 0 ;
10736 PyObject * obj1 = 0 ;
10737 PyObject * obj2 = 0 ;
10738 char *kwnames[] = {
10739 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10745 {
10746 arg2 = &temp2;
10747 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10748 }
10749 {
10750 arg3 = &temp3;
10751 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10752 }
10753 {
10754 PyThreadState* __tstate = wxPyBeginAllowThreads();
10755 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10756
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 Py_INCREF(Py_None); resultobj = Py_None;
10761 return resultobj;
10762 fail:
10763 return NULL;
10764 }
10765
10766
10767 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
10768 PyObject *resultobj;
10769 wxDC *arg1 = (wxDC *) 0 ;
10770 int arg2 ;
10771 int arg3 ;
10772 PyObject * obj0 = 0 ;
10773 PyObject * obj1 = 0 ;
10774 PyObject * obj2 = 0 ;
10775 char *kwnames[] = {
10776 (char *) "self",(char *) "x",(char *) "y", NULL
10777 };
10778
10779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10782 arg2 = (int)SWIG_As_int(obj1);
10783 if (PyErr_Occurred()) SWIG_fail;
10784 arg3 = (int)SWIG_As_int(obj2);
10785 if (PyErr_Occurred()) SWIG_fail;
10786 {
10787 PyThreadState* __tstate = wxPyBeginAllowThreads();
10788 (arg1)->CrossHair(arg2,arg3);
10789
10790 wxPyEndAllowThreads(__tstate);
10791 if (PyErr_Occurred()) SWIG_fail;
10792 }
10793 Py_INCREF(Py_None); resultobj = Py_None;
10794 return resultobj;
10795 fail:
10796 return NULL;
10797 }
10798
10799
10800 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10801 PyObject *resultobj;
10802 wxDC *arg1 = (wxDC *) 0 ;
10803 wxPoint *arg2 = 0 ;
10804 wxPoint temp2 ;
10805 PyObject * obj0 = 0 ;
10806 PyObject * obj1 = 0 ;
10807 char *kwnames[] = {
10808 (char *) "self",(char *) "pt", NULL
10809 };
10810
10811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10814 {
10815 arg2 = &temp2;
10816 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10817 }
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 (arg1)->CrossHair((wxPoint const &)*arg2);
10821
10822 wxPyEndAllowThreads(__tstate);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 }
10825 Py_INCREF(Py_None); resultobj = Py_None;
10826 return resultobj;
10827 fail:
10828 return NULL;
10829 }
10830
10831
10832 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
10833 PyObject *resultobj;
10834 wxDC *arg1 = (wxDC *) 0 ;
10835 int arg2 ;
10836 int arg3 ;
10837 int arg4 ;
10838 int arg5 ;
10839 int arg6 ;
10840 int arg7 ;
10841 PyObject * obj0 = 0 ;
10842 PyObject * obj1 = 0 ;
10843 PyObject * obj2 = 0 ;
10844 PyObject * obj3 = 0 ;
10845 PyObject * obj4 = 0 ;
10846 PyObject * obj5 = 0 ;
10847 PyObject * obj6 = 0 ;
10848 char *kwnames[] = {
10849 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10850 };
10851
10852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10855 arg2 = (int)SWIG_As_int(obj1);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 arg3 = (int)SWIG_As_int(obj2);
10858 if (PyErr_Occurred()) SWIG_fail;
10859 arg4 = (int)SWIG_As_int(obj3);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 arg5 = (int)SWIG_As_int(obj4);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 arg6 = (int)SWIG_As_int(obj5);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 arg7 = (int)SWIG_As_int(obj6);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10870
10871 wxPyEndAllowThreads(__tstate);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 }
10874 Py_INCREF(Py_None); resultobj = Py_None;
10875 return resultobj;
10876 fail:
10877 return NULL;
10878 }
10879
10880
10881 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj;
10883 wxDC *arg1 = (wxDC *) 0 ;
10884 wxPoint *arg2 = 0 ;
10885 wxPoint *arg3 = 0 ;
10886 wxPoint *arg4 = 0 ;
10887 wxPoint temp2 ;
10888 wxPoint temp3 ;
10889 wxPoint temp4 ;
10890 PyObject * obj0 = 0 ;
10891 PyObject * obj1 = 0 ;
10892 PyObject * obj2 = 0 ;
10893 PyObject * obj3 = 0 ;
10894 char *kwnames[] = {
10895 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
10896 };
10897
10898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10901 {
10902 arg2 = &temp2;
10903 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10904 }
10905 {
10906 arg3 = &temp3;
10907 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10908 }
10909 {
10910 arg4 = &temp4;
10911 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10912 }
10913 {
10914 PyThreadState* __tstate = wxPyBeginAllowThreads();
10915 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10916
10917 wxPyEndAllowThreads(__tstate);
10918 if (PyErr_Occurred()) SWIG_fail;
10919 }
10920 Py_INCREF(Py_None); resultobj = Py_None;
10921 return resultobj;
10922 fail:
10923 return NULL;
10924 }
10925
10926
10927 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
10928 PyObject *resultobj;
10929 wxDC *arg1 = (wxDC *) 0 ;
10930 int arg2 ;
10931 int arg3 ;
10932 int arg4 ;
10933 int arg5 ;
10934 PyObject * obj0 = 0 ;
10935 PyObject * obj1 = 0 ;
10936 PyObject * obj2 = 0 ;
10937 PyObject * obj3 = 0 ;
10938 PyObject * obj4 = 0 ;
10939 char *kwnames[] = {
10940 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10941 };
10942
10943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10946 arg2 = (int)SWIG_As_int(obj1);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 arg3 = (int)SWIG_As_int(obj2);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 arg4 = (int)SWIG_As_int(obj3);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 arg5 = (int)SWIG_As_int(obj4);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 {
10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
10956 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10957
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 Py_INCREF(Py_None); resultobj = Py_None;
10962 return resultobj;
10963 fail:
10964 return NULL;
10965 }
10966
10967
10968 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
10969 PyObject *resultobj;
10970 wxDC *arg1 = (wxDC *) 0 ;
10971 wxRect *arg2 = 0 ;
10972 wxRect temp2 ;
10973 PyObject * obj0 = 0 ;
10974 PyObject * obj1 = 0 ;
10975 char *kwnames[] = {
10976 (char *) "self",(char *) "rect", NULL
10977 };
10978
10979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10982 {
10983 arg2 = &temp2;
10984 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10985 }
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10989
10990 wxPyEndAllowThreads(__tstate);
10991 if (PyErr_Occurred()) SWIG_fail;
10992 }
10993 Py_INCREF(Py_None); resultobj = Py_None;
10994 return resultobj;
10995 fail:
10996 return NULL;
10997 }
10998
10999
11000 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
11001 PyObject *resultobj;
11002 wxDC *arg1 = (wxDC *) 0 ;
11003 int arg2 ;
11004 int arg3 ;
11005 int arg4 ;
11006 int arg5 ;
11007 double arg6 ;
11008 double arg7 ;
11009 PyObject * obj0 = 0 ;
11010 PyObject * obj1 = 0 ;
11011 PyObject * obj2 = 0 ;
11012 PyObject * obj3 = 0 ;
11013 PyObject * obj4 = 0 ;
11014 PyObject * obj5 = 0 ;
11015 PyObject * obj6 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11023 arg2 = (int)SWIG_As_int(obj1);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 arg3 = (int)SWIG_As_int(obj2);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 arg4 = (int)SWIG_As_int(obj3);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 arg5 = (int)SWIG_As_int(obj4);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 arg6 = (double)SWIG_As_double(obj5);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 arg7 = (double)SWIG_As_double(obj6);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11038
11039 wxPyEndAllowThreads(__tstate);
11040 if (PyErr_Occurred()) SWIG_fail;
11041 }
11042 Py_INCREF(Py_None); resultobj = Py_None;
11043 return resultobj;
11044 fail:
11045 return NULL;
11046 }
11047
11048
11049 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11050 PyObject *resultobj;
11051 wxDC *arg1 = (wxDC *) 0 ;
11052 wxPoint *arg2 = 0 ;
11053 wxSize *arg3 = 0 ;
11054 double arg4 ;
11055 double arg5 ;
11056 wxPoint temp2 ;
11057 wxSize temp3 ;
11058 PyObject * obj0 = 0 ;
11059 PyObject * obj1 = 0 ;
11060 PyObject * obj2 = 0 ;
11061 PyObject * obj3 = 0 ;
11062 PyObject * obj4 = 0 ;
11063 char *kwnames[] = {
11064 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
11065 };
11066
11067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11070 {
11071 arg2 = &temp2;
11072 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11073 }
11074 {
11075 arg3 = &temp3;
11076 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11077 }
11078 arg4 = (double)SWIG_As_double(obj3);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 arg5 = (double)SWIG_As_double(obj4);
11081 if (PyErr_Occurred()) SWIG_fail;
11082 {
11083 PyThreadState* __tstate = wxPyBeginAllowThreads();
11084 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11085
11086 wxPyEndAllowThreads(__tstate);
11087 if (PyErr_Occurred()) SWIG_fail;
11088 }
11089 Py_INCREF(Py_None); resultobj = Py_None;
11090 return resultobj;
11091 fail:
11092 return NULL;
11093 }
11094
11095
11096 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11097 PyObject *resultobj;
11098 wxDC *arg1 = (wxDC *) 0 ;
11099 int arg2 ;
11100 int arg3 ;
11101 PyObject * obj0 = 0 ;
11102 PyObject * obj1 = 0 ;
11103 PyObject * obj2 = 0 ;
11104 char *kwnames[] = {
11105 (char *) "self",(char *) "x",(char *) "y", NULL
11106 };
11107
11108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11111 arg2 = (int)SWIG_As_int(obj1);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 arg3 = (int)SWIG_As_int(obj2);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 (arg1)->DrawPoint(arg2,arg3);
11118
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 Py_INCREF(Py_None); resultobj = Py_None;
11123 return resultobj;
11124 fail:
11125 return NULL;
11126 }
11127
11128
11129 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj;
11131 wxDC *arg1 = (wxDC *) 0 ;
11132 wxPoint *arg2 = 0 ;
11133 wxPoint temp2 ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 char *kwnames[] = {
11137 (char *) "self",(char *) "pt", NULL
11138 };
11139
11140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11143 {
11144 arg2 = &temp2;
11145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11146 }
11147 {
11148 PyThreadState* __tstate = wxPyBeginAllowThreads();
11149 (arg1)->DrawPoint((wxPoint const &)*arg2);
11150
11151 wxPyEndAllowThreads(__tstate);
11152 if (PyErr_Occurred()) SWIG_fail;
11153 }
11154 Py_INCREF(Py_None); resultobj = Py_None;
11155 return resultobj;
11156 fail:
11157 return NULL;
11158 }
11159
11160
11161 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11162 PyObject *resultobj;
11163 wxDC *arg1 = (wxDC *) 0 ;
11164 int arg2 ;
11165 int arg3 ;
11166 int arg4 ;
11167 int arg5 ;
11168 PyObject * obj0 = 0 ;
11169 PyObject * obj1 = 0 ;
11170 PyObject * obj2 = 0 ;
11171 PyObject * obj3 = 0 ;
11172 PyObject * obj4 = 0 ;
11173 char *kwnames[] = {
11174 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11175 };
11176
11177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11180 arg2 = (int)SWIG_As_int(obj1);
11181 if (PyErr_Occurred()) SWIG_fail;
11182 arg3 = (int)SWIG_As_int(obj2);
11183 if (PyErr_Occurred()) SWIG_fail;
11184 arg4 = (int)SWIG_As_int(obj3);
11185 if (PyErr_Occurred()) SWIG_fail;
11186 arg5 = (int)SWIG_As_int(obj4);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11191
11192 wxPyEndAllowThreads(__tstate);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 }
11195 Py_INCREF(Py_None); resultobj = Py_None;
11196 return resultobj;
11197 fail:
11198 return NULL;
11199 }
11200
11201
11202 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11203 PyObject *resultobj;
11204 wxDC *arg1 = (wxDC *) 0 ;
11205 wxRect *arg2 = 0 ;
11206 wxRect temp2 ;
11207 PyObject * obj0 = 0 ;
11208 PyObject * obj1 = 0 ;
11209 char *kwnames[] = {
11210 (char *) "self",(char *) "rect", NULL
11211 };
11212
11213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11216 {
11217 arg2 = &temp2;
11218 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11219 }
11220 {
11221 PyThreadState* __tstate = wxPyBeginAllowThreads();
11222 (arg1)->DrawRectangle((wxRect const &)*arg2);
11223
11224 wxPyEndAllowThreads(__tstate);
11225 if (PyErr_Occurred()) SWIG_fail;
11226 }
11227 Py_INCREF(Py_None); resultobj = Py_None;
11228 return resultobj;
11229 fail:
11230 return NULL;
11231 }
11232
11233
11234 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11235 PyObject *resultobj;
11236 wxDC *arg1 = (wxDC *) 0 ;
11237 wxPoint *arg2 = 0 ;
11238 wxSize *arg3 = 0 ;
11239 wxPoint temp2 ;
11240 wxSize temp3 ;
11241 PyObject * obj0 = 0 ;
11242 PyObject * obj1 = 0 ;
11243 PyObject * obj2 = 0 ;
11244 char *kwnames[] = {
11245 (char *) "self",(char *) "pt",(char *) "sz", NULL
11246 };
11247
11248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11251 {
11252 arg2 = &temp2;
11253 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11254 }
11255 {
11256 arg3 = &temp3;
11257 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11258 }
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
11261 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11262
11263 wxPyEndAllowThreads(__tstate);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 }
11266 Py_INCREF(Py_None); resultobj = Py_None;
11267 return resultobj;
11268 fail:
11269 return NULL;
11270 }
11271
11272
11273 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj;
11275 wxDC *arg1 = (wxDC *) 0 ;
11276 int arg2 ;
11277 int arg3 ;
11278 int arg4 ;
11279 int arg5 ;
11280 double arg6 ;
11281 PyObject * obj0 = 0 ;
11282 PyObject * obj1 = 0 ;
11283 PyObject * obj2 = 0 ;
11284 PyObject * obj3 = 0 ;
11285 PyObject * obj4 = 0 ;
11286 PyObject * obj5 = 0 ;
11287 char *kwnames[] = {
11288 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11289 };
11290
11291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11294 arg2 = (int)SWIG_As_int(obj1);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 arg3 = (int)SWIG_As_int(obj2);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 arg4 = (int)SWIG_As_int(obj3);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 arg5 = (int)SWIG_As_int(obj4);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 arg6 = (double)SWIG_As_double(obj5);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 {
11305 PyThreadState* __tstate = wxPyBeginAllowThreads();
11306 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11307
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 Py_INCREF(Py_None); resultobj = Py_None;
11312 return resultobj;
11313 fail:
11314 return NULL;
11315 }
11316
11317
11318 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11319 PyObject *resultobj;
11320 wxDC *arg1 = (wxDC *) 0 ;
11321 wxRect *arg2 = 0 ;
11322 double arg3 ;
11323 wxRect temp2 ;
11324 PyObject * obj0 = 0 ;
11325 PyObject * obj1 = 0 ;
11326 PyObject * obj2 = 0 ;
11327 char *kwnames[] = {
11328 (char *) "self",(char *) "r",(char *) "radius", NULL
11329 };
11330
11331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11334 {
11335 arg2 = &temp2;
11336 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11337 }
11338 arg3 = (double)SWIG_As_double(obj2);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11343
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 Py_INCREF(Py_None); resultobj = Py_None;
11348 return resultobj;
11349 fail:
11350 return NULL;
11351 }
11352
11353
11354 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11355 PyObject *resultobj;
11356 wxDC *arg1 = (wxDC *) 0 ;
11357 wxPoint *arg2 = 0 ;
11358 wxSize *arg3 = 0 ;
11359 double arg4 ;
11360 wxPoint temp2 ;
11361 wxSize temp3 ;
11362 PyObject * obj0 = 0 ;
11363 PyObject * obj1 = 0 ;
11364 PyObject * obj2 = 0 ;
11365 PyObject * obj3 = 0 ;
11366 char *kwnames[] = {
11367 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11368 };
11369
11370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11373 {
11374 arg2 = &temp2;
11375 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11376 }
11377 {
11378 arg3 = &temp3;
11379 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11380 }
11381 arg4 = (double)SWIG_As_double(obj3);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 {
11384 PyThreadState* __tstate = wxPyBeginAllowThreads();
11385 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11386
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 Py_INCREF(Py_None); resultobj = Py_None;
11391 return resultobj;
11392 fail:
11393 return NULL;
11394 }
11395
11396
11397 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
11398 PyObject *resultobj;
11399 wxDC *arg1 = (wxDC *) 0 ;
11400 int arg2 ;
11401 int arg3 ;
11402 int arg4 ;
11403 PyObject * obj0 = 0 ;
11404 PyObject * obj1 = 0 ;
11405 PyObject * obj2 = 0 ;
11406 PyObject * obj3 = 0 ;
11407 char *kwnames[] = {
11408 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11409 };
11410
11411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11414 arg2 = (int)SWIG_As_int(obj1);
11415 if (PyErr_Occurred()) SWIG_fail;
11416 arg3 = (int)SWIG_As_int(obj2);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 arg4 = (int)SWIG_As_int(obj3);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 {
11421 PyThreadState* __tstate = wxPyBeginAllowThreads();
11422 (arg1)->DrawCircle(arg2,arg3,arg4);
11423
11424 wxPyEndAllowThreads(__tstate);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 Py_INCREF(Py_None); resultobj = Py_None;
11428 return resultobj;
11429 fail:
11430 return NULL;
11431 }
11432
11433
11434 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
11435 PyObject *resultobj;
11436 wxDC *arg1 = (wxDC *) 0 ;
11437 wxPoint *arg2 = 0 ;
11438 int arg3 ;
11439 wxPoint temp2 ;
11440 PyObject * obj0 = 0 ;
11441 PyObject * obj1 = 0 ;
11442 PyObject * obj2 = 0 ;
11443 char *kwnames[] = {
11444 (char *) "self",(char *) "pt",(char *) "radius", NULL
11445 };
11446
11447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11450 {
11451 arg2 = &temp2;
11452 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11453 }
11454 arg3 = (int)SWIG_As_int(obj2);
11455 if (PyErr_Occurred()) SWIG_fail;
11456 {
11457 PyThreadState* __tstate = wxPyBeginAllowThreads();
11458 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11459
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 Py_INCREF(Py_None); resultobj = Py_None;
11464 return resultobj;
11465 fail:
11466 return NULL;
11467 }
11468
11469
11470 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
11471 PyObject *resultobj;
11472 wxDC *arg1 = (wxDC *) 0 ;
11473 int arg2 ;
11474 int arg3 ;
11475 int arg4 ;
11476 int arg5 ;
11477 PyObject * obj0 = 0 ;
11478 PyObject * obj1 = 0 ;
11479 PyObject * obj2 = 0 ;
11480 PyObject * obj3 = 0 ;
11481 PyObject * obj4 = 0 ;
11482 char *kwnames[] = {
11483 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11484 };
11485
11486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11489 arg2 = (int)SWIG_As_int(obj1);
11490 if (PyErr_Occurred()) SWIG_fail;
11491 arg3 = (int)SWIG_As_int(obj2);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 arg4 = (int)SWIG_As_int(obj3);
11494 if (PyErr_Occurred()) SWIG_fail;
11495 arg5 = (int)SWIG_As_int(obj4);
11496 if (PyErr_Occurred()) SWIG_fail;
11497 {
11498 PyThreadState* __tstate = wxPyBeginAllowThreads();
11499 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11500
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 Py_INCREF(Py_None); resultobj = Py_None;
11505 return resultobj;
11506 fail:
11507 return NULL;
11508 }
11509
11510
11511 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
11512 PyObject *resultobj;
11513 wxDC *arg1 = (wxDC *) 0 ;
11514 wxRect *arg2 = 0 ;
11515 wxRect temp2 ;
11516 PyObject * obj0 = 0 ;
11517 PyObject * obj1 = 0 ;
11518 char *kwnames[] = {
11519 (char *) "self",(char *) "rect", NULL
11520 };
11521
11522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11525 {
11526 arg2 = &temp2;
11527 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11528 }
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 (arg1)->DrawEllipse((wxRect const &)*arg2);
11532
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 Py_INCREF(Py_None); resultobj = Py_None;
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11544 PyObject *resultobj;
11545 wxDC *arg1 = (wxDC *) 0 ;
11546 wxPoint *arg2 = 0 ;
11547 wxSize *arg3 = 0 ;
11548 wxPoint temp2 ;
11549 wxSize temp3 ;
11550 PyObject * obj0 = 0 ;
11551 PyObject * obj1 = 0 ;
11552 PyObject * obj2 = 0 ;
11553 char *kwnames[] = {
11554 (char *) "self",(char *) "pt",(char *) "sz", NULL
11555 };
11556
11557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11560 {
11561 arg2 = &temp2;
11562 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11563 }
11564 {
11565 arg3 = &temp3;
11566 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11567 }
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11571
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 Py_INCREF(Py_None); resultobj = Py_None;
11576 return resultobj;
11577 fail:
11578 return NULL;
11579 }
11580
11581
11582 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11583 PyObject *resultobj;
11584 wxDC *arg1 = (wxDC *) 0 ;
11585 wxIcon *arg2 = 0 ;
11586 int arg3 ;
11587 int arg4 ;
11588 PyObject * obj0 = 0 ;
11589 PyObject * obj1 = 0 ;
11590 PyObject * obj2 = 0 ;
11591 PyObject * obj3 = 0 ;
11592 char *kwnames[] = {
11593 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11594 };
11595
11596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11600 SWIG_POINTER_EXCEPTION | 0)) == -1)
11601 SWIG_fail;
11602 if (arg2 == NULL) {
11603 PyErr_SetString(PyExc_TypeError,"null reference");
11604 SWIG_fail;
11605 }
11606 arg3 = (int)SWIG_As_int(obj2);
11607 if (PyErr_Occurred()) SWIG_fail;
11608 arg4 = (int)SWIG_As_int(obj3);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11613
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 Py_INCREF(Py_None); resultobj = Py_None;
11618 return resultobj;
11619 fail:
11620 return NULL;
11621 }
11622
11623
11624 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11625 PyObject *resultobj;
11626 wxDC *arg1 = (wxDC *) 0 ;
11627 wxIcon *arg2 = 0 ;
11628 wxPoint *arg3 = 0 ;
11629 wxPoint temp3 ;
11630 PyObject * obj0 = 0 ;
11631 PyObject * obj1 = 0 ;
11632 PyObject * obj2 = 0 ;
11633 char *kwnames[] = {
11634 (char *) "self",(char *) "icon",(char *) "pt", NULL
11635 };
11636
11637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11640 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11641 SWIG_POINTER_EXCEPTION | 0)) == -1)
11642 SWIG_fail;
11643 if (arg2 == NULL) {
11644 PyErr_SetString(PyExc_TypeError,"null reference");
11645 SWIG_fail;
11646 }
11647 {
11648 arg3 = &temp3;
11649 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11650 }
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11654
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 Py_INCREF(Py_None); resultobj = Py_None;
11659 return resultobj;
11660 fail:
11661 return NULL;
11662 }
11663
11664
11665 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11666 PyObject *resultobj;
11667 wxDC *arg1 = (wxDC *) 0 ;
11668 wxBitmap *arg2 = 0 ;
11669 int arg3 ;
11670 int arg4 ;
11671 bool arg5 = (bool) False ;
11672 PyObject * obj0 = 0 ;
11673 PyObject * obj1 = 0 ;
11674 PyObject * obj2 = 0 ;
11675 PyObject * obj3 = 0 ;
11676 PyObject * obj4 = 0 ;
11677 char *kwnames[] = {
11678 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11679 };
11680
11681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11684 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11685 SWIG_POINTER_EXCEPTION | 0)) == -1)
11686 SWIG_fail;
11687 if (arg2 == NULL) {
11688 PyErr_SetString(PyExc_TypeError,"null reference");
11689 SWIG_fail;
11690 }
11691 arg3 = (int)SWIG_As_int(obj2);
11692 if (PyErr_Occurred()) SWIG_fail;
11693 arg4 = (int)SWIG_As_int(obj3);
11694 if (PyErr_Occurred()) SWIG_fail;
11695 if (obj4) {
11696 arg5 = (bool)SWIG_As_bool(obj4);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 }
11699 {
11700 PyThreadState* __tstate = wxPyBeginAllowThreads();
11701 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11702
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 Py_INCREF(Py_None); resultobj = Py_None;
11707 return resultobj;
11708 fail:
11709 return NULL;
11710 }
11711
11712
11713 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11714 PyObject *resultobj;
11715 wxDC *arg1 = (wxDC *) 0 ;
11716 wxBitmap *arg2 = 0 ;
11717 wxPoint *arg3 = 0 ;
11718 bool arg4 = (bool) False ;
11719 wxPoint temp3 ;
11720 PyObject * obj0 = 0 ;
11721 PyObject * obj1 = 0 ;
11722 PyObject * obj2 = 0 ;
11723 PyObject * obj3 = 0 ;
11724 char *kwnames[] = {
11725 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11726 };
11727
11728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11732 SWIG_POINTER_EXCEPTION | 0)) == -1)
11733 SWIG_fail;
11734 if (arg2 == NULL) {
11735 PyErr_SetString(PyExc_TypeError,"null reference");
11736 SWIG_fail;
11737 }
11738 {
11739 arg3 = &temp3;
11740 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11741 }
11742 if (obj3) {
11743 arg4 = (bool)SWIG_As_bool(obj3);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 {
11747 PyThreadState* __tstate = wxPyBeginAllowThreads();
11748 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11749
11750 wxPyEndAllowThreads(__tstate);
11751 if (PyErr_Occurred()) SWIG_fail;
11752 }
11753 Py_INCREF(Py_None); resultobj = Py_None;
11754 return resultobj;
11755 fail:
11756 return NULL;
11757 }
11758
11759
11760 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
11761 PyObject *resultobj;
11762 wxDC *arg1 = (wxDC *) 0 ;
11763 wxString *arg2 = 0 ;
11764 int arg3 ;
11765 int arg4 ;
11766 bool temp2 = False ;
11767 PyObject * obj0 = 0 ;
11768 PyObject * obj1 = 0 ;
11769 PyObject * obj2 = 0 ;
11770 PyObject * obj3 = 0 ;
11771 char *kwnames[] = {
11772 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11773 };
11774
11775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11778 {
11779 arg2 = wxString_in_helper(obj1);
11780 if (arg2 == NULL) SWIG_fail;
11781 temp2 = True;
11782 }
11783 arg3 = (int)SWIG_As_int(obj2);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 arg4 = (int)SWIG_As_int(obj3);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 {
11788 PyThreadState* __tstate = wxPyBeginAllowThreads();
11789 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11790
11791 wxPyEndAllowThreads(__tstate);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 }
11794 Py_INCREF(Py_None); resultobj = Py_None;
11795 {
11796 if (temp2)
11797 delete arg2;
11798 }
11799 return resultobj;
11800 fail:
11801 {
11802 if (temp2)
11803 delete arg2;
11804 }
11805 return NULL;
11806 }
11807
11808
11809 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11810 PyObject *resultobj;
11811 wxDC *arg1 = (wxDC *) 0 ;
11812 wxString *arg2 = 0 ;
11813 wxPoint *arg3 = 0 ;
11814 bool temp2 = False ;
11815 wxPoint temp3 ;
11816 PyObject * obj0 = 0 ;
11817 PyObject * obj1 = 0 ;
11818 PyObject * obj2 = 0 ;
11819 char *kwnames[] = {
11820 (char *) "self",(char *) "text",(char *) "pt", NULL
11821 };
11822
11823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11826 {
11827 arg2 = wxString_in_helper(obj1);
11828 if (arg2 == NULL) SWIG_fail;
11829 temp2 = True;
11830 }
11831 {
11832 arg3 = &temp3;
11833 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11834 }
11835 {
11836 PyThreadState* __tstate = wxPyBeginAllowThreads();
11837 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11838
11839 wxPyEndAllowThreads(__tstate);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 }
11842 Py_INCREF(Py_None); resultobj = Py_None;
11843 {
11844 if (temp2)
11845 delete arg2;
11846 }
11847 return resultobj;
11848 fail:
11849 {
11850 if (temp2)
11851 delete arg2;
11852 }
11853 return NULL;
11854 }
11855
11856
11857 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
11858 PyObject *resultobj;
11859 wxDC *arg1 = (wxDC *) 0 ;
11860 wxString *arg2 = 0 ;
11861 int arg3 ;
11862 int arg4 ;
11863 double arg5 ;
11864 bool temp2 = False ;
11865 PyObject * obj0 = 0 ;
11866 PyObject * obj1 = 0 ;
11867 PyObject * obj2 = 0 ;
11868 PyObject * obj3 = 0 ;
11869 PyObject * obj4 = 0 ;
11870 char *kwnames[] = {
11871 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11872 };
11873
11874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11877 {
11878 arg2 = wxString_in_helper(obj1);
11879 if (arg2 == NULL) SWIG_fail;
11880 temp2 = True;
11881 }
11882 arg3 = (int)SWIG_As_int(obj2);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 arg4 = (int)SWIG_As_int(obj3);
11885 if (PyErr_Occurred()) SWIG_fail;
11886 arg5 = (double)SWIG_As_double(obj4);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 {
11889 PyThreadState* __tstate = wxPyBeginAllowThreads();
11890 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11891
11892 wxPyEndAllowThreads(__tstate);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 }
11895 Py_INCREF(Py_None); resultobj = Py_None;
11896 {
11897 if (temp2)
11898 delete arg2;
11899 }
11900 return resultobj;
11901 fail:
11902 {
11903 if (temp2)
11904 delete arg2;
11905 }
11906 return NULL;
11907 }
11908
11909
11910 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11911 PyObject *resultobj;
11912 wxDC *arg1 = (wxDC *) 0 ;
11913 wxString *arg2 = 0 ;
11914 wxPoint *arg3 = 0 ;
11915 double arg4 ;
11916 bool temp2 = False ;
11917 wxPoint temp3 ;
11918 PyObject * obj0 = 0 ;
11919 PyObject * obj1 = 0 ;
11920 PyObject * obj2 = 0 ;
11921 PyObject * obj3 = 0 ;
11922 char *kwnames[] = {
11923 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11924 };
11925
11926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11929 {
11930 arg2 = wxString_in_helper(obj1);
11931 if (arg2 == NULL) SWIG_fail;
11932 temp2 = True;
11933 }
11934 {
11935 arg3 = &temp3;
11936 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11937 }
11938 arg4 = (double)SWIG_As_double(obj3);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11943
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 Py_INCREF(Py_None); resultobj = Py_None;
11948 {
11949 if (temp2)
11950 delete arg2;
11951 }
11952 return resultobj;
11953 fail:
11954 {
11955 if (temp2)
11956 delete arg2;
11957 }
11958 return NULL;
11959 }
11960
11961
11962 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
11963 PyObject *resultobj;
11964 wxDC *arg1 = (wxDC *) 0 ;
11965 int arg2 ;
11966 int arg3 ;
11967 int arg4 ;
11968 int arg5 ;
11969 wxDC *arg6 = (wxDC *) 0 ;
11970 int arg7 ;
11971 int arg8 ;
11972 int arg9 = (int) wxCOPY ;
11973 bool arg10 = (bool) False ;
11974 int arg11 = (int) -1 ;
11975 int arg12 = (int) -1 ;
11976 bool result;
11977 PyObject * obj0 = 0 ;
11978 PyObject * obj1 = 0 ;
11979 PyObject * obj2 = 0 ;
11980 PyObject * obj3 = 0 ;
11981 PyObject * obj4 = 0 ;
11982 PyObject * obj5 = 0 ;
11983 PyObject * obj6 = 0 ;
11984 PyObject * obj7 = 0 ;
11985 PyObject * obj8 = 0 ;
11986 PyObject * obj9 = 0 ;
11987 PyObject * obj10 = 0 ;
11988 PyObject * obj11 = 0 ;
11989 char *kwnames[] = {
11990 (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
11991 };
11992
11993 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;
11994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11996 arg2 = (int)SWIG_As_int(obj1);
11997 if (PyErr_Occurred()) SWIG_fail;
11998 arg3 = (int)SWIG_As_int(obj2);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 arg4 = (int)SWIG_As_int(obj3);
12001 if (PyErr_Occurred()) SWIG_fail;
12002 arg5 = (int)SWIG_As_int(obj4);
12003 if (PyErr_Occurred()) SWIG_fail;
12004 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12006 arg7 = (int)SWIG_As_int(obj6);
12007 if (PyErr_Occurred()) SWIG_fail;
12008 arg8 = (int)SWIG_As_int(obj7);
12009 if (PyErr_Occurred()) SWIG_fail;
12010 if (obj8) {
12011 arg9 = (int)SWIG_As_int(obj8);
12012 if (PyErr_Occurred()) SWIG_fail;
12013 }
12014 if (obj9) {
12015 arg10 = (bool)SWIG_As_bool(obj9);
12016 if (PyErr_Occurred()) SWIG_fail;
12017 }
12018 if (obj10) {
12019 arg11 = (int)SWIG_As_int(obj10);
12020 if (PyErr_Occurred()) SWIG_fail;
12021 }
12022 if (obj11) {
12023 arg12 = (int)SWIG_As_int(obj11);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 {
12027 PyThreadState* __tstate = wxPyBeginAllowThreads();
12028 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12029
12030 wxPyEndAllowThreads(__tstate);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 }
12033 {
12034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12035 }
12036 return resultobj;
12037 fail:
12038 return NULL;
12039 }
12040
12041
12042 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12043 PyObject *resultobj;
12044 wxDC *arg1 = (wxDC *) 0 ;
12045 wxPoint *arg2 = 0 ;
12046 wxSize *arg3 = 0 ;
12047 wxDC *arg4 = (wxDC *) 0 ;
12048 wxPoint *arg5 = 0 ;
12049 int arg6 = (int) wxCOPY ;
12050 bool arg7 = (bool) False ;
12051 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12052 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12053 bool result;
12054 wxPoint temp2 ;
12055 wxSize temp3 ;
12056 wxPoint temp5 ;
12057 wxPoint temp8 ;
12058 PyObject * obj0 = 0 ;
12059 PyObject * obj1 = 0 ;
12060 PyObject * obj2 = 0 ;
12061 PyObject * obj3 = 0 ;
12062 PyObject * obj4 = 0 ;
12063 PyObject * obj5 = 0 ;
12064 PyObject * obj6 = 0 ;
12065 PyObject * obj7 = 0 ;
12066 char *kwnames[] = {
12067 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12068 };
12069
12070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12073 {
12074 arg2 = &temp2;
12075 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12076 }
12077 {
12078 arg3 = &temp3;
12079 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12080 }
12081 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12083 {
12084 arg5 = &temp5;
12085 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12086 }
12087 if (obj5) {
12088 arg6 = (int)SWIG_As_int(obj5);
12089 if (PyErr_Occurred()) SWIG_fail;
12090 }
12091 if (obj6) {
12092 arg7 = (bool)SWIG_As_bool(obj6);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 if (obj7) {
12096 {
12097 arg8 = &temp8;
12098 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12099 }
12100 }
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12104
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 {
12109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12110 }
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12118 PyObject *resultobj;
12119 wxDC *arg1 = (wxDC *) 0 ;
12120 int arg2 ;
12121 int arg3 ;
12122 int arg4 ;
12123 int arg5 ;
12124 PyObject * obj0 = 0 ;
12125 PyObject * obj1 = 0 ;
12126 PyObject * obj2 = 0 ;
12127 PyObject * obj3 = 0 ;
12128 PyObject * obj4 = 0 ;
12129 char *kwnames[] = {
12130 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12131 };
12132
12133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12136 arg2 = (int)SWIG_As_int(obj1);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 arg3 = (int)SWIG_As_int(obj2);
12139 if (PyErr_Occurred()) SWIG_fail;
12140 arg4 = (int)SWIG_As_int(obj3);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 arg5 = (int)SWIG_As_int(obj4);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12147
12148 wxPyEndAllowThreads(__tstate);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 }
12151 Py_INCREF(Py_None); resultobj = Py_None;
12152 return resultobj;
12153 fail:
12154 return NULL;
12155 }
12156
12157
12158 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12159 PyObject *resultobj;
12160 wxDC *arg1 = (wxDC *) 0 ;
12161 wxPoint *arg2 = 0 ;
12162 wxSize *arg3 = 0 ;
12163 wxPoint temp2 ;
12164 wxSize temp3 ;
12165 PyObject * obj0 = 0 ;
12166 PyObject * obj1 = 0 ;
12167 PyObject * obj2 = 0 ;
12168 char *kwnames[] = {
12169 (char *) "self",(char *) "pt",(char *) "sz", NULL
12170 };
12171
12172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12175 {
12176 arg2 = &temp2;
12177 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12178 }
12179 {
12180 arg3 = &temp3;
12181 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12182 }
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12186
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 Py_INCREF(Py_None); resultobj = Py_None;
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12198 PyObject *resultobj;
12199 wxDC *arg1 = (wxDC *) 0 ;
12200 wxRegion *arg2 = 0 ;
12201 PyObject * obj0 = 0 ;
12202 PyObject * obj1 = 0 ;
12203 char *kwnames[] = {
12204 (char *) "self",(char *) "region", NULL
12205 };
12206
12207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12210 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12211 SWIG_POINTER_EXCEPTION | 0)) == -1)
12212 SWIG_fail;
12213 if (arg2 == NULL) {
12214 PyErr_SetString(PyExc_TypeError,"null reference");
12215 SWIG_fail;
12216 }
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12220
12221 wxPyEndAllowThreads(__tstate);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 }
12224 Py_INCREF(Py_None); resultobj = Py_None;
12225 return resultobj;
12226 fail:
12227 return NULL;
12228 }
12229
12230
12231 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12232 PyObject *resultobj;
12233 wxDC *arg1 = (wxDC *) 0 ;
12234 wxRect *arg2 = 0 ;
12235 wxRect temp2 ;
12236 PyObject * obj0 = 0 ;
12237 PyObject * obj1 = 0 ;
12238 char *kwnames[] = {
12239 (char *) "self",(char *) "rect", NULL
12240 };
12241
12242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12245 {
12246 arg2 = &temp2;
12247 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12248 }
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12252
12253 wxPyEndAllowThreads(__tstate);
12254 if (PyErr_Occurred()) SWIG_fail;
12255 }
12256 Py_INCREF(Py_None); resultobj = Py_None;
12257 return resultobj;
12258 fail:
12259 return NULL;
12260 }
12261
12262
12263 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
12264 PyObject *resultobj;
12265 wxDC *arg1 = (wxDC *) 0 ;
12266 int arg2 ;
12267 wxPoint *arg3 = (wxPoint *) 0 ;
12268 int arg4 = (int) 0 ;
12269 int arg5 = (int) 0 ;
12270 PyObject * obj0 = 0 ;
12271 PyObject * obj1 = 0 ;
12272 PyObject * obj2 = 0 ;
12273 PyObject * obj3 = 0 ;
12274 char *kwnames[] = {
12275 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12276 };
12277
12278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12281 {
12282 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12283 if (arg3 == NULL) SWIG_fail;
12284 }
12285 if (obj2) {
12286 arg4 = (int)SWIG_As_int(obj2);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 if (obj3) {
12290 arg5 = (int)SWIG_As_int(obj3);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 {
12294 PyThreadState* __tstate = wxPyBeginAllowThreads();
12295 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12296
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 Py_INCREF(Py_None); resultobj = Py_None;
12301 {
12302 if (arg3) delete [] arg3;
12303 }
12304 return resultobj;
12305 fail:
12306 {
12307 if (arg3) delete [] arg3;
12308 }
12309 return NULL;
12310 }
12311
12312
12313 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
12314 PyObject *resultobj;
12315 wxDC *arg1 = (wxDC *) 0 ;
12316 int arg2 ;
12317 wxPoint *arg3 = (wxPoint *) 0 ;
12318 int arg4 = (int) 0 ;
12319 int arg5 = (int) 0 ;
12320 int arg6 = (int) wxODDEVEN_RULE ;
12321 PyObject * obj0 = 0 ;
12322 PyObject * obj1 = 0 ;
12323 PyObject * obj2 = 0 ;
12324 PyObject * obj3 = 0 ;
12325 PyObject * obj4 = 0 ;
12326 char *kwnames[] = {
12327 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12328 };
12329
12330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12333 {
12334 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12335 if (arg3 == NULL) SWIG_fail;
12336 }
12337 if (obj2) {
12338 arg4 = (int)SWIG_As_int(obj2);
12339 if (PyErr_Occurred()) SWIG_fail;
12340 }
12341 if (obj3) {
12342 arg5 = (int)SWIG_As_int(obj3);
12343 if (PyErr_Occurred()) SWIG_fail;
12344 }
12345 if (obj4) {
12346 arg6 = (int)SWIG_As_int(obj4);
12347 if (PyErr_Occurred()) SWIG_fail;
12348 }
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12352
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 Py_INCREF(Py_None); resultobj = Py_None;
12357 {
12358 if (arg3) delete [] arg3;
12359 }
12360 return resultobj;
12361 fail:
12362 {
12363 if (arg3) delete [] arg3;
12364 }
12365 return NULL;
12366 }
12367
12368
12369 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12370 PyObject *resultobj;
12371 wxDC *arg1 = (wxDC *) 0 ;
12372 wxString *arg2 = 0 ;
12373 wxRect *arg3 = 0 ;
12374 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12375 int arg5 = (int) -1 ;
12376 bool temp2 = False ;
12377 wxRect temp3 ;
12378 PyObject * obj0 = 0 ;
12379 PyObject * obj1 = 0 ;
12380 PyObject * obj2 = 0 ;
12381 PyObject * obj3 = 0 ;
12382 PyObject * obj4 = 0 ;
12383 char *kwnames[] = {
12384 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12385 };
12386
12387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12390 {
12391 arg2 = wxString_in_helper(obj1);
12392 if (arg2 == NULL) SWIG_fail;
12393 temp2 = True;
12394 }
12395 {
12396 arg3 = &temp3;
12397 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12398 }
12399 if (obj3) {
12400 arg4 = (int)SWIG_As_int(obj3);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 if (obj4) {
12404 arg5 = (int)SWIG_As_int(obj4);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 {
12408 PyThreadState* __tstate = wxPyBeginAllowThreads();
12409 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12410
12411 wxPyEndAllowThreads(__tstate);
12412 if (PyErr_Occurred()) SWIG_fail;
12413 }
12414 Py_INCREF(Py_None); resultobj = Py_None;
12415 {
12416 if (temp2)
12417 delete arg2;
12418 }
12419 return resultobj;
12420 fail:
12421 {
12422 if (temp2)
12423 delete arg2;
12424 }
12425 return NULL;
12426 }
12427
12428
12429 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12430 PyObject *resultobj;
12431 wxDC *arg1 = (wxDC *) 0 ;
12432 wxString *arg2 = 0 ;
12433 wxBitmap *arg3 = 0 ;
12434 wxRect *arg4 = 0 ;
12435 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12436 int arg6 = (int) -1 ;
12437 wxRect result;
12438 bool temp2 = False ;
12439 wxRect temp4 ;
12440 PyObject * obj0 = 0 ;
12441 PyObject * obj1 = 0 ;
12442 PyObject * obj2 = 0 ;
12443 PyObject * obj3 = 0 ;
12444 PyObject * obj4 = 0 ;
12445 PyObject * obj5 = 0 ;
12446 char *kwnames[] = {
12447 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12448 };
12449
12450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12453 {
12454 arg2 = wxString_in_helper(obj1);
12455 if (arg2 == NULL) SWIG_fail;
12456 temp2 = True;
12457 }
12458 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12459 SWIG_POINTER_EXCEPTION | 0)) == -1)
12460 SWIG_fail;
12461 if (arg3 == NULL) {
12462 PyErr_SetString(PyExc_TypeError,"null reference");
12463 SWIG_fail;
12464 }
12465 {
12466 arg4 = &temp4;
12467 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12468 }
12469 if (obj4) {
12470 arg5 = (int)SWIG_As_int(obj4);
12471 if (PyErr_Occurred()) SWIG_fail;
12472 }
12473 if (obj5) {
12474 arg6 = (int)SWIG_As_int(obj5);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12480
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 {
12485 wxRect * resultptr;
12486 resultptr = new wxRect((wxRect &) result);
12487 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12488 }
12489 {
12490 if (temp2)
12491 delete arg2;
12492 }
12493 return resultobj;
12494 fail:
12495 {
12496 if (temp2)
12497 delete arg2;
12498 }
12499 return NULL;
12500 }
12501
12502
12503 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
12504 PyObject *resultobj;
12505 wxDC *arg1 = (wxDC *) 0 ;
12506 int arg2 ;
12507 wxPoint *arg3 = (wxPoint *) 0 ;
12508 PyObject * obj0 = 0 ;
12509 PyObject * obj1 = 0 ;
12510 char *kwnames[] = {
12511 (char *) "self",(char *) "points", NULL
12512 };
12513
12514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12517 {
12518 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12519 if (arg3 == NULL) SWIG_fail;
12520 }
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 (arg1)->DrawSpline(arg2,arg3);
12524
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 }
12528 Py_INCREF(Py_None); resultobj = Py_None;
12529 {
12530 if (arg3) delete [] arg3;
12531 }
12532 return resultobj;
12533 fail:
12534 {
12535 if (arg3) delete [] arg3;
12536 }
12537 return NULL;
12538 }
12539
12540
12541 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
12542 PyObject *resultobj;
12543 wxDC *arg1 = (wxDC *) 0 ;
12544 PyObject * obj0 = 0 ;
12545 char *kwnames[] = {
12546 (char *) "self", NULL
12547 };
12548
12549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12552 {
12553 PyThreadState* __tstate = wxPyBeginAllowThreads();
12554 (arg1)->Clear();
12555
12556 wxPyEndAllowThreads(__tstate);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 }
12559 Py_INCREF(Py_None); resultobj = Py_None;
12560 return resultobj;
12561 fail:
12562 return NULL;
12563 }
12564
12565
12566 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12567 PyObject *resultobj;
12568 wxDC *arg1 = (wxDC *) 0 ;
12569 wxString *arg2 = 0 ;
12570 bool result;
12571 bool temp2 = False ;
12572 PyObject * obj0 = 0 ;
12573 PyObject * obj1 = 0 ;
12574 char *kwnames[] = {
12575 (char *) "self",(char *) "message", NULL
12576 };
12577
12578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12581 {
12582 arg2 = wxString_in_helper(obj1);
12583 if (arg2 == NULL) SWIG_fail;
12584 temp2 = True;
12585 }
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12589
12590 wxPyEndAllowThreads(__tstate);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 }
12593 {
12594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12595 }
12596 {
12597 if (temp2)
12598 delete arg2;
12599 }
12600 return resultobj;
12601 fail:
12602 {
12603 if (temp2)
12604 delete arg2;
12605 }
12606 return NULL;
12607 }
12608
12609
12610 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12611 PyObject *resultobj;
12612 wxDC *arg1 = (wxDC *) 0 ;
12613 PyObject * obj0 = 0 ;
12614 char *kwnames[] = {
12615 (char *) "self", NULL
12616 };
12617
12618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12621 {
12622 PyThreadState* __tstate = wxPyBeginAllowThreads();
12623 (arg1)->EndDoc();
12624
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 Py_INCREF(Py_None); resultobj = Py_None;
12629 return resultobj;
12630 fail:
12631 return NULL;
12632 }
12633
12634
12635 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
12636 PyObject *resultobj;
12637 wxDC *arg1 = (wxDC *) 0 ;
12638 PyObject * obj0 = 0 ;
12639 char *kwnames[] = {
12640 (char *) "self", NULL
12641 };
12642
12643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12646 {
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 (arg1)->StartPage();
12649
12650 wxPyEndAllowThreads(__tstate);
12651 if (PyErr_Occurred()) SWIG_fail;
12652 }
12653 Py_INCREF(Py_None); resultobj = Py_None;
12654 return resultobj;
12655 fail:
12656 return NULL;
12657 }
12658
12659
12660 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
12661 PyObject *resultobj;
12662 wxDC *arg1 = (wxDC *) 0 ;
12663 PyObject * obj0 = 0 ;
12664 char *kwnames[] = {
12665 (char *) "self", NULL
12666 };
12667
12668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12671 {
12672 PyThreadState* __tstate = wxPyBeginAllowThreads();
12673 (arg1)->EndPage();
12674
12675 wxPyEndAllowThreads(__tstate);
12676 if (PyErr_Occurred()) SWIG_fail;
12677 }
12678 Py_INCREF(Py_None); resultobj = Py_None;
12679 return resultobj;
12680 fail:
12681 return NULL;
12682 }
12683
12684
12685 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
12686 PyObject *resultobj;
12687 wxDC *arg1 = (wxDC *) 0 ;
12688 wxFont *arg2 = 0 ;
12689 PyObject * obj0 = 0 ;
12690 PyObject * obj1 = 0 ;
12691 char *kwnames[] = {
12692 (char *) "self",(char *) "font", NULL
12693 };
12694
12695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12698 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12699 SWIG_POINTER_EXCEPTION | 0)) == -1)
12700 SWIG_fail;
12701 if (arg2 == NULL) {
12702 PyErr_SetString(PyExc_TypeError,"null reference");
12703 SWIG_fail;
12704 }
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 (arg1)->SetFont((wxFont const &)*arg2);
12708
12709 wxPyEndAllowThreads(__tstate);
12710 if (PyErr_Occurred()) SWIG_fail;
12711 }
12712 Py_INCREF(Py_None); resultobj = Py_None;
12713 return resultobj;
12714 fail:
12715 return NULL;
12716 }
12717
12718
12719 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
12720 PyObject *resultobj;
12721 wxDC *arg1 = (wxDC *) 0 ;
12722 wxPen *arg2 = 0 ;
12723 PyObject * obj0 = 0 ;
12724 PyObject * obj1 = 0 ;
12725 char *kwnames[] = {
12726 (char *) "self",(char *) "pen", NULL
12727 };
12728
12729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12732 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12733 SWIG_POINTER_EXCEPTION | 0)) == -1)
12734 SWIG_fail;
12735 if (arg2 == NULL) {
12736 PyErr_SetString(PyExc_TypeError,"null reference");
12737 SWIG_fail;
12738 }
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 (arg1)->SetPen((wxPen const &)*arg2);
12742
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 Py_INCREF(Py_None); resultobj = Py_None;
12747 return resultobj;
12748 fail:
12749 return NULL;
12750 }
12751
12752
12753 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj;
12755 wxDC *arg1 = (wxDC *) 0 ;
12756 wxBrush *arg2 = 0 ;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 char *kwnames[] = {
12760 (char *) "self",(char *) "brush", NULL
12761 };
12762
12763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12766 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12767 SWIG_POINTER_EXCEPTION | 0)) == -1)
12768 SWIG_fail;
12769 if (arg2 == NULL) {
12770 PyErr_SetString(PyExc_TypeError,"null reference");
12771 SWIG_fail;
12772 }
12773 {
12774 PyThreadState* __tstate = wxPyBeginAllowThreads();
12775 (arg1)->SetBrush((wxBrush const &)*arg2);
12776
12777 wxPyEndAllowThreads(__tstate);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 Py_INCREF(Py_None); resultobj = Py_None;
12781 return resultobj;
12782 fail:
12783 return NULL;
12784 }
12785
12786
12787 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
12788 PyObject *resultobj;
12789 wxDC *arg1 = (wxDC *) 0 ;
12790 wxBrush *arg2 = 0 ;
12791 PyObject * obj0 = 0 ;
12792 PyObject * obj1 = 0 ;
12793 char *kwnames[] = {
12794 (char *) "self",(char *) "brush", NULL
12795 };
12796
12797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12801 SWIG_POINTER_EXCEPTION | 0)) == -1)
12802 SWIG_fail;
12803 if (arg2 == NULL) {
12804 PyErr_SetString(PyExc_TypeError,"null reference");
12805 SWIG_fail;
12806 }
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 (arg1)->SetBackground((wxBrush const &)*arg2);
12810
12811 wxPyEndAllowThreads(__tstate);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 }
12814 Py_INCREF(Py_None); resultobj = Py_None;
12815 return resultobj;
12816 fail:
12817 return NULL;
12818 }
12819
12820
12821 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
12822 PyObject *resultobj;
12823 wxDC *arg1 = (wxDC *) 0 ;
12824 int arg2 ;
12825 PyObject * obj0 = 0 ;
12826 PyObject * obj1 = 0 ;
12827 char *kwnames[] = {
12828 (char *) "self",(char *) "mode", NULL
12829 };
12830
12831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12834 arg2 = (int)SWIG_As_int(obj1);
12835 if (PyErr_Occurred()) SWIG_fail;
12836 {
12837 PyThreadState* __tstate = wxPyBeginAllowThreads();
12838 (arg1)->SetBackgroundMode(arg2);
12839
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 Py_INCREF(Py_None); resultobj = Py_None;
12844 return resultobj;
12845 fail:
12846 return NULL;
12847 }
12848
12849
12850 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
12851 PyObject *resultobj;
12852 wxDC *arg1 = (wxDC *) 0 ;
12853 wxPalette *arg2 = 0 ;
12854 PyObject * obj0 = 0 ;
12855 PyObject * obj1 = 0 ;
12856 char *kwnames[] = {
12857 (char *) "self",(char *) "palette", NULL
12858 };
12859
12860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12863 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12864 SWIG_POINTER_EXCEPTION | 0)) == -1)
12865 SWIG_fail;
12866 if (arg2 == NULL) {
12867 PyErr_SetString(PyExc_TypeError,"null reference");
12868 SWIG_fail;
12869 }
12870 {
12871 PyThreadState* __tstate = wxPyBeginAllowThreads();
12872 (arg1)->SetPalette((wxPalette const &)*arg2);
12873
12874 wxPyEndAllowThreads(__tstate);
12875 if (PyErr_Occurred()) SWIG_fail;
12876 }
12877 Py_INCREF(Py_None); resultobj = Py_None;
12878 return resultobj;
12879 fail:
12880 return NULL;
12881 }
12882
12883
12884 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12885 PyObject *resultobj;
12886 wxDC *arg1 = (wxDC *) 0 ;
12887 PyObject * obj0 = 0 ;
12888 char *kwnames[] = {
12889 (char *) "self", NULL
12890 };
12891
12892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12895 {
12896 PyThreadState* __tstate = wxPyBeginAllowThreads();
12897 (arg1)->DestroyClippingRegion();
12898
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 Py_INCREF(Py_None); resultobj = Py_None;
12903 return resultobj;
12904 fail:
12905 return NULL;
12906 }
12907
12908
12909 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
12910 PyObject *resultobj;
12911 wxDC *arg1 = (wxDC *) 0 ;
12912 int *arg2 = (int *) 0 ;
12913 int *arg3 = (int *) 0 ;
12914 int *arg4 = (int *) 0 ;
12915 int *arg5 = (int *) 0 ;
12916 int temp2 ;
12917 int res2 = 0 ;
12918 int temp3 ;
12919 int res3 = 0 ;
12920 int temp4 ;
12921 int res4 = 0 ;
12922 int temp5 ;
12923 int res5 = 0 ;
12924 PyObject * obj0 = 0 ;
12925 char *kwnames[] = {
12926 (char *) "self", NULL
12927 };
12928
12929 arg2 = &temp2; res2 = SWIG_NEWOBJ;
12930 arg3 = &temp3; res3 = SWIG_NEWOBJ;
12931 arg4 = &temp4; res4 = SWIG_NEWOBJ;
12932 arg5 = &temp5; res5 = SWIG_NEWOBJ;
12933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12939
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) SWIG_fail;
12942 }
12943 Py_INCREF(Py_None); resultobj = Py_None;
12944 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
12945 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
12946 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
12947 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
12948 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
12949 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
12950 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
12951 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
12952 return resultobj;
12953 fail:
12954 return NULL;
12955 }
12956
12957
12958 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12959 PyObject *resultobj;
12960 wxDC *arg1 = (wxDC *) 0 ;
12961 wxRect result;
12962 PyObject * obj0 = 0 ;
12963 char *kwnames[] = {
12964 (char *) "self", NULL
12965 };
12966
12967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12970 {
12971 PyThreadState* __tstate = wxPyBeginAllowThreads();
12972 result = wxDC_GetClippingRect(arg1);
12973
12974 wxPyEndAllowThreads(__tstate);
12975 if (PyErr_Occurred()) SWIG_fail;
12976 }
12977 {
12978 wxRect * resultptr;
12979 resultptr = new wxRect((wxRect &) result);
12980 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12981 }
12982 return resultobj;
12983 fail:
12984 return NULL;
12985 }
12986
12987
12988 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
12989 PyObject *resultobj;
12990 wxDC *arg1 = (wxDC *) 0 ;
12991 int result;
12992 PyObject * obj0 = 0 ;
12993 char *kwnames[] = {
12994 (char *) "self", NULL
12995 };
12996
12997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13000 {
13001 PyThreadState* __tstate = wxPyBeginAllowThreads();
13002 result = (int)((wxDC const *)arg1)->GetCharHeight();
13003
13004 wxPyEndAllowThreads(__tstate);
13005 if (PyErr_Occurred()) SWIG_fail;
13006 }
13007 resultobj = SWIG_From_int((int)result);
13008 return resultobj;
13009 fail:
13010 return NULL;
13011 }
13012
13013
13014 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
13015 PyObject *resultobj;
13016 wxDC *arg1 = (wxDC *) 0 ;
13017 int result;
13018 PyObject * obj0 = 0 ;
13019 char *kwnames[] = {
13020 (char *) "self", NULL
13021 };
13022
13023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13026 {
13027 PyThreadState* __tstate = wxPyBeginAllowThreads();
13028 result = (int)((wxDC const *)arg1)->GetCharWidth();
13029
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 resultobj = SWIG_From_int((int)result);
13034 return resultobj;
13035 fail:
13036 return NULL;
13037 }
13038
13039
13040 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj;
13042 wxDC *arg1 = (wxDC *) 0 ;
13043 wxString *arg2 = 0 ;
13044 int *arg3 = (int *) 0 ;
13045 int *arg4 = (int *) 0 ;
13046 bool temp2 = False ;
13047 int temp3 ;
13048 int res3 = 0 ;
13049 int temp4 ;
13050 int res4 = 0 ;
13051 PyObject * obj0 = 0 ;
13052 PyObject * obj1 = 0 ;
13053 char *kwnames[] = {
13054 (char *) "self",(char *) "string", NULL
13055 };
13056
13057 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13058 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13062 {
13063 arg2 = wxString_in_helper(obj1);
13064 if (arg2 == NULL) SWIG_fail;
13065 temp2 = True;
13066 }
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13070
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 Py_INCREF(Py_None); resultobj = Py_None;
13075 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13076 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13077 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13078 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13079 {
13080 if (temp2)
13081 delete arg2;
13082 }
13083 return resultobj;
13084 fail:
13085 {
13086 if (temp2)
13087 delete arg2;
13088 }
13089 return NULL;
13090 }
13091
13092
13093 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13094 PyObject *resultobj;
13095 wxDC *arg1 = (wxDC *) 0 ;
13096 wxString *arg2 = 0 ;
13097 int *arg3 = (int *) 0 ;
13098 int *arg4 = (int *) 0 ;
13099 int *arg5 = (int *) 0 ;
13100 int *arg6 = (int *) 0 ;
13101 wxFont *arg7 = (wxFont *) NULL ;
13102 bool temp2 = False ;
13103 int temp3 ;
13104 int res3 = 0 ;
13105 int temp4 ;
13106 int res4 = 0 ;
13107 int temp5 ;
13108 int res5 = 0 ;
13109 int temp6 ;
13110 int res6 = 0 ;
13111 PyObject * obj0 = 0 ;
13112 PyObject * obj1 = 0 ;
13113 PyObject * obj2 = 0 ;
13114 char *kwnames[] = {
13115 (char *) "self",(char *) "string",(char *) "font", NULL
13116 };
13117
13118 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13119 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13120 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13121 arg6 = &temp6; res6 = SWIG_NEWOBJ;
13122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13125 {
13126 arg2 = wxString_in_helper(obj1);
13127 if (arg2 == NULL) SWIG_fail;
13128 temp2 = True;
13129 }
13130 if (obj2) {
13131 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13133 }
13134 {
13135 PyThreadState* __tstate = wxPyBeginAllowThreads();
13136 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13137
13138 wxPyEndAllowThreads(__tstate);
13139 if (PyErr_Occurred()) SWIG_fail;
13140 }
13141 Py_INCREF(Py_None); resultobj = Py_None;
13142 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13143 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13144 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13145 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13146 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13147 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13148 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13149 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
13150 {
13151 if (temp2)
13152 delete arg2;
13153 }
13154 return resultobj;
13155 fail:
13156 {
13157 if (temp2)
13158 delete arg2;
13159 }
13160 return NULL;
13161 }
13162
13163
13164 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13165 PyObject *resultobj;
13166 wxDC *arg1 = (wxDC *) 0 ;
13167 wxString *arg2 = 0 ;
13168 int *arg3 = (int *) 0 ;
13169 int *arg4 = (int *) 0 ;
13170 int *arg5 = (int *) 0 ;
13171 wxFont *arg6 = (wxFont *) NULL ;
13172 bool temp2 = False ;
13173 int temp3 ;
13174 int res3 = 0 ;
13175 int temp4 ;
13176 int res4 = 0 ;
13177 int temp5 ;
13178 int res5 = 0 ;
13179 PyObject * obj0 = 0 ;
13180 PyObject * obj1 = 0 ;
13181 PyObject * obj2 = 0 ;
13182 char *kwnames[] = {
13183 (char *) "self",(char *) "text",(char *) "font", NULL
13184 };
13185
13186 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13187 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13188 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13192 {
13193 arg2 = wxString_in_helper(obj1);
13194 if (arg2 == NULL) SWIG_fail;
13195 temp2 = True;
13196 }
13197 if (obj2) {
13198 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13200 }
13201 {
13202 PyThreadState* __tstate = wxPyBeginAllowThreads();
13203 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13204
13205 wxPyEndAllowThreads(__tstate);
13206 if (PyErr_Occurred()) SWIG_fail;
13207 }
13208 Py_INCREF(Py_None); resultobj = Py_None;
13209 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13210 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13211 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13212 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13213 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13214 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13215 {
13216 if (temp2)
13217 delete arg2;
13218 }
13219 return resultobj;
13220 fail:
13221 {
13222 if (temp2)
13223 delete arg2;
13224 }
13225 return NULL;
13226 }
13227
13228
13229 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
13230 PyObject *resultobj;
13231 wxDC *arg1 = (wxDC *) 0 ;
13232 wxString *arg2 = 0 ;
13233 wxArrayInt result;
13234 bool temp2 = False ;
13235 PyObject * obj0 = 0 ;
13236 PyObject * obj1 = 0 ;
13237 char *kwnames[] = {
13238 (char *) "self",(char *) "text", NULL
13239 };
13240
13241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13244 {
13245 arg2 = wxString_in_helper(obj1);
13246 if (arg2 == NULL) SWIG_fail;
13247 temp2 = True;
13248 }
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13252
13253 wxPyEndAllowThreads(__tstate);
13254 if (PyErr_Occurred()) SWIG_fail;
13255 }
13256 {
13257 resultobj = PyList_New(0);
13258 size_t idx;
13259 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13260 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13261 PyList_Append(resultobj, val);
13262 Py_DECREF(val);
13263 }
13264 }
13265 {
13266 if (temp2)
13267 delete arg2;
13268 }
13269 return resultobj;
13270 fail:
13271 {
13272 if (temp2)
13273 delete arg2;
13274 }
13275 return NULL;
13276 }
13277
13278
13279 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
13280 PyObject *resultobj;
13281 wxDC *arg1 = (wxDC *) 0 ;
13282 wxSize result;
13283 PyObject * obj0 = 0 ;
13284 char *kwnames[] = {
13285 (char *) "self", NULL
13286 };
13287
13288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (arg1)->GetSize();
13294
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 {
13299 wxSize * resultptr;
13300 resultptr = new wxSize((wxSize &) result);
13301 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13302 }
13303 return resultobj;
13304 fail:
13305 return NULL;
13306 }
13307
13308
13309 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxDC *arg1 = (wxDC *) 0 ;
13312 int *arg2 = (int *) 0 ;
13313 int *arg3 = (int *) 0 ;
13314 int temp2 ;
13315 int res2 = 0 ;
13316 int temp3 ;
13317 int res3 = 0 ;
13318 PyObject * obj0 = 0 ;
13319 char *kwnames[] = {
13320 (char *) "self", NULL
13321 };
13322
13323 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13324 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13328 {
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 (arg1)->GetSize(arg2,arg3);
13331
13332 wxPyEndAllowThreads(__tstate);
13333 if (PyErr_Occurred()) SWIG_fail;
13334 }
13335 Py_INCREF(Py_None); resultobj = Py_None;
13336 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13337 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13338 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13339 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13340 return resultobj;
13341 fail:
13342 return NULL;
13343 }
13344
13345
13346 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
13347 PyObject *resultobj;
13348 wxDC *arg1 = (wxDC *) 0 ;
13349 wxSize result;
13350 PyObject * obj0 = 0 ;
13351 char *kwnames[] = {
13352 (char *) "self", NULL
13353 };
13354
13355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13358 {
13359 PyThreadState* __tstate = wxPyBeginAllowThreads();
13360 result = ((wxDC const *)arg1)->GetSizeMM();
13361
13362 wxPyEndAllowThreads(__tstate);
13363 if (PyErr_Occurred()) SWIG_fail;
13364 }
13365 {
13366 wxSize * resultptr;
13367 resultptr = new wxSize((wxSize &) result);
13368 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13369 }
13370 return resultobj;
13371 fail:
13372 return NULL;
13373 }
13374
13375
13376 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13377 PyObject *resultobj;
13378 wxDC *arg1 = (wxDC *) 0 ;
13379 int *arg2 = (int *) 0 ;
13380 int *arg3 = (int *) 0 ;
13381 int temp2 ;
13382 int res2 = 0 ;
13383 int temp3 ;
13384 int res3 = 0 ;
13385 PyObject * obj0 = 0 ;
13386 char *kwnames[] = {
13387 (char *) "self", NULL
13388 };
13389
13390 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13391 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13395 {
13396 PyThreadState* __tstate = wxPyBeginAllowThreads();
13397 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13398
13399 wxPyEndAllowThreads(__tstate);
13400 if (PyErr_Occurred()) SWIG_fail;
13401 }
13402 Py_INCREF(Py_None); resultobj = Py_None;
13403 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13404 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13405 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13406 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13407 return resultobj;
13408 fail:
13409 return NULL;
13410 }
13411
13412
13413 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
13414 PyObject *resultobj;
13415 wxDC *arg1 = (wxDC *) 0 ;
13416 int arg2 ;
13417 int result;
13418 PyObject * obj0 = 0 ;
13419 PyObject * obj1 = 0 ;
13420 char *kwnames[] = {
13421 (char *) "self",(char *) "x", NULL
13422 };
13423
13424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13427 arg2 = (int)SWIG_As_int(obj1);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 {
13430 PyThreadState* __tstate = wxPyBeginAllowThreads();
13431 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13432
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 resultobj = SWIG_From_int((int)result);
13437 return resultobj;
13438 fail:
13439 return NULL;
13440 }
13441
13442
13443 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
13444 PyObject *resultobj;
13445 wxDC *arg1 = (wxDC *) 0 ;
13446 int arg2 ;
13447 int result;
13448 PyObject * obj0 = 0 ;
13449 PyObject * obj1 = 0 ;
13450 char *kwnames[] = {
13451 (char *) "self",(char *) "y", NULL
13452 };
13453
13454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13457 arg2 = (int)SWIG_As_int(obj1);
13458 if (PyErr_Occurred()) SWIG_fail;
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 resultobj = SWIG_From_int((int)result);
13467 return resultobj;
13468 fail:
13469 return NULL;
13470 }
13471
13472
13473 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13474 PyObject *resultobj;
13475 wxDC *arg1 = (wxDC *) 0 ;
13476 int arg2 ;
13477 int result;
13478 PyObject * obj0 = 0 ;
13479 PyObject * obj1 = 0 ;
13480 char *kwnames[] = {
13481 (char *) "self",(char *) "x", NULL
13482 };
13483
13484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13487 arg2 = (int)SWIG_As_int(obj1);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13492
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 resultobj = SWIG_From_int((int)result);
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj;
13505 wxDC *arg1 = (wxDC *) 0 ;
13506 int arg2 ;
13507 int result;
13508 PyObject * obj0 = 0 ;
13509 PyObject * obj1 = 0 ;
13510 char *kwnames[] = {
13511 (char *) "self",(char *) "y", NULL
13512 };
13513
13514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13517 arg2 = (int)SWIG_As_int(obj1);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13522
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 resultobj = SWIG_From_int((int)result);
13527 return resultobj;
13528 fail:
13529 return NULL;
13530 }
13531
13532
13533 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
13534 PyObject *resultobj;
13535 wxDC *arg1 = (wxDC *) 0 ;
13536 int arg2 ;
13537 int result;
13538 PyObject * obj0 = 0 ;
13539 PyObject * obj1 = 0 ;
13540 char *kwnames[] = {
13541 (char *) "self",(char *) "x", NULL
13542 };
13543
13544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13547 arg2 = (int)SWIG_As_int(obj1);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 {
13550 PyThreadState* __tstate = wxPyBeginAllowThreads();
13551 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13552
13553 wxPyEndAllowThreads(__tstate);
13554 if (PyErr_Occurred()) SWIG_fail;
13555 }
13556 resultobj = SWIG_From_int((int)result);
13557 return resultobj;
13558 fail:
13559 return NULL;
13560 }
13561
13562
13563 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
13564 PyObject *resultobj;
13565 wxDC *arg1 = (wxDC *) 0 ;
13566 int arg2 ;
13567 int result;
13568 PyObject * obj0 = 0 ;
13569 PyObject * obj1 = 0 ;
13570 char *kwnames[] = {
13571 (char *) "self",(char *) "y", NULL
13572 };
13573
13574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13577 arg2 = (int)SWIG_As_int(obj1);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13582
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = SWIG_From_int((int)result);
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj;
13595 wxDC *arg1 = (wxDC *) 0 ;
13596 int arg2 ;
13597 int result;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 char *kwnames[] = {
13601 (char *) "self",(char *) "x", NULL
13602 };
13603
13604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13607 arg2 = (int)SWIG_As_int(obj1);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13612
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_From_int((int)result);
13617 return resultobj;
13618 fail:
13619 return NULL;
13620 }
13621
13622
13623 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13624 PyObject *resultobj;
13625 wxDC *arg1 = (wxDC *) 0 ;
13626 int arg2 ;
13627 int result;
13628 PyObject * obj0 = 0 ;
13629 PyObject * obj1 = 0 ;
13630 char *kwnames[] = {
13631 (char *) "self",(char *) "y", NULL
13632 };
13633
13634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13637 arg2 = (int)SWIG_As_int(obj1);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 {
13640 PyThreadState* __tstate = wxPyBeginAllowThreads();
13641 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13642
13643 wxPyEndAllowThreads(__tstate);
13644 if (PyErr_Occurred()) SWIG_fail;
13645 }
13646 resultobj = SWIG_From_int((int)result);
13647 return resultobj;
13648 fail:
13649 return NULL;
13650 }
13651
13652
13653 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13654 PyObject *resultobj;
13655 wxDC *arg1 = (wxDC *) 0 ;
13656 bool result;
13657 PyObject * obj0 = 0 ;
13658 char *kwnames[] = {
13659 (char *) "self", NULL
13660 };
13661
13662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13665 {
13666 PyThreadState* __tstate = wxPyBeginAllowThreads();
13667 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13668
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 {
13673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13674 }
13675 return resultobj;
13676 fail:
13677 return NULL;
13678 }
13679
13680
13681 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13682 PyObject *resultobj;
13683 wxDC *arg1 = (wxDC *) 0 ;
13684 bool result;
13685 PyObject * obj0 = 0 ;
13686 char *kwnames[] = {
13687 (char *) "self", NULL
13688 };
13689
13690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13693 {
13694 PyThreadState* __tstate = wxPyBeginAllowThreads();
13695 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13696
13697 wxPyEndAllowThreads(__tstate);
13698 if (PyErr_Occurred()) SWIG_fail;
13699 }
13700 {
13701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13702 }
13703 return resultobj;
13704 fail:
13705 return NULL;
13706 }
13707
13708
13709 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
13710 PyObject *resultobj;
13711 wxDC *arg1 = (wxDC *) 0 ;
13712 int result;
13713 PyObject * obj0 = 0 ;
13714 char *kwnames[] = {
13715 (char *) "self", NULL
13716 };
13717
13718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13721 {
13722 PyThreadState* __tstate = wxPyBeginAllowThreads();
13723 result = (int)((wxDC const *)arg1)->GetDepth();
13724
13725 wxPyEndAllowThreads(__tstate);
13726 if (PyErr_Occurred()) SWIG_fail;
13727 }
13728 resultobj = SWIG_From_int((int)result);
13729 return resultobj;
13730 fail:
13731 return NULL;
13732 }
13733
13734
13735 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
13736 PyObject *resultobj;
13737 wxDC *arg1 = (wxDC *) 0 ;
13738 wxSize result;
13739 PyObject * obj0 = 0 ;
13740 char *kwnames[] = {
13741 (char *) "self", NULL
13742 };
13743
13744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13747 {
13748 PyThreadState* __tstate = wxPyBeginAllowThreads();
13749 result = ((wxDC const *)arg1)->GetPPI();
13750
13751 wxPyEndAllowThreads(__tstate);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 {
13755 wxSize * resultptr;
13756 resultptr = new wxSize((wxSize &) result);
13757 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13758 }
13759 return resultobj;
13760 fail:
13761 return NULL;
13762 }
13763
13764
13765 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
13766 PyObject *resultobj;
13767 wxDC *arg1 = (wxDC *) 0 ;
13768 bool result;
13769 PyObject * obj0 = 0 ;
13770 char *kwnames[] = {
13771 (char *) "self", NULL
13772 };
13773
13774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13777 {
13778 PyThreadState* __tstate = wxPyBeginAllowThreads();
13779 result = (bool)((wxDC const *)arg1)->Ok();
13780
13781 wxPyEndAllowThreads(__tstate);
13782 if (PyErr_Occurred()) SWIG_fail;
13783 }
13784 {
13785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13786 }
13787 return resultobj;
13788 fail:
13789 return NULL;
13790 }
13791
13792
13793 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13794 PyObject *resultobj;
13795 wxDC *arg1 = (wxDC *) 0 ;
13796 int result;
13797 PyObject * obj0 = 0 ;
13798 char *kwnames[] = {
13799 (char *) "self", NULL
13800 };
13801
13802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13805 {
13806 PyThreadState* __tstate = wxPyBeginAllowThreads();
13807 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13808
13809 wxPyEndAllowThreads(__tstate);
13810 if (PyErr_Occurred()) SWIG_fail;
13811 }
13812 resultobj = SWIG_From_int((int)result);
13813 return resultobj;
13814 fail:
13815 return NULL;
13816 }
13817
13818
13819 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13820 PyObject *resultobj;
13821 wxDC *arg1 = (wxDC *) 0 ;
13822 wxBrush *result;
13823 PyObject * obj0 = 0 ;
13824 char *kwnames[] = {
13825 (char *) "self", NULL
13826 };
13827
13828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 {
13834 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13835 result = (wxBrush *) &_result_ref;
13836 }
13837
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 {
13842 wxBrush* resultptr = new wxBrush(*result);
13843 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13844 }
13845 return resultobj;
13846 fail:
13847 return NULL;
13848 }
13849
13850
13851 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
13852 PyObject *resultobj;
13853 wxDC *arg1 = (wxDC *) 0 ;
13854 wxBrush *result;
13855 PyObject * obj0 = 0 ;
13856 char *kwnames[] = {
13857 (char *) "self", NULL
13858 };
13859
13860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 {
13866 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13867 result = (wxBrush *) &_result_ref;
13868 }
13869
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 {
13874 wxBrush* resultptr = new wxBrush(*result);
13875 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13876 }
13877 return resultobj;
13878 fail:
13879 return NULL;
13880 }
13881
13882
13883 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
13884 PyObject *resultobj;
13885 wxDC *arg1 = (wxDC *) 0 ;
13886 wxFont *result;
13887 PyObject * obj0 = 0 ;
13888 char *kwnames[] = {
13889 (char *) "self", NULL
13890 };
13891
13892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 {
13898 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13899 result = (wxFont *) &_result_ref;
13900 }
13901
13902 wxPyEndAllowThreads(__tstate);
13903 if (PyErr_Occurred()) SWIG_fail;
13904 }
13905 {
13906 wxFont* resultptr = new wxFont(*result);
13907 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13908 }
13909 return resultobj;
13910 fail:
13911 return NULL;
13912 }
13913
13914
13915 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
13916 PyObject *resultobj;
13917 wxDC *arg1 = (wxDC *) 0 ;
13918 wxPen *result;
13919 PyObject * obj0 = 0 ;
13920 char *kwnames[] = {
13921 (char *) "self", NULL
13922 };
13923
13924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13927 {
13928 PyThreadState* __tstate = wxPyBeginAllowThreads();
13929 {
13930 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13931 result = (wxPen *) &_result_ref;
13932 }
13933
13934 wxPyEndAllowThreads(__tstate);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 {
13938 wxPen* resultptr = new wxPen(*result);
13939 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13940 }
13941 return resultobj;
13942 fail:
13943 return NULL;
13944 }
13945
13946
13947 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj;
13949 wxDC *arg1 = (wxDC *) 0 ;
13950 wxColour *result;
13951 PyObject * obj0 = 0 ;
13952 char *kwnames[] = {
13953 (char *) "self", NULL
13954 };
13955
13956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13959 {
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 {
13962 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13963 result = (wxColour *) &_result_ref;
13964 }
13965
13966 wxPyEndAllowThreads(__tstate);
13967 if (PyErr_Occurred()) SWIG_fail;
13968 }
13969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13970 return resultobj;
13971 fail:
13972 return NULL;
13973 }
13974
13975
13976 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
13977 PyObject *resultobj;
13978 wxDC *arg1 = (wxDC *) 0 ;
13979 wxColour *result;
13980 PyObject * obj0 = 0 ;
13981 char *kwnames[] = {
13982 (char *) "self", NULL
13983 };
13984
13985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13988 {
13989 PyThreadState* __tstate = wxPyBeginAllowThreads();
13990 {
13991 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13992 result = (wxColour *) &_result_ref;
13993 }
13994
13995 wxPyEndAllowThreads(__tstate);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13999 return resultobj;
14000 fail:
14001 return NULL;
14002 }
14003
14004
14005 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14006 PyObject *resultobj;
14007 wxDC *arg1 = (wxDC *) 0 ;
14008 wxColour *arg2 = 0 ;
14009 wxColour temp2 ;
14010 PyObject * obj0 = 0 ;
14011 PyObject * obj1 = 0 ;
14012 char *kwnames[] = {
14013 (char *) "self",(char *) "colour", NULL
14014 };
14015
14016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14019 {
14020 arg2 = &temp2;
14021 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14022 }
14023 {
14024 PyThreadState* __tstate = wxPyBeginAllowThreads();
14025 (arg1)->SetTextForeground((wxColour const &)*arg2);
14026
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 Py_INCREF(Py_None); resultobj = Py_None;
14031 return resultobj;
14032 fail:
14033 return NULL;
14034 }
14035
14036
14037 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14038 PyObject *resultobj;
14039 wxDC *arg1 = (wxDC *) 0 ;
14040 wxColour *arg2 = 0 ;
14041 wxColour temp2 ;
14042 PyObject * obj0 = 0 ;
14043 PyObject * obj1 = 0 ;
14044 char *kwnames[] = {
14045 (char *) "self",(char *) "colour", NULL
14046 };
14047
14048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14051 {
14052 arg2 = &temp2;
14053 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14054 }
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 (arg1)->SetTextBackground((wxColour const &)*arg2);
14058
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 Py_INCREF(Py_None); resultobj = Py_None;
14063 return resultobj;
14064 fail:
14065 return NULL;
14066 }
14067
14068
14069 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14070 PyObject *resultobj;
14071 wxDC *arg1 = (wxDC *) 0 ;
14072 int result;
14073 PyObject * obj0 = 0 ;
14074 char *kwnames[] = {
14075 (char *) "self", NULL
14076 };
14077
14078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14081 {
14082 PyThreadState* __tstate = wxPyBeginAllowThreads();
14083 result = (int)((wxDC const *)arg1)->GetMapMode();
14084
14085 wxPyEndAllowThreads(__tstate);
14086 if (PyErr_Occurred()) SWIG_fail;
14087 }
14088 resultobj = SWIG_From_int((int)result);
14089 return resultobj;
14090 fail:
14091 return NULL;
14092 }
14093
14094
14095 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14096 PyObject *resultobj;
14097 wxDC *arg1 = (wxDC *) 0 ;
14098 int arg2 ;
14099 PyObject * obj0 = 0 ;
14100 PyObject * obj1 = 0 ;
14101 char *kwnames[] = {
14102 (char *) "self",(char *) "mode", NULL
14103 };
14104
14105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14108 arg2 = (int)SWIG_As_int(obj1);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 {
14111 PyThreadState* __tstate = wxPyBeginAllowThreads();
14112 (arg1)->SetMapMode(arg2);
14113
14114 wxPyEndAllowThreads(__tstate);
14115 if (PyErr_Occurred()) SWIG_fail;
14116 }
14117 Py_INCREF(Py_None); resultobj = Py_None;
14118 return resultobj;
14119 fail:
14120 return NULL;
14121 }
14122
14123
14124 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14125 PyObject *resultobj;
14126 wxDC *arg1 = (wxDC *) 0 ;
14127 double *arg2 = (double *) 0 ;
14128 double *arg3 = (double *) 0 ;
14129 double temp2 ;
14130 int res2 = 0 ;
14131 double temp3 ;
14132 int res3 = 0 ;
14133 PyObject * obj0 = 0 ;
14134 char *kwnames[] = {
14135 (char *) "self", NULL
14136 };
14137
14138 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14139 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14143 {
14144 PyThreadState* __tstate = wxPyBeginAllowThreads();
14145 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14146
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 Py_INCREF(Py_None); resultobj = Py_None;
14151 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14152 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14153 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14154 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14155 return resultobj;
14156 fail:
14157 return NULL;
14158 }
14159
14160
14161 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14162 PyObject *resultobj;
14163 wxDC *arg1 = (wxDC *) 0 ;
14164 double arg2 ;
14165 double arg3 ;
14166 PyObject * obj0 = 0 ;
14167 PyObject * obj1 = 0 ;
14168 PyObject * obj2 = 0 ;
14169 char *kwnames[] = {
14170 (char *) "self",(char *) "x",(char *) "y", NULL
14171 };
14172
14173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14176 arg2 = (double)SWIG_As_double(obj1);
14177 if (PyErr_Occurred()) SWIG_fail;
14178 arg3 = (double)SWIG_As_double(obj2);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 {
14181 PyThreadState* __tstate = wxPyBeginAllowThreads();
14182 (arg1)->SetUserScale(arg2,arg3);
14183
14184 wxPyEndAllowThreads(__tstate);
14185 if (PyErr_Occurred()) SWIG_fail;
14186 }
14187 Py_INCREF(Py_None); resultobj = Py_None;
14188 return resultobj;
14189 fail:
14190 return NULL;
14191 }
14192
14193
14194 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14195 PyObject *resultobj;
14196 wxDC *arg1 = (wxDC *) 0 ;
14197 double *arg2 = (double *) 0 ;
14198 double *arg3 = (double *) 0 ;
14199 double temp2 ;
14200 int res2 = 0 ;
14201 double temp3 ;
14202 int res3 = 0 ;
14203 PyObject * obj0 = 0 ;
14204 char *kwnames[] = {
14205 (char *) "self", NULL
14206 };
14207
14208 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14209 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14213 {
14214 PyThreadState* __tstate = wxPyBeginAllowThreads();
14215 (arg1)->GetLogicalScale(arg2,arg3);
14216
14217 wxPyEndAllowThreads(__tstate);
14218 if (PyErr_Occurred()) SWIG_fail;
14219 }
14220 Py_INCREF(Py_None); resultobj = Py_None;
14221 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14222 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14223 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14224 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14225 return resultobj;
14226 fail:
14227 return NULL;
14228 }
14229
14230
14231 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14232 PyObject *resultobj;
14233 wxDC *arg1 = (wxDC *) 0 ;
14234 double arg2 ;
14235 double arg3 ;
14236 PyObject * obj0 = 0 ;
14237 PyObject * obj1 = 0 ;
14238 PyObject * obj2 = 0 ;
14239 char *kwnames[] = {
14240 (char *) "self",(char *) "x",(char *) "y", NULL
14241 };
14242
14243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14246 arg2 = (double)SWIG_As_double(obj1);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 arg3 = (double)SWIG_As_double(obj2);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 {
14251 PyThreadState* __tstate = wxPyBeginAllowThreads();
14252 (arg1)->SetLogicalScale(arg2,arg3);
14253
14254 wxPyEndAllowThreads(__tstate);
14255 if (PyErr_Occurred()) SWIG_fail;
14256 }
14257 Py_INCREF(Py_None); resultobj = Py_None;
14258 return resultobj;
14259 fail:
14260 return NULL;
14261 }
14262
14263
14264 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14265 PyObject *resultobj;
14266 wxDC *arg1 = (wxDC *) 0 ;
14267 wxPoint result;
14268 PyObject * obj0 = 0 ;
14269 char *kwnames[] = {
14270 (char *) "self", NULL
14271 };
14272
14273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
14278 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14279
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
14283 {
14284 wxPoint * resultptr;
14285 resultptr = new wxPoint((wxPoint &) result);
14286 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14287 }
14288 return resultobj;
14289 fail:
14290 return NULL;
14291 }
14292
14293
14294 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14295 PyObject *resultobj;
14296 wxDC *arg1 = (wxDC *) 0 ;
14297 int *arg2 = (int *) 0 ;
14298 int *arg3 = (int *) 0 ;
14299 int temp2 ;
14300 int res2 = 0 ;
14301 int temp3 ;
14302 int res3 = 0 ;
14303 PyObject * obj0 = 0 ;
14304 char *kwnames[] = {
14305 (char *) "self", NULL
14306 };
14307
14308 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14309 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14313 {
14314 PyThreadState* __tstate = wxPyBeginAllowThreads();
14315 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14316
14317 wxPyEndAllowThreads(__tstate);
14318 if (PyErr_Occurred()) SWIG_fail;
14319 }
14320 Py_INCREF(Py_None); resultobj = Py_None;
14321 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14322 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14323 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14324 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14325 return resultobj;
14326 fail:
14327 return NULL;
14328 }
14329
14330
14331 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14332 PyObject *resultobj;
14333 wxDC *arg1 = (wxDC *) 0 ;
14334 int arg2 ;
14335 int arg3 ;
14336 PyObject * obj0 = 0 ;
14337 PyObject * obj1 = 0 ;
14338 PyObject * obj2 = 0 ;
14339 char *kwnames[] = {
14340 (char *) "self",(char *) "x",(char *) "y", NULL
14341 };
14342
14343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14346 arg2 = (int)SWIG_As_int(obj1);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 arg3 = (int)SWIG_As_int(obj2);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 {
14351 PyThreadState* __tstate = wxPyBeginAllowThreads();
14352 (arg1)->SetLogicalOrigin(arg2,arg3);
14353
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 Py_INCREF(Py_None); resultobj = Py_None;
14358 return resultobj;
14359 fail:
14360 return NULL;
14361 }
14362
14363
14364 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14365 PyObject *resultobj;
14366 wxDC *arg1 = (wxDC *) 0 ;
14367 wxPoint *arg2 = 0 ;
14368 wxPoint temp2 ;
14369 PyObject * obj0 = 0 ;
14370 PyObject * obj1 = 0 ;
14371 char *kwnames[] = {
14372 (char *) "self",(char *) "point", NULL
14373 };
14374
14375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14378 {
14379 arg2 = &temp2;
14380 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14381 }
14382 {
14383 PyThreadState* __tstate = wxPyBeginAllowThreads();
14384 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14385
14386 wxPyEndAllowThreads(__tstate);
14387 if (PyErr_Occurred()) SWIG_fail;
14388 }
14389 Py_INCREF(Py_None); resultobj = Py_None;
14390 return resultobj;
14391 fail:
14392 return NULL;
14393 }
14394
14395
14396 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14397 PyObject *resultobj;
14398 wxDC *arg1 = (wxDC *) 0 ;
14399 wxPoint result;
14400 PyObject * obj0 = 0 ;
14401 char *kwnames[] = {
14402 (char *) "self", NULL
14403 };
14404
14405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14408 {
14409 PyThreadState* __tstate = wxPyBeginAllowThreads();
14410 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14411
14412 wxPyEndAllowThreads(__tstate);
14413 if (PyErr_Occurred()) SWIG_fail;
14414 }
14415 {
14416 wxPoint * resultptr;
14417 resultptr = new wxPoint((wxPoint &) result);
14418 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14419 }
14420 return resultobj;
14421 fail:
14422 return NULL;
14423 }
14424
14425
14426 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14427 PyObject *resultobj;
14428 wxDC *arg1 = (wxDC *) 0 ;
14429 int *arg2 = (int *) 0 ;
14430 int *arg3 = (int *) 0 ;
14431 int temp2 ;
14432 int res2 = 0 ;
14433 int temp3 ;
14434 int res3 = 0 ;
14435 PyObject * obj0 = 0 ;
14436 char *kwnames[] = {
14437 (char *) "self", NULL
14438 };
14439
14440 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14441 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14445 {
14446 PyThreadState* __tstate = wxPyBeginAllowThreads();
14447 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14448
14449 wxPyEndAllowThreads(__tstate);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 }
14452 Py_INCREF(Py_None); resultobj = Py_None;
14453 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14454 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14455 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14456 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14457 return resultobj;
14458 fail:
14459 return NULL;
14460 }
14461
14462
14463 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14464 PyObject *resultobj;
14465 wxDC *arg1 = (wxDC *) 0 ;
14466 int arg2 ;
14467 int arg3 ;
14468 PyObject * obj0 = 0 ;
14469 PyObject * obj1 = 0 ;
14470 PyObject * obj2 = 0 ;
14471 char *kwnames[] = {
14472 (char *) "self",(char *) "x",(char *) "y", NULL
14473 };
14474
14475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14478 arg2 = (int)SWIG_As_int(obj1);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 arg3 = (int)SWIG_As_int(obj2);
14481 if (PyErr_Occurred()) SWIG_fail;
14482 {
14483 PyThreadState* __tstate = wxPyBeginAllowThreads();
14484 (arg1)->SetDeviceOrigin(arg2,arg3);
14485
14486 wxPyEndAllowThreads(__tstate);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 }
14489 Py_INCREF(Py_None); resultobj = Py_None;
14490 return resultobj;
14491 fail:
14492 return NULL;
14493 }
14494
14495
14496 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14497 PyObject *resultobj;
14498 wxDC *arg1 = (wxDC *) 0 ;
14499 wxPoint *arg2 = 0 ;
14500 wxPoint temp2 ;
14501 PyObject * obj0 = 0 ;
14502 PyObject * obj1 = 0 ;
14503 char *kwnames[] = {
14504 (char *) "self",(char *) "point", NULL
14505 };
14506
14507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14510 {
14511 arg2 = &temp2;
14512 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14513 }
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14517
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 Py_INCREF(Py_None); resultobj = Py_None;
14522 return resultobj;
14523 fail:
14524 return NULL;
14525 }
14526
14527
14528 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
14529 PyObject *resultobj;
14530 wxDC *arg1 = (wxDC *) 0 ;
14531 bool arg2 ;
14532 bool arg3 ;
14533 PyObject * obj0 = 0 ;
14534 PyObject * obj1 = 0 ;
14535 PyObject * obj2 = 0 ;
14536 char *kwnames[] = {
14537 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14538 };
14539
14540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14543 arg2 = (bool)SWIG_As_bool(obj1);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 arg3 = (bool)SWIG_As_bool(obj2);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 (arg1)->SetAxisOrientation(arg2,arg3);
14550
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 Py_INCREF(Py_None); resultobj = Py_None;
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj;
14563 wxDC *arg1 = (wxDC *) 0 ;
14564 int result;
14565 PyObject * obj0 = 0 ;
14566 char *kwnames[] = {
14567 (char *) "self", NULL
14568 };
14569
14570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14573 {
14574 PyThreadState* __tstate = wxPyBeginAllowThreads();
14575 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14576
14577 wxPyEndAllowThreads(__tstate);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 resultobj = SWIG_From_int((int)result);
14581 return resultobj;
14582 fail:
14583 return NULL;
14584 }
14585
14586
14587 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14588 PyObject *resultobj;
14589 wxDC *arg1 = (wxDC *) 0 ;
14590 int arg2 ;
14591 PyObject * obj0 = 0 ;
14592 PyObject * obj1 = 0 ;
14593 char *kwnames[] = {
14594 (char *) "self",(char *) "function", NULL
14595 };
14596
14597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14600 arg2 = (int)SWIG_As_int(obj1);
14601 if (PyErr_Occurred()) SWIG_fail;
14602 {
14603 PyThreadState* __tstate = wxPyBeginAllowThreads();
14604 (arg1)->SetLogicalFunction(arg2);
14605
14606 wxPyEndAllowThreads(__tstate);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 }
14609 Py_INCREF(Py_None); resultobj = Py_None;
14610 return resultobj;
14611 fail:
14612 return NULL;
14613 }
14614
14615
14616 static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14617 PyObject *resultobj;
14618 wxDC *arg1 = (wxDC *) 0 ;
14619 bool arg2 ;
14620 PyObject * obj0 = 0 ;
14621 PyObject * obj1 = 0 ;
14622 char *kwnames[] = {
14623 (char *) "self",(char *) "optimize", NULL
14624 };
14625
14626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14629 arg2 = (bool)SWIG_As_bool(obj1);
14630 if (PyErr_Occurred()) SWIG_fail;
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 (arg1)->SetOptimization(arg2);
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 Py_INCREF(Py_None); resultobj = Py_None;
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj;
14647 wxDC *arg1 = (wxDC *) 0 ;
14648 bool result;
14649 PyObject * obj0 = 0 ;
14650 char *kwnames[] = {
14651 (char *) "self", NULL
14652 };
14653
14654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14657 {
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 result = (bool)(arg1)->GetOptimization();
14660
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 {
14665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14666 }
14667 return resultobj;
14668 fail:
14669 return NULL;
14670 }
14671
14672
14673 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14674 PyObject *resultobj;
14675 wxDC *arg1 = (wxDC *) 0 ;
14676 int arg2 ;
14677 int arg3 ;
14678 PyObject * obj0 = 0 ;
14679 PyObject * obj1 = 0 ;
14680 PyObject * obj2 = 0 ;
14681 char *kwnames[] = {
14682 (char *) "self",(char *) "x",(char *) "y", NULL
14683 };
14684
14685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14688 arg2 = (int)SWIG_As_int(obj1);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 arg3 = (int)SWIG_As_int(obj2);
14691 if (PyErr_Occurred()) SWIG_fail;
14692 {
14693 PyThreadState* __tstate = wxPyBeginAllowThreads();
14694 (arg1)->CalcBoundingBox(arg2,arg3);
14695
14696 wxPyEndAllowThreads(__tstate);
14697 if (PyErr_Occurred()) SWIG_fail;
14698 }
14699 Py_INCREF(Py_None); resultobj = Py_None;
14700 return resultobj;
14701 fail:
14702 return NULL;
14703 }
14704
14705
14706 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14707 PyObject *resultobj;
14708 wxDC *arg1 = (wxDC *) 0 ;
14709 wxPoint *arg2 = 0 ;
14710 wxPoint temp2 ;
14711 PyObject * obj0 = 0 ;
14712 PyObject * obj1 = 0 ;
14713 char *kwnames[] = {
14714 (char *) "self",(char *) "point", NULL
14715 };
14716
14717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14720 {
14721 arg2 = &temp2;
14722 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14723 }
14724 {
14725 PyThreadState* __tstate = wxPyBeginAllowThreads();
14726 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14727
14728 wxPyEndAllowThreads(__tstate);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 }
14731 Py_INCREF(Py_None); resultobj = Py_None;
14732 return resultobj;
14733 fail:
14734 return NULL;
14735 }
14736
14737
14738 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14739 PyObject *resultobj;
14740 wxDC *arg1 = (wxDC *) 0 ;
14741 PyObject * obj0 = 0 ;
14742 char *kwnames[] = {
14743 (char *) "self", NULL
14744 };
14745
14746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 (arg1)->ResetBoundingBox();
14752
14753 wxPyEndAllowThreads(__tstate);
14754 if (PyErr_Occurred()) SWIG_fail;
14755 }
14756 Py_INCREF(Py_None); resultobj = Py_None;
14757 return resultobj;
14758 fail:
14759 return NULL;
14760 }
14761
14762
14763 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
14764 PyObject *resultobj;
14765 wxDC *arg1 = (wxDC *) 0 ;
14766 int result;
14767 PyObject * obj0 = 0 ;
14768 char *kwnames[] = {
14769 (char *) "self", NULL
14770 };
14771
14772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14775 {
14776 PyThreadState* __tstate = wxPyBeginAllowThreads();
14777 result = (int)((wxDC const *)arg1)->MinX();
14778
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = SWIG_From_int((int)result);
14783 return resultobj;
14784 fail:
14785 return NULL;
14786 }
14787
14788
14789 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj;
14791 wxDC *arg1 = (wxDC *) 0 ;
14792 int result;
14793 PyObject * obj0 = 0 ;
14794 char *kwnames[] = {
14795 (char *) "self", NULL
14796 };
14797
14798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14801 {
14802 PyThreadState* __tstate = wxPyBeginAllowThreads();
14803 result = (int)((wxDC const *)arg1)->MaxX();
14804
14805 wxPyEndAllowThreads(__tstate);
14806 if (PyErr_Occurred()) SWIG_fail;
14807 }
14808 resultobj = SWIG_From_int((int)result);
14809 return resultobj;
14810 fail:
14811 return NULL;
14812 }
14813
14814
14815 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
14816 PyObject *resultobj;
14817 wxDC *arg1 = (wxDC *) 0 ;
14818 int result;
14819 PyObject * obj0 = 0 ;
14820 char *kwnames[] = {
14821 (char *) "self", NULL
14822 };
14823
14824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 result = (int)((wxDC const *)arg1)->MinY();
14830
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 resultobj = SWIG_From_int((int)result);
14835 return resultobj;
14836 fail:
14837 return NULL;
14838 }
14839
14840
14841 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
14842 PyObject *resultobj;
14843 wxDC *arg1 = (wxDC *) 0 ;
14844 int result;
14845 PyObject * obj0 = 0 ;
14846 char *kwnames[] = {
14847 (char *) "self", NULL
14848 };
14849
14850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14853 {
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 result = (int)((wxDC const *)arg1)->MaxY();
14856
14857 wxPyEndAllowThreads(__tstate);
14858 if (PyErr_Occurred()) SWIG_fail;
14859 }
14860 resultobj = SWIG_From_int((int)result);
14861 return resultobj;
14862 fail:
14863 return NULL;
14864 }
14865
14866
14867 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14868 PyObject *resultobj;
14869 wxDC *arg1 = (wxDC *) 0 ;
14870 int *arg2 = (int *) 0 ;
14871 int *arg3 = (int *) 0 ;
14872 int *arg4 = (int *) 0 ;
14873 int *arg5 = (int *) 0 ;
14874 int temp2 ;
14875 int res2 = 0 ;
14876 int temp3 ;
14877 int res3 = 0 ;
14878 int temp4 ;
14879 int res4 = 0 ;
14880 int temp5 ;
14881 int res5 = 0 ;
14882 PyObject * obj0 = 0 ;
14883 char *kwnames[] = {
14884 (char *) "self", NULL
14885 };
14886
14887 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14888 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14889 arg4 = &temp4; res4 = SWIG_NEWOBJ;
14890 arg5 = &temp5; res5 = SWIG_NEWOBJ;
14891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14897
14898 wxPyEndAllowThreads(__tstate);
14899 if (PyErr_Occurred()) SWIG_fail;
14900 }
14901 Py_INCREF(Py_None); resultobj = Py_None;
14902 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14903 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14904 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14905 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14906 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
14907 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
14908 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
14909 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
14910 return resultobj;
14911 fail:
14912 return NULL;
14913 }
14914
14915
14916 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
14917 PyObject *resultobj;
14918 wxDC *arg1 = (wxDC *) 0 ;
14919 PyObject *arg2 = (PyObject *) 0 ;
14920 PyObject *arg3 = (PyObject *) 0 ;
14921 PyObject *arg4 = (PyObject *) 0 ;
14922 PyObject *result;
14923 PyObject * obj0 = 0 ;
14924 PyObject * obj1 = 0 ;
14925 PyObject * obj2 = 0 ;
14926 PyObject * obj3 = 0 ;
14927 char *kwnames[] = {
14928 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14929 };
14930
14931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14934 arg2 = obj1;
14935 arg3 = obj2;
14936 arg4 = obj3;
14937 {
14938 PyThreadState* __tstate = wxPyBeginAllowThreads();
14939 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14940
14941 wxPyEndAllowThreads(__tstate);
14942 if (PyErr_Occurred()) SWIG_fail;
14943 }
14944 resultobj = result;
14945 return resultobj;
14946 fail:
14947 return NULL;
14948 }
14949
14950
14951 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
14952 PyObject *resultobj;
14953 wxDC *arg1 = (wxDC *) 0 ;
14954 PyObject *arg2 = (PyObject *) 0 ;
14955 PyObject *arg3 = (PyObject *) 0 ;
14956 PyObject *arg4 = (PyObject *) 0 ;
14957 PyObject *result;
14958 PyObject * obj0 = 0 ;
14959 PyObject * obj1 = 0 ;
14960 PyObject * obj2 = 0 ;
14961 PyObject * obj3 = 0 ;
14962 char *kwnames[] = {
14963 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14964 };
14965
14966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14969 arg2 = obj1;
14970 arg3 = obj2;
14971 arg4 = obj3;
14972 {
14973 PyThreadState* __tstate = wxPyBeginAllowThreads();
14974 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14975
14976 wxPyEndAllowThreads(__tstate);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 }
14979 resultobj = result;
14980 return resultobj;
14981 fail:
14982 return NULL;
14983 }
14984
14985
14986 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
14987 PyObject *resultobj;
14988 wxDC *arg1 = (wxDC *) 0 ;
14989 PyObject *arg2 = (PyObject *) 0 ;
14990 PyObject *arg3 = (PyObject *) 0 ;
14991 PyObject *arg4 = (PyObject *) 0 ;
14992 PyObject *result;
14993 PyObject * obj0 = 0 ;
14994 PyObject * obj1 = 0 ;
14995 PyObject * obj2 = 0 ;
14996 PyObject * obj3 = 0 ;
14997 char *kwnames[] = {
14998 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14999 };
15000
15001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15004 arg2 = obj1;
15005 arg3 = obj2;
15006 arg4 = obj3;
15007 {
15008 PyThreadState* __tstate = wxPyBeginAllowThreads();
15009 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15010
15011 wxPyEndAllowThreads(__tstate);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 }
15014 resultobj = result;
15015 return resultobj;
15016 fail:
15017 return NULL;
15018 }
15019
15020
15021 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
15022 PyObject *resultobj;
15023 wxDC *arg1 = (wxDC *) 0 ;
15024 PyObject *arg2 = (PyObject *) 0 ;
15025 PyObject *arg3 = (PyObject *) 0 ;
15026 PyObject *arg4 = (PyObject *) 0 ;
15027 PyObject *result;
15028 PyObject * obj0 = 0 ;
15029 PyObject * obj1 = 0 ;
15030 PyObject * obj2 = 0 ;
15031 PyObject * obj3 = 0 ;
15032 char *kwnames[] = {
15033 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15034 };
15035
15036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15039 arg2 = obj1;
15040 arg3 = obj2;
15041 arg4 = obj3;
15042 {
15043 PyThreadState* __tstate = wxPyBeginAllowThreads();
15044 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15045
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 resultobj = result;
15050 return resultobj;
15051 fail:
15052 return NULL;
15053 }
15054
15055
15056 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
15057 PyObject *resultobj;
15058 wxDC *arg1 = (wxDC *) 0 ;
15059 PyObject *arg2 = (PyObject *) 0 ;
15060 PyObject *arg3 = (PyObject *) 0 ;
15061 PyObject *arg4 = (PyObject *) 0 ;
15062 PyObject *result;
15063 PyObject * obj0 = 0 ;
15064 PyObject * obj1 = 0 ;
15065 PyObject * obj2 = 0 ;
15066 PyObject * obj3 = 0 ;
15067 char *kwnames[] = {
15068 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15069 };
15070
15071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15074 arg2 = obj1;
15075 arg3 = obj2;
15076 arg4 = obj3;
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15080
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 resultobj = result;
15085 return resultobj;
15086 fail:
15087 return NULL;
15088 }
15089
15090
15091 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
15092 PyObject *resultobj;
15093 wxDC *arg1 = (wxDC *) 0 ;
15094 PyObject *arg2 = (PyObject *) 0 ;
15095 PyObject *arg3 = (PyObject *) 0 ;
15096 PyObject *arg4 = (PyObject *) 0 ;
15097 PyObject *arg5 = (PyObject *) 0 ;
15098 PyObject *result;
15099 PyObject * obj0 = 0 ;
15100 PyObject * obj1 = 0 ;
15101 PyObject * obj2 = 0 ;
15102 PyObject * obj3 = 0 ;
15103 PyObject * obj4 = 0 ;
15104 char *kwnames[] = {
15105 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15106 };
15107
15108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15111 arg2 = obj1;
15112 arg3 = obj2;
15113 arg4 = obj3;
15114 arg5 = obj4;
15115 {
15116 PyThreadState* __tstate = wxPyBeginAllowThreads();
15117 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15118
15119 wxPyEndAllowThreads(__tstate);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 resultobj = result;
15123 return resultobj;
15124 fail:
15125 return NULL;
15126 }
15127
15128
15129 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
15130 PyObject *obj;
15131 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15132 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15133 Py_INCREF(obj);
15134 return Py_BuildValue((char *)"");
15135 }
15136 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
15137 PyObject *resultobj;
15138 wxMemoryDC *result;
15139 char *kwnames[] = {
15140 NULL
15141 };
15142
15143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15144 {
15145 if (!wxPyCheckForApp()) SWIG_fail;
15146 PyThreadState* __tstate = wxPyBeginAllowThreads();
15147 result = (wxMemoryDC *)new wxMemoryDC();
15148
15149 wxPyEndAllowThreads(__tstate);
15150 if (PyErr_Occurred()) SWIG_fail;
15151 }
15152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15153 return resultobj;
15154 fail:
15155 return NULL;
15156 }
15157
15158
15159 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
15160 PyObject *resultobj;
15161 wxDC *arg1 = (wxDC *) 0 ;
15162 wxMemoryDC *result;
15163 PyObject * obj0 = 0 ;
15164 char *kwnames[] = {
15165 (char *) "oldDC", NULL
15166 };
15167
15168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15171 {
15172 if (!wxPyCheckForApp()) SWIG_fail;
15173 PyThreadState* __tstate = wxPyBeginAllowThreads();
15174 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15175
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15180 return resultobj;
15181 fail:
15182 return NULL;
15183 }
15184
15185
15186 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
15187 PyObject *resultobj;
15188 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15189 wxBitmap *arg2 = 0 ;
15190 PyObject * obj0 = 0 ;
15191 PyObject * obj1 = 0 ;
15192 char *kwnames[] = {
15193 (char *) "self",(char *) "bitmap", NULL
15194 };
15195
15196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15199 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15200 SWIG_POINTER_EXCEPTION | 0)) == -1)
15201 SWIG_fail;
15202 if (arg2 == NULL) {
15203 PyErr_SetString(PyExc_TypeError,"null reference");
15204 SWIG_fail;
15205 }
15206 {
15207 PyThreadState* __tstate = wxPyBeginAllowThreads();
15208 (arg1)->SelectObject((wxBitmap const &)*arg2);
15209
15210 wxPyEndAllowThreads(__tstate);
15211 if (PyErr_Occurred()) SWIG_fail;
15212 }
15213 Py_INCREF(Py_None); resultobj = Py_None;
15214 return resultobj;
15215 fail:
15216 return NULL;
15217 }
15218
15219
15220 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
15221 PyObject *obj;
15222 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15223 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15224 Py_INCREF(obj);
15225 return Py_BuildValue((char *)"");
15226 }
15227 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
15228 PyObject *resultobj;
15229 wxDC *arg1 = (wxDC *) 0 ;
15230 wxBitmap *arg2 = 0 ;
15231 wxBufferedDC *result;
15232 PyObject * obj0 = 0 ;
15233 PyObject * obj1 = 0 ;
15234
15235 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15238 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15239 SWIG_POINTER_EXCEPTION | 0)) == -1)
15240 SWIG_fail;
15241 if (arg2 == NULL) {
15242 PyErr_SetString(PyExc_TypeError,"null reference");
15243 SWIG_fail;
15244 }
15245 {
15246 if (!wxPyCheckForApp()) SWIG_fail;
15247 PyThreadState* __tstate = wxPyBeginAllowThreads();
15248 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15249
15250 wxPyEndAllowThreads(__tstate);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 }
15253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15254 return resultobj;
15255 fail:
15256 return NULL;
15257 }
15258
15259
15260 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
15261 PyObject *resultobj;
15262 wxDC *arg1 = (wxDC *) 0 ;
15263 wxSize *arg2 = 0 ;
15264 wxBufferedDC *result;
15265 wxSize temp2 ;
15266 PyObject * obj0 = 0 ;
15267 PyObject * obj1 = 0 ;
15268
15269 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15272 {
15273 arg2 = &temp2;
15274 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15275 }
15276 {
15277 if (!wxPyCheckForApp()) SWIG_fail;
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize 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(PyObject *self, PyObject *args) {
15292 int argc;
15293 PyObject *argv[3];
15294 int ii;
15295
15296 argc = PyObject_Length(args);
15297 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15298 argv[ii] = PyTuple_GetItem(args,ii);
15299 }
15300 if (argc == 2) {
15301 int _v;
15302 {
15303 void *ptr;
15304 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15305 _v = 0;
15306 PyErr_Clear();
15307 } else {
15308 _v = 1;
15309 }
15310 }
15311 if (_v) {
15312 {
15313 void *ptr;
15314 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15315 _v = 0;
15316 PyErr_Clear();
15317 } else {
15318 _v = 1;
15319 }
15320 }
15321 if (_v) {
15322 return _wrap_new_BufferedDC__SWIG_0(self,args);
15323 }
15324 }
15325 }
15326 if (argc == 2) {
15327 int _v;
15328 {
15329 void *ptr;
15330 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15331 _v = 0;
15332 PyErr_Clear();
15333 } else {
15334 _v = 1;
15335 }
15336 }
15337 if (_v) {
15338 {
15339 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15340 }
15341 if (_v) {
15342 return _wrap_new_BufferedDC__SWIG_1(self,args);
15343 }
15344 }
15345 }
15346
15347 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15348 return NULL;
15349 }
15350
15351
15352 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
15353 PyObject *resultobj;
15354 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15355 PyObject * obj0 = 0 ;
15356 char *kwnames[] = {
15357 (char *) "self", NULL
15358 };
15359
15360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15363 {
15364 PyThreadState* __tstate = wxPyBeginAllowThreads();
15365 delete arg1;
15366
15367 wxPyEndAllowThreads(__tstate);
15368 if (PyErr_Occurred()) SWIG_fail;
15369 }
15370 Py_INCREF(Py_None); resultobj = Py_None;
15371 return resultobj;
15372 fail:
15373 return NULL;
15374 }
15375
15376
15377 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
15378 PyObject *resultobj;
15379 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15380 PyObject * obj0 = 0 ;
15381 char *kwnames[] = {
15382 (char *) "self", NULL
15383 };
15384
15385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15388 {
15389 PyThreadState* __tstate = wxPyBeginAllowThreads();
15390 (arg1)->UnMask();
15391
15392 wxPyEndAllowThreads(__tstate);
15393 if (PyErr_Occurred()) SWIG_fail;
15394 }
15395 Py_INCREF(Py_None); resultobj = Py_None;
15396 return resultobj;
15397 fail:
15398 return NULL;
15399 }
15400
15401
15402 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
15403 PyObject *obj;
15404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15405 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15406 Py_INCREF(obj);
15407 return Py_BuildValue((char *)"");
15408 }
15409 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15410 PyObject *resultobj;
15411 wxWindow *arg1 = (wxWindow *) 0 ;
15412 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15413 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15414 wxBufferedPaintDC *result;
15415 PyObject * obj0 = 0 ;
15416 PyObject * obj1 = 0 ;
15417 char *kwnames[] = {
15418 (char *) "window",(char *) "buffer", NULL
15419 };
15420
15421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15424 if (obj1) {
15425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15426 SWIG_POINTER_EXCEPTION | 0)) == -1)
15427 SWIG_fail;
15428 if (arg2 == NULL) {
15429 PyErr_SetString(PyExc_TypeError,"null reference");
15430 SWIG_fail;
15431 }
15432 }
15433 {
15434 if (!wxPyCheckForApp()) SWIG_fail;
15435 PyThreadState* __tstate = wxPyBeginAllowThreads();
15436 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15437
15438 wxPyEndAllowThreads(__tstate);
15439 if (PyErr_Occurred()) SWIG_fail;
15440 }
15441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15442 return resultobj;
15443 fail:
15444 return NULL;
15445 }
15446
15447
15448 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
15449 PyObject *obj;
15450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15451 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15452 Py_INCREF(obj);
15453 return Py_BuildValue((char *)"");
15454 }
15455 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
15456 PyObject *resultobj;
15457 wxScreenDC *result;
15458 char *kwnames[] = {
15459 NULL
15460 };
15461
15462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15463 {
15464 if (!wxPyCheckForApp()) SWIG_fail;
15465 PyThreadState* __tstate = wxPyBeginAllowThreads();
15466 result = (wxScreenDC *)new wxScreenDC();
15467
15468 wxPyEndAllowThreads(__tstate);
15469 if (PyErr_Occurred()) SWIG_fail;
15470 }
15471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15472 return resultobj;
15473 fail:
15474 return NULL;
15475 }
15476
15477
15478 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
15479 PyObject *resultobj;
15480 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15481 wxWindow *arg2 = (wxWindow *) 0 ;
15482 bool result;
15483 PyObject * obj0 = 0 ;
15484 PyObject * obj1 = 0 ;
15485 char *kwnames[] = {
15486 (char *) "self",(char *) "window", NULL
15487 };
15488
15489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15492 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15494 {
15495 PyThreadState* __tstate = wxPyBeginAllowThreads();
15496 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15497
15498 wxPyEndAllowThreads(__tstate);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 {
15502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15503 }
15504 return resultobj;
15505 fail:
15506 return NULL;
15507 }
15508
15509
15510 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15511 PyObject *resultobj;
15512 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15513 wxRect *arg2 = (wxRect *) NULL ;
15514 bool result;
15515 PyObject * obj0 = 0 ;
15516 PyObject * obj1 = 0 ;
15517 char *kwnames[] = {
15518 (char *) "self",(char *) "rect", NULL
15519 };
15520
15521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15524 if (obj1) {
15525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15527 }
15528 {
15529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15530 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15531
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 {
15536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15537 }
15538 return resultobj;
15539 fail:
15540 return NULL;
15541 }
15542
15543
15544 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15545 PyObject *resultobj;
15546 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15547 bool result;
15548 PyObject * obj0 = 0 ;
15549 char *kwnames[] = {
15550 (char *) "self", NULL
15551 };
15552
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 result = (bool)(arg1)->EndDrawingOnTop();
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 {
15564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15565 }
15566 return resultobj;
15567 fail:
15568 return NULL;
15569 }
15570
15571
15572 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
15573 PyObject *obj;
15574 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15575 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15576 Py_INCREF(obj);
15577 return Py_BuildValue((char *)"");
15578 }
15579 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj;
15581 wxWindow *arg1 = (wxWindow *) 0 ;
15582 wxClientDC *result;
15583 PyObject * obj0 = 0 ;
15584 char *kwnames[] = {
15585 (char *) "win", NULL
15586 };
15587
15588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15591 {
15592 if (!wxPyCheckForApp()) SWIG_fail;
15593 PyThreadState* __tstate = wxPyBeginAllowThreads();
15594 result = (wxClientDC *)new wxClientDC(arg1);
15595
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15600 return resultobj;
15601 fail:
15602 return NULL;
15603 }
15604
15605
15606 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
15607 PyObject *obj;
15608 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15609 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15610 Py_INCREF(obj);
15611 return Py_BuildValue((char *)"");
15612 }
15613 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15614 PyObject *resultobj;
15615 wxWindow *arg1 = (wxWindow *) 0 ;
15616 wxPaintDC *result;
15617 PyObject * obj0 = 0 ;
15618 char *kwnames[] = {
15619 (char *) "win", NULL
15620 };
15621
15622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15625 {
15626 if (!wxPyCheckForApp()) SWIG_fail;
15627 PyThreadState* __tstate = wxPyBeginAllowThreads();
15628 result = (wxPaintDC *)new wxPaintDC(arg1);
15629
15630 wxPyEndAllowThreads(__tstate);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15634 return resultobj;
15635 fail:
15636 return NULL;
15637 }
15638
15639
15640 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
15641 PyObject *obj;
15642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15643 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15644 Py_INCREF(obj);
15645 return Py_BuildValue((char *)"");
15646 }
15647 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
15648 PyObject *resultobj;
15649 wxWindow *arg1 = (wxWindow *) 0 ;
15650 wxWindowDC *result;
15651 PyObject * obj0 = 0 ;
15652 char *kwnames[] = {
15653 (char *) "win", NULL
15654 };
15655
15656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15659 {
15660 if (!wxPyCheckForApp()) SWIG_fail;
15661 PyThreadState* __tstate = wxPyBeginAllowThreads();
15662 result = (wxWindowDC *)new wxWindowDC(arg1);
15663
15664 wxPyEndAllowThreads(__tstate);
15665 if (PyErr_Occurred()) SWIG_fail;
15666 }
15667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15668 return resultobj;
15669 fail:
15670 return NULL;
15671 }
15672
15673
15674 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
15675 PyObject *obj;
15676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15677 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15678 Py_INCREF(obj);
15679 return Py_BuildValue((char *)"");
15680 }
15681 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj;
15683 wxDC *arg1 = 0 ;
15684 bool arg2 ;
15685 wxMirrorDC *result;
15686 PyObject * obj0 = 0 ;
15687 PyObject * obj1 = 0 ;
15688 char *kwnames[] = {
15689 (char *) "dc",(char *) "mirror", NULL
15690 };
15691
15692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15694 SWIG_POINTER_EXCEPTION | 0)) == -1)
15695 SWIG_fail;
15696 if (arg1 == NULL) {
15697 PyErr_SetString(PyExc_TypeError,"null reference");
15698 SWIG_fail;
15699 }
15700 arg2 = (bool)SWIG_As_bool(obj1);
15701 if (PyErr_Occurred()) SWIG_fail;
15702 {
15703 if (!wxPyCheckForApp()) SWIG_fail;
15704 PyThreadState* __tstate = wxPyBeginAllowThreads();
15705 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15706
15707 wxPyEndAllowThreads(__tstate);
15708 if (PyErr_Occurred()) SWIG_fail;
15709 }
15710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15711 return resultobj;
15712 fail:
15713 return NULL;
15714 }
15715
15716
15717 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
15718 PyObject *obj;
15719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15720 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15721 Py_INCREF(obj);
15722 return Py_BuildValue((char *)"");
15723 }
15724 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
15725 PyObject *resultobj;
15726 wxPrintData *arg1 = 0 ;
15727 wxPostScriptDC *result;
15728 PyObject * obj0 = 0 ;
15729 char *kwnames[] = {
15730 (char *) "printData", NULL
15731 };
15732
15733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15735 SWIG_POINTER_EXCEPTION | 0)) == -1)
15736 SWIG_fail;
15737 if (arg1 == NULL) {
15738 PyErr_SetString(PyExc_TypeError,"null reference");
15739 SWIG_fail;
15740 }
15741 {
15742 if (!wxPyCheckForApp()) SWIG_fail;
15743 PyThreadState* __tstate = wxPyBeginAllowThreads();
15744 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15745
15746 wxPyEndAllowThreads(__tstate);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15750 return resultobj;
15751 fail:
15752 return NULL;
15753 }
15754
15755
15756 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15757 PyObject *resultobj;
15758 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15759 wxPrintData *result;
15760 PyObject * obj0 = 0 ;
15761 char *kwnames[] = {
15762 (char *) "self", NULL
15763 };
15764
15765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15768 {
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 {
15771 wxPrintData &_result_ref = (arg1)->GetPrintData();
15772 result = (wxPrintData *) &_result_ref;
15773 }
15774
15775 wxPyEndAllowThreads(__tstate);
15776 if (PyErr_Occurred()) SWIG_fail;
15777 }
15778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15779 return resultobj;
15780 fail:
15781 return NULL;
15782 }
15783
15784
15785 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15786 PyObject *resultobj;
15787 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15788 wxPrintData *arg2 = 0 ;
15789 PyObject * obj0 = 0 ;
15790 PyObject * obj1 = 0 ;
15791 char *kwnames[] = {
15792 (char *) "self",(char *) "data", NULL
15793 };
15794
15795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15798 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15799 SWIG_POINTER_EXCEPTION | 0)) == -1)
15800 SWIG_fail;
15801 if (arg2 == NULL) {
15802 PyErr_SetString(PyExc_TypeError,"null reference");
15803 SWIG_fail;
15804 }
15805 {
15806 PyThreadState* __tstate = wxPyBeginAllowThreads();
15807 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15808
15809 wxPyEndAllowThreads(__tstate);
15810 if (PyErr_Occurred()) SWIG_fail;
15811 }
15812 Py_INCREF(Py_None); resultobj = Py_None;
15813 return resultobj;
15814 fail:
15815 return NULL;
15816 }
15817
15818
15819 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15820 PyObject *resultobj;
15821 int arg1 ;
15822 PyObject * obj0 = 0 ;
15823 char *kwnames[] = {
15824 (char *) "ppi", NULL
15825 };
15826
15827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15828 arg1 = (int)SWIG_As_int(obj0);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 wxPostScriptDC::SetResolution(arg1);
15833
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 Py_INCREF(Py_None); resultobj = Py_None;
15838 return resultobj;
15839 fail:
15840 return NULL;
15841 }
15842
15843
15844 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15845 PyObject *resultobj;
15846 int result;
15847 char *kwnames[] = {
15848 NULL
15849 };
15850
15851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 result = (int)wxPostScriptDC::GetResolution();
15855
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
15859 resultobj = SWIG_From_int((int)result);
15860 return resultobj;
15861 fail:
15862 return NULL;
15863 }
15864
15865
15866 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
15867 PyObject *obj;
15868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15869 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15870 Py_INCREF(obj);
15871 return Py_BuildValue((char *)"");
15872 }
15873 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15874 PyObject *resultobj;
15875 wxString const &arg1_defvalue = wxPyEmptyString ;
15876 wxString *arg1 = (wxString *) &arg1_defvalue ;
15877 wxMetaFile *result;
15878 bool temp1 = False ;
15879 PyObject * obj0 = 0 ;
15880 char *kwnames[] = {
15881 (char *) "filename", NULL
15882 };
15883
15884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15885 if (obj0) {
15886 {
15887 arg1 = wxString_in_helper(obj0);
15888 if (arg1 == NULL) SWIG_fail;
15889 temp1 = True;
15890 }
15891 }
15892 {
15893 if (!wxPyCheckForApp()) SWIG_fail;
15894 PyThreadState* __tstate = wxPyBeginAllowThreads();
15895 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15896
15897 wxPyEndAllowThreads(__tstate);
15898 if (PyErr_Occurred()) SWIG_fail;
15899 }
15900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15901 {
15902 if (temp1)
15903 delete arg1;
15904 }
15905 return resultobj;
15906 fail:
15907 {
15908 if (temp1)
15909 delete arg1;
15910 }
15911 return NULL;
15912 }
15913
15914
15915 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15916 PyObject *resultobj;
15917 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15918 PyObject * obj0 = 0 ;
15919 char *kwnames[] = {
15920 (char *) "self", NULL
15921 };
15922
15923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15926 {
15927 PyThreadState* __tstate = wxPyBeginAllowThreads();
15928 delete arg1;
15929
15930 wxPyEndAllowThreads(__tstate);
15931 if (PyErr_Occurred()) SWIG_fail;
15932 }
15933 Py_INCREF(Py_None); resultobj = Py_None;
15934 return resultobj;
15935 fail:
15936 return NULL;
15937 }
15938
15939
15940 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
15941 PyObject *resultobj;
15942 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15943 bool result;
15944 PyObject * obj0 = 0 ;
15945 char *kwnames[] = {
15946 (char *) "self", NULL
15947 };
15948
15949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15952 {
15953 PyThreadState* __tstate = wxPyBeginAllowThreads();
15954 result = (bool)(arg1)->Ok();
15955
15956 wxPyEndAllowThreads(__tstate);
15957 if (PyErr_Occurred()) SWIG_fail;
15958 }
15959 {
15960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15961 }
15962 return resultobj;
15963 fail:
15964 return NULL;
15965 }
15966
15967
15968 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
15969 PyObject *resultobj;
15970 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15971 int arg2 = (int) 0 ;
15972 int arg3 = (int) 0 ;
15973 bool result;
15974 PyObject * obj0 = 0 ;
15975 PyObject * obj1 = 0 ;
15976 PyObject * obj2 = 0 ;
15977 char *kwnames[] = {
15978 (char *) "self",(char *) "width",(char *) "height", NULL
15979 };
15980
15981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15984 if (obj1) {
15985 arg2 = (int)SWIG_As_int(obj1);
15986 if (PyErr_Occurred()) SWIG_fail;
15987 }
15988 if (obj2) {
15989 arg3 = (int)SWIG_As_int(obj2);
15990 if (PyErr_Occurred()) SWIG_fail;
15991 }
15992 {
15993 PyThreadState* __tstate = wxPyBeginAllowThreads();
15994 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15995
15996 wxPyEndAllowThreads(__tstate);
15997 if (PyErr_Occurred()) SWIG_fail;
15998 }
15999 {
16000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16001 }
16002 return resultobj;
16003 fail:
16004 return NULL;
16005 }
16006
16007
16008 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16009 PyObject *resultobj;
16010 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16011 wxSize result;
16012 PyObject * obj0 = 0 ;
16013 char *kwnames[] = {
16014 (char *) "self", NULL
16015 };
16016
16017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16020 {
16021 PyThreadState* __tstate = wxPyBeginAllowThreads();
16022 result = (arg1)->GetSize();
16023
16024 wxPyEndAllowThreads(__tstate);
16025 if (PyErr_Occurred()) SWIG_fail;
16026 }
16027 {
16028 wxSize * resultptr;
16029 resultptr = new wxSize((wxSize &) result);
16030 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16031 }
16032 return resultobj;
16033 fail:
16034 return NULL;
16035 }
16036
16037
16038 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
16039 PyObject *resultobj;
16040 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16041 int result;
16042 PyObject * obj0 = 0 ;
16043 char *kwnames[] = {
16044 (char *) "self", NULL
16045 };
16046
16047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16050 {
16051 PyThreadState* __tstate = wxPyBeginAllowThreads();
16052 result = (int)(arg1)->GetWidth();
16053
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 resultobj = SWIG_From_int((int)result);
16058 return resultobj;
16059 fail:
16060 return NULL;
16061 }
16062
16063
16064 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
16065 PyObject *resultobj;
16066 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16067 int result;
16068 PyObject * obj0 = 0 ;
16069 char *kwnames[] = {
16070 (char *) "self", NULL
16071 };
16072
16073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16076 {
16077 PyThreadState* __tstate = wxPyBeginAllowThreads();
16078 result = (int)(arg1)->GetHeight();
16079
16080 wxPyEndAllowThreads(__tstate);
16081 if (PyErr_Occurred()) SWIG_fail;
16082 }
16083 resultobj = SWIG_From_int((int)result);
16084 return resultobj;
16085 fail:
16086 return NULL;
16087 }
16088
16089
16090 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
16091 PyObject *obj;
16092 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16093 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16094 Py_INCREF(obj);
16095 return Py_BuildValue((char *)"");
16096 }
16097 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
16098 PyObject *resultobj;
16099 wxString const &arg1_defvalue = wxPyEmptyString ;
16100 wxString *arg1 = (wxString *) &arg1_defvalue ;
16101 int arg2 = (int) 0 ;
16102 int arg3 = (int) 0 ;
16103 wxString const &arg4_defvalue = wxPyEmptyString ;
16104 wxString *arg4 = (wxString *) &arg4_defvalue ;
16105 wxMetaFileDC *result;
16106 bool temp1 = False ;
16107 bool temp4 = False ;
16108 PyObject * obj0 = 0 ;
16109 PyObject * obj1 = 0 ;
16110 PyObject * obj2 = 0 ;
16111 PyObject * obj3 = 0 ;
16112 char *kwnames[] = {
16113 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16114 };
16115
16116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16117 if (obj0) {
16118 {
16119 arg1 = wxString_in_helper(obj0);
16120 if (arg1 == NULL) SWIG_fail;
16121 temp1 = True;
16122 }
16123 }
16124 if (obj1) {
16125 arg2 = (int)SWIG_As_int(obj1);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 }
16128 if (obj2) {
16129 arg3 = (int)SWIG_As_int(obj2);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 if (obj3) {
16133 {
16134 arg4 = wxString_in_helper(obj3);
16135 if (arg4 == NULL) SWIG_fail;
16136 temp4 = True;
16137 }
16138 }
16139 {
16140 if (!wxPyCheckForApp()) SWIG_fail;
16141 PyThreadState* __tstate = wxPyBeginAllowThreads();
16142 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16143
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16148 {
16149 if (temp1)
16150 delete arg1;
16151 }
16152 {
16153 if (temp4)
16154 delete arg4;
16155 }
16156 return resultobj;
16157 fail:
16158 {
16159 if (temp1)
16160 delete arg1;
16161 }
16162 {
16163 if (temp4)
16164 delete arg4;
16165 }
16166 return NULL;
16167 }
16168
16169
16170 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
16171 PyObject *resultobj;
16172 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16173 wxMetaFile *result;
16174 PyObject * obj0 = 0 ;
16175 char *kwnames[] = {
16176 (char *) "self", NULL
16177 };
16178
16179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16182 {
16183 PyThreadState* __tstate = wxPyBeginAllowThreads();
16184 result = (wxMetaFile *)(arg1)->Close();
16185
16186 wxPyEndAllowThreads(__tstate);
16187 if (PyErr_Occurred()) SWIG_fail;
16188 }
16189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16190 return resultobj;
16191 fail:
16192 return NULL;
16193 }
16194
16195
16196 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
16197 PyObject *obj;
16198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16199 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16200 Py_INCREF(obj);
16201 return Py_BuildValue((char *)"");
16202 }
16203 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
16204 PyObject *resultobj;
16205 wxPrintData *arg1 = 0 ;
16206 wxPrinterDC *result;
16207 PyObject * obj0 = 0 ;
16208 char *kwnames[] = {
16209 (char *) "printData", NULL
16210 };
16211
16212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16214 SWIG_POINTER_EXCEPTION | 0)) == -1)
16215 SWIG_fail;
16216 if (arg1 == NULL) {
16217 PyErr_SetString(PyExc_TypeError,"null reference");
16218 SWIG_fail;
16219 }
16220 {
16221 if (!wxPyCheckForApp()) SWIG_fail;
16222 PyThreadState* __tstate = wxPyBeginAllowThreads();
16223 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16224
16225 wxPyEndAllowThreads(__tstate);
16226 if (PyErr_Occurred()) SWIG_fail;
16227 }
16228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16229 return resultobj;
16230 fail:
16231 return NULL;
16232 }
16233
16234
16235 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
16236 PyObject *obj;
16237 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16238 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16239 Py_INCREF(obj);
16240 return Py_BuildValue((char *)"");
16241 }
16242 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16243 PyObject *resultobj;
16244 int arg1 ;
16245 int arg2 ;
16246 int arg3 = (int) True ;
16247 int arg4 = (int) 1 ;
16248 wxImageList *result;
16249 PyObject * obj0 = 0 ;
16250 PyObject * obj1 = 0 ;
16251 PyObject * obj2 = 0 ;
16252 PyObject * obj3 = 0 ;
16253 char *kwnames[] = {
16254 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16255 };
16256
16257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16258 arg1 = (int)SWIG_As_int(obj0);
16259 if (PyErr_Occurred()) SWIG_fail;
16260 arg2 = (int)SWIG_As_int(obj1);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 if (obj2) {
16263 arg3 = (int)SWIG_As_int(obj2);
16264 if (PyErr_Occurred()) SWIG_fail;
16265 }
16266 if (obj3) {
16267 arg4 = (int)SWIG_As_int(obj3);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 {
16271 if (!wxPyCheckForApp()) SWIG_fail;
16272 PyThreadState* __tstate = wxPyBeginAllowThreads();
16273 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16274
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 {
16279 resultobj = wxPyMake_wxObject(result, 1);
16280 }
16281 return resultobj;
16282 fail:
16283 return NULL;
16284 }
16285
16286
16287 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16288 PyObject *resultobj;
16289 wxImageList *arg1 = (wxImageList *) 0 ;
16290 PyObject * obj0 = 0 ;
16291 char *kwnames[] = {
16292 (char *) "self", NULL
16293 };
16294
16295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16298 {
16299 PyThreadState* __tstate = wxPyBeginAllowThreads();
16300 delete arg1;
16301
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 Py_INCREF(Py_None); resultobj = Py_None;
16306 return resultobj;
16307 fail:
16308 return NULL;
16309 }
16310
16311
16312 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
16313 PyObject *resultobj;
16314 wxImageList *arg1 = (wxImageList *) 0 ;
16315 wxBitmap *arg2 = 0 ;
16316 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16317 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16318 int result;
16319 PyObject * obj0 = 0 ;
16320 PyObject * obj1 = 0 ;
16321 PyObject * obj2 = 0 ;
16322 char *kwnames[] = {
16323 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16324 };
16325
16326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16330 SWIG_POINTER_EXCEPTION | 0)) == -1)
16331 SWIG_fail;
16332 if (arg2 == NULL) {
16333 PyErr_SetString(PyExc_TypeError,"null reference");
16334 SWIG_fail;
16335 }
16336 if (obj2) {
16337 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16338 SWIG_POINTER_EXCEPTION | 0)) == -1)
16339 SWIG_fail;
16340 if (arg3 == NULL) {
16341 PyErr_SetString(PyExc_TypeError,"null reference");
16342 SWIG_fail;
16343 }
16344 }
16345 {
16346 PyThreadState* __tstate = wxPyBeginAllowThreads();
16347 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16348
16349 wxPyEndAllowThreads(__tstate);
16350 if (PyErr_Occurred()) SWIG_fail;
16351 }
16352 resultobj = SWIG_From_int((int)result);
16353 return resultobj;
16354 fail:
16355 return NULL;
16356 }
16357
16358
16359 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
16360 PyObject *resultobj;
16361 wxImageList *arg1 = (wxImageList *) 0 ;
16362 wxBitmap *arg2 = 0 ;
16363 wxColour *arg3 = 0 ;
16364 int result;
16365 wxColour temp3 ;
16366 PyObject * obj0 = 0 ;
16367 PyObject * obj1 = 0 ;
16368 PyObject * obj2 = 0 ;
16369 char *kwnames[] = {
16370 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16371 };
16372
16373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16377 SWIG_POINTER_EXCEPTION | 0)) == -1)
16378 SWIG_fail;
16379 if (arg2 == NULL) {
16380 PyErr_SetString(PyExc_TypeError,"null reference");
16381 SWIG_fail;
16382 }
16383 {
16384 arg3 = &temp3;
16385 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16386 }
16387 {
16388 PyThreadState* __tstate = wxPyBeginAllowThreads();
16389 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16390
16391 wxPyEndAllowThreads(__tstate);
16392 if (PyErr_Occurred()) SWIG_fail;
16393 }
16394 resultobj = SWIG_From_int((int)result);
16395 return resultobj;
16396 fail:
16397 return NULL;
16398 }
16399
16400
16401 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
16402 PyObject *resultobj;
16403 wxImageList *arg1 = (wxImageList *) 0 ;
16404 wxIcon *arg2 = 0 ;
16405 int result;
16406 PyObject * obj0 = 0 ;
16407 PyObject * obj1 = 0 ;
16408 char *kwnames[] = {
16409 (char *) "self",(char *) "icon", NULL
16410 };
16411
16412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16415 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16416 SWIG_POINTER_EXCEPTION | 0)) == -1)
16417 SWIG_fail;
16418 if (arg2 == NULL) {
16419 PyErr_SetString(PyExc_TypeError,"null reference");
16420 SWIG_fail;
16421 }
16422 {
16423 PyThreadState* __tstate = wxPyBeginAllowThreads();
16424 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16425
16426 wxPyEndAllowThreads(__tstate);
16427 if (PyErr_Occurred()) SWIG_fail;
16428 }
16429 resultobj = SWIG_From_int((int)result);
16430 return resultobj;
16431 fail:
16432 return NULL;
16433 }
16434
16435
16436 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
16437 PyObject *resultobj;
16438 wxImageList *arg1 = (wxImageList *) 0 ;
16439 int arg2 ;
16440 wxBitmap *arg3 = 0 ;
16441 bool result;
16442 PyObject * obj0 = 0 ;
16443 PyObject * obj1 = 0 ;
16444 PyObject * obj2 = 0 ;
16445 char *kwnames[] = {
16446 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16447 };
16448
16449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16452 arg2 = (int)SWIG_As_int(obj1);
16453 if (PyErr_Occurred()) SWIG_fail;
16454 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16455 SWIG_POINTER_EXCEPTION | 0)) == -1)
16456 SWIG_fail;
16457 if (arg3 == NULL) {
16458 PyErr_SetString(PyExc_TypeError,"null reference");
16459 SWIG_fail;
16460 }
16461 {
16462 PyThreadState* __tstate = wxPyBeginAllowThreads();
16463 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16464
16465 wxPyEndAllowThreads(__tstate);
16466 if (PyErr_Occurred()) SWIG_fail;
16467 }
16468 {
16469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16470 }
16471 return resultobj;
16472 fail:
16473 return NULL;
16474 }
16475
16476
16477 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
16478 PyObject *resultobj;
16479 wxImageList *arg1 = (wxImageList *) 0 ;
16480 int arg2 ;
16481 wxDC *arg3 = 0 ;
16482 int arg4 ;
16483 int arg5 ;
16484 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16485 bool arg7 = (bool) (bool)False ;
16486 bool result;
16487 PyObject * obj0 = 0 ;
16488 PyObject * obj1 = 0 ;
16489 PyObject * obj2 = 0 ;
16490 PyObject * obj3 = 0 ;
16491 PyObject * obj4 = 0 ;
16492 PyObject * obj5 = 0 ;
16493 PyObject * obj6 = 0 ;
16494 char *kwnames[] = {
16495 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16496 };
16497
16498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16501 arg2 = (int)SWIG_As_int(obj1);
16502 if (PyErr_Occurred()) SWIG_fail;
16503 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16504 SWIG_POINTER_EXCEPTION | 0)) == -1)
16505 SWIG_fail;
16506 if (arg3 == NULL) {
16507 PyErr_SetString(PyExc_TypeError,"null reference");
16508 SWIG_fail;
16509 }
16510 arg4 = (int)SWIG_As_int(obj3);
16511 if (PyErr_Occurred()) SWIG_fail;
16512 arg5 = (int)SWIG_As_int(obj4);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 if (obj5) {
16515 arg6 = (int)SWIG_As_int(obj5);
16516 if (PyErr_Occurred()) SWIG_fail;
16517 }
16518 if (obj6) {
16519 arg7 = (bool)SWIG_As_bool(obj6);
16520 if (PyErr_Occurred()) SWIG_fail;
16521 }
16522 {
16523 PyThreadState* __tstate = wxPyBeginAllowThreads();
16524 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16525
16526 wxPyEndAllowThreads(__tstate);
16527 if (PyErr_Occurred()) SWIG_fail;
16528 }
16529 {
16530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16531 }
16532 return resultobj;
16533 fail:
16534 return NULL;
16535 }
16536
16537
16538 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
16539 PyObject *resultobj;
16540 wxImageList *arg1 = (wxImageList *) 0 ;
16541 int result;
16542 PyObject * obj0 = 0 ;
16543 char *kwnames[] = {
16544 (char *) "self", NULL
16545 };
16546
16547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16550 {
16551 PyThreadState* __tstate = wxPyBeginAllowThreads();
16552 result = (int)(arg1)->GetImageCount();
16553
16554 wxPyEndAllowThreads(__tstate);
16555 if (PyErr_Occurred()) SWIG_fail;
16556 }
16557 resultobj = SWIG_From_int((int)result);
16558 return resultobj;
16559 fail:
16560 return NULL;
16561 }
16562
16563
16564 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
16565 PyObject *resultobj;
16566 wxImageList *arg1 = (wxImageList *) 0 ;
16567 int arg2 ;
16568 bool result;
16569 PyObject * obj0 = 0 ;
16570 PyObject * obj1 = 0 ;
16571 char *kwnames[] = {
16572 (char *) "self",(char *) "index", NULL
16573 };
16574
16575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16578 arg2 = (int)SWIG_As_int(obj1);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 {
16581 PyThreadState* __tstate = wxPyBeginAllowThreads();
16582 result = (bool)(arg1)->Remove(arg2);
16583
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 {
16588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16589 }
16590 return resultobj;
16591 fail:
16592 return NULL;
16593 }
16594
16595
16596 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
16597 PyObject *resultobj;
16598 wxImageList *arg1 = (wxImageList *) 0 ;
16599 bool result;
16600 PyObject * obj0 = 0 ;
16601 char *kwnames[] = {
16602 (char *) "self", NULL
16603 };
16604
16605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
16610 result = (bool)(arg1)->RemoveAll();
16611
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 {
16616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16617 }
16618 return resultobj;
16619 fail:
16620 return NULL;
16621 }
16622
16623
16624 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16625 PyObject *resultobj;
16626 wxImageList *arg1 = (wxImageList *) 0 ;
16627 int arg2 ;
16628 int *arg3 = 0 ;
16629 int *arg4 = 0 ;
16630 int temp3 ;
16631 int res3 = 0 ;
16632 int temp4 ;
16633 int res4 = 0 ;
16634 PyObject * obj0 = 0 ;
16635 PyObject * obj1 = 0 ;
16636 char *kwnames[] = {
16637 (char *) "self",(char *) "index", NULL
16638 };
16639
16640 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16641 arg4 = &temp4; res4 = SWIG_NEWOBJ;
16642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16645 arg2 = (int)SWIG_As_int(obj1);
16646 if (PyErr_Occurred()) SWIG_fail;
16647 {
16648 PyThreadState* __tstate = wxPyBeginAllowThreads();
16649 (arg1)->GetSize(arg2,*arg3,*arg4);
16650
16651 wxPyEndAllowThreads(__tstate);
16652 if (PyErr_Occurred()) SWIG_fail;
16653 }
16654 Py_INCREF(Py_None); resultobj = Py_None;
16655 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16656 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16657 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16658 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
16659 return resultobj;
16660 fail:
16661 return NULL;
16662 }
16663
16664
16665 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
16666 PyObject *obj;
16667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16668 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16669 Py_INCREF(obj);
16670 return Py_BuildValue((char *)"");
16671 }
16672 static int _wrap_NORMAL_FONT_set(PyObject *) {
16673 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16674 return 1;
16675 }
16676
16677
16678 static PyObject *_wrap_NORMAL_FONT_get() {
16679 PyObject *pyobj;
16680
16681 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16682 return pyobj;
16683 }
16684
16685
16686 static int _wrap_SMALL_FONT_set(PyObject *) {
16687 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16688 return 1;
16689 }
16690
16691
16692 static PyObject *_wrap_SMALL_FONT_get() {
16693 PyObject *pyobj;
16694
16695 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16696 return pyobj;
16697 }
16698
16699
16700 static int _wrap_ITALIC_FONT_set(PyObject *) {
16701 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16702 return 1;
16703 }
16704
16705
16706 static PyObject *_wrap_ITALIC_FONT_get() {
16707 PyObject *pyobj;
16708
16709 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16710 return pyobj;
16711 }
16712
16713
16714 static int _wrap_SWISS_FONT_set(PyObject *) {
16715 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16716 return 1;
16717 }
16718
16719
16720 static PyObject *_wrap_SWISS_FONT_get() {
16721 PyObject *pyobj;
16722
16723 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16724 return pyobj;
16725 }
16726
16727
16728 static int _wrap_RED_PEN_set(PyObject *) {
16729 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16730 return 1;
16731 }
16732
16733
16734 static PyObject *_wrap_RED_PEN_get() {
16735 PyObject *pyobj;
16736
16737 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16738 return pyobj;
16739 }
16740
16741
16742 static int _wrap_CYAN_PEN_set(PyObject *) {
16743 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16744 return 1;
16745 }
16746
16747
16748 static PyObject *_wrap_CYAN_PEN_get() {
16749 PyObject *pyobj;
16750
16751 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16752 return pyobj;
16753 }
16754
16755
16756 static int _wrap_GREEN_PEN_set(PyObject *) {
16757 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16758 return 1;
16759 }
16760
16761
16762 static PyObject *_wrap_GREEN_PEN_get() {
16763 PyObject *pyobj;
16764
16765 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16766 return pyobj;
16767 }
16768
16769
16770 static int _wrap_BLACK_PEN_set(PyObject *) {
16771 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16772 return 1;
16773 }
16774
16775
16776 static PyObject *_wrap_BLACK_PEN_get() {
16777 PyObject *pyobj;
16778
16779 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16780 return pyobj;
16781 }
16782
16783
16784 static int _wrap_WHITE_PEN_set(PyObject *) {
16785 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16786 return 1;
16787 }
16788
16789
16790 static PyObject *_wrap_WHITE_PEN_get() {
16791 PyObject *pyobj;
16792
16793 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16794 return pyobj;
16795 }
16796
16797
16798 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16799 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16800 return 1;
16801 }
16802
16803
16804 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16805 PyObject *pyobj;
16806
16807 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16808 return pyobj;
16809 }
16810
16811
16812 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16813 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16814 return 1;
16815 }
16816
16817
16818 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16819 PyObject *pyobj;
16820
16821 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16822 return pyobj;
16823 }
16824
16825
16826 static int _wrap_GREY_PEN_set(PyObject *) {
16827 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16828 return 1;
16829 }
16830
16831
16832 static PyObject *_wrap_GREY_PEN_get() {
16833 PyObject *pyobj;
16834
16835 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16836 return pyobj;
16837 }
16838
16839
16840 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16841 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16842 return 1;
16843 }
16844
16845
16846 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16847 PyObject *pyobj;
16848
16849 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16850 return pyobj;
16851 }
16852
16853
16854 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16855 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16856 return 1;
16857 }
16858
16859
16860 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16861 PyObject *pyobj;
16862
16863 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16864 return pyobj;
16865 }
16866
16867
16868 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16869 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16870 return 1;
16871 }
16872
16873
16874 static PyObject *_wrap_BLUE_BRUSH_get() {
16875 PyObject *pyobj;
16876
16877 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16878 return pyobj;
16879 }
16880
16881
16882 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16883 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16884 return 1;
16885 }
16886
16887
16888 static PyObject *_wrap_GREEN_BRUSH_get() {
16889 PyObject *pyobj;
16890
16891 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16892 return pyobj;
16893 }
16894
16895
16896 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16897 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16898 return 1;
16899 }
16900
16901
16902 static PyObject *_wrap_WHITE_BRUSH_get() {
16903 PyObject *pyobj;
16904
16905 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16906 return pyobj;
16907 }
16908
16909
16910 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16911 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16912 return 1;
16913 }
16914
16915
16916 static PyObject *_wrap_BLACK_BRUSH_get() {
16917 PyObject *pyobj;
16918
16919 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16920 return pyobj;
16921 }
16922
16923
16924 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16925 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16926 return 1;
16927 }
16928
16929
16930 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16931 PyObject *pyobj;
16932
16933 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16934 return pyobj;
16935 }
16936
16937
16938 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16939 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16940 return 1;
16941 }
16942
16943
16944 static PyObject *_wrap_CYAN_BRUSH_get() {
16945 PyObject *pyobj;
16946
16947 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16948 return pyobj;
16949 }
16950
16951
16952 static int _wrap_RED_BRUSH_set(PyObject *) {
16953 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16954 return 1;
16955 }
16956
16957
16958 static PyObject *_wrap_RED_BRUSH_get() {
16959 PyObject *pyobj;
16960
16961 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16962 return pyobj;
16963 }
16964
16965
16966 static int _wrap_GREY_BRUSH_set(PyObject *) {
16967 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16968 return 1;
16969 }
16970
16971
16972 static PyObject *_wrap_GREY_BRUSH_get() {
16973 PyObject *pyobj;
16974
16975 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16976 return pyobj;
16977 }
16978
16979
16980 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16981 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16982 return 1;
16983 }
16984
16985
16986 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16987 PyObject *pyobj;
16988
16989 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16990 return pyobj;
16991 }
16992
16993
16994 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16995 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16996 return 1;
16997 }
16998
16999
17000 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17001 PyObject *pyobj;
17002
17003 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17004 return pyobj;
17005 }
17006
17007
17008 static int _wrap_BLACK_set(PyObject *) {
17009 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17010 return 1;
17011 }
17012
17013
17014 static PyObject *_wrap_BLACK_get() {
17015 PyObject *pyobj;
17016
17017 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17018 return pyobj;
17019 }
17020
17021
17022 static int _wrap_WHITE_set(PyObject *) {
17023 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17024 return 1;
17025 }
17026
17027
17028 static PyObject *_wrap_WHITE_get() {
17029 PyObject *pyobj;
17030
17031 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17032 return pyobj;
17033 }
17034
17035
17036 static int _wrap_RED_set(PyObject *) {
17037 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17038 return 1;
17039 }
17040
17041
17042 static PyObject *_wrap_RED_get() {
17043 PyObject *pyobj;
17044
17045 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17046 return pyobj;
17047 }
17048
17049
17050 static int _wrap_BLUE_set(PyObject *) {
17051 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17052 return 1;
17053 }
17054
17055
17056 static PyObject *_wrap_BLUE_get() {
17057 PyObject *pyobj;
17058
17059 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17060 return pyobj;
17061 }
17062
17063
17064 static int _wrap_GREEN_set(PyObject *) {
17065 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17066 return 1;
17067 }
17068
17069
17070 static PyObject *_wrap_GREEN_get() {
17071 PyObject *pyobj;
17072
17073 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17074 return pyobj;
17075 }
17076
17077
17078 static int _wrap_CYAN_set(PyObject *) {
17079 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17080 return 1;
17081 }
17082
17083
17084 static PyObject *_wrap_CYAN_get() {
17085 PyObject *pyobj;
17086
17087 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17088 return pyobj;
17089 }
17090
17091
17092 static int _wrap_LIGHT_GREY_set(PyObject *) {
17093 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17094 return 1;
17095 }
17096
17097
17098 static PyObject *_wrap_LIGHT_GREY_get() {
17099 PyObject *pyobj;
17100
17101 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17102 return pyobj;
17103 }
17104
17105
17106 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
17107 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17108 return 1;
17109 }
17110
17111
17112 static PyObject *_wrap_STANDARD_CURSOR_get() {
17113 PyObject *pyobj;
17114
17115 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17116 return pyobj;
17117 }
17118
17119
17120 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
17121 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17122 return 1;
17123 }
17124
17125
17126 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17127 PyObject *pyobj;
17128
17129 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17130 return pyobj;
17131 }
17132
17133
17134 static int _wrap_CROSS_CURSOR_set(PyObject *) {
17135 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17136 return 1;
17137 }
17138
17139
17140 static PyObject *_wrap_CROSS_CURSOR_get() {
17141 PyObject *pyobj;
17142
17143 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17144 return pyobj;
17145 }
17146
17147
17148 static int _wrap_NullBitmap_set(PyObject *) {
17149 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17150 return 1;
17151 }
17152
17153
17154 static PyObject *_wrap_NullBitmap_get() {
17155 PyObject *pyobj;
17156
17157 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17158 return pyobj;
17159 }
17160
17161
17162 static int _wrap_NullIcon_set(PyObject *) {
17163 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17164 return 1;
17165 }
17166
17167
17168 static PyObject *_wrap_NullIcon_get() {
17169 PyObject *pyobj;
17170
17171 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17172 return pyobj;
17173 }
17174
17175
17176 static int _wrap_NullCursor_set(PyObject *) {
17177 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17178 return 1;
17179 }
17180
17181
17182 static PyObject *_wrap_NullCursor_get() {
17183 PyObject *pyobj;
17184
17185 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17186 return pyobj;
17187 }
17188
17189
17190 static int _wrap_NullPen_set(PyObject *) {
17191 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17192 return 1;
17193 }
17194
17195
17196 static PyObject *_wrap_NullPen_get() {
17197 PyObject *pyobj;
17198
17199 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17200 return pyobj;
17201 }
17202
17203
17204 static int _wrap_NullBrush_set(PyObject *) {
17205 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17206 return 1;
17207 }
17208
17209
17210 static PyObject *_wrap_NullBrush_get() {
17211 PyObject *pyobj;
17212
17213 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17214 return pyobj;
17215 }
17216
17217
17218 static int _wrap_NullPalette_set(PyObject *) {
17219 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17220 return 1;
17221 }
17222
17223
17224 static PyObject *_wrap_NullPalette_get() {
17225 PyObject *pyobj;
17226
17227 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17228 return pyobj;
17229 }
17230
17231
17232 static int _wrap_NullFont_set(PyObject *) {
17233 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17234 return 1;
17235 }
17236
17237
17238 static PyObject *_wrap_NullFont_get() {
17239 PyObject *pyobj;
17240
17241 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17242 return pyobj;
17243 }
17244
17245
17246 static int _wrap_NullColour_set(PyObject *) {
17247 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17248 return 1;
17249 }
17250
17251
17252 static PyObject *_wrap_NullColour_get() {
17253 PyObject *pyobj;
17254
17255 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17256 return pyobj;
17257 }
17258
17259
17260 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj;
17262 wxPenList *arg1 = (wxPenList *) 0 ;
17263 wxPen *arg2 = (wxPen *) 0 ;
17264 PyObject * obj0 = 0 ;
17265 PyObject * obj1 = 0 ;
17266 char *kwnames[] = {
17267 (char *) "self",(char *) "pen", NULL
17268 };
17269
17270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17275 {
17276 PyThreadState* __tstate = wxPyBeginAllowThreads();
17277 (arg1)->AddPen(arg2);
17278
17279 wxPyEndAllowThreads(__tstate);
17280 if (PyErr_Occurred()) SWIG_fail;
17281 }
17282 Py_INCREF(Py_None); resultobj = Py_None;
17283 return resultobj;
17284 fail:
17285 return NULL;
17286 }
17287
17288
17289 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
17290 PyObject *resultobj;
17291 wxPenList *arg1 = (wxPenList *) 0 ;
17292 wxColour *arg2 = 0 ;
17293 int arg3 ;
17294 int arg4 ;
17295 wxPen *result;
17296 wxColour temp2 ;
17297 PyObject * obj0 = 0 ;
17298 PyObject * obj1 = 0 ;
17299 PyObject * obj2 = 0 ;
17300 PyObject * obj3 = 0 ;
17301 char *kwnames[] = {
17302 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17303 };
17304
17305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17308 {
17309 arg2 = &temp2;
17310 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17311 }
17312 arg3 = (int)SWIG_As_int(obj2);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 arg4 = (int)SWIG_As_int(obj3);
17315 if (PyErr_Occurred()) SWIG_fail;
17316 {
17317 PyThreadState* __tstate = wxPyBeginAllowThreads();
17318 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17319
17320 wxPyEndAllowThreads(__tstate);
17321 if (PyErr_Occurred()) SWIG_fail;
17322 }
17323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17324 return resultobj;
17325 fail:
17326 return NULL;
17327 }
17328
17329
17330 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
17331 PyObject *resultobj;
17332 wxPenList *arg1 = (wxPenList *) 0 ;
17333 wxPen *arg2 = (wxPen *) 0 ;
17334 PyObject * obj0 = 0 ;
17335 PyObject * obj1 = 0 ;
17336 char *kwnames[] = {
17337 (char *) "self",(char *) "pen", NULL
17338 };
17339
17340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17345 {
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 (arg1)->RemovePen(arg2);
17348
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 Py_INCREF(Py_None); resultobj = Py_None;
17353 return resultobj;
17354 fail:
17355 return NULL;
17356 }
17357
17358
17359 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17360 PyObject *resultobj;
17361 wxPenList *arg1 = (wxPenList *) 0 ;
17362 int result;
17363 PyObject * obj0 = 0 ;
17364 char *kwnames[] = {
17365 (char *) "self", NULL
17366 };
17367
17368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17371 {
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 result = (int)(arg1)->GetCount();
17374
17375 wxPyEndAllowThreads(__tstate);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 resultobj = SWIG_From_int((int)result);
17379 return resultobj;
17380 fail:
17381 return NULL;
17382 }
17383
17384
17385 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
17386 PyObject *obj;
17387 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17388 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17389 Py_INCREF(obj);
17390 return Py_BuildValue((char *)"");
17391 }
17392 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17393 PyObject *resultobj;
17394 wxBrushList *arg1 = (wxBrushList *) 0 ;
17395 wxBrush *arg2 = (wxBrush *) 0 ;
17396 PyObject * obj0 = 0 ;
17397 PyObject * obj1 = 0 ;
17398 char *kwnames[] = {
17399 (char *) "self",(char *) "brush", NULL
17400 };
17401
17402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17407 {
17408 PyThreadState* __tstate = wxPyBeginAllowThreads();
17409 (arg1)->AddBrush(arg2);
17410
17411 wxPyEndAllowThreads(__tstate);
17412 if (PyErr_Occurred()) SWIG_fail;
17413 }
17414 Py_INCREF(Py_None); resultobj = Py_None;
17415 return resultobj;
17416 fail:
17417 return NULL;
17418 }
17419
17420
17421 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17422 PyObject *resultobj;
17423 wxBrushList *arg1 = (wxBrushList *) 0 ;
17424 wxColour *arg2 = 0 ;
17425 int arg3 ;
17426 wxBrush *result;
17427 wxColour temp2 ;
17428 PyObject * obj0 = 0 ;
17429 PyObject * obj1 = 0 ;
17430 PyObject * obj2 = 0 ;
17431 char *kwnames[] = {
17432 (char *) "self",(char *) "colour",(char *) "style", NULL
17433 };
17434
17435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17438 {
17439 arg2 = &temp2;
17440 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17441 }
17442 arg3 = (int)SWIG_As_int(obj2);
17443 if (PyErr_Occurred()) SWIG_fail;
17444 {
17445 PyThreadState* __tstate = wxPyBeginAllowThreads();
17446 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17447
17448 wxPyEndAllowThreads(__tstate);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 }
17451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17452 return resultobj;
17453 fail:
17454 return NULL;
17455 }
17456
17457
17458 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17459 PyObject *resultobj;
17460 wxBrushList *arg1 = (wxBrushList *) 0 ;
17461 wxBrush *arg2 = (wxBrush *) 0 ;
17462 PyObject * obj0 = 0 ;
17463 PyObject * obj1 = 0 ;
17464 char *kwnames[] = {
17465 (char *) "self",(char *) "brush", NULL
17466 };
17467
17468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17473 {
17474 PyThreadState* __tstate = wxPyBeginAllowThreads();
17475 (arg1)->RemoveBrush(arg2);
17476
17477 wxPyEndAllowThreads(__tstate);
17478 if (PyErr_Occurred()) SWIG_fail;
17479 }
17480 Py_INCREF(Py_None); resultobj = Py_None;
17481 return resultobj;
17482 fail:
17483 return NULL;
17484 }
17485
17486
17487 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17488 PyObject *resultobj;
17489 wxBrushList *arg1 = (wxBrushList *) 0 ;
17490 int result;
17491 PyObject * obj0 = 0 ;
17492 char *kwnames[] = {
17493 (char *) "self", NULL
17494 };
17495
17496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = (int)(arg1)->GetCount();
17502
17503 wxPyEndAllowThreads(__tstate);
17504 if (PyErr_Occurred()) SWIG_fail;
17505 }
17506 resultobj = SWIG_From_int((int)result);
17507 return resultobj;
17508 fail:
17509 return NULL;
17510 }
17511
17512
17513 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
17514 PyObject *obj;
17515 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17516 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17517 Py_INCREF(obj);
17518 return Py_BuildValue((char *)"");
17519 }
17520 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17521 PyObject *resultobj;
17522 wxColourDatabase *result;
17523 char *kwnames[] = {
17524 NULL
17525 };
17526
17527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17528 {
17529 if (!wxPyCheckForApp()) SWIG_fail;
17530 PyThreadState* __tstate = wxPyBeginAllowThreads();
17531 result = (wxColourDatabase *)new wxColourDatabase();
17532
17533 wxPyEndAllowThreads(__tstate);
17534 if (PyErr_Occurred()) SWIG_fail;
17535 }
17536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17537 return resultobj;
17538 fail:
17539 return NULL;
17540 }
17541
17542
17543 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17544 PyObject *resultobj;
17545 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17546 PyObject * obj0 = 0 ;
17547 char *kwnames[] = {
17548 (char *) "self", NULL
17549 };
17550
17551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17554 {
17555 PyThreadState* __tstate = wxPyBeginAllowThreads();
17556 delete arg1;
17557
17558 wxPyEndAllowThreads(__tstate);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 Py_INCREF(Py_None); resultobj = Py_None;
17562 return resultobj;
17563 fail:
17564 return NULL;
17565 }
17566
17567
17568 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
17569 PyObject *resultobj;
17570 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17571 wxString *arg2 = 0 ;
17572 wxColour result;
17573 bool temp2 = False ;
17574 PyObject * obj0 = 0 ;
17575 PyObject * obj1 = 0 ;
17576 char *kwnames[] = {
17577 (char *) "self",(char *) "name", NULL
17578 };
17579
17580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17583 {
17584 arg2 = wxString_in_helper(obj1);
17585 if (arg2 == NULL) SWIG_fail;
17586 temp2 = True;
17587 }
17588 {
17589 PyThreadState* __tstate = wxPyBeginAllowThreads();
17590 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17591
17592 wxPyEndAllowThreads(__tstate);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 }
17595 {
17596 wxColour * resultptr;
17597 resultptr = new wxColour((wxColour &) result);
17598 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17599 }
17600 {
17601 if (temp2)
17602 delete arg2;
17603 }
17604 return resultobj;
17605 fail:
17606 {
17607 if (temp2)
17608 delete arg2;
17609 }
17610 return NULL;
17611 }
17612
17613
17614 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
17615 PyObject *resultobj;
17616 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17617 wxColour *arg2 = 0 ;
17618 wxString result;
17619 wxColour temp2 ;
17620 PyObject * obj0 = 0 ;
17621 PyObject * obj1 = 0 ;
17622 char *kwnames[] = {
17623 (char *) "self",(char *) "colour", NULL
17624 };
17625
17626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17629 {
17630 arg2 = &temp2;
17631 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17632 }
17633 {
17634 PyThreadState* __tstate = wxPyBeginAllowThreads();
17635 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17636
17637 wxPyEndAllowThreads(__tstate);
17638 if (PyErr_Occurred()) SWIG_fail;
17639 }
17640 {
17641 #if wxUSE_UNICODE
17642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17643 #else
17644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17645 #endif
17646 }
17647 return resultobj;
17648 fail:
17649 return NULL;
17650 }
17651
17652
17653 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
17654 PyObject *resultobj;
17655 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17656 wxString *arg2 = 0 ;
17657 wxColour *arg3 = 0 ;
17658 bool temp2 = False ;
17659 wxColour temp3 ;
17660 PyObject * obj0 = 0 ;
17661 PyObject * obj1 = 0 ;
17662 PyObject * obj2 = 0 ;
17663 char *kwnames[] = {
17664 (char *) "self",(char *) "name",(char *) "colour", NULL
17665 };
17666
17667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17670 {
17671 arg2 = wxString_in_helper(obj1);
17672 if (arg2 == NULL) SWIG_fail;
17673 temp2 = True;
17674 }
17675 {
17676 arg3 = &temp3;
17677 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17678 }
17679 {
17680 PyThreadState* __tstate = wxPyBeginAllowThreads();
17681 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17682
17683 wxPyEndAllowThreads(__tstate);
17684 if (PyErr_Occurred()) SWIG_fail;
17685 }
17686 Py_INCREF(Py_None); resultobj = Py_None;
17687 {
17688 if (temp2)
17689 delete arg2;
17690 }
17691 return resultobj;
17692 fail:
17693 {
17694 if (temp2)
17695 delete arg2;
17696 }
17697 return NULL;
17698 }
17699
17700
17701 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
17702 PyObject *resultobj;
17703 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17704 wxString *arg2 = 0 ;
17705 int arg3 ;
17706 int arg4 ;
17707 int arg5 ;
17708 bool temp2 = False ;
17709 PyObject * obj0 = 0 ;
17710 PyObject * obj1 = 0 ;
17711 PyObject * obj2 = 0 ;
17712 PyObject * obj3 = 0 ;
17713 PyObject * obj4 = 0 ;
17714 char *kwnames[] = {
17715 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17716 };
17717
17718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17721 {
17722 arg2 = wxString_in_helper(obj1);
17723 if (arg2 == NULL) SWIG_fail;
17724 temp2 = True;
17725 }
17726 arg3 = (int)SWIG_As_int(obj2);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 arg4 = (int)SWIG_As_int(obj3);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 arg5 = (int)SWIG_As_int(obj4);
17731 if (PyErr_Occurred()) SWIG_fail;
17732 {
17733 PyThreadState* __tstate = wxPyBeginAllowThreads();
17734 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17735
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 Py_INCREF(Py_None); resultobj = Py_None;
17740 {
17741 if (temp2)
17742 delete arg2;
17743 }
17744 return resultobj;
17745 fail:
17746 {
17747 if (temp2)
17748 delete arg2;
17749 }
17750 return NULL;
17751 }
17752
17753
17754 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
17755 PyObject *obj;
17756 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17757 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17758 Py_INCREF(obj);
17759 return Py_BuildValue((char *)"");
17760 }
17761 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
17762 PyObject *resultobj;
17763 wxFontList *arg1 = (wxFontList *) 0 ;
17764 wxFont *arg2 = (wxFont *) 0 ;
17765 PyObject * obj0 = 0 ;
17766 PyObject * obj1 = 0 ;
17767 char *kwnames[] = {
17768 (char *) "self",(char *) "font", NULL
17769 };
17770
17771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17776 {
17777 PyThreadState* __tstate = wxPyBeginAllowThreads();
17778 (arg1)->AddFont(arg2);
17779
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 Py_INCREF(Py_None); resultobj = Py_None;
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj;
17792 wxFontList *arg1 = (wxFontList *) 0 ;
17793 int arg2 ;
17794 int arg3 ;
17795 int arg4 ;
17796 int arg5 ;
17797 bool arg6 = (bool) False ;
17798 wxString const &arg7_defvalue = wxPyEmptyString ;
17799 wxString *arg7 = (wxString *) &arg7_defvalue ;
17800 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17801 wxFont *result;
17802 bool temp7 = False ;
17803 PyObject * obj0 = 0 ;
17804 PyObject * obj1 = 0 ;
17805 PyObject * obj2 = 0 ;
17806 PyObject * obj3 = 0 ;
17807 PyObject * obj4 = 0 ;
17808 PyObject * obj5 = 0 ;
17809 PyObject * obj6 = 0 ;
17810 PyObject * obj7 = 0 ;
17811 char *kwnames[] = {
17812 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17813 };
17814
17815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17818 arg2 = (int)SWIG_As_int(obj1);
17819 if (PyErr_Occurred()) SWIG_fail;
17820 arg3 = (int)SWIG_As_int(obj2);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 arg4 = (int)SWIG_As_int(obj3);
17823 if (PyErr_Occurred()) SWIG_fail;
17824 arg5 = (int)SWIG_As_int(obj4);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 if (obj5) {
17827 arg6 = (bool)SWIG_As_bool(obj5);
17828 if (PyErr_Occurred()) SWIG_fail;
17829 }
17830 if (obj6) {
17831 {
17832 arg7 = wxString_in_helper(obj6);
17833 if (arg7 == NULL) SWIG_fail;
17834 temp7 = True;
17835 }
17836 }
17837 if (obj7) {
17838 arg8 = (int)SWIG_As_int(obj7);
17839 if (PyErr_Occurred()) SWIG_fail;
17840 }
17841 {
17842 PyThreadState* __tstate = wxPyBeginAllowThreads();
17843 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17844
17845 wxPyEndAllowThreads(__tstate);
17846 if (PyErr_Occurred()) SWIG_fail;
17847 }
17848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17849 {
17850 if (temp7)
17851 delete arg7;
17852 }
17853 return resultobj;
17854 fail:
17855 {
17856 if (temp7)
17857 delete arg7;
17858 }
17859 return NULL;
17860 }
17861
17862
17863 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
17864 PyObject *resultobj;
17865 wxFontList *arg1 = (wxFontList *) 0 ;
17866 wxFont *arg2 = (wxFont *) 0 ;
17867 PyObject * obj0 = 0 ;
17868 PyObject * obj1 = 0 ;
17869 char *kwnames[] = {
17870 (char *) "self",(char *) "font", NULL
17871 };
17872
17873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17876 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 (arg1)->RemoveFont(arg2);
17881
17882 wxPyEndAllowThreads(__tstate);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 }
17885 Py_INCREF(Py_None); resultobj = Py_None;
17886 return resultobj;
17887 fail:
17888 return NULL;
17889 }
17890
17891
17892 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17893 PyObject *resultobj;
17894 wxFontList *arg1 = (wxFontList *) 0 ;
17895 int result;
17896 PyObject * obj0 = 0 ;
17897 char *kwnames[] = {
17898 (char *) "self", NULL
17899 };
17900
17901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17904 {
17905 PyThreadState* __tstate = wxPyBeginAllowThreads();
17906 result = (int)(arg1)->GetCount();
17907
17908 wxPyEndAllowThreads(__tstate);
17909 if (PyErr_Occurred()) SWIG_fail;
17910 }
17911 resultobj = SWIG_From_int((int)result);
17912 return resultobj;
17913 fail:
17914 return NULL;
17915 }
17916
17917
17918 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
17919 PyObject *obj;
17920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17921 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17922 Py_INCREF(obj);
17923 return Py_BuildValue((char *)"");
17924 }
17925 static int _wrap_TheFontList_set(PyObject *) {
17926 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17927 return 1;
17928 }
17929
17930
17931 static PyObject *_wrap_TheFontList_get() {
17932 PyObject *pyobj;
17933
17934 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17935 return pyobj;
17936 }
17937
17938
17939 static int _wrap_ThePenList_set(PyObject *) {
17940 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17941 return 1;
17942 }
17943
17944
17945 static PyObject *_wrap_ThePenList_get() {
17946 PyObject *pyobj;
17947
17948 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17949 return pyobj;
17950 }
17951
17952
17953 static int _wrap_TheBrushList_set(PyObject *) {
17954 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17955 return 1;
17956 }
17957
17958
17959 static PyObject *_wrap_TheBrushList_get() {
17960 PyObject *pyobj;
17961
17962 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17963 return pyobj;
17964 }
17965
17966
17967 static int _wrap_TheColourDatabase_set(PyObject *) {
17968 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17969 return 1;
17970 }
17971
17972
17973 static PyObject *_wrap_TheColourDatabase_get() {
17974 PyObject *pyobj;
17975
17976 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17977 return pyobj;
17978 }
17979
17980
17981 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
17982 PyObject *resultobj;
17983 wxEffects *result;
17984 char *kwnames[] = {
17985 NULL
17986 };
17987
17988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17989 {
17990 PyThreadState* __tstate = wxPyBeginAllowThreads();
17991 result = (wxEffects *)new wxEffects();
17992
17993 wxPyEndAllowThreads(__tstate);
17994 if (PyErr_Occurred()) SWIG_fail;
17995 }
17996 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17997 return resultobj;
17998 fail:
17999 return NULL;
18000 }
18001
18002
18003 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18004 PyObject *resultobj;
18005 wxEffects *arg1 = (wxEffects *) 0 ;
18006 wxColour result;
18007 PyObject * obj0 = 0 ;
18008 char *kwnames[] = {
18009 (char *) "self", NULL
18010 };
18011
18012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18015 {
18016 PyThreadState* __tstate = wxPyBeginAllowThreads();
18017 result = ((wxEffects const *)arg1)->GetHighlightColour();
18018
18019 wxPyEndAllowThreads(__tstate);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 }
18022 {
18023 wxColour * resultptr;
18024 resultptr = new wxColour((wxColour &) result);
18025 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18026 }
18027 return resultobj;
18028 fail:
18029 return NULL;
18030 }
18031
18032
18033 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18034 PyObject *resultobj;
18035 wxEffects *arg1 = (wxEffects *) 0 ;
18036 wxColour result;
18037 PyObject * obj0 = 0 ;
18038 char *kwnames[] = {
18039 (char *) "self", NULL
18040 };
18041
18042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 result = ((wxEffects const *)arg1)->GetLightShadow();
18048
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 {
18053 wxColour * resultptr;
18054 resultptr = new wxColour((wxColour &) result);
18055 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18056 }
18057 return resultobj;
18058 fail:
18059 return NULL;
18060 }
18061
18062
18063 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18064 PyObject *resultobj;
18065 wxEffects *arg1 = (wxEffects *) 0 ;
18066 wxColour result;
18067 PyObject * obj0 = 0 ;
18068 char *kwnames[] = {
18069 (char *) "self", NULL
18070 };
18071
18072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18075 {
18076 PyThreadState* __tstate = wxPyBeginAllowThreads();
18077 result = ((wxEffects const *)arg1)->GetFaceColour();
18078
18079 wxPyEndAllowThreads(__tstate);
18080 if (PyErr_Occurred()) SWIG_fail;
18081 }
18082 {
18083 wxColour * resultptr;
18084 resultptr = new wxColour((wxColour &) result);
18085 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18086 }
18087 return resultobj;
18088 fail:
18089 return NULL;
18090 }
18091
18092
18093 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18094 PyObject *resultobj;
18095 wxEffects *arg1 = (wxEffects *) 0 ;
18096 wxColour result;
18097 PyObject * obj0 = 0 ;
18098 char *kwnames[] = {
18099 (char *) "self", NULL
18100 };
18101
18102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18105 {
18106 PyThreadState* __tstate = wxPyBeginAllowThreads();
18107 result = ((wxEffects const *)arg1)->GetMediumShadow();
18108
18109 wxPyEndAllowThreads(__tstate);
18110 if (PyErr_Occurred()) SWIG_fail;
18111 }
18112 {
18113 wxColour * resultptr;
18114 resultptr = new wxColour((wxColour &) result);
18115 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18116 }
18117 return resultobj;
18118 fail:
18119 return NULL;
18120 }
18121
18122
18123 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj;
18125 wxEffects *arg1 = (wxEffects *) 0 ;
18126 wxColour result;
18127 PyObject * obj0 = 0 ;
18128 char *kwnames[] = {
18129 (char *) "self", NULL
18130 };
18131
18132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18135 {
18136 PyThreadState* __tstate = wxPyBeginAllowThreads();
18137 result = ((wxEffects const *)arg1)->GetDarkShadow();
18138
18139 wxPyEndAllowThreads(__tstate);
18140 if (PyErr_Occurred()) SWIG_fail;
18141 }
18142 {
18143 wxColour * resultptr;
18144 resultptr = new wxColour((wxColour &) result);
18145 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18146 }
18147 return resultobj;
18148 fail:
18149 return NULL;
18150 }
18151
18152
18153 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18154 PyObject *resultobj;
18155 wxEffects *arg1 = (wxEffects *) 0 ;
18156 wxColour *arg2 = 0 ;
18157 wxColour temp2 ;
18158 PyObject * obj0 = 0 ;
18159 PyObject * obj1 = 0 ;
18160 char *kwnames[] = {
18161 (char *) "self",(char *) "c", NULL
18162 };
18163
18164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18167 {
18168 arg2 = &temp2;
18169 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18170 }
18171 {
18172 PyThreadState* __tstate = wxPyBeginAllowThreads();
18173 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18174
18175 wxPyEndAllowThreads(__tstate);
18176 if (PyErr_Occurred()) SWIG_fail;
18177 }
18178 Py_INCREF(Py_None); resultobj = Py_None;
18179 return resultobj;
18180 fail:
18181 return NULL;
18182 }
18183
18184
18185 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18186 PyObject *resultobj;
18187 wxEffects *arg1 = (wxEffects *) 0 ;
18188 wxColour *arg2 = 0 ;
18189 wxColour temp2 ;
18190 PyObject * obj0 = 0 ;
18191 PyObject * obj1 = 0 ;
18192 char *kwnames[] = {
18193 (char *) "self",(char *) "c", NULL
18194 };
18195
18196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18199 {
18200 arg2 = &temp2;
18201 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18202 }
18203 {
18204 PyThreadState* __tstate = wxPyBeginAllowThreads();
18205 (arg1)->SetLightShadow((wxColour const &)*arg2);
18206
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 Py_INCREF(Py_None); resultobj = Py_None;
18211 return resultobj;
18212 fail:
18213 return NULL;
18214 }
18215
18216
18217 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18218 PyObject *resultobj;
18219 wxEffects *arg1 = (wxEffects *) 0 ;
18220 wxColour *arg2 = 0 ;
18221 wxColour temp2 ;
18222 PyObject * obj0 = 0 ;
18223 PyObject * obj1 = 0 ;
18224 char *kwnames[] = {
18225 (char *) "self",(char *) "c", NULL
18226 };
18227
18228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18231 {
18232 arg2 = &temp2;
18233 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18234 }
18235 {
18236 PyThreadState* __tstate = wxPyBeginAllowThreads();
18237 (arg1)->SetFaceColour((wxColour const &)*arg2);
18238
18239 wxPyEndAllowThreads(__tstate);
18240 if (PyErr_Occurred()) SWIG_fail;
18241 }
18242 Py_INCREF(Py_None); resultobj = Py_None;
18243 return resultobj;
18244 fail:
18245 return NULL;
18246 }
18247
18248
18249 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18250 PyObject *resultobj;
18251 wxEffects *arg1 = (wxEffects *) 0 ;
18252 wxColour *arg2 = 0 ;
18253 wxColour temp2 ;
18254 PyObject * obj0 = 0 ;
18255 PyObject * obj1 = 0 ;
18256 char *kwnames[] = {
18257 (char *) "self",(char *) "c", NULL
18258 };
18259
18260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18263 {
18264 arg2 = &temp2;
18265 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18266 }
18267 {
18268 PyThreadState* __tstate = wxPyBeginAllowThreads();
18269 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18270
18271 wxPyEndAllowThreads(__tstate);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 }
18274 Py_INCREF(Py_None); resultobj = Py_None;
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj;
18283 wxEffects *arg1 = (wxEffects *) 0 ;
18284 wxColour *arg2 = 0 ;
18285 wxColour temp2 ;
18286 PyObject * obj0 = 0 ;
18287 PyObject * obj1 = 0 ;
18288 char *kwnames[] = {
18289 (char *) "self",(char *) "c", NULL
18290 };
18291
18292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18295 {
18296 arg2 = &temp2;
18297 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18298 }
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 Py_INCREF(Py_None); resultobj = Py_None;
18307 return resultobj;
18308 fail:
18309 return NULL;
18310 }
18311
18312
18313 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18314 PyObject *resultobj;
18315 wxEffects *arg1 = (wxEffects *) 0 ;
18316 wxColour *arg2 = 0 ;
18317 wxColour *arg3 = 0 ;
18318 wxColour *arg4 = 0 ;
18319 wxColour *arg5 = 0 ;
18320 wxColour *arg6 = 0 ;
18321 wxColour temp2 ;
18322 wxColour temp3 ;
18323 wxColour temp4 ;
18324 wxColour temp5 ;
18325 wxColour temp6 ;
18326 PyObject * obj0 = 0 ;
18327 PyObject * obj1 = 0 ;
18328 PyObject * obj2 = 0 ;
18329 PyObject * obj3 = 0 ;
18330 PyObject * obj4 = 0 ;
18331 PyObject * obj5 = 0 ;
18332 char *kwnames[] = {
18333 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18334 };
18335
18336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18339 {
18340 arg2 = &temp2;
18341 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18342 }
18343 {
18344 arg3 = &temp3;
18345 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18346 }
18347 {
18348 arg4 = &temp4;
18349 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18350 }
18351 {
18352 arg5 = &temp5;
18353 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18354 }
18355 {
18356 arg6 = &temp6;
18357 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18358 }
18359 {
18360 PyThreadState* __tstate = wxPyBeginAllowThreads();
18361 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18362
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 Py_INCREF(Py_None); resultobj = Py_None;
18367 return resultobj;
18368 fail:
18369 return NULL;
18370 }
18371
18372
18373 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
18374 PyObject *resultobj;
18375 wxEffects *arg1 = (wxEffects *) 0 ;
18376 wxDC *arg2 = 0 ;
18377 wxRect *arg3 = 0 ;
18378 int arg4 = (int) 1 ;
18379 wxRect temp3 ;
18380 PyObject * obj0 = 0 ;
18381 PyObject * obj1 = 0 ;
18382 PyObject * obj2 = 0 ;
18383 PyObject * obj3 = 0 ;
18384 char *kwnames[] = {
18385 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18386 };
18387
18388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18392 SWIG_POINTER_EXCEPTION | 0)) == -1)
18393 SWIG_fail;
18394 if (arg2 == NULL) {
18395 PyErr_SetString(PyExc_TypeError,"null reference");
18396 SWIG_fail;
18397 }
18398 {
18399 arg3 = &temp3;
18400 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18401 }
18402 if (obj3) {
18403 arg4 = (int)SWIG_As_int(obj3);
18404 if (PyErr_Occurred()) SWIG_fail;
18405 }
18406 {
18407 PyThreadState* __tstate = wxPyBeginAllowThreads();
18408 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18409
18410 wxPyEndAllowThreads(__tstate);
18411 if (PyErr_Occurred()) SWIG_fail;
18412 }
18413 Py_INCREF(Py_None); resultobj = Py_None;
18414 return resultobj;
18415 fail:
18416 return NULL;
18417 }
18418
18419
18420 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18421 PyObject *resultobj;
18422 wxEffects *arg1 = (wxEffects *) 0 ;
18423 wxRect *arg2 = 0 ;
18424 wxDC *arg3 = 0 ;
18425 wxBitmap *arg4 = 0 ;
18426 bool result;
18427 wxRect temp2 ;
18428 PyObject * obj0 = 0 ;
18429 PyObject * obj1 = 0 ;
18430 PyObject * obj2 = 0 ;
18431 PyObject * obj3 = 0 ;
18432 char *kwnames[] = {
18433 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18434 };
18435
18436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18439 {
18440 arg2 = &temp2;
18441 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18442 }
18443 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18444 SWIG_POINTER_EXCEPTION | 0)) == -1)
18445 SWIG_fail;
18446 if (arg3 == NULL) {
18447 PyErr_SetString(PyExc_TypeError,"null reference");
18448 SWIG_fail;
18449 }
18450 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18451 SWIG_POINTER_EXCEPTION | 0)) == -1)
18452 SWIG_fail;
18453 if (arg4 == NULL) {
18454 PyErr_SetString(PyExc_TypeError,"null reference");
18455 SWIG_fail;
18456 }
18457 {
18458 PyThreadState* __tstate = wxPyBeginAllowThreads();
18459 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18460
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 {
18465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18466 }
18467 return resultobj;
18468 fail:
18469 return NULL;
18470 }
18471
18472
18473 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
18474 PyObject *obj;
18475 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18476 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18477 Py_INCREF(obj);
18478 return Py_BuildValue((char *)"");
18479 }
18480 static PyMethodDef SwigMethods[] = {
18481 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18482 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18483 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18484 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18485 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18486 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18487 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18488 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18489 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18490 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18491 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18492 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18493 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18494 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18495 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18496 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18497 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18498 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18499 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18500 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18501 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18502 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18503 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18504 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18505 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18506 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18507 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18508 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18509 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18510 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18511 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18512 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18513 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18514 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18515 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18516 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18517 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18518 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18519 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18520 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18521 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18522 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18523 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18524 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18525 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18526 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18527 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18528 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18529 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18530 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18531 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18532 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18533 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18534 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18535 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18536 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18537 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18538 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18539 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18540 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18541 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18542 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18543 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18544 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18545 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18546 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18547 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18548 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18549 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18550 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18551 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18552 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18553 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18554 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18555 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18556 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18557 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18558 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18559 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18560 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18561 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18562 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18563 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18564 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18565 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18566 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18567 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18568 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18569 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18570 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18571 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18572 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18573 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18574 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18575 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18576 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18577 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18578 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18579 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18580 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18581 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18582 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18583 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18584 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18585 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18586 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18587 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18588 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18589 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18590 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18591 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18592 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18593 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18594 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18595 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18596 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18597 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18598 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18599 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18600 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18601 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18602 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18603 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18604 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18605 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18606 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18607 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18608 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18609 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18610 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18611 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18612 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18613 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18614 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18615 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18616 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18617 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18618 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18619 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18620 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18621 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18622 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18623 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18624 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18625 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18626 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18627 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18628 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18629 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18630 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18631 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18632 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18633 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18634 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18635 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18636 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18637 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18638 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18639 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18640 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18641 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18642 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18643 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18644 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18645 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18646 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18647 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18648 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18649 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18650 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18651 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18652 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18653 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18654 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18655 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18656 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18657 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18658 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18659 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18660 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18661 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18662 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18663 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18664 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18665 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18666 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18667 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18668 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18669 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18670 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18671 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18672 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18673 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18674 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18675 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18676 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18677 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18678 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18679 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18680 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18681 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18682 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18683 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18684 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18685 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18686 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18687 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18688 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18689 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18690 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18691 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18692 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18693 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18694 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18695 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18696 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18697 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18698 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18699 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18700 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18701 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18702 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18703 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18704 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18705 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18706 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
18707 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18708 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18709 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18710 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18711 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18712 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18713 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18714 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18715 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18716 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18717 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18718 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18719 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18720 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18721 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18722 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18723 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18724 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18725 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18726 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18727 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18728 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18729 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18730 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18731 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18732 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18733 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18734 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18735 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18736 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18737 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18738 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
18739 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18740 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18741 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18742 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18743 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18744 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18745 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18746 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
18747 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
18748 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
18749 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
18750 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
18751 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
18752 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
18753 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
18754 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18755 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18756 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
18757 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
18758 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18759 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18760 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18761 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18762 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18763 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18764 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
18765 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
18766 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
18767 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
18768 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
18769 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18770 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
18771 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18772 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18773 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
18774 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
18775 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
18776 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18777 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
18778 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18779 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18780 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18781 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
18782 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18783 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18784 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
18785 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
18786 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
18787 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18788 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18789 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
18790 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18791 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18792 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18793 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
18794 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18795 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
18796 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18797 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
18798 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18799 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
18800 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
18801 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
18802 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18803 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18804 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18805 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18806 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18807 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18808 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18809 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18810 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18811 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
18812 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18813 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
18814 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
18815 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18816 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18817 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18818 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18819 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18820 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
18821 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18822 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
18823 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18824 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
18825 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18826 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18827 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18828 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18829 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18830 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
18831 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
18832 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18833 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18834 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
18835 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18836 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18837 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18838 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
18839 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
18840 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18841 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18842 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18843 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18844 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18845 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
18846 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18847 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18848 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18849 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18850 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18851 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18852 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18853 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18854 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
18855 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18856 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18857 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
18858 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18859 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
18860 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
18861 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18862 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18863 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
18864 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
18865 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18866 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18867 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18868 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18869 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18870 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
18871 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18872 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18873 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18874 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18875 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18876 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18877 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18878 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18879 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18880 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18881 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18882 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18883 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18884 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18885 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18886 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18887 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18888 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18889 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18890 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18891 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18892 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18893 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18894 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18895 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
18896 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18897 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18898 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18899 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18900 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18901 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18902 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18903 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
18904 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
18905 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
18906 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
18907 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18908 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
18909 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
18910 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
18911 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
18912 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
18913 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
18914 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
18915 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
18916 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
18917 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
18918 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
18919 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
18920 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
18921 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
18922 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
18923 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18924 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
18925 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
18926 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
18927 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18928 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18929 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
18930 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
18931 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
18932 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18933 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
18934 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
18935 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
18936 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
18937 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
18938 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
18939 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18940 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18941 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18942 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18943 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
18944 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18945 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18946 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18947 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
18948 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18949 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18950 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18951 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
18952 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
18953 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
18954 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
18955 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
18956 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
18957 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18958 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18959 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
18960 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
18961 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18962 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
18963 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
18964 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
18965 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
18966 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
18967 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18968 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
18969 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
18970 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
18971 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
18972 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18973 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
18974 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18975 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18976 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18977 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18978 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
18979 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18980 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18981 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
18982 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
18983 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
18984 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
18985 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
18986 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
18987 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
18988 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
18989 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18990 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
18991 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
18992 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18993 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18994 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18995 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18996 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18997 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18998 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18999 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19000 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19001 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19002 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19003 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19004 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19005 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19006 { NULL, NULL, 0, NULL }
19007 };
19008
19009
19010 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19011
19012 static void *_p_wxControlTo_p_wxWindow(void *x) {
19013 return (void *)((wxWindow *) ((wxControl *) x));
19014 }
19015 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19016 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19017 }
19018 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19019 return (void *)((wxWindow *) ((wxMenuBar *) x));
19020 }
19021 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19022 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19023 }
19024 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19025 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19026 }
19027 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19029 }
19030 static void *_p_wxPenTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19032 }
19033 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) ((wxRegionIterator *) x));
19035 }
19036 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19038 }
19039 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) ((wxSizerItem *) x));
19041 }
19042 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) ((wxColourDatabase *) x));
19044 }
19045 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19047 }
19048 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19050 }
19051 static void *_p_wxIconTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19053 }
19054 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19056 }
19057 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19059 }
19060 static void *_p_wxSizerTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) ((wxSizer *) x));
19062 }
19063 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19065 }
19066 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19068 }
19069 static void *_p_wxPenListTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) ((wxPenList *) x));
19071 }
19072 static void *_p_wxEventTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) ((wxEvent *) x));
19074 }
19075 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19077 }
19078 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19080 }
19081 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19082 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19083 }
19084 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19085 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19086 }
19087 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19088 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19089 }
19090 static void *_p_wxDCTo_p_wxObject(void *x) {
19091 return (void *)((wxObject *) ((wxDC *) x));
19092 }
19093 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19094 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19095 }
19096 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19097 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19098 }
19099 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19100 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19101 }
19102 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19103 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19104 }
19105 static void *_p_wxControlTo_p_wxObject(void *x) {
19106 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19107 }
19108 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19109 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19110 }
19111 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19112 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19113 }
19114 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19115 return (void *)((wxObject *) ((wxFSFile *) x));
19116 }
19117 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19118 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19119 }
19120 static void *_p_wxRegionTo_p_wxObject(void *x) {
19121 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19122 }
19123 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19124 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19125 }
19126 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19127 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19128 }
19129 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19130 return (void *)((wxObject *) ((wxGDIObject *) x));
19131 }
19132 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19133 return (void *)((wxObject *) ((wxEffects *) x));
19134 }
19135 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19136 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19137 }
19138 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19139 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19140 }
19141 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19142 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19143 }
19144 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19145 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19146 }
19147 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19148 return (void *)((wxObject *) ((wxMenuItem *) x));
19149 }
19150 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19151 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19152 }
19153 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19154 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19155 }
19156 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19157 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19158 }
19159 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19160 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19161 }
19162 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19163 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19164 }
19165 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19166 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19167 }
19168 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19169 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19170 }
19171 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19172 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19173 }
19174 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19175 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19176 }
19177 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19178 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19179 }
19180 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19181 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19182 }
19183 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19184 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19185 }
19186 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19187 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19188 }
19189 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19190 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19191 }
19192 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19193 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19194 }
19195 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19196 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19197 }
19198 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19199 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19200 }
19201 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19202 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19203 }
19204 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19205 return (void *)((wxObject *) ((wxImageHandler *) x));
19206 }
19207 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19208 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19209 }
19210 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19211 return (void *)((wxObject *) ((wxEvtHandler *) x));
19212 }
19213 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19214 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19215 }
19216 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19217 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19218 }
19219 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19220 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19221 }
19222 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19223 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19224 }
19225 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19226 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19227 }
19228 static void *_p_wxImageTo_p_wxObject(void *x) {
19229 return (void *)((wxObject *) ((wxImage *) x));
19230 }
19231 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19232 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19233 }
19234 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19235 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19236 }
19237 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19238 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19239 }
19240 static void *_p_wxImageListTo_p_wxObject(void *x) {
19241 return (void *)((wxObject *) ((wxImageList *) x));
19242 }
19243 static void *_p_wxCursorTo_p_wxObject(void *x) {
19244 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19245 }
19246 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19247 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19248 }
19249 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19250 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19251 }
19252 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19253 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19254 }
19255 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19256 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19257 }
19258 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19259 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19260 }
19261 static void *_p_wxWindowTo_p_wxObject(void *x) {
19262 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19263 }
19264 static void *_p_wxMenuTo_p_wxObject(void *x) {
19265 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19266 }
19267 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19268 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19269 }
19270 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19271 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19272 }
19273 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19274 return (void *)((wxObject *) ((wxBrushList *) x));
19275 }
19276 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19277 return (void *)((wxObject *) ((wxFileSystem *) x));
19278 }
19279 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19280 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19281 }
19282 static void *_p_wxMaskTo_p_wxObject(void *x) {
19283 return (void *)((wxObject *) ((wxMask *) x));
19284 }
19285 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19286 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19287 }
19288 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19289 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19290 }
19291 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19292 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19293 }
19294 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19295 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19296 }
19297 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19298 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19299 }
19300 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19301 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19302 }
19303 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19304 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19305 }
19306 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19307 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19308 }
19309 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19310 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19311 }
19312 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19313 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19314 }
19315 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19316 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19317 }
19318 static void *_p_wxFontTo_p_wxObject(void *x) {
19319 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19320 }
19321 static void *_p_wxBrushTo_p_wxObject(void *x) {
19322 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19323 }
19324 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19325 return (void *)((wxObject *) ((wxMetaFile *) x));
19326 }
19327 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19328 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19329 }
19330 static void *_p_wxColourTo_p_wxObject(void *x) {
19331 return (void *)((wxObject *) ((wxColour *) x));
19332 }
19333 static void *_p_wxFontListTo_p_wxObject(void *x) {
19334 return (void *)((wxObject *) ((wxFontList *) x));
19335 }
19336 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19337 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19338 }
19339 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19340 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19341 }
19342 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19343 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19344 }
19345 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19346 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19347 }
19348 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19349 return (void *)((wxDC *) ((wxScreenDC *) x));
19350 }
19351 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19352 return (void *)((wxDC *) ((wxMirrorDC *) x));
19353 }
19354 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19355 return (void *)((wxDC *) ((wxMemoryDC *) x));
19356 }
19357 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19358 return (void *)((wxDC *) ((wxWindowDC *) x));
19359 }
19360 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19361 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19362 }
19363 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19364 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19365 }
19366 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19367 return (void *)((wxDC *) ((wxClientDC *) x));
19368 }
19369 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19370 return (void *)((wxDC *) ((wxPaintDC *) x));
19371 }
19372 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19373 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19374 }
19375 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19376 return (void *)((wxDC *) ((wxPrinterDC *) x));
19377 }
19378 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19379 return (void *)((wxGDIObject *) ((wxIcon *) x));
19380 }
19381 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19382 return (void *)((wxGDIObject *) ((wxPalette *) x));
19383 }
19384 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19385 return (void *)((wxGDIObject *) ((wxPen *) x));
19386 }
19387 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19388 return (void *)((wxGDIObject *) ((wxFont *) x));
19389 }
19390 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19391 return (void *)((wxGDIObject *) ((wxCursor *) x));
19392 }
19393 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19394 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19395 }
19396 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19397 return (void *)((wxGDIObject *) ((wxRegion *) x));
19398 }
19399 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19400 return (void *)((wxGDIObject *) ((wxBrush *) x));
19401 }
19402 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}};
19403 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}};
19404 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}};
19405 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}};
19406 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}};
19407 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}};
19408 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}};
19409 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}};
19410 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}};
19411 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}};
19412 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}};
19413 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}};
19414 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}};
19415 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}};
19416 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}};
19417 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}};
19418 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}};
19419 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}};
19420 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}};
19421 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}};
19422 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}};
19423 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}};
19424 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}};
19425 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}};
19426 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}};
19427 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}};
19428 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}};
19429 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}};
19430 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}};
19431 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}};
19432 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}};
19433 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}};
19434 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}};
19435 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}};
19436 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}};
19437 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}};
19438 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}};
19439 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}};
19440 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}};
19441 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}};
19442 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}};
19443 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}};
19444 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}};
19445 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}};
19446 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}};
19447 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}};
19448 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}};
19449 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}};
19450 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}};
19451 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}};
19452 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}};
19453 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}};
19454 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}};
19455 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}};
19456 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}};
19457
19458 static swig_type_info *swig_types_initial[] = {
19459 _swigt__p_wxPostScriptDC,
19460 _swigt__p_wxBrush,
19461 _swigt__p_wxColour,
19462 _swigt__p_wxDC,
19463 _swigt__p_wxMirrorDC,
19464 _swigt__p_byte,
19465 _swigt__p_wxPyFontEnumerator,
19466 _swigt__p_char,
19467 _swigt__p_wxIconLocation,
19468 _swigt__p_wxImage,
19469 _swigt__p_wxMetaFileDC,
19470 _swigt__p_wxMask,
19471 _swigt__p_wxSize,
19472 _swigt__p_wxFont,
19473 _swigt__p_wxWindow,
19474 _swigt__p_double,
19475 _swigt__p_wxMemoryDC,
19476 _swigt__p_wxFontMapper,
19477 _swigt__p_wxEffects,
19478 _swigt__p_wxNativeEncodingInfo,
19479 _swigt__p_wxPalette,
19480 _swigt__p_wxBitmap,
19481 _swigt__p_wxObject,
19482 _swigt__p_wxRegionIterator,
19483 _swigt__p_wxRect,
19484 _swigt__p_wxString,
19485 _swigt__p_wxPrinterDC,
19486 _swigt__p_wxIconBundle,
19487 _swigt__p_wxPoint,
19488 _swigt__p_wxDash,
19489 _swigt__p_wxScreenDC,
19490 _swigt__p_wxCursor,
19491 _swigt__p_wxClientDC,
19492 _swigt__p_wxBufferedDC,
19493 _swigt__p_wxImageList,
19494 _swigt__p_unsigned_char,
19495 _swigt__p_wxGDIObject,
19496 _swigt__p_wxIcon,
19497 _swigt__p_wxLocale,
19498 _swigt__p_wxRegion,
19499 _swigt__p_wxLanguageInfo,
19500 _swigt__p_wxConfigBase,
19501 _swigt__p_wxWindowDC,
19502 _swigt__p_wxPrintData,
19503 _swigt__p_wxBrushList,
19504 _swigt__p_wxFontList,
19505 _swigt__p_wxPen,
19506 _swigt__p_wxBufferedPaintDC,
19507 _swigt__p_wxPaintDC,
19508 _swigt__p_wxPenList,
19509 _swigt__p_int,
19510 _swigt__p_wxMetaFile,
19511 _swigt__p_wxNativeFontInfo,
19512 _swigt__p_wxEncodingConverter,
19513 _swigt__p_wxColourDatabase,
19514 0
19515 };
19516
19517
19518 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19519
19520 static swig_const_info swig_const_table[] = {
19521 {0, 0, 0, 0.0, 0, 0}};
19522
19523 #ifdef __cplusplus
19524 }
19525 #endif
19526
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 SWIGEXPORT(void) SWIG_init(void) {
19531 static PyObject *SWIG_globals = 0;
19532 static int typeinit = 0;
19533 PyObject *m, *d;
19534 int i;
19535 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19536 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19537 d = PyModule_GetDict(m);
19538
19539 if (!typeinit) {
19540 for (i = 0; swig_types_initial[i]; i++) {
19541 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19542 }
19543 typeinit = 1;
19544 }
19545 SWIG_InstallConstants(d,swig_const_table);
19546
19547 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
19548 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
19549 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
19550 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
19551 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
19552 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
19553 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
19554 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
19555 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
19556 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
19557 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
19558 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
19559 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
19560 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
19561 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
19562 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
19563 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
19564 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
19565 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
19566 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
19567 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
19568 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
19569 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
19570 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
19571 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
19572 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
19573 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
19574 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
19575 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
19576 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
19577 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
19578 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
19579 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
19580 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
19581 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
19582 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
19583 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
19584 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
19585 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
19586 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
19587 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
19588 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
19589 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
19590 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
19591 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
19592 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
19593 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
19594 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
19595 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
19596 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
19597 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
19598 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
19599 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
19600 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
19601 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
19602 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
19603 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
19604 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
19605 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
19606 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
19607 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
19608 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
19609 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
19610 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
19611 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
19612 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
19613 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
19614 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
19615 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
19616 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
19617 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
19618 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
19619 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
19620 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
19621 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
19622 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
19623 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
19624 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
19625 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
19626 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
19627 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
19628 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
19629 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
19630 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
19631 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
19632 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
19633 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
19634 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
19635 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
19636 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
19637 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
19638 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
19639 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
19640 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
19641 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
19642 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
19643 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
19644 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
19645 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
19646 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
19647 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
19648 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
19649 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
19650 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
19651 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
19652 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
19653 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
19654 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
19655 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
19656 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
19657 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
19658 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
19659 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
19660 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
19661 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
19662 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
19663 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
19664 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
19665 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
19666 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
19667 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
19668 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
19669 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
19670 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
19671 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
19672 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
19673 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
19674
19675 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19676
19677 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
19678 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
19679 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
19680 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
19681 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
19682 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
19683 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
19684 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
19685 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
19686 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
19687 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
19688 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
19689 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
19690 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
19691 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
19692 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
19693 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
19694 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
19695 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
19696 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19697 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
19698 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
19699 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
19700 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
19701 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
19702 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
19703 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
19704 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
19705 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
19706 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
19707 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
19708 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
19709 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
19710 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
19711 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
19712 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
19713 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
19714 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
19715 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
19716 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
19717 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
19718 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
19719 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
19720 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
19721 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19722 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19723 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
19724 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
19725 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
19726 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
19727 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
19728 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
19729 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
19730 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
19731 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
19732 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
19733 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
19734 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
19735 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
19736 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19737 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
19738 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19739 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
19740 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19741 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
19742 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
19743 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
19744 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19745 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19746 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19747 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19748 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19749 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
19750 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
19751 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
19752 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
19753 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
19754 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
19755 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
19756 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
19757 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
19758 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19759 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
19760 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
19761 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
19762 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
19763 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
19764 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
19765 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19766 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
19767 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19768 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19769 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
19770 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
19771 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
19772 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
19773 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
19774 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
19775 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
19776 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
19777 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
19778 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
19779 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
19780 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
19781 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
19782 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
19783 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
19784 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
19785 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
19786 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
19787 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
19788 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
19789 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
19790 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
19791 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
19792 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
19793 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
19794 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
19795 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
19796 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
19797 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
19798 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
19799 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
19800 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
19801 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
19802 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
19803 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
19804 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
19805 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
19806 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
19807 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
19808 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
19809 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19810 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
19811 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
19812 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
19813 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
19814 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
19815 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
19816 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
19817 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
19818 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
19819 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
19820 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19821 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19822 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
19823 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
19824 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
19825 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
19826 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
19827 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
19828 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19829 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
19830 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
19831 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
19832 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
19833 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
19834 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19835 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
19836 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
19837 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
19838 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
19839 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
19840 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19841 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
19842 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
19843 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
19844 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
19845 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
19846 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
19847 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
19848 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
19849 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
19850 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
19851 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
19852 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
19853 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
19854 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
19855 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
19856 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
19857 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19858 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19859 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
19860 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19861 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
19862 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
19863 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
19864 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
19865 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
19866 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
19867 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
19868 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
19869 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19870 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
19871 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
19872 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
19873 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
19874 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
19875 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
19876 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
19877 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
19878 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
19879 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
19880 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
19881 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
19882 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
19883 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
19884 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
19885 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
19886 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
19887 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
19888 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
19889 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
19890 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
19891 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
19892 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
19893 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
19894 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
19895 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
19896 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
19897 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
19898 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
19899 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
19900 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
19901 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
19902 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
19903 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
19904 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
19905 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
19906 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
19907 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
19908 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
19909 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
19910 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
19911 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
19912 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
19913 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
19914 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
19915 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
19916 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
19917 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
19918 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
19919 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
19920 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
19921 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
19922 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
19923 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
19924 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
19925 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
19926 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
19927 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
19928 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
19929 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
19930 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19931 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19932 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19933 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19934 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19935 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19936 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19937 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19938 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19939 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19940 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19941 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19942 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19943 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19944 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19945 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19946 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19947 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19948 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19949 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19950 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19951 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19952 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19953 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19954 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19955 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19956 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19957 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19958 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19959 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19960 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19961 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19962 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19963 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19964 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19965 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19966 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19967 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19968 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19969 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19970 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19971 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19972 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19973 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19974 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19975 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19976 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19977
19978 // Work around a chicken/egg problem in drawlist.cpp
19979 wxPyDrawList_SetAPIPtr();
19980
19981 }
19982