]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
Some change notes
[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 o2 = target;
626 target = PyTuple_New(1);
627 PyTuple_SetItem(target, 0, o2);
628
629 o3 = PyTuple_New(1);
630 PyTuple_SetItem(o3, 0, o);
631
632 o2 = target;
633 target = PySequence_Concat(o2, o3);
634 Py_DECREF(o2);
635 Py_DECREF(o3);
636 }
637 return target;
638 }
639
640
641 PyObject *wxPen_GetDashes(wxPen *self){
642 wxDash* dashes;
643 int count = self->GetDashes(&dashes);
644 bool blocked = wxPyBeginBlockThreads();
645 PyObject* retval = PyList_New(0);
646 for (int x=0; x<count; x++) {
647 PyObject* pyint = PyInt_FromLong(dashes[x]);
648 PyList_Append(retval, pyint);
649 Py_DECREF(pyint);
650 }
651 wxPyEndBlockThreads(blocked);
652 return retval;
653 }
654 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
655 bool blocked = wxPyBeginBlockThreads();
656 int size = PyList_Size(pyDashes);
657 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
658
659 // black magic warning! The array of wxDashes needs to exist as
660 // long as the pen does because wxPen does not copy the array. So
661 // stick a copy in a Python string object and attach it to _self,
662 // and then call SetDashes with a pointer to that array. Then
663 // when the Python pen object is destroyed the array will be
664 // cleaned up too.
665 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
666 PyObject_SetAttrString(_self, "_dashes", strDashes);
667
668 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
669 delete [] dashes;
670 Py_DECREF(strDashes);
671 wxPyEndBlockThreads(blocked);
672 }
673 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
674 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
675
676 SWIGSTATICINLINE(int)
677 SWIG_AsVal_short(PyObject *obj, short *val)
678 {
679 const char* errmsg = val ? "short" : 0;
680 long v;
681 if (SWIG_AsVal_long(obj, &v)) {
682 if (SWIG_CheckLongInRange(v, SHRT_MIN, SHRT_MAX, errmsg)) {
683 if (val) *val = swig_numeric_cast(v, short);
684 return 1;
685 } else {
686 return 0;
687 }
688 } else {
689 PyErr_Clear();
690 }
691 if (val) {
692 PyErr_SetString(PyExc_TypeError, "a short is expected");
693 }
694 return 0;
695 }
696
697
698 SWIGSTATICINLINE(short)
699 SWIG_As_short(PyObject* obj)
700 {
701 short v;
702 if (!SWIG_AsVal_short(obj, &v)) {
703 /*
704 this is needed to make valgrind/purify happier. the other
705 solution is throw an exception, but since this code should work
706 with plain C ....
707 */
708 memset((void*)&v, 0, sizeof(short));
709 }
710 return v;
711 }
712
713
714 SWIGSTATICINLINE(int)
715 SWIG_Check_short(PyObject* obj)
716 {
717 return SWIG_AsVal_short(obj, (short*)0);
718 }
719
720
721 #include <wx/image.h>
722
723 static char** ConvertListOfStrings(PyObject* listOfStrings) {
724 char** cArray = NULL;
725 int count;
726
727 if (!PyList_Check(listOfStrings)) {
728 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
729 return NULL;
730 }
731 count = PyList_Size(listOfStrings);
732 cArray = new char*[count];
733
734 for(int x=0; x<count; x++) {
735 // TODO: Need some validation and error checking here
736 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
737 }
738 return cArray;
739 }
740
741
742 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
743 char** cArray = NULL;
744 wxBitmap* bmp;
745
746 cArray = ConvertListOfStrings(listOfStrings);
747 if (! cArray)
748 return NULL;
749 bmp = new wxBitmap(cArray);
750 delete [] cArray;
751 return bmp;
752 }
753 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
754 char* buf;
755 int length;
756 PyString_AsStringAndSize(bits, &buf, &length);
757 return new wxBitmap(buf, width, height, depth);
758 }
759 wxSize wxBitmap_GetSize(wxBitmap *self){
760 wxSize size(self->GetWidth(), self->GetHeight());
761 return size;
762 }
763 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
764 wxMask *mask = new wxMask(*self, colour);
765 self->SetMask(mask);
766 }
767 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
768 self->SetWidth(size.x);
769 self->SetHeight(size.y);
770 }
771 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
772 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
773 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
774 if ( !colour.Ok() )
775 return new wxMask(bitmap, *wxBLACK);
776 else
777 return new wxMask(bitmap, colour);
778 }
779
780 #include <wx/iconbndl.h>
781
782 wxIcon *new_wxIcon(wxBitmap const &bmp){
783 wxIcon* icon = new wxIcon();
784 icon->CopyFromBitmap(bmp);
785 return icon;
786 }
787 wxIcon *new_wxIcon(PyObject *listOfStrings){
788 char** cArray = NULL;
789 wxIcon* icon;
790
791 cArray = ConvertListOfStrings(listOfStrings);
792 if (! cArray)
793 return NULL;
794 icon = new wxIcon(cArray);
795 delete [] cArray;
796 return icon;
797 }
798 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
799
800
801
802 return new wxIconLocation(*filename);
803
804 }
805 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
806
807
808
809 // do nothing
810
811 }
812 int wxIconLocation_GetIndex(wxIconLocation *self){
813
814
815
816 return -1;
817
818 }
819
820 SWIGSTATICINLINE(long)
821 SWIG_As_long(PyObject* obj)
822 {
823 long v;
824 if (!SWIG_AsVal_long(obj, &v)) {
825 /*
826 this is needed to make valgrind/purify happier. the other
827 solution is throw an exception, but since this code should work
828 with plain C ....
829 */
830 memset((void*)&v, 0, sizeof(long));
831 }
832 return v;
833 }
834
835
836 SWIGSTATICINLINE(int)
837 SWIG_Check_long(PyObject* obj)
838 {
839 return SWIG_AsVal_long(obj, (long*)0);
840 }
841
842 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
843 #ifdef __WXGTK__
844 wxCHECK_MSG(False, NULL,
845 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
846 #else
847 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
848 #endif
849 }
850
851
852 void wxRegionIterator_Next(wxRegionIterator *self){
853 (*self) ++;
854 }
855 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
856 return self->operator bool();
857 }
858
859 #include <wx/fontutil.h>
860 #include <wx/fontmap.h>
861 #include <wx/fontenum.h>
862
863 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
864 return self->ToString();
865 }
866
867 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
868 static wxNativeEncodingInfo info;
869 if ( wxGetNativeFontEncoding(encoding, &info) )
870 return &info;
871 else
872 return NULL;
873 }
874
875 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
876 wxFontEncoding alt_enc;
877 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
878 return PyInt_FromLong(alt_enc);
879 else {
880 Py_INCREF(Py_None);
881 return Py_None;
882 }
883 }
884 wxFont *new_wxFont(wxString const &info){
885 wxNativeFontInfo nfi;
886 nfi.FromString(info);
887 return new wxFont(nfi);
888 }
889 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
890 return wxFont::New(pointSize, family, flags, face, encoding);
891 }
892 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
893 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
894
895 class wxPyFontEnumerator : public wxFontEnumerator {
896 public:
897 wxPyFontEnumerator() {}
898 ~wxPyFontEnumerator() {}
899
900 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
901 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
902
903 PYPRIVATE;
904 };
905
906 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
907 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
908
909
910 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
911 wxArrayString* arr = self->GetEncodings();
912 if (arr)
913 return wxArrayString2PyList_helper(*arr);
914 else
915 return PyList_New(0);
916 }
917 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
918 wxArrayString* arr = self->GetFacenames();
919 if (arr)
920 return wxArrayString2PyList_helper(*arr);
921 else
922 return PyList_New(0);
923 }
924
925
926 wxLocale *new_wxLocale(int language,int flags){
927 if (language == -1)
928 return new wxLocale();
929 else
930 return new wxLocale(language, flags);
931 }
932
933 #include "wx/wxPython/pydrawxxx.h"
934
935 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
936 wxColour col;
937 self->GetPixel(x, y, &col);
938 return col;
939 }
940 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
941 wxColour col;
942 self->GetPixel(pt, &col);
943 return col;
944 }
945
946 // See my_fragments.i
947 SWIGSTATICINLINE(int)
948 SWIG_AsVal_double(PyObject *obj, double* val)
949 {
950 if (PyNumber_Check(obj)) {
951 if (val) *val = PyFloat_AsDouble(obj);
952 return 1;
953 }
954 else {
955 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
956 obj->ob_type->tp_name);
957 PyErr_SetObject(PyExc_TypeError, errmsg);
958 Py_DECREF(errmsg);
959 }
960 return 0;
961 }
962
963
964 SWIGSTATICINLINE(double)
965 SWIG_As_double(PyObject* obj)
966 {
967 double v;
968 if (!SWIG_AsVal_double(obj, &v)) {
969 /*
970 this is needed to make valgrind/purify happier. the other
971 solution is throw an exception, but since this code should work
972 with plain C ....
973 */
974 memset((void*)&v, 0, sizeof(double));
975 }
976 return v;
977 }
978
979
980 SWIGSTATICINLINE(int)
981 SWIG_Check_double(PyObject* obj)
982 {
983 return SWIG_AsVal_double(obj, (double*)0);
984 }
985
986 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
987 wxRect rv;
988 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
989 return rv;
990 }
991
992 wxRect wxDC_GetClippingRect(wxDC *self){
993 wxRect rect;
994 self->GetClippingBox(rect);
995 return rect;
996 }
997 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
998 wxArrayInt widths;
999 self->GetPartialTextExtents(text, widths);
1000 return widths;
1001 }
1002
1003 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
1004 self->SetLogicalOrigin(point.x, point.y);
1005 }
1006 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
1007 self->SetDeviceOrigin(point.x, point.y);
1008 }
1009 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
1010 self->CalcBoundingBox(point.x, point.y);
1011 }
1012 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1013 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
1014 }
1015 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1016 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
1017 }
1018 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1019 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
1020 }
1021 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1022 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
1023 }
1024 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1025 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
1026 }
1027 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
1028 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
1029 }
1030
1031 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
1032 *x1 = dc->MinX();
1033 *y1 = dc->MinY();
1034 *x2 = dc->MaxX();
1035 *y2 = dc->MaxY();
1036 }
1037
1038
1039 #include <wx/dcbuffer.h>
1040
1041
1042 #include <wx/dcps.h>
1043
1044
1045 #include <wx/metafile.h>
1046
1047
1048
1049 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1050 self->AddColour(name, wxColour(red, green, blue));
1051 }
1052
1053 #include <wx/effects.h>
1054
1055 #ifdef __cplusplus
1056 extern "C" {
1057 #endif
1058 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1059 PyObject *resultobj;
1060 wxGDIObject *result;
1061 char *kwnames[] = {
1062 NULL
1063 };
1064
1065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1066 {
1067 if (!wxPyCheckForApp()) SWIG_fail;
1068 PyThreadState* __tstate = wxPyBeginAllowThreads();
1069 result = (wxGDIObject *)new wxGDIObject();
1070
1071 wxPyEndAllowThreads(__tstate);
1072 if (PyErr_Occurred()) SWIG_fail;
1073 }
1074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1075 return resultobj;
1076 fail:
1077 return NULL;
1078 }
1079
1080
1081 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1082 PyObject *resultobj;
1083 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1084 PyObject * obj0 = 0 ;
1085 char *kwnames[] = {
1086 (char *) "self", NULL
1087 };
1088
1089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1092 {
1093 PyThreadState* __tstate = wxPyBeginAllowThreads();
1094 delete arg1;
1095
1096 wxPyEndAllowThreads(__tstate);
1097 if (PyErr_Occurred()) SWIG_fail;
1098 }
1099 Py_INCREF(Py_None); resultobj = Py_None;
1100 return resultobj;
1101 fail:
1102 return NULL;
1103 }
1104
1105
1106 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1107 PyObject *resultobj;
1108 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1109 bool result;
1110 PyObject * obj0 = 0 ;
1111 char *kwnames[] = {
1112 (char *) "self", NULL
1113 };
1114
1115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1118 {
1119 PyThreadState* __tstate = wxPyBeginAllowThreads();
1120 result = (bool)(arg1)->GetVisible();
1121
1122 wxPyEndAllowThreads(__tstate);
1123 if (PyErr_Occurred()) SWIG_fail;
1124 }
1125 {
1126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1127 }
1128 return resultobj;
1129 fail:
1130 return NULL;
1131 }
1132
1133
1134 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1135 PyObject *resultobj;
1136 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1137 bool arg2 ;
1138 PyObject * obj0 = 0 ;
1139 PyObject * obj1 = 0 ;
1140 char *kwnames[] = {
1141 (char *) "self",(char *) "visible", NULL
1142 };
1143
1144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1147 arg2 = (bool)SWIG_As_bool(obj1);
1148 if (PyErr_Occurred()) SWIG_fail;
1149 {
1150 PyThreadState* __tstate = wxPyBeginAllowThreads();
1151 (arg1)->SetVisible(arg2);
1152
1153 wxPyEndAllowThreads(__tstate);
1154 if (PyErr_Occurred()) SWIG_fail;
1155 }
1156 Py_INCREF(Py_None); resultobj = Py_None;
1157 return resultobj;
1158 fail:
1159 return NULL;
1160 }
1161
1162
1163 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1164 PyObject *resultobj;
1165 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1166 bool result;
1167 PyObject * obj0 = 0 ;
1168 char *kwnames[] = {
1169 (char *) "self", NULL
1170 };
1171
1172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1175 {
1176 PyThreadState* __tstate = wxPyBeginAllowThreads();
1177 result = (bool)(arg1)->IsNull();
1178
1179 wxPyEndAllowThreads(__tstate);
1180 if (PyErr_Occurred()) SWIG_fail;
1181 }
1182 {
1183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1184 }
1185 return resultobj;
1186 fail:
1187 return NULL;
1188 }
1189
1190
1191 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1192 PyObject *obj;
1193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1194 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1195 Py_INCREF(obj);
1196 return Py_BuildValue((char *)"");
1197 }
1198 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1199 PyObject *resultobj;
1200 byte arg1 = (byte) 0 ;
1201 byte arg2 = (byte) 0 ;
1202 byte arg3 = (byte) 0 ;
1203 wxColour *result;
1204 PyObject * obj0 = 0 ;
1205 PyObject * obj1 = 0 ;
1206 PyObject * obj2 = 0 ;
1207 char *kwnames[] = {
1208 (char *) "red",(char *) "green",(char *) "blue", NULL
1209 };
1210
1211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1212 if (obj0) {
1213 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 }
1216 if (obj1) {
1217 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1218 if (PyErr_Occurred()) SWIG_fail;
1219 }
1220 if (obj2) {
1221 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1222 if (PyErr_Occurred()) SWIG_fail;
1223 }
1224 {
1225 PyThreadState* __tstate = wxPyBeginAllowThreads();
1226 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1227
1228 wxPyEndAllowThreads(__tstate);
1229 if (PyErr_Occurred()) SWIG_fail;
1230 }
1231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1232 return resultobj;
1233 fail:
1234 return NULL;
1235 }
1236
1237
1238 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1239 PyObject *resultobj;
1240 wxString *arg1 = 0 ;
1241 wxColour *result;
1242 bool temp1 = False ;
1243 PyObject * obj0 = 0 ;
1244 char *kwnames[] = {
1245 (char *) "colorName", NULL
1246 };
1247
1248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1249 {
1250 arg1 = wxString_in_helper(obj0);
1251 if (arg1 == NULL) SWIG_fail;
1252 temp1 = True;
1253 }
1254 {
1255 if (!wxPyCheckForApp()) SWIG_fail;
1256 PyThreadState* __tstate = wxPyBeginAllowThreads();
1257 result = (wxColour *)new wxColour((wxString const &)*arg1);
1258
1259 wxPyEndAllowThreads(__tstate);
1260 if (PyErr_Occurred()) SWIG_fail;
1261 }
1262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1263 {
1264 if (temp1)
1265 delete arg1;
1266 }
1267 return resultobj;
1268 fail:
1269 {
1270 if (temp1)
1271 delete arg1;
1272 }
1273 return NULL;
1274 }
1275
1276
1277 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1278 PyObject *resultobj;
1279 unsigned long arg1 ;
1280 wxColour *result;
1281 PyObject * obj0 = 0 ;
1282 char *kwnames[] = {
1283 (char *) "colRGB", NULL
1284 };
1285
1286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1287 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
1288 if (PyErr_Occurred()) SWIG_fail;
1289 {
1290 PyThreadState* __tstate = wxPyBeginAllowThreads();
1291 result = (wxColour *)new wxColour(arg1);
1292
1293 wxPyEndAllowThreads(__tstate);
1294 if (PyErr_Occurred()) SWIG_fail;
1295 }
1296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1297 return resultobj;
1298 fail:
1299 return NULL;
1300 }
1301
1302
1303 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1304 PyObject *resultobj;
1305 wxColour *arg1 = (wxColour *) 0 ;
1306 PyObject * obj0 = 0 ;
1307 char *kwnames[] = {
1308 (char *) "self", NULL
1309 };
1310
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1314 {
1315 PyThreadState* __tstate = wxPyBeginAllowThreads();
1316 delete arg1;
1317
1318 wxPyEndAllowThreads(__tstate);
1319 if (PyErr_Occurred()) SWIG_fail;
1320 }
1321 Py_INCREF(Py_None); resultobj = Py_None;
1322 return resultobj;
1323 fail:
1324 return NULL;
1325 }
1326
1327
1328 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1329 PyObject *resultobj;
1330 wxColour *arg1 = (wxColour *) 0 ;
1331 byte result;
1332 PyObject * obj0 = 0 ;
1333 char *kwnames[] = {
1334 (char *) "self", NULL
1335 };
1336
1337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1340 {
1341 PyThreadState* __tstate = wxPyBeginAllowThreads();
1342 result = (byte)(arg1)->Red();
1343
1344 wxPyEndAllowThreads(__tstate);
1345 if (PyErr_Occurred()) SWIG_fail;
1346 }
1347 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1348 return resultobj;
1349 fail:
1350 return NULL;
1351 }
1352
1353
1354 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1355 PyObject *resultobj;
1356 wxColour *arg1 = (wxColour *) 0 ;
1357 byte result;
1358 PyObject * obj0 = 0 ;
1359 char *kwnames[] = {
1360 (char *) "self", NULL
1361 };
1362
1363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1366 {
1367 PyThreadState* __tstate = wxPyBeginAllowThreads();
1368 result = (byte)(arg1)->Green();
1369
1370 wxPyEndAllowThreads(__tstate);
1371 if (PyErr_Occurred()) SWIG_fail;
1372 }
1373 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1374 return resultobj;
1375 fail:
1376 return NULL;
1377 }
1378
1379
1380 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1381 PyObject *resultobj;
1382 wxColour *arg1 = (wxColour *) 0 ;
1383 byte result;
1384 PyObject * obj0 = 0 ;
1385 char *kwnames[] = {
1386 (char *) "self", NULL
1387 };
1388
1389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1392 {
1393 PyThreadState* __tstate = wxPyBeginAllowThreads();
1394 result = (byte)(arg1)->Blue();
1395
1396 wxPyEndAllowThreads(__tstate);
1397 if (PyErr_Occurred()) SWIG_fail;
1398 }
1399 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1400 return resultobj;
1401 fail:
1402 return NULL;
1403 }
1404
1405
1406 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1407 PyObject *resultobj;
1408 wxColour *arg1 = (wxColour *) 0 ;
1409 bool result;
1410 PyObject * obj0 = 0 ;
1411 char *kwnames[] = {
1412 (char *) "self", NULL
1413 };
1414
1415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1418 {
1419 PyThreadState* __tstate = wxPyBeginAllowThreads();
1420 result = (bool)(arg1)->Ok();
1421
1422 wxPyEndAllowThreads(__tstate);
1423 if (PyErr_Occurred()) SWIG_fail;
1424 }
1425 {
1426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1427 }
1428 return resultobj;
1429 fail:
1430 return NULL;
1431 }
1432
1433
1434 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1435 PyObject *resultobj;
1436 wxColour *arg1 = (wxColour *) 0 ;
1437 byte arg2 ;
1438 byte arg3 ;
1439 byte arg4 ;
1440 PyObject * obj0 = 0 ;
1441 PyObject * obj1 = 0 ;
1442 PyObject * obj2 = 0 ;
1443 PyObject * obj3 = 0 ;
1444 char *kwnames[] = {
1445 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1446 };
1447
1448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1451 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1452 if (PyErr_Occurred()) SWIG_fail;
1453 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1454 if (PyErr_Occurred()) SWIG_fail;
1455 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1456 if (PyErr_Occurred()) SWIG_fail;
1457 {
1458 PyThreadState* __tstate = wxPyBeginAllowThreads();
1459 (arg1)->Set(arg2,arg3,arg4);
1460
1461 wxPyEndAllowThreads(__tstate);
1462 if (PyErr_Occurred()) SWIG_fail;
1463 }
1464 Py_INCREF(Py_None); resultobj = Py_None;
1465 return resultobj;
1466 fail:
1467 return NULL;
1468 }
1469
1470
1471 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1472 PyObject *resultobj;
1473 wxColour *arg1 = (wxColour *) 0 ;
1474 unsigned long arg2 ;
1475 PyObject * obj0 = 0 ;
1476 PyObject * obj1 = 0 ;
1477 char *kwnames[] = {
1478 (char *) "self",(char *) "colRGB", NULL
1479 };
1480
1481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1484 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
1485 if (PyErr_Occurred()) SWIG_fail;
1486 {
1487 PyThreadState* __tstate = wxPyBeginAllowThreads();
1488 (arg1)->Set(arg2);
1489
1490 wxPyEndAllowThreads(__tstate);
1491 if (PyErr_Occurred()) SWIG_fail;
1492 }
1493 Py_INCREF(Py_None); resultobj = Py_None;
1494 return resultobj;
1495 fail:
1496 return NULL;
1497 }
1498
1499
1500 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1501 PyObject *resultobj;
1502 wxColour *arg1 = (wxColour *) 0 ;
1503 wxString *arg2 = 0 ;
1504 bool temp2 = False ;
1505 PyObject * obj0 = 0 ;
1506 PyObject * obj1 = 0 ;
1507 char *kwnames[] = {
1508 (char *) "self",(char *) "colourName", NULL
1509 };
1510
1511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1514 {
1515 arg2 = wxString_in_helper(obj1);
1516 if (arg2 == NULL) SWIG_fail;
1517 temp2 = True;
1518 }
1519 {
1520 PyThreadState* __tstate = wxPyBeginAllowThreads();
1521 (arg1)->InitFromName((wxString const &)*arg2);
1522
1523 wxPyEndAllowThreads(__tstate);
1524 if (PyErr_Occurred()) SWIG_fail;
1525 }
1526 Py_INCREF(Py_None); resultobj = Py_None;
1527 {
1528 if (temp2)
1529 delete arg2;
1530 }
1531 return resultobj;
1532 fail:
1533 {
1534 if (temp2)
1535 delete arg2;
1536 }
1537 return NULL;
1538 }
1539
1540
1541 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1542 PyObject *resultobj;
1543 wxColour *arg1 = (wxColour *) 0 ;
1544 long result;
1545 PyObject * obj0 = 0 ;
1546 char *kwnames[] = {
1547 (char *) "self", NULL
1548 };
1549
1550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1553 {
1554 PyThreadState* __tstate = wxPyBeginAllowThreads();
1555 result = (long)((wxColour const *)arg1)->GetPixel();
1556
1557 wxPyEndAllowThreads(__tstate);
1558 if (PyErr_Occurred()) SWIG_fail;
1559 }
1560 resultobj = SWIG_From_long((long)result);
1561 return resultobj;
1562 fail:
1563 return NULL;
1564 }
1565
1566
1567 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1568 PyObject *resultobj;
1569 wxColour *arg1 = (wxColour *) 0 ;
1570 wxColour *arg2 = 0 ;
1571 bool result;
1572 wxColour temp2 ;
1573 PyObject * obj0 = 0 ;
1574 PyObject * obj1 = 0 ;
1575 char *kwnames[] = {
1576 (char *) "self",(char *) "colour", NULL
1577 };
1578
1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1582 {
1583 arg2 = &temp2;
1584 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1585 }
1586 {
1587 PyThreadState* __tstate = wxPyBeginAllowThreads();
1588 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1589
1590 wxPyEndAllowThreads(__tstate);
1591 if (PyErr_Occurred()) SWIG_fail;
1592 }
1593 {
1594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1595 }
1596 return resultobj;
1597 fail:
1598 return NULL;
1599 }
1600
1601
1602 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1603 PyObject *resultobj;
1604 wxColour *arg1 = (wxColour *) 0 ;
1605 wxColour *arg2 = 0 ;
1606 bool result;
1607 wxColour temp2 ;
1608 PyObject * obj0 = 0 ;
1609 PyObject * obj1 = 0 ;
1610 char *kwnames[] = {
1611 (char *) "self",(char *) "colour", NULL
1612 };
1613
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1617 {
1618 arg2 = &temp2;
1619 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1620 }
1621 {
1622 PyThreadState* __tstate = wxPyBeginAllowThreads();
1623 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1624
1625 wxPyEndAllowThreads(__tstate);
1626 if (PyErr_Occurred()) SWIG_fail;
1627 }
1628 {
1629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1630 }
1631 return resultobj;
1632 fail:
1633 return NULL;
1634 }
1635
1636
1637 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1638 PyObject *resultobj;
1639 wxColour *arg1 = (wxColour *) 0 ;
1640 PyObject *result;
1641 PyObject * obj0 = 0 ;
1642 char *kwnames[] = {
1643 (char *) "self", NULL
1644 };
1645
1646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1649 {
1650 PyThreadState* __tstate = wxPyBeginAllowThreads();
1651 result = (PyObject *)wxColour_Get(arg1);
1652
1653 wxPyEndAllowThreads(__tstate);
1654 if (PyErr_Occurred()) SWIG_fail;
1655 }
1656 resultobj = result;
1657 return resultobj;
1658 fail:
1659 return NULL;
1660 }
1661
1662
1663 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1664 PyObject *resultobj;
1665 wxColour *arg1 = (wxColour *) 0 ;
1666 unsigned long result;
1667 PyObject * obj0 = 0 ;
1668 char *kwnames[] = {
1669 (char *) "self", NULL
1670 };
1671
1672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1675 {
1676 PyThreadState* __tstate = wxPyBeginAllowThreads();
1677 result = (unsigned long)wxColour_GetRGB(arg1);
1678
1679 wxPyEndAllowThreads(__tstate);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
1683 return resultobj;
1684 fail:
1685 return NULL;
1686 }
1687
1688
1689 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1690 PyObject *obj;
1691 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1692 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1693 Py_INCREF(obj);
1694 return Py_BuildValue((char *)"");
1695 }
1696 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1697 PyObject *resultobj;
1698 int arg1 ;
1699 unsigned char *arg2 = (unsigned char *) 0 ;
1700 unsigned char *arg3 = (unsigned char *) 0 ;
1701 unsigned char *arg4 = (unsigned char *) 0 ;
1702 wxPalette *result;
1703 PyObject * obj0 = 0 ;
1704 PyObject * obj1 = 0 ;
1705 PyObject * obj2 = 0 ;
1706 PyObject * obj3 = 0 ;
1707 char *kwnames[] = {
1708 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1709 };
1710
1711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1712 arg1 = (int)SWIG_As_int(obj0);
1713 if (PyErr_Occurred()) SWIG_fail;
1714 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1716 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1718 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1720 {
1721 if (!wxPyCheckForApp()) SWIG_fail;
1722 PyThreadState* __tstate = wxPyBeginAllowThreads();
1723 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1724
1725 wxPyEndAllowThreads(__tstate);
1726 if (PyErr_Occurred()) SWIG_fail;
1727 }
1728 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1729 return resultobj;
1730 fail:
1731 return NULL;
1732 }
1733
1734
1735 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1736 PyObject *resultobj;
1737 wxPalette *arg1 = (wxPalette *) 0 ;
1738 PyObject * obj0 = 0 ;
1739 char *kwnames[] = {
1740 (char *) "self", NULL
1741 };
1742
1743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1746 {
1747 PyThreadState* __tstate = wxPyBeginAllowThreads();
1748 delete arg1;
1749
1750 wxPyEndAllowThreads(__tstate);
1751 if (PyErr_Occurred()) SWIG_fail;
1752 }
1753 Py_INCREF(Py_None); resultobj = Py_None;
1754 return resultobj;
1755 fail:
1756 return NULL;
1757 }
1758
1759
1760 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1761 PyObject *resultobj;
1762 wxPalette *arg1 = (wxPalette *) 0 ;
1763 byte arg2 ;
1764 byte arg3 ;
1765 byte arg4 ;
1766 int result;
1767 PyObject * obj0 = 0 ;
1768 PyObject * obj1 = 0 ;
1769 PyObject * obj2 = 0 ;
1770 PyObject * obj3 = 0 ;
1771 char *kwnames[] = {
1772 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1773 };
1774
1775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1778 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1779 if (PyErr_Occurred()) SWIG_fail;
1780 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1781 if (PyErr_Occurred()) SWIG_fail;
1782 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1783 if (PyErr_Occurred()) SWIG_fail;
1784 {
1785 PyThreadState* __tstate = wxPyBeginAllowThreads();
1786 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1787
1788 wxPyEndAllowThreads(__tstate);
1789 if (PyErr_Occurred()) SWIG_fail;
1790 }
1791 resultobj = SWIG_From_int((int)result);
1792 return resultobj;
1793 fail:
1794 return NULL;
1795 }
1796
1797
1798 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1799 PyObject *resultobj;
1800 wxPalette *arg1 = (wxPalette *) 0 ;
1801 int arg2 ;
1802 byte *arg3 = (byte *) 0 ;
1803 byte *arg4 = (byte *) 0 ;
1804 byte *arg5 = (byte *) 0 ;
1805 bool result;
1806 byte temp3 ;
1807 int res3 = 0 ;
1808 byte temp4 ;
1809 int res4 = 0 ;
1810 byte temp5 ;
1811 int res5 = 0 ;
1812 PyObject * obj0 = 0 ;
1813 PyObject * obj1 = 0 ;
1814 char *kwnames[] = {
1815 (char *) "self",(char *) "pixel", NULL
1816 };
1817
1818 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1819 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1820 arg5 = &temp5; res5 = SWIG_NEWOBJ;
1821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1824 arg2 = (int)SWIG_As_int(obj1);
1825 if (PyErr_Occurred()) SWIG_fail;
1826 {
1827 PyThreadState* __tstate = wxPyBeginAllowThreads();
1828 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1829
1830 wxPyEndAllowThreads(__tstate);
1831 if (PyErr_Occurred()) SWIG_fail;
1832 }
1833 {
1834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1835 }
1836 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1837 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1838 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1839 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1840 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1841 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
1842 return resultobj;
1843 fail:
1844 return NULL;
1845 }
1846
1847
1848 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1849 PyObject *resultobj;
1850 wxPalette *arg1 = (wxPalette *) 0 ;
1851 bool result;
1852 PyObject * obj0 = 0 ;
1853 char *kwnames[] = {
1854 (char *) "self", NULL
1855 };
1856
1857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1860 {
1861 PyThreadState* __tstate = wxPyBeginAllowThreads();
1862 result = (bool)(arg1)->Ok();
1863
1864 wxPyEndAllowThreads(__tstate);
1865 if (PyErr_Occurred()) SWIG_fail;
1866 }
1867 {
1868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1869 }
1870 return resultobj;
1871 fail:
1872 return NULL;
1873 }
1874
1875
1876 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1877 PyObject *obj;
1878 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1879 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1880 Py_INCREF(obj);
1881 return Py_BuildValue((char *)"");
1882 }
1883 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1884 PyObject *resultobj;
1885 wxColour *arg1 = 0 ;
1886 int arg2 = (int) 1 ;
1887 int arg3 = (int) wxSOLID ;
1888 wxPen *result;
1889 wxColour temp1 ;
1890 PyObject * obj0 = 0 ;
1891 PyObject * obj1 = 0 ;
1892 PyObject * obj2 = 0 ;
1893 char *kwnames[] = {
1894 (char *) "colour",(char *) "width",(char *) "style", NULL
1895 };
1896
1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1898 {
1899 arg1 = &temp1;
1900 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1901 }
1902 if (obj1) {
1903 arg2 = (int)SWIG_As_int(obj1);
1904 if (PyErr_Occurred()) SWIG_fail;
1905 }
1906 if (obj2) {
1907 arg3 = (int)SWIG_As_int(obj2);
1908 if (PyErr_Occurred()) SWIG_fail;
1909 }
1910 {
1911 if (!wxPyCheckForApp()) SWIG_fail;
1912 PyThreadState* __tstate = wxPyBeginAllowThreads();
1913 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1914
1915 wxPyEndAllowThreads(__tstate);
1916 if (PyErr_Occurred()) SWIG_fail;
1917 }
1918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1919 return resultobj;
1920 fail:
1921 return NULL;
1922 }
1923
1924
1925 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1926 PyObject *resultobj;
1927 wxPen *arg1 = (wxPen *) 0 ;
1928 PyObject * obj0 = 0 ;
1929 char *kwnames[] = {
1930 (char *) "self", NULL
1931 };
1932
1933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1936 {
1937 PyThreadState* __tstate = wxPyBeginAllowThreads();
1938 delete arg1;
1939
1940 wxPyEndAllowThreads(__tstate);
1941 if (PyErr_Occurred()) SWIG_fail;
1942 }
1943 Py_INCREF(Py_None); resultobj = Py_None;
1944 return resultobj;
1945 fail:
1946 return NULL;
1947 }
1948
1949
1950 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1951 PyObject *resultobj;
1952 wxPen *arg1 = (wxPen *) 0 ;
1953 int result;
1954 PyObject * obj0 = 0 ;
1955 char *kwnames[] = {
1956 (char *) "self", NULL
1957 };
1958
1959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1962 {
1963 PyThreadState* __tstate = wxPyBeginAllowThreads();
1964 result = (int)(arg1)->GetCap();
1965
1966 wxPyEndAllowThreads(__tstate);
1967 if (PyErr_Occurred()) SWIG_fail;
1968 }
1969 resultobj = SWIG_From_int((int)result);
1970 return resultobj;
1971 fail:
1972 return NULL;
1973 }
1974
1975
1976 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1977 PyObject *resultobj;
1978 wxPen *arg1 = (wxPen *) 0 ;
1979 wxColour result;
1980 PyObject * obj0 = 0 ;
1981 char *kwnames[] = {
1982 (char *) "self", NULL
1983 };
1984
1985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1988 {
1989 PyThreadState* __tstate = wxPyBeginAllowThreads();
1990 result = (arg1)->GetColour();
1991
1992 wxPyEndAllowThreads(__tstate);
1993 if (PyErr_Occurred()) SWIG_fail;
1994 }
1995 {
1996 wxColour * resultptr;
1997 resultptr = new wxColour((wxColour &) result);
1998 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1999 }
2000 return resultobj;
2001 fail:
2002 return NULL;
2003 }
2004
2005
2006 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2007 PyObject *resultobj;
2008 wxPen *arg1 = (wxPen *) 0 ;
2009 int result;
2010 PyObject * obj0 = 0 ;
2011 char *kwnames[] = {
2012 (char *) "self", NULL
2013 };
2014
2015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
2016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2018 {
2019 PyThreadState* __tstate = wxPyBeginAllowThreads();
2020 result = (int)(arg1)->GetJoin();
2021
2022 wxPyEndAllowThreads(__tstate);
2023 if (PyErr_Occurred()) SWIG_fail;
2024 }
2025 resultobj = SWIG_From_int((int)result);
2026 return resultobj;
2027 fail:
2028 return NULL;
2029 }
2030
2031
2032 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2033 PyObject *resultobj;
2034 wxPen *arg1 = (wxPen *) 0 ;
2035 int result;
2036 PyObject * obj0 = 0 ;
2037 char *kwnames[] = {
2038 (char *) "self", NULL
2039 };
2040
2041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2044 {
2045 PyThreadState* __tstate = wxPyBeginAllowThreads();
2046 result = (int)(arg1)->GetStyle();
2047
2048 wxPyEndAllowThreads(__tstate);
2049 if (PyErr_Occurred()) SWIG_fail;
2050 }
2051 resultobj = SWIG_From_int((int)result);
2052 return resultobj;
2053 fail:
2054 return NULL;
2055 }
2056
2057
2058 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2059 PyObject *resultobj;
2060 wxPen *arg1 = (wxPen *) 0 ;
2061 int result;
2062 PyObject * obj0 = 0 ;
2063 char *kwnames[] = {
2064 (char *) "self", NULL
2065 };
2066
2067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2070 {
2071 PyThreadState* __tstate = wxPyBeginAllowThreads();
2072 result = (int)(arg1)->GetWidth();
2073
2074 wxPyEndAllowThreads(__tstate);
2075 if (PyErr_Occurred()) SWIG_fail;
2076 }
2077 resultobj = SWIG_From_int((int)result);
2078 return resultobj;
2079 fail:
2080 return NULL;
2081 }
2082
2083
2084 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2085 PyObject *resultobj;
2086 wxPen *arg1 = (wxPen *) 0 ;
2087 bool result;
2088 PyObject * obj0 = 0 ;
2089 char *kwnames[] = {
2090 (char *) "self", NULL
2091 };
2092
2093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2096 {
2097 PyThreadState* __tstate = wxPyBeginAllowThreads();
2098 result = (bool)(arg1)->Ok();
2099
2100 wxPyEndAllowThreads(__tstate);
2101 if (PyErr_Occurred()) SWIG_fail;
2102 }
2103 {
2104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2105 }
2106 return resultobj;
2107 fail:
2108 return NULL;
2109 }
2110
2111
2112 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2113 PyObject *resultobj;
2114 wxPen *arg1 = (wxPen *) 0 ;
2115 int arg2 ;
2116 PyObject * obj0 = 0 ;
2117 PyObject * obj1 = 0 ;
2118 char *kwnames[] = {
2119 (char *) "self",(char *) "cap_style", NULL
2120 };
2121
2122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2125 arg2 = (int)SWIG_As_int(obj1);
2126 if (PyErr_Occurred()) SWIG_fail;
2127 {
2128 PyThreadState* __tstate = wxPyBeginAllowThreads();
2129 (arg1)->SetCap(arg2);
2130
2131 wxPyEndAllowThreads(__tstate);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 }
2134 Py_INCREF(Py_None); resultobj = Py_None;
2135 return resultobj;
2136 fail:
2137 return NULL;
2138 }
2139
2140
2141 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2142 PyObject *resultobj;
2143 wxPen *arg1 = (wxPen *) 0 ;
2144 wxColour *arg2 = 0 ;
2145 wxColour temp2 ;
2146 PyObject * obj0 = 0 ;
2147 PyObject * obj1 = 0 ;
2148 char *kwnames[] = {
2149 (char *) "self",(char *) "colour", NULL
2150 };
2151
2152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2155 {
2156 arg2 = &temp2;
2157 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2158 }
2159 {
2160 PyThreadState* __tstate = wxPyBeginAllowThreads();
2161 (arg1)->SetColour(*arg2);
2162
2163 wxPyEndAllowThreads(__tstate);
2164 if (PyErr_Occurred()) SWIG_fail;
2165 }
2166 Py_INCREF(Py_None); resultobj = Py_None;
2167 return resultobj;
2168 fail:
2169 return NULL;
2170 }
2171
2172
2173 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2174 PyObject *resultobj;
2175 wxPen *arg1 = (wxPen *) 0 ;
2176 int arg2 ;
2177 PyObject * obj0 = 0 ;
2178 PyObject * obj1 = 0 ;
2179 char *kwnames[] = {
2180 (char *) "self",(char *) "join_style", NULL
2181 };
2182
2183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2186 arg2 = (int)SWIG_As_int(obj1);
2187 if (PyErr_Occurred()) SWIG_fail;
2188 {
2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
2190 (arg1)->SetJoin(arg2);
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 }
2195 Py_INCREF(Py_None); resultobj = Py_None;
2196 return resultobj;
2197 fail:
2198 return NULL;
2199 }
2200
2201
2202 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2203 PyObject *resultobj;
2204 wxPen *arg1 = (wxPen *) 0 ;
2205 int arg2 ;
2206 PyObject * obj0 = 0 ;
2207 PyObject * obj1 = 0 ;
2208 char *kwnames[] = {
2209 (char *) "self",(char *) "style", NULL
2210 };
2211
2212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2215 arg2 = (int)SWIG_As_int(obj1);
2216 if (PyErr_Occurred()) SWIG_fail;
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 (arg1)->SetStyle(arg2);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 }
2224 Py_INCREF(Py_None); resultobj = Py_None;
2225 return resultobj;
2226 fail:
2227 return NULL;
2228 }
2229
2230
2231 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2232 PyObject *resultobj;
2233 wxPen *arg1 = (wxPen *) 0 ;
2234 int arg2 ;
2235 PyObject * obj0 = 0 ;
2236 PyObject * obj1 = 0 ;
2237 char *kwnames[] = {
2238 (char *) "self",(char *) "width", NULL
2239 };
2240
2241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2244 arg2 = (int)SWIG_As_int(obj1);
2245 if (PyErr_Occurred()) SWIG_fail;
2246 {
2247 PyThreadState* __tstate = wxPyBeginAllowThreads();
2248 (arg1)->SetWidth(arg2);
2249
2250 wxPyEndAllowThreads(__tstate);
2251 if (PyErr_Occurred()) SWIG_fail;
2252 }
2253 Py_INCREF(Py_None); resultobj = Py_None;
2254 return resultobj;
2255 fail:
2256 return NULL;
2257 }
2258
2259
2260 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2261 PyObject *resultobj;
2262 wxPen *arg1 = (wxPen *) 0 ;
2263 int arg2 ;
2264 wxDash *arg3 = (wxDash *) 0 ;
2265 PyObject * obj0 = 0 ;
2266 PyObject * obj1 = 0 ;
2267 char *kwnames[] = {
2268 (char *) "self",(char *) "dashes", NULL
2269 };
2270
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2274 {
2275 arg2 = PyList_Size(obj1);
2276 arg3 = (wxDash*)byte_LIST_helper(obj1);
2277 if (arg3 == NULL) SWIG_fail;
2278 }
2279 {
2280 PyThreadState* __tstate = wxPyBeginAllowThreads();
2281 (arg1)->SetDashes(arg2,arg3);
2282
2283 wxPyEndAllowThreads(__tstate);
2284 if (PyErr_Occurred()) SWIG_fail;
2285 }
2286 Py_INCREF(Py_None); resultobj = Py_None;
2287 {
2288 if (arg3) delete [] arg3;
2289 }
2290 return resultobj;
2291 fail:
2292 {
2293 if (arg3) delete [] arg3;
2294 }
2295 return NULL;
2296 }
2297
2298
2299 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2300 PyObject *resultobj;
2301 wxPen *arg1 = (wxPen *) 0 ;
2302 PyObject *result;
2303 PyObject * obj0 = 0 ;
2304 char *kwnames[] = {
2305 (char *) "self", NULL
2306 };
2307
2308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2311 {
2312 PyThreadState* __tstate = wxPyBeginAllowThreads();
2313 result = (PyObject *)wxPen_GetDashes(arg1);
2314
2315 wxPyEndAllowThreads(__tstate);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 }
2318 resultobj = result;
2319 return resultobj;
2320 fail:
2321 return NULL;
2322 }
2323
2324
2325 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2326 PyObject *resultobj;
2327 wxPen *arg1 = (wxPen *) 0 ;
2328 PyObject *arg2 = (PyObject *) 0 ;
2329 PyObject *arg3 = (PyObject *) 0 ;
2330 PyObject * obj0 = 0 ;
2331 PyObject * obj1 = 0 ;
2332 PyObject * obj2 = 0 ;
2333 char *kwnames[] = {
2334 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2335 };
2336
2337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2340 arg2 = obj1;
2341 arg3 = obj2;
2342 {
2343 PyThreadState* __tstate = wxPyBeginAllowThreads();
2344 wxPen__SetDashes(arg1,arg2,arg3);
2345
2346 wxPyEndAllowThreads(__tstate);
2347 if (PyErr_Occurred()) SWIG_fail;
2348 }
2349 Py_INCREF(Py_None); resultobj = Py_None;
2350 return resultobj;
2351 fail:
2352 return NULL;
2353 }
2354
2355
2356 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2357 PyObject *resultobj;
2358 wxPen *arg1 = (wxPen *) 0 ;
2359 wxPen *arg2 = (wxPen *) 0 ;
2360 bool result;
2361 PyObject * obj0 = 0 ;
2362 PyObject * obj1 = 0 ;
2363 char *kwnames[] = {
2364 (char *) "self",(char *) "other", NULL
2365 };
2366
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2372 {
2373 PyThreadState* __tstate = wxPyBeginAllowThreads();
2374 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2375
2376 wxPyEndAllowThreads(__tstate);
2377 if (PyErr_Occurred()) SWIG_fail;
2378 }
2379 {
2380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2381 }
2382 return resultobj;
2383 fail:
2384 return NULL;
2385 }
2386
2387
2388 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2389 PyObject *resultobj;
2390 wxPen *arg1 = (wxPen *) 0 ;
2391 wxPen *arg2 = (wxPen *) 0 ;
2392 bool result;
2393 PyObject * obj0 = 0 ;
2394 PyObject * obj1 = 0 ;
2395 char *kwnames[] = {
2396 (char *) "self",(char *) "other", NULL
2397 };
2398
2399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 {
2412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2413 }
2414 return resultobj;
2415 fail:
2416 return NULL;
2417 }
2418
2419
2420 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2421 PyObject *obj;
2422 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2423 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2424 Py_INCREF(obj);
2425 return Py_BuildValue((char *)"");
2426 }
2427 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2428 PyObject *resultobj;
2429 wxColour *arg1 = 0 ;
2430 int arg2 = (int) wxSOLID ;
2431 wxBrush *result;
2432 wxColour temp1 ;
2433 PyObject * obj0 = 0 ;
2434 PyObject * obj1 = 0 ;
2435 char *kwnames[] = {
2436 (char *) "colour",(char *) "style", NULL
2437 };
2438
2439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2440 {
2441 arg1 = &temp1;
2442 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2443 }
2444 if (obj1) {
2445 arg2 = (int)SWIG_As_int(obj1);
2446 if (PyErr_Occurred()) SWIG_fail;
2447 }
2448 {
2449 if (!wxPyCheckForApp()) SWIG_fail;
2450 PyThreadState* __tstate = wxPyBeginAllowThreads();
2451 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2452
2453 wxPyEndAllowThreads(__tstate);
2454 if (PyErr_Occurred()) SWIG_fail;
2455 }
2456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2457 return resultobj;
2458 fail:
2459 return NULL;
2460 }
2461
2462
2463 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2464 PyObject *resultobj;
2465 wxBrush *arg1 = (wxBrush *) 0 ;
2466 PyObject * obj0 = 0 ;
2467 char *kwnames[] = {
2468 (char *) "self", NULL
2469 };
2470
2471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2474 {
2475 PyThreadState* __tstate = wxPyBeginAllowThreads();
2476 delete arg1;
2477
2478 wxPyEndAllowThreads(__tstate);
2479 if (PyErr_Occurred()) SWIG_fail;
2480 }
2481 Py_INCREF(Py_None); resultobj = Py_None;
2482 return resultobj;
2483 fail:
2484 return NULL;
2485 }
2486
2487
2488 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2489 PyObject *resultobj;
2490 wxBrush *arg1 = (wxBrush *) 0 ;
2491 wxColour *arg2 = 0 ;
2492 wxColour temp2 ;
2493 PyObject * obj0 = 0 ;
2494 PyObject * obj1 = 0 ;
2495 char *kwnames[] = {
2496 (char *) "self",(char *) "col", NULL
2497 };
2498
2499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2502 {
2503 arg2 = &temp2;
2504 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2505 }
2506 {
2507 PyThreadState* __tstate = wxPyBeginAllowThreads();
2508 (arg1)->SetColour((wxColour const &)*arg2);
2509
2510 wxPyEndAllowThreads(__tstate);
2511 if (PyErr_Occurred()) SWIG_fail;
2512 }
2513 Py_INCREF(Py_None); resultobj = Py_None;
2514 return resultobj;
2515 fail:
2516 return NULL;
2517 }
2518
2519
2520 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2521 PyObject *resultobj;
2522 wxBrush *arg1 = (wxBrush *) 0 ;
2523 int arg2 ;
2524 PyObject * obj0 = 0 ;
2525 PyObject * obj1 = 0 ;
2526 char *kwnames[] = {
2527 (char *) "self",(char *) "style", NULL
2528 };
2529
2530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2533 arg2 = (int)SWIG_As_int(obj1);
2534 if (PyErr_Occurred()) SWIG_fail;
2535 {
2536 PyThreadState* __tstate = wxPyBeginAllowThreads();
2537 (arg1)->SetStyle(arg2);
2538
2539 wxPyEndAllowThreads(__tstate);
2540 if (PyErr_Occurred()) SWIG_fail;
2541 }
2542 Py_INCREF(Py_None); resultobj = Py_None;
2543 return resultobj;
2544 fail:
2545 return NULL;
2546 }
2547
2548
2549 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2550 PyObject *resultobj;
2551 wxBrush *arg1 = (wxBrush *) 0 ;
2552 wxBitmap *arg2 = 0 ;
2553 PyObject * obj0 = 0 ;
2554 PyObject * obj1 = 0 ;
2555 char *kwnames[] = {
2556 (char *) "self",(char *) "stipple", NULL
2557 };
2558
2559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2563 SWIG_POINTER_EXCEPTION | 0)) == -1)
2564 SWIG_fail;
2565 if (arg2 == NULL) {
2566 PyErr_SetString(PyExc_TypeError,"null reference");
2567 SWIG_fail;
2568 }
2569 {
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 (arg1)->SetStipple((wxBitmap const &)*arg2);
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 Py_INCREF(Py_None); resultobj = Py_None;
2577 return resultobj;
2578 fail:
2579 return NULL;
2580 }
2581
2582
2583 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2584 PyObject *resultobj;
2585 wxBrush *arg1 = (wxBrush *) 0 ;
2586 wxColour result;
2587 PyObject * obj0 = 0 ;
2588 char *kwnames[] = {
2589 (char *) "self", NULL
2590 };
2591
2592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2595 {
2596 PyThreadState* __tstate = wxPyBeginAllowThreads();
2597 result = ((wxBrush const *)arg1)->GetColour();
2598
2599 wxPyEndAllowThreads(__tstate);
2600 if (PyErr_Occurred()) SWIG_fail;
2601 }
2602 {
2603 wxColour * resultptr;
2604 resultptr = new wxColour((wxColour &) result);
2605 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2606 }
2607 return resultobj;
2608 fail:
2609 return NULL;
2610 }
2611
2612
2613 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2614 PyObject *resultobj;
2615 wxBrush *arg1 = (wxBrush *) 0 ;
2616 int result;
2617 PyObject * obj0 = 0 ;
2618 char *kwnames[] = {
2619 (char *) "self", NULL
2620 };
2621
2622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2625 {
2626 PyThreadState* __tstate = wxPyBeginAllowThreads();
2627 result = (int)((wxBrush const *)arg1)->GetStyle();
2628
2629 wxPyEndAllowThreads(__tstate);
2630 if (PyErr_Occurred()) SWIG_fail;
2631 }
2632 resultobj = SWIG_From_int((int)result);
2633 return resultobj;
2634 fail:
2635 return NULL;
2636 }
2637
2638
2639 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2640 PyObject *resultobj;
2641 wxBrush *arg1 = (wxBrush *) 0 ;
2642 wxBitmap *result;
2643 PyObject * obj0 = 0 ;
2644 char *kwnames[] = {
2645 (char *) "self", NULL
2646 };
2647
2648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2651 {
2652 PyThreadState* __tstate = wxPyBeginAllowThreads();
2653 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2654
2655 wxPyEndAllowThreads(__tstate);
2656 if (PyErr_Occurred()) SWIG_fail;
2657 }
2658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2659 return resultobj;
2660 fail:
2661 return NULL;
2662 }
2663
2664
2665 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2666 PyObject *resultobj;
2667 wxBrush *arg1 = (wxBrush *) 0 ;
2668 bool result;
2669 PyObject * obj0 = 0 ;
2670 char *kwnames[] = {
2671 (char *) "self", NULL
2672 };
2673
2674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2677 {
2678 PyThreadState* __tstate = wxPyBeginAllowThreads();
2679 result = (bool)(arg1)->Ok();
2680
2681 wxPyEndAllowThreads(__tstate);
2682 if (PyErr_Occurred()) SWIG_fail;
2683 }
2684 {
2685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2686 }
2687 return resultobj;
2688 fail:
2689 return NULL;
2690 }
2691
2692
2693 static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2694 PyObject *resultobj;
2695 wxBrush *arg1 = (wxBrush *) 0 ;
2696 short result;
2697 PyObject * obj0 = 0 ;
2698 char *kwnames[] = {
2699 (char *) "self", NULL
2700 };
2701
2702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2705 {
2706 PyThreadState* __tstate = wxPyBeginAllowThreads();
2707 result = (short)(arg1)->MacGetTheme();
2708
2709 wxPyEndAllowThreads(__tstate);
2710 if (PyErr_Occurred()) SWIG_fail;
2711 }
2712 resultobj = SWIG_From_short((short)result);
2713 return resultobj;
2714 fail:
2715 return NULL;
2716 }
2717
2718
2719 static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2720 PyObject *resultobj;
2721 wxBrush *arg1 = (wxBrush *) 0 ;
2722 short arg2 ;
2723 PyObject * obj0 = 0 ;
2724 PyObject * obj1 = 0 ;
2725 char *kwnames[] = {
2726 (char *) "self",(char *) "macThemeBrush", NULL
2727 };
2728
2729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2732 arg2 = (short)SWIG_As_short(obj1);
2733 if (PyErr_Occurred()) SWIG_fail;
2734 {
2735 PyThreadState* __tstate = wxPyBeginAllowThreads();
2736 (arg1)->MacSetTheme(arg2);
2737
2738 wxPyEndAllowThreads(__tstate);
2739 if (PyErr_Occurred()) SWIG_fail;
2740 }
2741 Py_INCREF(Py_None); resultobj = Py_None;
2742 return resultobj;
2743 fail:
2744 return NULL;
2745 }
2746
2747
2748 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2749 PyObject *obj;
2750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2751 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2752 Py_INCREF(obj);
2753 return Py_BuildValue((char *)"");
2754 }
2755 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2756 PyObject *resultobj;
2757 wxString *arg1 = 0 ;
2758 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2759 wxBitmap *result;
2760 bool temp1 = False ;
2761 PyObject * obj0 = 0 ;
2762 PyObject * obj1 = 0 ;
2763 char *kwnames[] = {
2764 (char *) "name",(char *) "type", NULL
2765 };
2766
2767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2768 {
2769 arg1 = wxString_in_helper(obj0);
2770 if (arg1 == NULL) SWIG_fail;
2771 temp1 = True;
2772 }
2773 if (obj1) {
2774 arg2 = (int)SWIG_As_int(obj1);
2775 if (PyErr_Occurred()) SWIG_fail;
2776 }
2777 {
2778 if (!wxPyCheckForApp()) SWIG_fail;
2779 PyThreadState* __tstate = wxPyBeginAllowThreads();
2780 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2781
2782 wxPyEndAllowThreads(__tstate);
2783 if (PyErr_Occurred()) SWIG_fail;
2784 }
2785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2786 {
2787 if (temp1)
2788 delete arg1;
2789 }
2790 return resultobj;
2791 fail:
2792 {
2793 if (temp1)
2794 delete arg1;
2795 }
2796 return NULL;
2797 }
2798
2799
2800 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2801 PyObject *resultobj;
2802 wxBitmap *arg1 = (wxBitmap *) 0 ;
2803 PyObject * obj0 = 0 ;
2804 char *kwnames[] = {
2805 (char *) "self", NULL
2806 };
2807
2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2811 {
2812 PyThreadState* __tstate = wxPyBeginAllowThreads();
2813 delete arg1;
2814
2815 wxPyEndAllowThreads(__tstate);
2816 if (PyErr_Occurred()) SWIG_fail;
2817 }
2818 Py_INCREF(Py_None); resultobj = Py_None;
2819 return resultobj;
2820 fail:
2821 return NULL;
2822 }
2823
2824
2825 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2826 PyObject *resultobj;
2827 int arg1 ;
2828 int arg2 ;
2829 int arg3 = (int) -1 ;
2830 wxBitmap *result;
2831 PyObject * obj0 = 0 ;
2832 PyObject * obj1 = 0 ;
2833 PyObject * obj2 = 0 ;
2834 char *kwnames[] = {
2835 (char *) "width",(char *) "height",(char *) "depth", NULL
2836 };
2837
2838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2839 arg1 = (int)SWIG_As_int(obj0);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 arg2 = (int)SWIG_As_int(obj1);
2842 if (PyErr_Occurred()) SWIG_fail;
2843 if (obj2) {
2844 arg3 = (int)SWIG_As_int(obj2);
2845 if (PyErr_Occurred()) SWIG_fail;
2846 }
2847 {
2848 if (!wxPyCheckForApp()) SWIG_fail;
2849 PyThreadState* __tstate = wxPyBeginAllowThreads();
2850 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2851
2852 wxPyEndAllowThreads(__tstate);
2853 if (PyErr_Occurred()) SWIG_fail;
2854 }
2855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2856 return resultobj;
2857 fail:
2858 return NULL;
2859 }
2860
2861
2862 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2863 PyObject *resultobj;
2864 wxIcon *arg1 = 0 ;
2865 wxBitmap *result;
2866 PyObject * obj0 = 0 ;
2867 char *kwnames[] = {
2868 (char *) "icon", NULL
2869 };
2870
2871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2873 SWIG_POINTER_EXCEPTION | 0)) == -1)
2874 SWIG_fail;
2875 if (arg1 == NULL) {
2876 PyErr_SetString(PyExc_TypeError,"null reference");
2877 SWIG_fail;
2878 }
2879 {
2880 if (!wxPyCheckForApp()) SWIG_fail;
2881 PyThreadState* __tstate = wxPyBeginAllowThreads();
2882 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2883
2884 wxPyEndAllowThreads(__tstate);
2885 if (PyErr_Occurred()) SWIG_fail;
2886 }
2887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2888 return resultobj;
2889 fail:
2890 return NULL;
2891 }
2892
2893
2894 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2895 PyObject *resultobj;
2896 wxImage *arg1 = 0 ;
2897 int arg2 = (int) -1 ;
2898 wxBitmap *result;
2899 PyObject * obj0 = 0 ;
2900 PyObject * obj1 = 0 ;
2901 char *kwnames[] = {
2902 (char *) "image",(char *) "depth", NULL
2903 };
2904
2905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2907 SWIG_POINTER_EXCEPTION | 0)) == -1)
2908 SWIG_fail;
2909 if (arg1 == NULL) {
2910 PyErr_SetString(PyExc_TypeError,"null reference");
2911 SWIG_fail;
2912 }
2913 if (obj1) {
2914 arg2 = (int)SWIG_As_int(obj1);
2915 if (PyErr_Occurred()) SWIG_fail;
2916 }
2917 {
2918 if (!wxPyCheckForApp()) SWIG_fail;
2919 PyThreadState* __tstate = wxPyBeginAllowThreads();
2920 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2921
2922 wxPyEndAllowThreads(__tstate);
2923 if (PyErr_Occurred()) SWIG_fail;
2924 }
2925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2926 return resultobj;
2927 fail:
2928 return NULL;
2929 }
2930
2931
2932 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
2933 PyObject *resultobj;
2934 PyObject *arg1 = (PyObject *) 0 ;
2935 wxBitmap *result;
2936 PyObject * obj0 = 0 ;
2937 char *kwnames[] = {
2938 (char *) "listOfStrings", NULL
2939 };
2940
2941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2942 arg1 = obj0;
2943 {
2944 if (!wxPyCheckForApp()) SWIG_fail;
2945 PyThreadState* __tstate = wxPyBeginAllowThreads();
2946 result = (wxBitmap *)new_wxBitmap(arg1);
2947
2948 wxPyEndAllowThreads(__tstate);
2949 if (PyErr_Occurred()) SWIG_fail;
2950 }
2951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2952 return resultobj;
2953 fail:
2954 return NULL;
2955 }
2956
2957
2958 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
2959 PyObject *resultobj;
2960 PyObject *arg1 = (PyObject *) 0 ;
2961 int arg2 ;
2962 int arg3 ;
2963 int arg4 = (int) 1 ;
2964 wxBitmap *result;
2965 PyObject * obj0 = 0 ;
2966 PyObject * obj1 = 0 ;
2967 PyObject * obj2 = 0 ;
2968 PyObject * obj3 = 0 ;
2969 char *kwnames[] = {
2970 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2971 };
2972
2973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2974 arg1 = obj0;
2975 arg2 = (int)SWIG_As_int(obj1);
2976 if (PyErr_Occurred()) SWIG_fail;
2977 arg3 = (int)SWIG_As_int(obj2);
2978 if (PyErr_Occurred()) SWIG_fail;
2979 if (obj3) {
2980 arg4 = (int)SWIG_As_int(obj3);
2981 if (PyErr_Occurred()) SWIG_fail;
2982 }
2983 {
2984 if (!wxPyCheckForApp()) SWIG_fail;
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2992 return resultobj;
2993 fail:
2994 return NULL;
2995 }
2996
2997
2998 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2999 PyObject *resultobj;
3000 wxBitmap *arg1 = (wxBitmap *) 0 ;
3001 bool result;
3002 PyObject * obj0 = 0 ;
3003 char *kwnames[] = {
3004 (char *) "self", NULL
3005 };
3006
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3010 {
3011 PyThreadState* __tstate = wxPyBeginAllowThreads();
3012 result = (bool)(arg1)->Ok();
3013
3014 wxPyEndAllowThreads(__tstate);
3015 if (PyErr_Occurred()) SWIG_fail;
3016 }
3017 {
3018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3019 }
3020 return resultobj;
3021 fail:
3022 return NULL;
3023 }
3024
3025
3026 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3027 PyObject *resultobj;
3028 wxBitmap *arg1 = (wxBitmap *) 0 ;
3029 int result;
3030 PyObject * obj0 = 0 ;
3031 char *kwnames[] = {
3032 (char *) "self", NULL
3033 };
3034
3035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3038 {
3039 PyThreadState* __tstate = wxPyBeginAllowThreads();
3040 result = (int)(arg1)->GetWidth();
3041
3042 wxPyEndAllowThreads(__tstate);
3043 if (PyErr_Occurred()) SWIG_fail;
3044 }
3045 resultobj = SWIG_From_int((int)result);
3046 return resultobj;
3047 fail:
3048 return NULL;
3049 }
3050
3051
3052 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3053 PyObject *resultobj;
3054 wxBitmap *arg1 = (wxBitmap *) 0 ;
3055 int result;
3056 PyObject * obj0 = 0 ;
3057 char *kwnames[] = {
3058 (char *) "self", NULL
3059 };
3060
3061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 result = (int)(arg1)->GetHeight();
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) SWIG_fail;
3070 }
3071 resultobj = SWIG_From_int((int)result);
3072 return resultobj;
3073 fail:
3074 return NULL;
3075 }
3076
3077
3078 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3079 PyObject *resultobj;
3080 wxBitmap *arg1 = (wxBitmap *) 0 ;
3081 int result;
3082 PyObject * obj0 = 0 ;
3083 char *kwnames[] = {
3084 (char *) "self", NULL
3085 };
3086
3087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3090 {
3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
3092 result = (int)(arg1)->GetDepth();
3093
3094 wxPyEndAllowThreads(__tstate);
3095 if (PyErr_Occurred()) SWIG_fail;
3096 }
3097 resultobj = SWIG_From_int((int)result);
3098 return resultobj;
3099 fail:
3100 return NULL;
3101 }
3102
3103
3104 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3105 PyObject *resultobj;
3106 wxBitmap *arg1 = (wxBitmap *) 0 ;
3107 wxSize result;
3108 PyObject * obj0 = 0 ;
3109 char *kwnames[] = {
3110 (char *) "self", NULL
3111 };
3112
3113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3116 {
3117 PyThreadState* __tstate = wxPyBeginAllowThreads();
3118 result = wxBitmap_GetSize(arg1);
3119
3120 wxPyEndAllowThreads(__tstate);
3121 if (PyErr_Occurred()) SWIG_fail;
3122 }
3123 {
3124 wxSize * resultptr;
3125 resultptr = new wxSize((wxSize &) result);
3126 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3127 }
3128 return resultobj;
3129 fail:
3130 return NULL;
3131 }
3132
3133
3134 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3135 PyObject *resultobj;
3136 wxBitmap *arg1 = (wxBitmap *) 0 ;
3137 SwigValueWrapper< wxImage > result;
3138 PyObject * obj0 = 0 ;
3139 char *kwnames[] = {
3140 (char *) "self", NULL
3141 };
3142
3143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3146 {
3147 PyThreadState* __tstate = wxPyBeginAllowThreads();
3148 result = ((wxBitmap const *)arg1)->ConvertToImage();
3149
3150 wxPyEndAllowThreads(__tstate);
3151 if (PyErr_Occurred()) SWIG_fail;
3152 }
3153 {
3154 wxImage * resultptr;
3155 resultptr = new wxImage((wxImage &) result);
3156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3157 }
3158 return resultobj;
3159 fail:
3160 return NULL;
3161 }
3162
3163
3164 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3165 PyObject *resultobj;
3166 wxBitmap *arg1 = (wxBitmap *) 0 ;
3167 wxMask *result;
3168 PyObject * obj0 = 0 ;
3169 char *kwnames[] = {
3170 (char *) "self", NULL
3171 };
3172
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3176 {
3177 PyThreadState* __tstate = wxPyBeginAllowThreads();
3178 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3179
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
3183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3184 return resultobj;
3185 fail:
3186 return NULL;
3187 }
3188
3189
3190 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3191 PyObject *resultobj;
3192 wxBitmap *arg1 = (wxBitmap *) 0 ;
3193 wxMask *arg2 = (wxMask *) 0 ;
3194 PyObject * obj0 = 0 ;
3195 PyObject * obj1 = 0 ;
3196 char *kwnames[] = {
3197 (char *) "self",(char *) "mask", NULL
3198 };
3199
3200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3203 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3205 {
3206 PyThreadState* __tstate = wxPyBeginAllowThreads();
3207 (arg1)->SetMask(arg2);
3208
3209 wxPyEndAllowThreads(__tstate);
3210 if (PyErr_Occurred()) SWIG_fail;
3211 }
3212 Py_INCREF(Py_None); resultobj = Py_None;
3213 return resultobj;
3214 fail:
3215 return NULL;
3216 }
3217
3218
3219 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3220 PyObject *resultobj;
3221 wxBitmap *arg1 = (wxBitmap *) 0 ;
3222 wxColour *arg2 = 0 ;
3223 wxColour temp2 ;
3224 PyObject * obj0 = 0 ;
3225 PyObject * obj1 = 0 ;
3226 char *kwnames[] = {
3227 (char *) "self",(char *) "colour", NULL
3228 };
3229
3230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3233 {
3234 arg2 = &temp2;
3235 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3236 }
3237 {
3238 PyThreadState* __tstate = wxPyBeginAllowThreads();
3239 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3240
3241 wxPyEndAllowThreads(__tstate);
3242 if (PyErr_Occurred()) SWIG_fail;
3243 }
3244 Py_INCREF(Py_None); resultobj = Py_None;
3245 return resultobj;
3246 fail:
3247 return NULL;
3248 }
3249
3250
3251 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3252 PyObject *resultobj;
3253 wxBitmap *arg1 = (wxBitmap *) 0 ;
3254 wxRect *arg2 = 0 ;
3255 SwigValueWrapper< wxBitmap > result;
3256 wxRect temp2 ;
3257 PyObject * obj0 = 0 ;
3258 PyObject * obj1 = 0 ;
3259 char *kwnames[] = {
3260 (char *) "self",(char *) "rect", NULL
3261 };
3262
3263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3266 {
3267 arg2 = &temp2;
3268 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3269 }
3270 {
3271 PyThreadState* __tstate = wxPyBeginAllowThreads();
3272 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3273
3274 wxPyEndAllowThreads(__tstate);
3275 if (PyErr_Occurred()) SWIG_fail;
3276 }
3277 {
3278 wxBitmap * resultptr;
3279 resultptr = new wxBitmap((wxBitmap &) result);
3280 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3281 }
3282 return resultobj;
3283 fail:
3284 return NULL;
3285 }
3286
3287
3288 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3289 PyObject *resultobj;
3290 wxBitmap *arg1 = (wxBitmap *) 0 ;
3291 wxString *arg2 = 0 ;
3292 int arg3 ;
3293 wxPalette *arg4 = (wxPalette *) NULL ;
3294 bool result;
3295 bool temp2 = False ;
3296 PyObject * obj0 = 0 ;
3297 PyObject * obj1 = 0 ;
3298 PyObject * obj2 = 0 ;
3299 PyObject * obj3 = 0 ;
3300 char *kwnames[] = {
3301 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3302 };
3303
3304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3307 {
3308 arg2 = wxString_in_helper(obj1);
3309 if (arg2 == NULL) SWIG_fail;
3310 temp2 = True;
3311 }
3312 arg3 = (int)SWIG_As_int(obj2);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 if (obj3) {
3315 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3317 }
3318 {
3319 PyThreadState* __tstate = wxPyBeginAllowThreads();
3320 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3321
3322 wxPyEndAllowThreads(__tstate);
3323 if (PyErr_Occurred()) SWIG_fail;
3324 }
3325 {
3326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3327 }
3328 {
3329 if (temp2)
3330 delete arg2;
3331 }
3332 return resultobj;
3333 fail:
3334 {
3335 if (temp2)
3336 delete arg2;
3337 }
3338 return NULL;
3339 }
3340
3341
3342 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3343 PyObject *resultobj;
3344 wxBitmap *arg1 = (wxBitmap *) 0 ;
3345 wxString *arg2 = 0 ;
3346 int arg3 ;
3347 bool result;
3348 bool temp2 = False ;
3349 PyObject * obj0 = 0 ;
3350 PyObject * obj1 = 0 ;
3351 PyObject * obj2 = 0 ;
3352 char *kwnames[] = {
3353 (char *) "self",(char *) "name",(char *) "type", NULL
3354 };
3355
3356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3359 {
3360 arg2 = wxString_in_helper(obj1);
3361 if (arg2 == NULL) SWIG_fail;
3362 temp2 = True;
3363 }
3364 arg3 = (int)SWIG_As_int(obj2);
3365 if (PyErr_Occurred()) SWIG_fail;
3366 {
3367 PyThreadState* __tstate = wxPyBeginAllowThreads();
3368 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3369
3370 wxPyEndAllowThreads(__tstate);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 }
3373 {
3374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3375 }
3376 {
3377 if (temp2)
3378 delete arg2;
3379 }
3380 return resultobj;
3381 fail:
3382 {
3383 if (temp2)
3384 delete arg2;
3385 }
3386 return NULL;
3387 }
3388
3389
3390 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3391 PyObject *resultobj;
3392 wxBitmap *arg1 = (wxBitmap *) 0 ;
3393 wxIcon *arg2 = 0 ;
3394 bool result;
3395 PyObject * obj0 = 0 ;
3396 PyObject * obj1 = 0 ;
3397 char *kwnames[] = {
3398 (char *) "self",(char *) "icon", NULL
3399 };
3400
3401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3404 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3405 SWIG_POINTER_EXCEPTION | 0)) == -1)
3406 SWIG_fail;
3407 if (arg2 == NULL) {
3408 PyErr_SetString(PyExc_TypeError,"null reference");
3409 SWIG_fail;
3410 }
3411 {
3412 PyThreadState* __tstate = wxPyBeginAllowThreads();
3413 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3414
3415 wxPyEndAllowThreads(__tstate);
3416 if (PyErr_Occurred()) SWIG_fail;
3417 }
3418 {
3419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3420 }
3421 return resultobj;
3422 fail:
3423 return NULL;
3424 }
3425
3426
3427 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3428 PyObject *resultobj;
3429 wxBitmap *arg1 = (wxBitmap *) 0 ;
3430 int arg2 ;
3431 PyObject * obj0 = 0 ;
3432 PyObject * obj1 = 0 ;
3433 char *kwnames[] = {
3434 (char *) "self",(char *) "height", NULL
3435 };
3436
3437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3440 arg2 = (int)SWIG_As_int(obj1);
3441 if (PyErr_Occurred()) SWIG_fail;
3442 {
3443 PyThreadState* __tstate = wxPyBeginAllowThreads();
3444 (arg1)->SetHeight(arg2);
3445
3446 wxPyEndAllowThreads(__tstate);
3447 if (PyErr_Occurred()) SWIG_fail;
3448 }
3449 Py_INCREF(Py_None); resultobj = Py_None;
3450 return resultobj;
3451 fail:
3452 return NULL;
3453 }
3454
3455
3456 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3457 PyObject *resultobj;
3458 wxBitmap *arg1 = (wxBitmap *) 0 ;
3459 int arg2 ;
3460 PyObject * obj0 = 0 ;
3461 PyObject * obj1 = 0 ;
3462 char *kwnames[] = {
3463 (char *) "self",(char *) "width", NULL
3464 };
3465
3466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3469 arg2 = (int)SWIG_As_int(obj1);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 {
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 (arg1)->SetWidth(arg2);
3474
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 Py_INCREF(Py_None); resultobj = Py_None;
3479 return resultobj;
3480 fail:
3481 return NULL;
3482 }
3483
3484
3485 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3486 PyObject *resultobj;
3487 wxBitmap *arg1 = (wxBitmap *) 0 ;
3488 int arg2 ;
3489 PyObject * obj0 = 0 ;
3490 PyObject * obj1 = 0 ;
3491 char *kwnames[] = {
3492 (char *) "self",(char *) "depth", NULL
3493 };
3494
3495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3498 arg2 = (int)SWIG_As_int(obj1);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 {
3501 PyThreadState* __tstate = wxPyBeginAllowThreads();
3502 (arg1)->SetDepth(arg2);
3503
3504 wxPyEndAllowThreads(__tstate);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 Py_INCREF(Py_None); resultobj = Py_None;
3508 return resultobj;
3509 fail:
3510 return NULL;
3511 }
3512
3513
3514 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3515 PyObject *resultobj;
3516 wxBitmap *arg1 = (wxBitmap *) 0 ;
3517 wxSize *arg2 = 0 ;
3518 wxSize temp2 ;
3519 PyObject * obj0 = 0 ;
3520 PyObject * obj1 = 0 ;
3521 char *kwnames[] = {
3522 (char *) "self",(char *) "size", NULL
3523 };
3524
3525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3528 {
3529 arg2 = &temp2;
3530 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3531 }
3532 {
3533 PyThreadState* __tstate = wxPyBeginAllowThreads();
3534 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3535
3536 wxPyEndAllowThreads(__tstate);
3537 if (PyErr_Occurred()) SWIG_fail;
3538 }
3539 Py_INCREF(Py_None); resultobj = Py_None;
3540 return resultobj;
3541 fail:
3542 return NULL;
3543 }
3544
3545
3546 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3547 PyObject *resultobj;
3548 wxBitmap *arg1 = (wxBitmap *) 0 ;
3549 wxBitmap *arg2 = (wxBitmap *) 0 ;
3550 bool result;
3551 PyObject * obj0 = 0 ;
3552 PyObject * obj1 = 0 ;
3553 char *kwnames[] = {
3554 (char *) "self",(char *) "other", NULL
3555 };
3556
3557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3560 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3562 {
3563 PyThreadState* __tstate = wxPyBeginAllowThreads();
3564 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3565
3566 wxPyEndAllowThreads(__tstate);
3567 if (PyErr_Occurred()) SWIG_fail;
3568 }
3569 {
3570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3571 }
3572 return resultobj;
3573 fail:
3574 return NULL;
3575 }
3576
3577
3578 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3579 PyObject *resultobj;
3580 wxBitmap *arg1 = (wxBitmap *) 0 ;
3581 wxBitmap *arg2 = (wxBitmap *) 0 ;
3582 bool result;
3583 PyObject * obj0 = 0 ;
3584 PyObject * obj1 = 0 ;
3585 char *kwnames[] = {
3586 (char *) "self",(char *) "other", NULL
3587 };
3588
3589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3594 {
3595 PyThreadState* __tstate = wxPyBeginAllowThreads();
3596 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3597
3598 wxPyEndAllowThreads(__tstate);
3599 if (PyErr_Occurred()) SWIG_fail;
3600 }
3601 {
3602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3603 }
3604 return resultobj;
3605 fail:
3606 return NULL;
3607 }
3608
3609
3610 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3611 PyObject *obj;
3612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3613 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3614 Py_INCREF(obj);
3615 return Py_BuildValue((char *)"");
3616 }
3617 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj;
3619 wxBitmap *arg1 = 0 ;
3620 wxColour const &arg2_defvalue = wxNullColour ;
3621 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3622 wxMask *result;
3623 wxColour temp2 ;
3624 PyObject * obj0 = 0 ;
3625 PyObject * obj1 = 0 ;
3626 char *kwnames[] = {
3627 (char *) "bitmap",(char *) "colour", NULL
3628 };
3629
3630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3632 SWIG_POINTER_EXCEPTION | 0)) == -1)
3633 SWIG_fail;
3634 if (arg1 == NULL) {
3635 PyErr_SetString(PyExc_TypeError,"null reference");
3636 SWIG_fail;
3637 }
3638 if (obj1) {
3639 {
3640 arg2 = &temp2;
3641 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3642 }
3643 }
3644 {
3645 if (!wxPyCheckForApp()) SWIG_fail;
3646 PyThreadState* __tstate = wxPyBeginAllowThreads();
3647 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3648
3649 wxPyEndAllowThreads(__tstate);
3650 if (PyErr_Occurred()) SWIG_fail;
3651 }
3652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3653 return resultobj;
3654 fail:
3655 return NULL;
3656 }
3657
3658
3659 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3660 PyObject *obj;
3661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3662 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3663 Py_INCREF(obj);
3664 return Py_BuildValue((char *)"");
3665 }
3666 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3667 PyObject *resultobj;
3668 wxString *arg1 = 0 ;
3669 int arg2 ;
3670 int arg3 = (int) -1 ;
3671 int arg4 = (int) -1 ;
3672 wxIcon *result;
3673 bool temp1 = False ;
3674 PyObject * obj0 = 0 ;
3675 PyObject * obj1 = 0 ;
3676 PyObject * obj2 = 0 ;
3677 PyObject * obj3 = 0 ;
3678 char *kwnames[] = {
3679 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3680 };
3681
3682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3683 {
3684 arg1 = wxString_in_helper(obj0);
3685 if (arg1 == NULL) SWIG_fail;
3686 temp1 = True;
3687 }
3688 arg2 = (int)SWIG_As_int(obj1);
3689 if (PyErr_Occurred()) SWIG_fail;
3690 if (obj2) {
3691 arg3 = (int)SWIG_As_int(obj2);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 }
3694 if (obj3) {
3695 arg4 = (int)SWIG_As_int(obj3);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 {
3699 if (!wxPyCheckForApp()) SWIG_fail;
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3702
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3707 {
3708 if (temp1)
3709 delete arg1;
3710 }
3711 return resultobj;
3712 fail:
3713 {
3714 if (temp1)
3715 delete arg1;
3716 }
3717 return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3722 PyObject *resultobj;
3723 wxIcon *arg1 = (wxIcon *) 0 ;
3724 PyObject * obj0 = 0 ;
3725 char *kwnames[] = {
3726 (char *) "self", NULL
3727 };
3728
3729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3732 {
3733 PyThreadState* __tstate = wxPyBeginAllowThreads();
3734 delete arg1;
3735
3736 wxPyEndAllowThreads(__tstate);
3737 if (PyErr_Occurred()) SWIG_fail;
3738 }
3739 Py_INCREF(Py_None); resultobj = Py_None;
3740 return resultobj;
3741 fail:
3742 return NULL;
3743 }
3744
3745
3746 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3747 PyObject *resultobj;
3748 wxIcon *result;
3749 char *kwnames[] = {
3750 NULL
3751 };
3752
3753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3754 {
3755 if (!wxPyCheckForApp()) SWIG_fail;
3756 PyThreadState* __tstate = wxPyBeginAllowThreads();
3757 result = (wxIcon *)new wxIcon();
3758
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) SWIG_fail;
3761 }
3762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3763 return resultobj;
3764 fail:
3765 return NULL;
3766 }
3767
3768
3769 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3770 PyObject *resultobj;
3771 wxIconLocation *arg1 = 0 ;
3772 wxIcon *result;
3773 PyObject * obj0 = 0 ;
3774 char *kwnames[] = {
3775 (char *) "loc", NULL
3776 };
3777
3778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3780 SWIG_POINTER_EXCEPTION | 0)) == -1)
3781 SWIG_fail;
3782 if (arg1 == NULL) {
3783 PyErr_SetString(PyExc_TypeError,"null reference");
3784 SWIG_fail;
3785 }
3786 {
3787 if (!wxPyCheckForApp()) SWIG_fail;
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3795 return resultobj;
3796 fail:
3797 return NULL;
3798 }
3799
3800
3801 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3802 PyObject *resultobj;
3803 wxBitmap *arg1 = 0 ;
3804 wxIcon *result;
3805 PyObject * obj0 = 0 ;
3806 char *kwnames[] = {
3807 (char *) "bmp", NULL
3808 };
3809
3810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3812 SWIG_POINTER_EXCEPTION | 0)) == -1)
3813 SWIG_fail;
3814 if (arg1 == NULL) {
3815 PyErr_SetString(PyExc_TypeError,"null reference");
3816 SWIG_fail;
3817 }
3818 {
3819 if (!wxPyCheckForApp()) SWIG_fail;
3820 PyThreadState* __tstate = wxPyBeginAllowThreads();
3821 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3822
3823 wxPyEndAllowThreads(__tstate);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 }
3826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3827 return resultobj;
3828 fail:
3829 return NULL;
3830 }
3831
3832
3833 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3834 PyObject *resultobj;
3835 PyObject *arg1 = (PyObject *) 0 ;
3836 wxIcon *result;
3837 PyObject * obj0 = 0 ;
3838 char *kwnames[] = {
3839 (char *) "listOfStrings", NULL
3840 };
3841
3842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3843 arg1 = obj0;
3844 {
3845 if (!wxPyCheckForApp()) SWIG_fail;
3846 PyThreadState* __tstate = wxPyBeginAllowThreads();
3847 result = (wxIcon *)new_wxIcon(arg1);
3848
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3853 return resultobj;
3854 fail:
3855 return NULL;
3856 }
3857
3858
3859 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3860 PyObject *resultobj;
3861 wxIcon *arg1 = (wxIcon *) 0 ;
3862 bool result;
3863 PyObject * obj0 = 0 ;
3864 char *kwnames[] = {
3865 (char *) "self", NULL
3866 };
3867
3868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3871 {
3872 PyThreadState* __tstate = wxPyBeginAllowThreads();
3873 result = (bool)(arg1)->Ok();
3874
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 {
3879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3880 }
3881 return resultobj;
3882 fail:
3883 return NULL;
3884 }
3885
3886
3887 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3888 PyObject *resultobj;
3889 wxIcon *arg1 = (wxIcon *) 0 ;
3890 int result;
3891 PyObject * obj0 = 0 ;
3892 char *kwnames[] = {
3893 (char *) "self", NULL
3894 };
3895
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3899 {
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (int)(arg1)->GetWidth();
3902
3903 wxPyEndAllowThreads(__tstate);
3904 if (PyErr_Occurred()) SWIG_fail;
3905 }
3906 resultobj = SWIG_From_int((int)result);
3907 return resultobj;
3908 fail:
3909 return NULL;
3910 }
3911
3912
3913 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3914 PyObject *resultobj;
3915 wxIcon *arg1 = (wxIcon *) 0 ;
3916 int result;
3917 PyObject * obj0 = 0 ;
3918 char *kwnames[] = {
3919 (char *) "self", NULL
3920 };
3921
3922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3925 {
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 result = (int)(arg1)->GetHeight();
3928
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 resultobj = SWIG_From_int((int)result);
3933 return resultobj;
3934 fail:
3935 return NULL;
3936 }
3937
3938
3939 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3940 PyObject *resultobj;
3941 wxIcon *arg1 = (wxIcon *) 0 ;
3942 int result;
3943 PyObject * obj0 = 0 ;
3944 char *kwnames[] = {
3945 (char *) "self", NULL
3946 };
3947
3948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3951 {
3952 PyThreadState* __tstate = wxPyBeginAllowThreads();
3953 result = (int)(arg1)->GetDepth();
3954
3955 wxPyEndAllowThreads(__tstate);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 resultobj = SWIG_From_int((int)result);
3959 return resultobj;
3960 fail:
3961 return NULL;
3962 }
3963
3964
3965 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3966 PyObject *resultobj;
3967 wxIcon *arg1 = (wxIcon *) 0 ;
3968 int arg2 ;
3969 PyObject * obj0 = 0 ;
3970 PyObject * obj1 = 0 ;
3971 char *kwnames[] = {
3972 (char *) "self",(char *) "w", NULL
3973 };
3974
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3978 arg2 = (int)SWIG_As_int(obj1);
3979 if (PyErr_Occurred()) SWIG_fail;
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 (arg1)->SetWidth(arg2);
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 Py_INCREF(Py_None); resultobj = Py_None;
3988 return resultobj;
3989 fail:
3990 return NULL;
3991 }
3992
3993
3994 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxIcon *arg1 = (wxIcon *) 0 ;
3997 int arg2 ;
3998 PyObject * obj0 = 0 ;
3999 PyObject * obj1 = 0 ;
4000 char *kwnames[] = {
4001 (char *) "self",(char *) "h", NULL
4002 };
4003
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4007 arg2 = (int)SWIG_As_int(obj1);
4008 if (PyErr_Occurred()) SWIG_fail;
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 (arg1)->SetHeight(arg2);
4012
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 Py_INCREF(Py_None); resultobj = Py_None;
4017 return resultobj;
4018 fail:
4019 return NULL;
4020 }
4021
4022
4023 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj;
4025 wxIcon *arg1 = (wxIcon *) 0 ;
4026 int arg2 ;
4027 PyObject * obj0 = 0 ;
4028 PyObject * obj1 = 0 ;
4029 char *kwnames[] = {
4030 (char *) "self",(char *) "d", NULL
4031 };
4032
4033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4036 arg2 = (int)SWIG_As_int(obj1);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
4040 (arg1)->SetDepth(arg2);
4041
4042 wxPyEndAllowThreads(__tstate);
4043 if (PyErr_Occurred()) SWIG_fail;
4044 }
4045 Py_INCREF(Py_None); resultobj = Py_None;
4046 return resultobj;
4047 fail:
4048 return NULL;
4049 }
4050
4051
4052 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4053 PyObject *resultobj;
4054 wxIcon *arg1 = (wxIcon *) 0 ;
4055 wxBitmap *arg2 = 0 ;
4056 PyObject * obj0 = 0 ;
4057 PyObject * obj1 = 0 ;
4058 char *kwnames[] = {
4059 (char *) "self",(char *) "bmp", NULL
4060 };
4061
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4066 SWIG_POINTER_EXCEPTION | 0)) == -1)
4067 SWIG_fail;
4068 if (arg2 == NULL) {
4069 PyErr_SetString(PyExc_TypeError,"null reference");
4070 SWIG_fail;
4071 }
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4075
4076 wxPyEndAllowThreads(__tstate);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 Py_INCREF(Py_None); resultobj = Py_None;
4080 return resultobj;
4081 fail:
4082 return NULL;
4083 }
4084
4085
4086 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
4087 PyObject *obj;
4088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4089 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4090 Py_INCREF(obj);
4091 return Py_BuildValue((char *)"");
4092 }
4093 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4094 PyObject *resultobj;
4095 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4096 int arg2 = (int) 0 ;
4097 wxIconLocation *result;
4098 bool temp1 = False ;
4099 PyObject * obj0 = 0 ;
4100 PyObject * obj1 = 0 ;
4101 char *kwnames[] = {
4102 (char *) "filename",(char *) "num", NULL
4103 };
4104
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4106 if (obj0) {
4107 {
4108 arg1 = wxString_in_helper(obj0);
4109 if (arg1 == NULL) SWIG_fail;
4110 temp1 = True;
4111 }
4112 }
4113 if (obj1) {
4114 arg2 = (int)SWIG_As_int(obj1);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 {
4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
4119 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4120
4121 wxPyEndAllowThreads(__tstate);
4122 if (PyErr_Occurred()) SWIG_fail;
4123 }
4124 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4125 {
4126 if (temp1)
4127 delete arg1;
4128 }
4129 return resultobj;
4130 fail:
4131 {
4132 if (temp1)
4133 delete arg1;
4134 }
4135 return NULL;
4136 }
4137
4138
4139 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4140 PyObject *resultobj;
4141 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4142 PyObject * obj0 = 0 ;
4143 char *kwnames[] = {
4144 (char *) "self", NULL
4145 };
4146
4147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4150 {
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
4152 delete arg1;
4153
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 Py_INCREF(Py_None); resultobj = Py_None;
4158 return resultobj;
4159 fail:
4160 return NULL;
4161 }
4162
4163
4164 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4165 PyObject *resultobj;
4166 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4167 bool result;
4168 PyObject * obj0 = 0 ;
4169 char *kwnames[] = {
4170 (char *) "self", NULL
4171 };
4172
4173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4176 {
4177 PyThreadState* __tstate = wxPyBeginAllowThreads();
4178 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4179
4180 wxPyEndAllowThreads(__tstate);
4181 if (PyErr_Occurred()) SWIG_fail;
4182 }
4183 {
4184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4185 }
4186 return resultobj;
4187 fail:
4188 return NULL;
4189 }
4190
4191
4192 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4193 PyObject *resultobj;
4194 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4195 wxString *arg2 = 0 ;
4196 bool temp2 = False ;
4197 PyObject * obj0 = 0 ;
4198 PyObject * obj1 = 0 ;
4199 char *kwnames[] = {
4200 (char *) "self",(char *) "filename", NULL
4201 };
4202
4203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4206 {
4207 arg2 = wxString_in_helper(obj1);
4208 if (arg2 == NULL) SWIG_fail;
4209 temp2 = True;
4210 }
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 (arg1)->SetFileName((wxString const &)*arg2);
4214
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 Py_INCREF(Py_None); resultobj = Py_None;
4219 {
4220 if (temp2)
4221 delete arg2;
4222 }
4223 return resultobj;
4224 fail:
4225 {
4226 if (temp2)
4227 delete arg2;
4228 }
4229 return NULL;
4230 }
4231
4232
4233 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4234 PyObject *resultobj;
4235 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4236 wxString *result;
4237 PyObject * obj0 = 0 ;
4238 char *kwnames[] = {
4239 (char *) "self", NULL
4240 };
4241
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4245 {
4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
4247 {
4248 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4249 result = (wxString *) &_result_ref;
4250 }
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 {
4256 #if wxUSE_UNICODE
4257 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4258 #else
4259 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4260 #endif
4261 }
4262 return resultobj;
4263 fail:
4264 return NULL;
4265 }
4266
4267
4268 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4269 PyObject *resultobj;
4270 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4271 int arg2 ;
4272 PyObject * obj0 = 0 ;
4273 PyObject * obj1 = 0 ;
4274 char *kwnames[] = {
4275 (char *) "self",(char *) "num", NULL
4276 };
4277
4278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4281 arg2 = (int)SWIG_As_int(obj1);
4282 if (PyErr_Occurred()) SWIG_fail;
4283 {
4284 PyThreadState* __tstate = wxPyBeginAllowThreads();
4285 wxIconLocation_SetIndex(arg1,arg2);
4286
4287 wxPyEndAllowThreads(__tstate);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 }
4290 Py_INCREF(Py_None); resultobj = Py_None;
4291 return resultobj;
4292 fail:
4293 return NULL;
4294 }
4295
4296
4297 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4298 PyObject *resultobj;
4299 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4300 int result;
4301 PyObject * obj0 = 0 ;
4302 char *kwnames[] = {
4303 (char *) "self", NULL
4304 };
4305
4306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 result = (int)wxIconLocation_GetIndex(arg1);
4312
4313 wxPyEndAllowThreads(__tstate);
4314 if (PyErr_Occurred()) SWIG_fail;
4315 }
4316 resultobj = SWIG_From_int((int)result);
4317 return resultobj;
4318 fail:
4319 return NULL;
4320 }
4321
4322
4323 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4324 PyObject *obj;
4325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4326 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4327 Py_INCREF(obj);
4328 return Py_BuildValue((char *)"");
4329 }
4330 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4331 PyObject *resultobj;
4332 wxIconBundle *result;
4333 char *kwnames[] = {
4334 NULL
4335 };
4336
4337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4338 {
4339 PyThreadState* __tstate = wxPyBeginAllowThreads();
4340 result = (wxIconBundle *)new wxIconBundle();
4341
4342 wxPyEndAllowThreads(__tstate);
4343 if (PyErr_Occurred()) SWIG_fail;
4344 }
4345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4346 return resultobj;
4347 fail:
4348 return NULL;
4349 }
4350
4351
4352 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4353 PyObject *resultobj;
4354 wxString *arg1 = 0 ;
4355 long arg2 ;
4356 wxIconBundle *result;
4357 bool temp1 = False ;
4358 PyObject * obj0 = 0 ;
4359 PyObject * obj1 = 0 ;
4360 char *kwnames[] = {
4361 (char *) "file",(char *) "type", NULL
4362 };
4363
4364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4365 {
4366 arg1 = wxString_in_helper(obj0);
4367 if (arg1 == NULL) SWIG_fail;
4368 temp1 = True;
4369 }
4370 arg2 = (long)SWIG_As_long(obj1);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4375
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4380 {
4381 if (temp1)
4382 delete arg1;
4383 }
4384 return resultobj;
4385 fail:
4386 {
4387 if (temp1)
4388 delete arg1;
4389 }
4390 return NULL;
4391 }
4392
4393
4394 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4395 PyObject *resultobj;
4396 wxIcon *arg1 = 0 ;
4397 wxIconBundle *result;
4398 PyObject * obj0 = 0 ;
4399 char *kwnames[] = {
4400 (char *) "icon", NULL
4401 };
4402
4403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4405 SWIG_POINTER_EXCEPTION | 0)) == -1)
4406 SWIG_fail;
4407 if (arg1 == NULL) {
4408 PyErr_SetString(PyExc_TypeError,"null reference");
4409 SWIG_fail;
4410 }
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4414
4415 wxPyEndAllowThreads(__tstate);
4416 if (PyErr_Occurred()) SWIG_fail;
4417 }
4418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4419 return resultobj;
4420 fail:
4421 return NULL;
4422 }
4423
4424
4425 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4426 PyObject *resultobj;
4427 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4428 PyObject * obj0 = 0 ;
4429 char *kwnames[] = {
4430 (char *) "self", NULL
4431 };
4432
4433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4436 {
4437 PyThreadState* __tstate = wxPyBeginAllowThreads();
4438 delete arg1;
4439
4440 wxPyEndAllowThreads(__tstate);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 Py_INCREF(Py_None); resultobj = Py_None;
4444 return resultobj;
4445 fail:
4446 return NULL;
4447 }
4448
4449
4450 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4451 PyObject *resultobj;
4452 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4453 wxIcon *arg2 = 0 ;
4454 PyObject * obj0 = 0 ;
4455 PyObject * obj1 = 0 ;
4456 char *kwnames[] = {
4457 (char *) "self",(char *) "icon", NULL
4458 };
4459
4460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4464 SWIG_POINTER_EXCEPTION | 0)) == -1)
4465 SWIG_fail;
4466 if (arg2 == NULL) {
4467 PyErr_SetString(PyExc_TypeError,"null reference");
4468 SWIG_fail;
4469 }
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 (arg1)->AddIcon((wxIcon const &)*arg2);
4473
4474 wxPyEndAllowThreads(__tstate);
4475 if (PyErr_Occurred()) SWIG_fail;
4476 }
4477 Py_INCREF(Py_None); resultobj = Py_None;
4478 return resultobj;
4479 fail:
4480 return NULL;
4481 }
4482
4483
4484 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4485 PyObject *resultobj;
4486 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4487 wxString *arg2 = 0 ;
4488 long arg3 ;
4489 bool temp2 = False ;
4490 PyObject * obj0 = 0 ;
4491 PyObject * obj1 = 0 ;
4492 PyObject * obj2 = 0 ;
4493 char *kwnames[] = {
4494 (char *) "self",(char *) "file",(char *) "type", NULL
4495 };
4496
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4500 {
4501 arg2 = wxString_in_helper(obj1);
4502 if (arg2 == NULL) SWIG_fail;
4503 temp2 = True;
4504 }
4505 arg3 = (long)SWIG_As_long(obj2);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 Py_INCREF(Py_None); resultobj = Py_None;
4515 {
4516 if (temp2)
4517 delete arg2;
4518 }
4519 return resultobj;
4520 fail:
4521 {
4522 if (temp2)
4523 delete arg2;
4524 }
4525 return NULL;
4526 }
4527
4528
4529 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4530 PyObject *resultobj;
4531 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4532 wxSize *arg2 = 0 ;
4533 wxIcon *result;
4534 wxSize temp2 ;
4535 PyObject * obj0 = 0 ;
4536 PyObject * obj1 = 0 ;
4537 char *kwnames[] = {
4538 (char *) "self",(char *) "size", NULL
4539 };
4540
4541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4544 {
4545 arg2 = &temp2;
4546 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4547 }
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 {
4551 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4552 result = (wxIcon *) &_result_ref;
4553 }
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 {
4559 wxIcon* resultptr = new wxIcon(*result);
4560 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4561 }
4562 return resultobj;
4563 fail:
4564 return NULL;
4565 }
4566
4567
4568 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4569 PyObject *obj;
4570 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4571 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4572 Py_INCREF(obj);
4573 return Py_BuildValue((char *)"");
4574 }
4575 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4576 PyObject *resultobj;
4577 wxString *arg1 = (wxString *) 0 ;
4578 long arg2 ;
4579 int arg3 = (int) 0 ;
4580 int arg4 = (int) 0 ;
4581 wxCursor *result;
4582 bool temp1 = False ;
4583 PyObject * obj0 = 0 ;
4584 PyObject * obj1 = 0 ;
4585 PyObject * obj2 = 0 ;
4586 PyObject * obj3 = 0 ;
4587 char *kwnames[] = {
4588 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4589 };
4590
4591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4592 {
4593 arg1 = wxString_in_helper(obj0);
4594 if (arg1 == NULL) SWIG_fail;
4595 temp1 = True;
4596 }
4597 arg2 = (long)SWIG_As_long(obj1);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 if (obj2) {
4600 arg3 = (int)SWIG_As_int(obj2);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 if (obj3) {
4604 arg4 = (int)SWIG_As_int(obj3);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 {
4608 if (!wxPyCheckForApp()) SWIG_fail;
4609 PyThreadState* __tstate = wxPyBeginAllowThreads();
4610 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4611
4612 wxPyEndAllowThreads(__tstate);
4613 if (PyErr_Occurred()) SWIG_fail;
4614 }
4615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4616 {
4617 if (temp1)
4618 delete arg1;
4619 }
4620 return resultobj;
4621 fail:
4622 {
4623 if (temp1)
4624 delete arg1;
4625 }
4626 return NULL;
4627 }
4628
4629
4630 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4631 PyObject *resultobj;
4632 wxCursor *arg1 = (wxCursor *) 0 ;
4633 PyObject * obj0 = 0 ;
4634 char *kwnames[] = {
4635 (char *) "self", NULL
4636 };
4637
4638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4641 {
4642 PyThreadState* __tstate = wxPyBeginAllowThreads();
4643 delete arg1;
4644
4645 wxPyEndAllowThreads(__tstate);
4646 if (PyErr_Occurred()) SWIG_fail;
4647 }
4648 Py_INCREF(Py_None); resultobj = Py_None;
4649 return resultobj;
4650 fail:
4651 return NULL;
4652 }
4653
4654
4655 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4656 PyObject *resultobj;
4657 int arg1 ;
4658 wxCursor *result;
4659 PyObject * obj0 = 0 ;
4660 char *kwnames[] = {
4661 (char *) "id", NULL
4662 };
4663
4664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4665 arg1 = (int)SWIG_As_int(obj0);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 {
4668 if (!wxPyCheckForApp()) SWIG_fail;
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 result = (wxCursor *)new wxCursor(arg1);
4671
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4676 return resultobj;
4677 fail:
4678 return NULL;
4679 }
4680
4681
4682 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4683 PyObject *resultobj;
4684 wxImage *arg1 = 0 ;
4685 wxCursor *result;
4686 PyObject * obj0 = 0 ;
4687 char *kwnames[] = {
4688 (char *) "image", NULL
4689 };
4690
4691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4693 SWIG_POINTER_EXCEPTION | 0)) == -1)
4694 SWIG_fail;
4695 if (arg1 == NULL) {
4696 PyErr_SetString(PyExc_TypeError,"null reference");
4697 SWIG_fail;
4698 }
4699 {
4700 if (!wxPyCheckForApp()) SWIG_fail;
4701 PyThreadState* __tstate = wxPyBeginAllowThreads();
4702 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4703
4704 wxPyEndAllowThreads(__tstate);
4705 if (PyErr_Occurred()) SWIG_fail;
4706 }
4707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4708 return resultobj;
4709 fail:
4710 return NULL;
4711 }
4712
4713
4714 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4715 PyObject *resultobj;
4716 wxCursor *arg1 = (wxCursor *) 0 ;
4717 bool result;
4718 PyObject * obj0 = 0 ;
4719 char *kwnames[] = {
4720 (char *) "self", NULL
4721 };
4722
4723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4726 {
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
4728 result = (bool)(arg1)->Ok();
4729
4730 wxPyEndAllowThreads(__tstate);
4731 if (PyErr_Occurred()) SWIG_fail;
4732 }
4733 {
4734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4735 }
4736 return resultobj;
4737 fail:
4738 return NULL;
4739 }
4740
4741
4742 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
4743 PyObject *obj;
4744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4745 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4746 Py_INCREF(obj);
4747 return Py_BuildValue((char *)"");
4748 }
4749 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4750 PyObject *resultobj;
4751 int arg1 = (int) 0 ;
4752 int arg2 = (int) 0 ;
4753 int arg3 = (int) 0 ;
4754 int arg4 = (int) 0 ;
4755 wxRegion *result;
4756 PyObject * obj0 = 0 ;
4757 PyObject * obj1 = 0 ;
4758 PyObject * obj2 = 0 ;
4759 PyObject * obj3 = 0 ;
4760 char *kwnames[] = {
4761 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4762 };
4763
4764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4765 if (obj0) {
4766 arg1 = (int)SWIG_As_int(obj0);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 if (obj1) {
4770 arg2 = (int)SWIG_As_int(obj1);
4771 if (PyErr_Occurred()) SWIG_fail;
4772 }
4773 if (obj2) {
4774 arg3 = (int)SWIG_As_int(obj2);
4775 if (PyErr_Occurred()) SWIG_fail;
4776 }
4777 if (obj3) {
4778 arg4 = (int)SWIG_As_int(obj3);
4779 if (PyErr_Occurred()) SWIG_fail;
4780 }
4781 {
4782 if (!wxPyCheckForApp()) SWIG_fail;
4783 PyThreadState* __tstate = wxPyBeginAllowThreads();
4784 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4785
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4797 PyObject *resultobj;
4798 wxBitmap *arg1 = 0 ;
4799 wxRegion *result;
4800 PyObject * obj0 = 0 ;
4801 char *kwnames[] = {
4802 (char *) "bmp", NULL
4803 };
4804
4805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4807 SWIG_POINTER_EXCEPTION | 0)) == -1)
4808 SWIG_fail;
4809 if (arg1 == NULL) {
4810 PyErr_SetString(PyExc_TypeError,"null reference");
4811 SWIG_fail;
4812 }
4813 {
4814 if (!wxPyCheckForApp()) SWIG_fail;
4815 PyThreadState* __tstate = wxPyBeginAllowThreads();
4816 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4817
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4822 return resultobj;
4823 fail:
4824 return NULL;
4825 }
4826
4827
4828 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
4829 PyObject *resultobj;
4830 wxBitmap *arg1 = 0 ;
4831 wxColour *arg2 = 0 ;
4832 int arg3 = (int) 0 ;
4833 wxRegion *result;
4834 wxColour temp2 ;
4835 PyObject * obj0 = 0 ;
4836 PyObject * obj1 = 0 ;
4837 PyObject * obj2 = 0 ;
4838 char *kwnames[] = {
4839 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4840 };
4841
4842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
4843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4844 SWIG_POINTER_EXCEPTION | 0)) == -1)
4845 SWIG_fail;
4846 if (arg1 == NULL) {
4847 PyErr_SetString(PyExc_TypeError,"null reference");
4848 SWIG_fail;
4849 }
4850 {
4851 arg2 = &temp2;
4852 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4853 }
4854 if (obj2) {
4855 arg3 = (int)SWIG_As_int(obj2);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 {
4859 if (!wxPyCheckForApp()) SWIG_fail;
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4862
4863 wxPyEndAllowThreads(__tstate);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 }
4866 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
4874 PyObject *resultobj;
4875 int arg1 ;
4876 wxPoint *arg2 = (wxPoint *) 0 ;
4877 int arg3 = (int) wxWINDING_RULE ;
4878 wxRegion *result;
4879 PyObject * obj0 = 0 ;
4880 PyObject * obj1 = 0 ;
4881 char *kwnames[] = {
4882 (char *) "points",(char *) "fillStyle", NULL
4883 };
4884
4885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4886 {
4887 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4888 if (arg2 == NULL) SWIG_fail;
4889 }
4890 if (obj1) {
4891 arg3 = (int)SWIG_As_int(obj1);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 }
4894 {
4895 if (!wxPyCheckForApp()) SWIG_fail;
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4898
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4903 {
4904 if (arg2) delete [] arg2;
4905 }
4906 return resultobj;
4907 fail:
4908 {
4909 if (arg2) delete [] arg2;
4910 }
4911 return NULL;
4912 }
4913
4914
4915 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj;
4917 wxRegion *arg1 = (wxRegion *) 0 ;
4918 PyObject * obj0 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "self", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 delete arg1;
4929
4930 wxPyEndAllowThreads(__tstate);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 }
4933 Py_INCREF(Py_None); resultobj = Py_None;
4934 return resultobj;
4935 fail:
4936 return NULL;
4937 }
4938
4939
4940 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
4941 PyObject *resultobj;
4942 wxRegion *arg1 = (wxRegion *) 0 ;
4943 PyObject * obj0 = 0 ;
4944 char *kwnames[] = {
4945 (char *) "self", NULL
4946 };
4947
4948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4951 {
4952 PyThreadState* __tstate = wxPyBeginAllowThreads();
4953 (arg1)->Clear();
4954
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 Py_INCREF(Py_None); resultobj = Py_None;
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
4966 PyObject *resultobj;
4967 wxRegion *arg1 = (wxRegion *) 0 ;
4968 int arg2 ;
4969 int arg3 ;
4970 int result;
4971 PyObject * obj0 = 0 ;
4972 PyObject * obj1 = 0 ;
4973 PyObject * obj2 = 0 ;
4974 char *kwnames[] = {
4975 (char *) "self",(char *) "x",(char *) "y", NULL
4976 };
4977
4978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4981 arg2 = (int)SWIG_As_int(obj1);
4982 if (PyErr_Occurred()) SWIG_fail;
4983 arg3 = (int)SWIG_As_int(obj2);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 {
4986 PyThreadState* __tstate = wxPyBeginAllowThreads();
4987 result = (int)(arg1)->Contains(arg2,arg3);
4988
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 resultobj = SWIG_From_int((int)result);
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj;
5001 wxRegion *arg1 = (wxRegion *) 0 ;
5002 wxPoint *arg2 = 0 ;
5003 int result;
5004 wxPoint temp2 ;
5005 PyObject * obj0 = 0 ;
5006 PyObject * obj1 = 0 ;
5007 char *kwnames[] = {
5008 (char *) "self",(char *) "pt", NULL
5009 };
5010
5011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5014 {
5015 arg2 = &temp2;
5016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5017 }
5018 {
5019 PyThreadState* __tstate = wxPyBeginAllowThreads();
5020 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5021
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 resultobj = SWIG_From_int((int)result);
5026 return resultobj;
5027 fail:
5028 return NULL;
5029 }
5030
5031
5032 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
5033 PyObject *resultobj;
5034 wxRegion *arg1 = (wxRegion *) 0 ;
5035 wxRect *arg2 = 0 ;
5036 int result;
5037 wxRect temp2 ;
5038 PyObject * obj0 = 0 ;
5039 PyObject * obj1 = 0 ;
5040 char *kwnames[] = {
5041 (char *) "self",(char *) "rect", NULL
5042 };
5043
5044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5047 {
5048 arg2 = &temp2;
5049 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5050 }
5051 {
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5054
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 resultobj = SWIG_From_int((int)result);
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
5066 PyObject *resultobj;
5067 wxRegion *arg1 = (wxRegion *) 0 ;
5068 int arg2 ;
5069 int arg3 ;
5070 int arg4 ;
5071 int arg5 ;
5072 int result;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 PyObject * obj2 = 0 ;
5076 PyObject * obj3 = 0 ;
5077 PyObject * obj4 = 0 ;
5078 char *kwnames[] = {
5079 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5080 };
5081
5082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5085 arg2 = (int)SWIG_As_int(obj1);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 arg3 = (int)SWIG_As_int(obj2);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 arg4 = (int)SWIG_As_int(obj3);
5090 if (PyErr_Occurred()) SWIG_fail;
5091 arg5 = (int)SWIG_As_int(obj4);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 {
5094 PyThreadState* __tstate = wxPyBeginAllowThreads();
5095 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5096
5097 wxPyEndAllowThreads(__tstate);
5098 if (PyErr_Occurred()) SWIG_fail;
5099 }
5100 resultobj = SWIG_From_int((int)result);
5101 return resultobj;
5102 fail:
5103 return NULL;
5104 }
5105
5106
5107 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
5108 PyObject *resultobj;
5109 wxRegion *arg1 = (wxRegion *) 0 ;
5110 wxRect result;
5111 PyObject * obj0 = 0 ;
5112 char *kwnames[] = {
5113 (char *) "self", NULL
5114 };
5115
5116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5119 {
5120 PyThreadState* __tstate = wxPyBeginAllowThreads();
5121 result = (arg1)->GetBox();
5122
5123 wxPyEndAllowThreads(__tstate);
5124 if (PyErr_Occurred()) SWIG_fail;
5125 }
5126 {
5127 wxRect * resultptr;
5128 resultptr = new wxRect((wxRect &) result);
5129 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5130 }
5131 return resultobj;
5132 fail:
5133 return NULL;
5134 }
5135
5136
5137 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5138 PyObject *resultobj;
5139 wxRegion *arg1 = (wxRegion *) 0 ;
5140 int arg2 ;
5141 int arg3 ;
5142 int arg4 ;
5143 int arg5 ;
5144 bool result;
5145 PyObject * obj0 = 0 ;
5146 PyObject * obj1 = 0 ;
5147 PyObject * obj2 = 0 ;
5148 PyObject * obj3 = 0 ;
5149 PyObject * obj4 = 0 ;
5150 char *kwnames[] = {
5151 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5152 };
5153
5154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5157 arg2 = (int)SWIG_As_int(obj1);
5158 if (PyErr_Occurred()) SWIG_fail;
5159 arg3 = (int)SWIG_As_int(obj2);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 arg4 = (int)SWIG_As_int(obj3);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 arg5 = (int)SWIG_As_int(obj4);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 {
5166 PyThreadState* __tstate = wxPyBeginAllowThreads();
5167 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5168
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 {
5173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5174 }
5175 return resultobj;
5176 fail:
5177 return NULL;
5178 }
5179
5180
5181 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5182 PyObject *resultobj;
5183 wxRegion *arg1 = (wxRegion *) 0 ;
5184 wxRect *arg2 = 0 ;
5185 bool result;
5186 wxRect temp2 ;
5187 PyObject * obj0 = 0 ;
5188 PyObject * obj1 = 0 ;
5189 char *kwnames[] = {
5190 (char *) "self",(char *) "rect", NULL
5191 };
5192
5193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5196 {
5197 arg2 = &temp2;
5198 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5199 }
5200 {
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5203
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 {
5208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5209 }
5210 return resultobj;
5211 fail:
5212 return NULL;
5213 }
5214
5215
5216 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5217 PyObject *resultobj;
5218 wxRegion *arg1 = (wxRegion *) 0 ;
5219 wxRegion *arg2 = 0 ;
5220 bool result;
5221 PyObject * obj0 = 0 ;
5222 PyObject * obj1 = 0 ;
5223 char *kwnames[] = {
5224 (char *) "self",(char *) "region", NULL
5225 };
5226
5227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5230 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5231 SWIG_POINTER_EXCEPTION | 0)) == -1)
5232 SWIG_fail;
5233 if (arg2 == NULL) {
5234 PyErr_SetString(PyExc_TypeError,"null reference");
5235 SWIG_fail;
5236 }
5237 {
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5240
5241 wxPyEndAllowThreads(__tstate);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 {
5245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5246 }
5247 return resultobj;
5248 fail:
5249 return NULL;
5250 }
5251
5252
5253 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5254 PyObject *resultobj;
5255 wxRegion *arg1 = (wxRegion *) 0 ;
5256 bool result;
5257 PyObject * obj0 = 0 ;
5258 char *kwnames[] = {
5259 (char *) "self", NULL
5260 };
5261
5262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5265 {
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 result = (bool)(arg1)->IsEmpty();
5268
5269 wxPyEndAllowThreads(__tstate);
5270 if (PyErr_Occurred()) SWIG_fail;
5271 }
5272 {
5273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5274 }
5275 return resultobj;
5276 fail:
5277 return NULL;
5278 }
5279
5280
5281 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5282 PyObject *resultobj;
5283 wxRegion *arg1 = (wxRegion *) 0 ;
5284 int arg2 ;
5285 int arg3 ;
5286 int arg4 ;
5287 int arg5 ;
5288 bool result;
5289 PyObject * obj0 = 0 ;
5290 PyObject * obj1 = 0 ;
5291 PyObject * obj2 = 0 ;
5292 PyObject * obj3 = 0 ;
5293 PyObject * obj4 = 0 ;
5294 char *kwnames[] = {
5295 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5296 };
5297
5298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5301 arg2 = (int)SWIG_As_int(obj1);
5302 if (PyErr_Occurred()) SWIG_fail;
5303 arg3 = (int)SWIG_As_int(obj2);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 arg4 = (int)SWIG_As_int(obj3);
5306 if (PyErr_Occurred()) SWIG_fail;
5307 arg5 = (int)SWIG_As_int(obj4);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 {
5317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5318 }
5319 return resultobj;
5320 fail:
5321 return NULL;
5322 }
5323
5324
5325 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
5326 PyObject *resultobj;
5327 wxRegion *arg1 = (wxRegion *) 0 ;
5328 wxRect *arg2 = 0 ;
5329 bool result;
5330 wxRect temp2 ;
5331 PyObject * obj0 = 0 ;
5332 PyObject * obj1 = 0 ;
5333 char *kwnames[] = {
5334 (char *) "self",(char *) "rect", NULL
5335 };
5336
5337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5340 {
5341 arg2 = &temp2;
5342 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5343 }
5344 {
5345 PyThreadState* __tstate = wxPyBeginAllowThreads();
5346 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5347
5348 wxPyEndAllowThreads(__tstate);
5349 if (PyErr_Occurred()) SWIG_fail;
5350 }
5351 {
5352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5353 }
5354 return resultobj;
5355 fail:
5356 return NULL;
5357 }
5358
5359
5360 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj;
5362 wxRegion *arg1 = (wxRegion *) 0 ;
5363 wxRegion *arg2 = 0 ;
5364 bool result;
5365 PyObject * obj0 = 0 ;
5366 PyObject * obj1 = 0 ;
5367 char *kwnames[] = {
5368 (char *) "self",(char *) "region", NULL
5369 };
5370
5371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5375 SWIG_POINTER_EXCEPTION | 0)) == -1)
5376 SWIG_fail;
5377 if (arg2 == NULL) {
5378 PyErr_SetString(PyExc_TypeError,"null reference");
5379 SWIG_fail;
5380 }
5381 {
5382 PyThreadState* __tstate = wxPyBeginAllowThreads();
5383 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5384
5385 wxPyEndAllowThreads(__tstate);
5386 if (PyErr_Occurred()) SWIG_fail;
5387 }
5388 {
5389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5390 }
5391 return resultobj;
5392 fail:
5393 return NULL;
5394 }
5395
5396
5397 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
5398 PyObject *resultobj;
5399 wxRegion *arg1 = (wxRegion *) 0 ;
5400 int arg2 ;
5401 int arg3 ;
5402 int arg4 ;
5403 int arg5 ;
5404 bool result;
5405 PyObject * obj0 = 0 ;
5406 PyObject * obj1 = 0 ;
5407 PyObject * obj2 = 0 ;
5408 PyObject * obj3 = 0 ;
5409 PyObject * obj4 = 0 ;
5410 char *kwnames[] = {
5411 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5412 };
5413
5414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5417 arg2 = (int)SWIG_As_int(obj1);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 arg3 = (int)SWIG_As_int(obj2);
5420 if (PyErr_Occurred()) SWIG_fail;
5421 arg4 = (int)SWIG_As_int(obj3);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 arg5 = (int)SWIG_As_int(obj4);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 {
5426 PyThreadState* __tstate = wxPyBeginAllowThreads();
5427 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5428
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 {
5433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5434 }
5435 return resultobj;
5436 fail:
5437 return NULL;
5438 }
5439
5440
5441 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
5442 PyObject *resultobj;
5443 wxRegion *arg1 = (wxRegion *) 0 ;
5444 wxRect *arg2 = 0 ;
5445 bool result;
5446 wxRect temp2 ;
5447 PyObject * obj0 = 0 ;
5448 PyObject * obj1 = 0 ;
5449 char *kwnames[] = {
5450 (char *) "self",(char *) "rect", NULL
5451 };
5452
5453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5456 {
5457 arg2 = &temp2;
5458 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5459 }
5460 {
5461 PyThreadState* __tstate = wxPyBeginAllowThreads();
5462 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5463
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 {
5468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5469 }
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 wxRegion *arg1 = (wxRegion *) 0 ;
5479 wxRegion *arg2 = 0 ;
5480 bool result;
5481 PyObject * obj0 = 0 ;
5482 PyObject * obj1 = 0 ;
5483 char *kwnames[] = {
5484 (char *) "self",(char *) "region", NULL
5485 };
5486
5487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5491 SWIG_POINTER_EXCEPTION | 0)) == -1)
5492 SWIG_fail;
5493 if (arg2 == NULL) {
5494 PyErr_SetString(PyExc_TypeError,"null reference");
5495 SWIG_fail;
5496 }
5497 {
5498 PyThreadState* __tstate = wxPyBeginAllowThreads();
5499 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5500
5501 wxPyEndAllowThreads(__tstate);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 {
5505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5506 }
5507 return resultobj;
5508 fail:
5509 return NULL;
5510 }
5511
5512
5513 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
5514 PyObject *resultobj;
5515 wxRegion *arg1 = (wxRegion *) 0 ;
5516 int arg2 ;
5517 int arg3 ;
5518 int arg4 ;
5519 int arg5 ;
5520 bool result;
5521 PyObject * obj0 = 0 ;
5522 PyObject * obj1 = 0 ;
5523 PyObject * obj2 = 0 ;
5524 PyObject * obj3 = 0 ;
5525 PyObject * obj4 = 0 ;
5526 char *kwnames[] = {
5527 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5528 };
5529
5530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5533 arg2 = (int)SWIG_As_int(obj1);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 arg3 = (int)SWIG_As_int(obj2);
5536 if (PyErr_Occurred()) SWIG_fail;
5537 arg4 = (int)SWIG_As_int(obj3);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 arg5 = (int)SWIG_As_int(obj4);
5540 if (PyErr_Occurred()) SWIG_fail;
5541 {
5542 PyThreadState* __tstate = wxPyBeginAllowThreads();
5543 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5544
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 }
5548 {
5549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5550 }
5551 return resultobj;
5552 fail:
5553 return NULL;
5554 }
5555
5556
5557 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
5558 PyObject *resultobj;
5559 wxRegion *arg1 = (wxRegion *) 0 ;
5560 wxRect *arg2 = 0 ;
5561 bool result;
5562 wxRect temp2 ;
5563 PyObject * obj0 = 0 ;
5564 PyObject * obj1 = 0 ;
5565 char *kwnames[] = {
5566 (char *) "self",(char *) "rect", NULL
5567 };
5568
5569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5572 {
5573 arg2 = &temp2;
5574 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5575 }
5576 {
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5579
5580 wxPyEndAllowThreads(__tstate);
5581 if (PyErr_Occurred()) SWIG_fail;
5582 }
5583 {
5584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5585 }
5586 return resultobj;
5587 fail:
5588 return NULL;
5589 }
5590
5591
5592 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5593 PyObject *resultobj;
5594 wxRegion *arg1 = (wxRegion *) 0 ;
5595 wxRegion *arg2 = 0 ;
5596 bool result;
5597 PyObject * obj0 = 0 ;
5598 PyObject * obj1 = 0 ;
5599 char *kwnames[] = {
5600 (char *) "self",(char *) "region", NULL
5601 };
5602
5603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5607 SWIG_POINTER_EXCEPTION | 0)) == -1)
5608 SWIG_fail;
5609 if (arg2 == NULL) {
5610 PyErr_SetString(PyExc_TypeError,"null reference");
5611 SWIG_fail;
5612 }
5613 {
5614 PyThreadState* __tstate = wxPyBeginAllowThreads();
5615 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5616
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 {
5621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5622 }
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj;
5631 wxRegion *arg1 = (wxRegion *) 0 ;
5632 SwigValueWrapper< wxBitmap > result;
5633 PyObject * obj0 = 0 ;
5634 char *kwnames[] = {
5635 (char *) "self", NULL
5636 };
5637
5638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5641 {
5642 PyThreadState* __tstate = wxPyBeginAllowThreads();
5643 result = (arg1)->ConvertToBitmap();
5644
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 {
5649 wxBitmap * resultptr;
5650 resultptr = new wxBitmap((wxBitmap &) result);
5651 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5652 }
5653 return resultobj;
5654 fail:
5655 return NULL;
5656 }
5657
5658
5659 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj;
5661 wxRegion *arg1 = (wxRegion *) 0 ;
5662 wxBitmap *arg2 = 0 ;
5663 bool result;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 char *kwnames[] = {
5667 (char *) "self",(char *) "bmp", NULL
5668 };
5669
5670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5674 SWIG_POINTER_EXCEPTION | 0)) == -1)
5675 SWIG_fail;
5676 if (arg2 == NULL) {
5677 PyErr_SetString(PyExc_TypeError,"null reference");
5678 SWIG_fail;
5679 }
5680 {
5681 PyThreadState* __tstate = wxPyBeginAllowThreads();
5682 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5683
5684 wxPyEndAllowThreads(__tstate);
5685 if (PyErr_Occurred()) SWIG_fail;
5686 }
5687 {
5688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5689 }
5690 return resultobj;
5691 fail:
5692 return NULL;
5693 }
5694
5695
5696 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
5697 PyObject *resultobj;
5698 wxRegion *arg1 = (wxRegion *) 0 ;
5699 wxBitmap *arg2 = 0 ;
5700 wxColour *arg3 = 0 ;
5701 int arg4 = (int) 0 ;
5702 bool result;
5703 wxColour temp3 ;
5704 PyObject * obj0 = 0 ;
5705 PyObject * obj1 = 0 ;
5706 PyObject * obj2 = 0 ;
5707 PyObject * obj3 = 0 ;
5708 char *kwnames[] = {
5709 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5710 };
5711
5712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5716 SWIG_POINTER_EXCEPTION | 0)) == -1)
5717 SWIG_fail;
5718 if (arg2 == NULL) {
5719 PyErr_SetString(PyExc_TypeError,"null reference");
5720 SWIG_fail;
5721 }
5722 {
5723 arg3 = &temp3;
5724 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5725 }
5726 if (obj3) {
5727 arg4 = (int)SWIG_As_int(obj3);
5728 if (PyErr_Occurred()) SWIG_fail;
5729 }
5730 {
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
5732 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5733
5734 wxPyEndAllowThreads(__tstate);
5735 if (PyErr_Occurred()) SWIG_fail;
5736 }
5737 {
5738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5739 }
5740 return resultobj;
5741 fail:
5742 return NULL;
5743 }
5744
5745
5746 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
5747 PyObject *obj;
5748 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5749 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5750 Py_INCREF(obj);
5751 return Py_BuildValue((char *)"");
5752 }
5753 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5754 PyObject *resultobj;
5755 wxRegion *arg1 = 0 ;
5756 wxRegionIterator *result;
5757 PyObject * obj0 = 0 ;
5758 char *kwnames[] = {
5759 (char *) "region", NULL
5760 };
5761
5762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5764 SWIG_POINTER_EXCEPTION | 0)) == -1)
5765 SWIG_fail;
5766 if (arg1 == NULL) {
5767 PyErr_SetString(PyExc_TypeError,"null reference");
5768 SWIG_fail;
5769 }
5770 {
5771 if (!wxPyCheckForApp()) SWIG_fail;
5772 PyThreadState* __tstate = wxPyBeginAllowThreads();
5773 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5774
5775 wxPyEndAllowThreads(__tstate);
5776 if (PyErr_Occurred()) SWIG_fail;
5777 }
5778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj;
5787 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5788 PyObject * obj0 = 0 ;
5789 char *kwnames[] = {
5790 (char *) "self", NULL
5791 };
5792
5793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 delete arg1;
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 Py_INCREF(Py_None); resultobj = Py_None;
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
5811 PyObject *resultobj;
5812 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5813 int result;
5814 PyObject * obj0 = 0 ;
5815 char *kwnames[] = {
5816 (char *) "self", NULL
5817 };
5818
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 result = (int)(arg1)->GetX();
5825
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 resultobj = SWIG_From_int((int)result);
5830 return resultobj;
5831 fail:
5832 return NULL;
5833 }
5834
5835
5836 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj;
5838 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5839 int result;
5840 PyObject * obj0 = 0 ;
5841 char *kwnames[] = {
5842 (char *) "self", NULL
5843 };
5844
5845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 result = (int)(arg1)->GetY();
5851
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 resultobj = SWIG_From_int((int)result);
5856 return resultobj;
5857 fail:
5858 return NULL;
5859 }
5860
5861
5862 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
5863 PyObject *resultobj;
5864 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5865 int result;
5866 PyObject * obj0 = 0 ;
5867 char *kwnames[] = {
5868 (char *) "self", NULL
5869 };
5870
5871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 result = (int)(arg1)->GetW();
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_From_int((int)result);
5882 return resultobj;
5883 fail:
5884 return NULL;
5885 }
5886
5887
5888 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5889 PyObject *resultobj;
5890 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5891 int result;
5892 PyObject * obj0 = 0 ;
5893 char *kwnames[] = {
5894 (char *) "self", NULL
5895 };
5896
5897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 result = (int)(arg1)->GetWidth();
5903
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 resultobj = SWIG_From_int((int)result);
5908 return resultobj;
5909 fail:
5910 return NULL;
5911 }
5912
5913
5914 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
5915 PyObject *resultobj;
5916 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5917 int result;
5918 PyObject * obj0 = 0 ;
5919 char *kwnames[] = {
5920 (char *) "self", NULL
5921 };
5922
5923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 result = (int)(arg1)->GetH();
5929
5930 wxPyEndAllowThreads(__tstate);
5931 if (PyErr_Occurred()) SWIG_fail;
5932 }
5933 resultobj = SWIG_From_int((int)result);
5934 return resultobj;
5935 fail:
5936 return NULL;
5937 }
5938
5939
5940 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj;
5942 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5943 int result;
5944 PyObject * obj0 = 0 ;
5945 char *kwnames[] = {
5946 (char *) "self", NULL
5947 };
5948
5949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 result = (int)(arg1)->GetHeight();
5955
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 resultobj = SWIG_From_int((int)result);
5960 return resultobj;
5961 fail:
5962 return NULL;
5963 }
5964
5965
5966 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
5967 PyObject *resultobj;
5968 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5969 wxRect result;
5970 PyObject * obj0 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "self", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (arg1)->GetRect();
5981
5982 wxPyEndAllowThreads(__tstate);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 }
5985 {
5986 wxRect * resultptr;
5987 resultptr = new wxRect((wxRect &) result);
5988 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5989 }
5990 return resultobj;
5991 fail:
5992 return NULL;
5993 }
5994
5995
5996 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
5997 PyObject *resultobj;
5998 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5999 bool result;
6000 PyObject * obj0 = 0 ;
6001 char *kwnames[] = {
6002 (char *) "self", NULL
6003 };
6004
6005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6008 {
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 result = (bool)(arg1)->HaveRects();
6011
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 {
6016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6017 }
6018 return resultobj;
6019 fail:
6020 return NULL;
6021 }
6022
6023
6024 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
6025 PyObject *resultobj;
6026 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6027 PyObject * obj0 = 0 ;
6028 char *kwnames[] = {
6029 (char *) "self", NULL
6030 };
6031
6032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 (arg1)->Reset();
6038
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 Py_INCREF(Py_None); resultobj = Py_None;
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
6050 PyObject *resultobj;
6051 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6052 PyObject * obj0 = 0 ;
6053 char *kwnames[] = {
6054 (char *) "self", NULL
6055 };
6056
6057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 wxRegionIterator_Next(arg1);
6063
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 Py_INCREF(Py_None); resultobj = Py_None;
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6077 bool result;
6078 PyObject * obj0 = 0 ;
6079 char *kwnames[] = {
6080 (char *) "self", NULL
6081 };
6082
6083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (bool)wxRegionIterator___nonzero__(arg1);
6089
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 {
6094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6095 }
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
6103 PyObject *obj;
6104 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6105 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6106 Py_INCREF(obj);
6107 return Py_BuildValue((char *)"");
6108 }
6109 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6110 PyObject *resultobj;
6111 wxNativeFontInfo *result;
6112 char *kwnames[] = {
6113 NULL
6114 };
6115
6116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6120
6121 wxPyEndAllowThreads(__tstate);
6122 if (PyErr_Occurred()) SWIG_fail;
6123 }
6124 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6125 return resultobj;
6126 fail:
6127 return NULL;
6128 }
6129
6130
6131 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6132 PyObject *resultobj;
6133 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6134 PyObject * obj0 = 0 ;
6135 char *kwnames[] = {
6136 (char *) "self", NULL
6137 };
6138
6139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 delete arg1;
6145
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 Py_INCREF(Py_None); resultobj = Py_None;
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj;
6158 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6159 PyObject * obj0 = 0 ;
6160 char *kwnames[] = {
6161 (char *) "self", NULL
6162 };
6163
6164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6167 {
6168 PyThreadState* __tstate = wxPyBeginAllowThreads();
6169 (arg1)->Init();
6170
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 Py_INCREF(Py_None); resultobj = Py_None;
6175 return resultobj;
6176 fail:
6177 return NULL;
6178 }
6179
6180
6181 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6182 PyObject *resultobj;
6183 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6184 wxFont *arg2 = 0 ;
6185 PyObject * obj0 = 0 ;
6186 PyObject * obj1 = 0 ;
6187 char *kwnames[] = {
6188 (char *) "self",(char *) "font", NULL
6189 };
6190
6191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6194 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6195 SWIG_POINTER_EXCEPTION | 0)) == -1)
6196 SWIG_fail;
6197 if (arg2 == NULL) {
6198 PyErr_SetString(PyExc_TypeError,"null reference");
6199 SWIG_fail;
6200 }
6201 {
6202 PyThreadState* __tstate = wxPyBeginAllowThreads();
6203 (arg1)->InitFromFont((wxFont const &)*arg2);
6204
6205 wxPyEndAllowThreads(__tstate);
6206 if (PyErr_Occurred()) SWIG_fail;
6207 }
6208 Py_INCREF(Py_None); resultobj = Py_None;
6209 return resultobj;
6210 fail:
6211 return NULL;
6212 }
6213
6214
6215 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6216 PyObject *resultobj;
6217 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6218 int result;
6219 PyObject * obj0 = 0 ;
6220 char *kwnames[] = {
6221 (char *) "self", NULL
6222 };
6223
6224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6227 {
6228 PyThreadState* __tstate = wxPyBeginAllowThreads();
6229 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6230
6231 wxPyEndAllowThreads(__tstate);
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 resultobj = SWIG_From_int((int)result);
6235 return resultobj;
6236 fail:
6237 return NULL;
6238 }
6239
6240
6241 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6242 PyObject *resultobj;
6243 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6244 int result;
6245 PyObject * obj0 = 0 ;
6246 char *kwnames[] = {
6247 (char *) "self", NULL
6248 };
6249
6250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6253 {
6254 PyThreadState* __tstate = wxPyBeginAllowThreads();
6255 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6256
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 resultobj = SWIG_From_int((int)result);
6261 return resultobj;
6262 fail:
6263 return NULL;
6264 }
6265
6266
6267 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj;
6269 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6270 int result;
6271 PyObject * obj0 = 0 ;
6272 char *kwnames[] = {
6273 (char *) "self", NULL
6274 };
6275
6276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6279 {
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6282
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 resultobj = SWIG_From_int((int)result);
6287 return resultobj;
6288 fail:
6289 return NULL;
6290 }
6291
6292
6293 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6294 PyObject *resultobj;
6295 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6296 bool result;
6297 PyObject * obj0 = 0 ;
6298 char *kwnames[] = {
6299 (char *) "self", NULL
6300 };
6301
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6305 {
6306 PyThreadState* __tstate = wxPyBeginAllowThreads();
6307 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6308
6309 wxPyEndAllowThreads(__tstate);
6310 if (PyErr_Occurred()) SWIG_fail;
6311 }
6312 {
6313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6314 }
6315 return resultobj;
6316 fail:
6317 return NULL;
6318 }
6319
6320
6321 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6322 PyObject *resultobj;
6323 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6324 wxString result;
6325 PyObject * obj0 = 0 ;
6326 char *kwnames[] = {
6327 (char *) "self", NULL
6328 };
6329
6330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6333 {
6334 PyThreadState* __tstate = wxPyBeginAllowThreads();
6335 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6336
6337 wxPyEndAllowThreads(__tstate);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 {
6341 #if wxUSE_UNICODE
6342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6343 #else
6344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6345 #endif
6346 }
6347 return resultobj;
6348 fail:
6349 return NULL;
6350 }
6351
6352
6353 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6354 PyObject *resultobj;
6355 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6356 int result;
6357 PyObject * obj0 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6365 {
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6368
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 resultobj = SWIG_From_int((int)result);
6373 return resultobj;
6374 fail:
6375 return NULL;
6376 }
6377
6378
6379 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6380 PyObject *resultobj;
6381 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6382 int result;
6383 PyObject * obj0 = 0 ;
6384 char *kwnames[] = {
6385 (char *) "self", NULL
6386 };
6387
6388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6391 {
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6394
6395 wxPyEndAllowThreads(__tstate);
6396 if (PyErr_Occurred()) SWIG_fail;
6397 }
6398 resultobj = SWIG_From_int((int)result);
6399 return resultobj;
6400 fail:
6401 return NULL;
6402 }
6403
6404
6405 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6406 PyObject *resultobj;
6407 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6408 int arg2 ;
6409 PyObject * obj0 = 0 ;
6410 PyObject * obj1 = 0 ;
6411 char *kwnames[] = {
6412 (char *) "self",(char *) "pointsize", NULL
6413 };
6414
6415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6418 arg2 = (int)SWIG_As_int(obj1);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 (arg1)->SetPointSize(arg2);
6423
6424 wxPyEndAllowThreads(__tstate);
6425 if (PyErr_Occurred()) SWIG_fail;
6426 }
6427 Py_INCREF(Py_None); resultobj = Py_None;
6428 return resultobj;
6429 fail:
6430 return NULL;
6431 }
6432
6433
6434 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6435 PyObject *resultobj;
6436 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6437 int arg2 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 char *kwnames[] = {
6441 (char *) "self",(char *) "style", NULL
6442 };
6443
6444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6447 arg2 = (int)SWIG_As_int(obj1);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 {
6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
6451 (arg1)->SetStyle((wxFontStyle )arg2);
6452
6453 wxPyEndAllowThreads(__tstate);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 }
6456 Py_INCREF(Py_None); resultobj = Py_None;
6457 return resultobj;
6458 fail:
6459 return NULL;
6460 }
6461
6462
6463 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6464 PyObject *resultobj;
6465 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6466 int arg2 ;
6467 PyObject * obj0 = 0 ;
6468 PyObject * obj1 = 0 ;
6469 char *kwnames[] = {
6470 (char *) "self",(char *) "weight", NULL
6471 };
6472
6473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6476 arg2 = (int)SWIG_As_int(obj1);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 {
6479 PyThreadState* __tstate = wxPyBeginAllowThreads();
6480 (arg1)->SetWeight((wxFontWeight )arg2);
6481
6482 wxPyEndAllowThreads(__tstate);
6483 if (PyErr_Occurred()) SWIG_fail;
6484 }
6485 Py_INCREF(Py_None); resultobj = Py_None;
6486 return resultobj;
6487 fail:
6488 return NULL;
6489 }
6490
6491
6492 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6493 PyObject *resultobj;
6494 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6495 bool arg2 ;
6496 PyObject * obj0 = 0 ;
6497 PyObject * obj1 = 0 ;
6498 char *kwnames[] = {
6499 (char *) "self",(char *) "underlined", NULL
6500 };
6501
6502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6505 arg2 = (bool)SWIG_As_bool(obj1);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 {
6508 PyThreadState* __tstate = wxPyBeginAllowThreads();
6509 (arg1)->SetUnderlined(arg2);
6510
6511 wxPyEndAllowThreads(__tstate);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 Py_INCREF(Py_None); resultobj = Py_None;
6515 return resultobj;
6516 fail:
6517 return NULL;
6518 }
6519
6520
6521 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6522 PyObject *resultobj;
6523 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6524 wxString arg2 ;
6525 PyObject * obj0 = 0 ;
6526 PyObject * obj1 = 0 ;
6527 char *kwnames[] = {
6528 (char *) "self",(char *) "facename", NULL
6529 };
6530
6531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6534 {
6535 wxString* sptr = wxString_in_helper(obj1);
6536 if (sptr == NULL) SWIG_fail;
6537 arg2 = *sptr;
6538 delete sptr;
6539 }
6540 {
6541 PyThreadState* __tstate = wxPyBeginAllowThreads();
6542 (arg1)->SetFaceName(arg2);
6543
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 Py_INCREF(Py_None); resultobj = Py_None;
6548 return resultobj;
6549 fail:
6550 return NULL;
6551 }
6552
6553
6554 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6555 PyObject *resultobj;
6556 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6557 int arg2 ;
6558 PyObject * obj0 = 0 ;
6559 PyObject * obj1 = 0 ;
6560 char *kwnames[] = {
6561 (char *) "self",(char *) "family", NULL
6562 };
6563
6564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6567 arg2 = (int)SWIG_As_int(obj1);
6568 if (PyErr_Occurred()) SWIG_fail;
6569 {
6570 PyThreadState* __tstate = wxPyBeginAllowThreads();
6571 (arg1)->SetFamily((wxFontFamily )arg2);
6572
6573 wxPyEndAllowThreads(__tstate);
6574 if (PyErr_Occurred()) SWIG_fail;
6575 }
6576 Py_INCREF(Py_None); resultobj = Py_None;
6577 return resultobj;
6578 fail:
6579 return NULL;
6580 }
6581
6582
6583 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6584 PyObject *resultobj;
6585 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6586 int arg2 ;
6587 PyObject * obj0 = 0 ;
6588 PyObject * obj1 = 0 ;
6589 char *kwnames[] = {
6590 (char *) "self",(char *) "encoding", NULL
6591 };
6592
6593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6596 arg2 = (int)SWIG_As_int(obj1);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 {
6599 PyThreadState* __tstate = wxPyBeginAllowThreads();
6600 (arg1)->SetEncoding((wxFontEncoding )arg2);
6601
6602 wxPyEndAllowThreads(__tstate);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 }
6605 Py_INCREF(Py_None); resultobj = Py_None;
6606 return resultobj;
6607 fail:
6608 return NULL;
6609 }
6610
6611
6612 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6613 PyObject *resultobj;
6614 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6615 wxString *arg2 = 0 ;
6616 bool result;
6617 bool temp2 = False ;
6618 PyObject * obj0 = 0 ;
6619 PyObject * obj1 = 0 ;
6620 char *kwnames[] = {
6621 (char *) "self",(char *) "s", NULL
6622 };
6623
6624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6627 {
6628 arg2 = wxString_in_helper(obj1);
6629 if (arg2 == NULL) SWIG_fail;
6630 temp2 = True;
6631 }
6632 {
6633 PyThreadState* __tstate = wxPyBeginAllowThreads();
6634 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6635
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6641 }
6642 {
6643 if (temp2)
6644 delete arg2;
6645 }
6646 return resultobj;
6647 fail:
6648 {
6649 if (temp2)
6650 delete arg2;
6651 }
6652 return NULL;
6653 }
6654
6655
6656 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6657 PyObject *resultobj;
6658 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6659 wxString result;
6660 PyObject * obj0 = 0 ;
6661 char *kwnames[] = {
6662 (char *) "self", NULL
6663 };
6664
6665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6668 {
6669 PyThreadState* __tstate = wxPyBeginAllowThreads();
6670 result = ((wxNativeFontInfo const *)arg1)->ToString();
6671
6672 wxPyEndAllowThreads(__tstate);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
6675 {
6676 #if wxUSE_UNICODE
6677 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6678 #else
6679 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6680 #endif
6681 }
6682 return resultobj;
6683 fail:
6684 return NULL;
6685 }
6686
6687
6688 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj;
6690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6691 wxString result;
6692 PyObject * obj0 = 0 ;
6693 char *kwnames[] = {
6694 (char *) "self", NULL
6695 };
6696
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6700 {
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 result = wxNativeFontInfo___str__(arg1);
6703
6704 wxPyEndAllowThreads(__tstate);
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
6707 {
6708 #if wxUSE_UNICODE
6709 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6710 #else
6711 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6712 #endif
6713 }
6714 return resultobj;
6715 fail:
6716 return NULL;
6717 }
6718
6719
6720 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6721 PyObject *resultobj;
6722 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6723 wxString *arg2 = 0 ;
6724 bool result;
6725 bool temp2 = False ;
6726 PyObject * obj0 = 0 ;
6727 PyObject * obj1 = 0 ;
6728 char *kwnames[] = {
6729 (char *) "self",(char *) "s", NULL
6730 };
6731
6732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6735 {
6736 arg2 = wxString_in_helper(obj1);
6737 if (arg2 == NULL) SWIG_fail;
6738 temp2 = True;
6739 }
6740 {
6741 PyThreadState* __tstate = wxPyBeginAllowThreads();
6742 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6743
6744 wxPyEndAllowThreads(__tstate);
6745 if (PyErr_Occurred()) SWIG_fail;
6746 }
6747 {
6748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6749 }
6750 {
6751 if (temp2)
6752 delete arg2;
6753 }
6754 return resultobj;
6755 fail:
6756 {
6757 if (temp2)
6758 delete arg2;
6759 }
6760 return NULL;
6761 }
6762
6763
6764 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj;
6766 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6767 wxString result;
6768 PyObject * obj0 = 0 ;
6769 char *kwnames[] = {
6770 (char *) "self", NULL
6771 };
6772
6773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6776 {
6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
6778 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6779
6780 wxPyEndAllowThreads(__tstate);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 {
6784 #if wxUSE_UNICODE
6785 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6786 #else
6787 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6788 #endif
6789 }
6790 return resultobj;
6791 fail:
6792 return NULL;
6793 }
6794
6795
6796 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
6797 PyObject *obj;
6798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6799 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6800 Py_INCREF(obj);
6801 return Py_BuildValue((char *)"");
6802 }
6803 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
6804 PyObject *resultobj;
6805 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6806 wxString *arg2 = (wxString *) 0 ;
6807 bool temp2 = False ;
6808 PyObject * obj0 = 0 ;
6809 PyObject * obj1 = 0 ;
6810 char *kwnames[] = {
6811 (char *) "self",(char *) "facename", NULL
6812 };
6813
6814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6817 {
6818 arg2 = wxString_in_helper(obj1);
6819 if (arg2 == NULL) SWIG_fail;
6820 temp2 = True;
6821 }
6822 if (arg1) (arg1)->facename = *arg2;
6823
6824 Py_INCREF(Py_None); resultobj = Py_None;
6825 {
6826 if (temp2)
6827 delete arg2;
6828 }
6829 return resultobj;
6830 fail:
6831 {
6832 if (temp2)
6833 delete arg2;
6834 }
6835 return NULL;
6836 }
6837
6838
6839 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
6840 PyObject *resultobj;
6841 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6842 wxString *result;
6843 PyObject * obj0 = 0 ;
6844 char *kwnames[] = {
6845 (char *) "self", NULL
6846 };
6847
6848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6851 result = (wxString *)& ((arg1)->facename);
6852
6853 {
6854 #if wxUSE_UNICODE
6855 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6856 #else
6857 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6858 #endif
6859 }
6860 return resultobj;
6861 fail:
6862 return NULL;
6863 }
6864
6865
6866 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
6867 PyObject *resultobj;
6868 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6869 int arg2 ;
6870 PyObject * obj0 = 0 ;
6871 PyObject * obj1 = 0 ;
6872 char *kwnames[] = {
6873 (char *) "self",(char *) "encoding", NULL
6874 };
6875
6876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6879 arg2 = (int)SWIG_As_int(obj1);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6882
6883 Py_INCREF(Py_None); resultobj = Py_None;
6884 return resultobj;
6885 fail:
6886 return NULL;
6887 }
6888
6889
6890 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
6891 PyObject *resultobj;
6892 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6893 int result;
6894 PyObject * obj0 = 0 ;
6895 char *kwnames[] = {
6896 (char *) "self", NULL
6897 };
6898
6899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6902 result = (int) ((arg1)->encoding);
6903
6904 resultobj = SWIG_From_int((int)result);
6905 return resultobj;
6906 fail:
6907 return NULL;
6908 }
6909
6910
6911 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6912 PyObject *resultobj;
6913 wxNativeEncodingInfo *result;
6914 char *kwnames[] = {
6915 NULL
6916 };
6917
6918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6919 {
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6922
6923 wxPyEndAllowThreads(__tstate);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6927 return resultobj;
6928 fail:
6929 return NULL;
6930 }
6931
6932
6933 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6934 PyObject *resultobj;
6935 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6936 PyObject * obj0 = 0 ;
6937 char *kwnames[] = {
6938 (char *) "self", NULL
6939 };
6940
6941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6944 {
6945 PyThreadState* __tstate = wxPyBeginAllowThreads();
6946 delete arg1;
6947
6948 wxPyEndAllowThreads(__tstate);
6949 if (PyErr_Occurred()) SWIG_fail;
6950 }
6951 Py_INCREF(Py_None); resultobj = Py_None;
6952 return resultobj;
6953 fail:
6954 return NULL;
6955 }
6956
6957
6958 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6959 PyObject *resultobj;
6960 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6961 wxString *arg2 = 0 ;
6962 bool result;
6963 bool temp2 = False ;
6964 PyObject * obj0 = 0 ;
6965 PyObject * obj1 = 0 ;
6966 char *kwnames[] = {
6967 (char *) "self",(char *) "s", NULL
6968 };
6969
6970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6973 {
6974 arg2 = wxString_in_helper(obj1);
6975 if (arg2 == NULL) SWIG_fail;
6976 temp2 = True;
6977 }
6978 {
6979 PyThreadState* __tstate = wxPyBeginAllowThreads();
6980 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6981
6982 wxPyEndAllowThreads(__tstate);
6983 if (PyErr_Occurred()) SWIG_fail;
6984 }
6985 {
6986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6987 }
6988 {
6989 if (temp2)
6990 delete arg2;
6991 }
6992 return resultobj;
6993 fail:
6994 {
6995 if (temp2)
6996 delete arg2;
6997 }
6998 return NULL;
6999 }
7000
7001
7002 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
7003 PyObject *resultobj;
7004 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7005 wxString result;
7006 PyObject * obj0 = 0 ;
7007 char *kwnames[] = {
7008 (char *) "self", NULL
7009 };
7010
7011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7014 {
7015 PyThreadState* __tstate = wxPyBeginAllowThreads();
7016 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7017
7018 wxPyEndAllowThreads(__tstate);
7019 if (PyErr_Occurred()) SWIG_fail;
7020 }
7021 {
7022 #if wxUSE_UNICODE
7023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7024 #else
7025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7026 #endif
7027 }
7028 return resultobj;
7029 fail:
7030 return NULL;
7031 }
7032
7033
7034 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
7035 PyObject *obj;
7036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7037 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7038 Py_INCREF(obj);
7039 return Py_BuildValue((char *)"");
7040 }
7041 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 int arg1 ;
7044 wxNativeEncodingInfo *result;
7045 PyObject * obj0 = 0 ;
7046 char *kwnames[] = {
7047 (char *) "encoding", NULL
7048 };
7049
7050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7051 arg1 = (int)SWIG_As_int(obj0);
7052 if (PyErr_Occurred()) SWIG_fail;
7053 {
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7056
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7061 return resultobj;
7062 fail:
7063 return NULL;
7064 }
7065
7066
7067 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj;
7069 wxNativeEncodingInfo *arg1 = 0 ;
7070 bool result;
7071 PyObject * obj0 = 0 ;
7072 char *kwnames[] = {
7073 (char *) "info", NULL
7074 };
7075
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7078 SWIG_POINTER_EXCEPTION | 0)) == -1)
7079 SWIG_fail;
7080 if (arg1 == NULL) {
7081 PyErr_SetString(PyExc_TypeError,"null reference");
7082 SWIG_fail;
7083 }
7084 {
7085 PyThreadState* __tstate = wxPyBeginAllowThreads();
7086 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7087
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 {
7092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7093 }
7094 return resultobj;
7095 fail:
7096 return NULL;
7097 }
7098
7099
7100 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7101 PyObject *resultobj;
7102 wxFontMapper *result;
7103 char *kwnames[] = {
7104 NULL
7105 };
7106
7107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 result = (wxFontMapper *)new wxFontMapper();
7111
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7116 return resultobj;
7117 fail:
7118 return NULL;
7119 }
7120
7121
7122 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7123 PyObject *resultobj;
7124 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7125 PyObject * obj0 = 0 ;
7126 char *kwnames[] = {
7127 (char *) "self", NULL
7128 };
7129
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 delete arg1;
7136
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 Py_INCREF(Py_None); resultobj = Py_None;
7141 return resultobj;
7142 fail:
7143 return NULL;
7144 }
7145
7146
7147 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj;
7149 wxFontMapper *result;
7150 char *kwnames[] = {
7151 NULL
7152 };
7153
7154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 result = (wxFontMapper *)wxFontMapper::Get();
7158
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7163 return resultobj;
7164 fail:
7165 return NULL;
7166 }
7167
7168
7169 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7170 PyObject *resultobj;
7171 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7172 wxFontMapper *result;
7173 PyObject * obj0 = 0 ;
7174 char *kwnames[] = {
7175 (char *) "mapper", NULL
7176 };
7177
7178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7181 {
7182 PyThreadState* __tstate = wxPyBeginAllowThreads();
7183 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7184
7185 wxPyEndAllowThreads(__tstate);
7186 if (PyErr_Occurred()) SWIG_fail;
7187 }
7188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7189 return resultobj;
7190 fail:
7191 return NULL;
7192 }
7193
7194
7195 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7196 PyObject *resultobj;
7197 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7198 wxString *arg2 = 0 ;
7199 bool arg3 = (bool) True ;
7200 int result;
7201 bool temp2 = False ;
7202 PyObject * obj0 = 0 ;
7203 PyObject * obj1 = 0 ;
7204 PyObject * obj2 = 0 ;
7205 char *kwnames[] = {
7206 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7207 };
7208
7209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7212 {
7213 arg2 = wxString_in_helper(obj1);
7214 if (arg2 == NULL) SWIG_fail;
7215 temp2 = True;
7216 }
7217 if (obj2) {
7218 arg3 = (bool)SWIG_As_bool(obj2);
7219 if (PyErr_Occurred()) SWIG_fail;
7220 }
7221 {
7222 PyThreadState* __tstate = wxPyBeginAllowThreads();
7223 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7224
7225 wxPyEndAllowThreads(__tstate);
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 resultobj = SWIG_From_int((int)result);
7229 {
7230 if (temp2)
7231 delete arg2;
7232 }
7233 return resultobj;
7234 fail:
7235 {
7236 if (temp2)
7237 delete arg2;
7238 }
7239 return NULL;
7240 }
7241
7242
7243 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
7244 PyObject *resultobj;
7245 size_t result;
7246 char *kwnames[] = {
7247 NULL
7248 };
7249
7250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7254
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7259 return resultobj;
7260 fail:
7261 return NULL;
7262 }
7263
7264
7265 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7266 PyObject *resultobj;
7267 size_t arg1 ;
7268 int result;
7269 PyObject * obj0 = 0 ;
7270 char *kwnames[] = {
7271 (char *) "n", NULL
7272 };
7273
7274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7275 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
7276 if (PyErr_Occurred()) SWIG_fail;
7277 {
7278 PyThreadState* __tstate = wxPyBeginAllowThreads();
7279 result = (int)wxFontMapper::GetEncoding(arg1);
7280
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_From_int((int)result);
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj;
7293 int arg1 ;
7294 wxString result;
7295 PyObject * obj0 = 0 ;
7296 char *kwnames[] = {
7297 (char *) "encoding", NULL
7298 };
7299
7300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7301 arg1 = (int)SWIG_As_int(obj0);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 {
7311 #if wxUSE_UNICODE
7312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7313 #else
7314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7315 #endif
7316 }
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
7324 PyObject *resultobj;
7325 int arg1 ;
7326 wxString result;
7327 PyObject * obj0 = 0 ;
7328 char *kwnames[] = {
7329 (char *) "encoding", NULL
7330 };
7331
7332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7333 arg1 = (int)SWIG_As_int(obj0);
7334 if (PyErr_Occurred()) SWIG_fail;
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 {
7343 #if wxUSE_UNICODE
7344 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7345 #else
7346 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7347 #endif
7348 }
7349 return resultobj;
7350 fail:
7351 return NULL;
7352 }
7353
7354
7355 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
7356 PyObject *resultobj;
7357 wxString *arg1 = 0 ;
7358 int result;
7359 bool temp1 = False ;
7360 PyObject * obj0 = 0 ;
7361 char *kwnames[] = {
7362 (char *) "name", NULL
7363 };
7364
7365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7366 {
7367 arg1 = wxString_in_helper(obj0);
7368 if (arg1 == NULL) SWIG_fail;
7369 temp1 = True;
7370 }
7371 {
7372 PyThreadState* __tstate = wxPyBeginAllowThreads();
7373 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7374
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = SWIG_From_int((int)result);
7379 {
7380 if (temp1)
7381 delete arg1;
7382 }
7383 return resultobj;
7384 fail:
7385 {
7386 if (temp1)
7387 delete arg1;
7388 }
7389 return NULL;
7390 }
7391
7392
7393 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
7394 PyObject *resultobj;
7395 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7396 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7397 PyObject * obj0 = 0 ;
7398 PyObject * obj1 = 0 ;
7399 char *kwnames[] = {
7400 (char *) "self",(char *) "config", NULL
7401 };
7402
7403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 (arg1)->SetConfig(arg2);
7411
7412 wxPyEndAllowThreads(__tstate);
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
7415 Py_INCREF(Py_None); resultobj = Py_None;
7416 return resultobj;
7417 fail:
7418 return NULL;
7419 }
7420
7421
7422 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7423 PyObject *resultobj;
7424 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7425 wxString *arg2 = 0 ;
7426 bool temp2 = False ;
7427 PyObject * obj0 = 0 ;
7428 PyObject * obj1 = 0 ;
7429 char *kwnames[] = {
7430 (char *) "self",(char *) "prefix", NULL
7431 };
7432
7433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7436 {
7437 arg2 = wxString_in_helper(obj1);
7438 if (arg2 == NULL) SWIG_fail;
7439 temp2 = True;
7440 }
7441 {
7442 PyThreadState* __tstate = wxPyBeginAllowThreads();
7443 (arg1)->SetConfigPath((wxString const &)*arg2);
7444
7445 wxPyEndAllowThreads(__tstate);
7446 if (PyErr_Occurred()) SWIG_fail;
7447 }
7448 Py_INCREF(Py_None); resultobj = Py_None;
7449 {
7450 if (temp2)
7451 delete arg2;
7452 }
7453 return resultobj;
7454 fail:
7455 {
7456 if (temp2)
7457 delete arg2;
7458 }
7459 return NULL;
7460 }
7461
7462
7463 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7464 PyObject *resultobj;
7465 wxString result;
7466 char *kwnames[] = {
7467 NULL
7468 };
7469
7470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7471 {
7472 PyThreadState* __tstate = wxPyBeginAllowThreads();
7473 result = wxFontMapper::GetDefaultConfigPath();
7474
7475 wxPyEndAllowThreads(__tstate);
7476 if (PyErr_Occurred()) SWIG_fail;
7477 }
7478 {
7479 #if wxUSE_UNICODE
7480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7481 #else
7482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7483 #endif
7484 }
7485 return resultobj;
7486 fail:
7487 return NULL;
7488 }
7489
7490
7491 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7492 PyObject *resultobj;
7493 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7494 int arg2 ;
7495 wxString const &arg3_defvalue = wxPyEmptyString ;
7496 wxString *arg3 = (wxString *) &arg3_defvalue ;
7497 bool arg4 = (bool) True ;
7498 PyObject *result;
7499 bool temp3 = False ;
7500 PyObject * obj0 = 0 ;
7501 PyObject * obj1 = 0 ;
7502 PyObject * obj2 = 0 ;
7503 PyObject * obj3 = 0 ;
7504 char *kwnames[] = {
7505 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7511 arg2 = (int)SWIG_As_int(obj1);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 if (obj2) {
7514 {
7515 arg3 = wxString_in_helper(obj2);
7516 if (arg3 == NULL) SWIG_fail;
7517 temp3 = True;
7518 }
7519 }
7520 if (obj3) {
7521 arg4 = (bool)SWIG_As_bool(obj3);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 {
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7527
7528 wxPyEndAllowThreads(__tstate);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 resultobj = result;
7532 {
7533 if (temp3)
7534 delete arg3;
7535 }
7536 return resultobj;
7537 fail:
7538 {
7539 if (temp3)
7540 delete arg3;
7541 }
7542 return NULL;
7543 }
7544
7545
7546 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
7547 PyObject *resultobj;
7548 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7549 int arg2 ;
7550 wxString const &arg3_defvalue = wxPyEmptyString ;
7551 wxString *arg3 = (wxString *) &arg3_defvalue ;
7552 bool result;
7553 bool temp3 = False ;
7554 PyObject * obj0 = 0 ;
7555 PyObject * obj1 = 0 ;
7556 PyObject * obj2 = 0 ;
7557 char *kwnames[] = {
7558 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7559 };
7560
7561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7564 arg2 = (int)SWIG_As_int(obj1);
7565 if (PyErr_Occurred()) SWIG_fail;
7566 if (obj2) {
7567 {
7568 arg3 = wxString_in_helper(obj2);
7569 if (arg3 == NULL) SWIG_fail;
7570 temp3 = True;
7571 }
7572 }
7573 {
7574 PyThreadState* __tstate = wxPyBeginAllowThreads();
7575 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7576
7577 wxPyEndAllowThreads(__tstate);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 {
7581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7582 }
7583 {
7584 if (temp3)
7585 delete arg3;
7586 }
7587 return resultobj;
7588 fail:
7589 {
7590 if (temp3)
7591 delete arg3;
7592 }
7593 return NULL;
7594 }
7595
7596
7597 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
7598 PyObject *resultobj;
7599 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7600 wxWindow *arg2 = (wxWindow *) 0 ;
7601 PyObject * obj0 = 0 ;
7602 PyObject * obj1 = 0 ;
7603 char *kwnames[] = {
7604 (char *) "self",(char *) "parent", NULL
7605 };
7606
7607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 (arg1)->SetDialogParent(arg2);
7615
7616 wxPyEndAllowThreads(__tstate);
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 Py_INCREF(Py_None); resultobj = Py_None;
7620 return resultobj;
7621 fail:
7622 return NULL;
7623 }
7624
7625
7626 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
7627 PyObject *resultobj;
7628 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7629 wxString *arg2 = 0 ;
7630 bool temp2 = False ;
7631 PyObject * obj0 = 0 ;
7632 PyObject * obj1 = 0 ;
7633 char *kwnames[] = {
7634 (char *) "self",(char *) "title", NULL
7635 };
7636
7637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7640 {
7641 arg2 = wxString_in_helper(obj1);
7642 if (arg2 == NULL) SWIG_fail;
7643 temp2 = True;
7644 }
7645 {
7646 PyThreadState* __tstate = wxPyBeginAllowThreads();
7647 (arg1)->SetDialogTitle((wxString const &)*arg2);
7648
7649 wxPyEndAllowThreads(__tstate);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 }
7652 Py_INCREF(Py_None); resultobj = Py_None;
7653 {
7654 if (temp2)
7655 delete arg2;
7656 }
7657 return resultobj;
7658 fail:
7659 {
7660 if (temp2)
7661 delete arg2;
7662 }
7663 return NULL;
7664 }
7665
7666
7667 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
7668 PyObject *obj;
7669 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7670 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7671 Py_INCREF(obj);
7672 return Py_BuildValue((char *)"");
7673 }
7674 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7675 PyObject *resultobj;
7676 int arg1 ;
7677 int arg2 ;
7678 int arg3 ;
7679 int arg4 ;
7680 bool arg5 = (bool) False ;
7681 wxString const &arg6_defvalue = wxPyEmptyString ;
7682 wxString *arg6 = (wxString *) &arg6_defvalue ;
7683 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7684 wxFont *result;
7685 bool temp6 = False ;
7686 PyObject * obj0 = 0 ;
7687 PyObject * obj1 = 0 ;
7688 PyObject * obj2 = 0 ;
7689 PyObject * obj3 = 0 ;
7690 PyObject * obj4 = 0 ;
7691 PyObject * obj5 = 0 ;
7692 PyObject * obj6 = 0 ;
7693 char *kwnames[] = {
7694 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7695 };
7696
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7698 arg1 = (int)SWIG_As_int(obj0);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 arg2 = (int)SWIG_As_int(obj1);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 arg3 = (int)SWIG_As_int(obj2);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 arg4 = (int)SWIG_As_int(obj3);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 if (obj4) {
7707 arg5 = (bool)SWIG_As_bool(obj4);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 }
7710 if (obj5) {
7711 {
7712 arg6 = wxString_in_helper(obj5);
7713 if (arg6 == NULL) SWIG_fail;
7714 temp6 = True;
7715 }
7716 }
7717 if (obj6) {
7718 arg7 = (int)SWIG_As_int(obj6);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 {
7722 if (!wxPyCheckForApp()) SWIG_fail;
7723 PyThreadState* __tstate = wxPyBeginAllowThreads();
7724 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7725
7726 wxPyEndAllowThreads(__tstate);
7727 if (PyErr_Occurred()) SWIG_fail;
7728 }
7729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7730 {
7731 if (temp6)
7732 delete arg6;
7733 }
7734 return resultobj;
7735 fail:
7736 {
7737 if (temp6)
7738 delete arg6;
7739 }
7740 return NULL;
7741 }
7742
7743
7744 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7745 PyObject *resultobj;
7746 wxFont *arg1 = (wxFont *) 0 ;
7747 PyObject * obj0 = 0 ;
7748 char *kwnames[] = {
7749 (char *) "self", NULL
7750 };
7751
7752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7755 {
7756 PyThreadState* __tstate = wxPyBeginAllowThreads();
7757 delete arg1;
7758
7759 wxPyEndAllowThreads(__tstate);
7760 if (PyErr_Occurred()) SWIG_fail;
7761 }
7762 Py_INCREF(Py_None); resultobj = Py_None;
7763 return resultobj;
7764 fail:
7765 return NULL;
7766 }
7767
7768
7769 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7770 PyObject *resultobj;
7771 wxNativeFontInfo *arg1 = 0 ;
7772 wxFont *result;
7773 PyObject * obj0 = 0 ;
7774 char *kwnames[] = {
7775 (char *) "info", NULL
7776 };
7777
7778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7780 SWIG_POINTER_EXCEPTION | 0)) == -1)
7781 SWIG_fail;
7782 if (arg1 == NULL) {
7783 PyErr_SetString(PyExc_TypeError,"null reference");
7784 SWIG_fail;
7785 }
7786 {
7787 if (!wxPyCheckForApp()) SWIG_fail;
7788 PyThreadState* __tstate = wxPyBeginAllowThreads();
7789 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7790
7791 wxPyEndAllowThreads(__tstate);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj;
7803 wxString *arg1 = 0 ;
7804 wxFont *result;
7805 bool temp1 = False ;
7806 PyObject * obj0 = 0 ;
7807 char *kwnames[] = {
7808 (char *) "info", NULL
7809 };
7810
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7812 {
7813 arg1 = wxString_in_helper(obj0);
7814 if (arg1 == NULL) SWIG_fail;
7815 temp1 = True;
7816 }
7817 {
7818 if (!wxPyCheckForApp()) SWIG_fail;
7819 PyThreadState* __tstate = wxPyBeginAllowThreads();
7820 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7821
7822 wxPyEndAllowThreads(__tstate);
7823 if (PyErr_Occurred()) SWIG_fail;
7824 }
7825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7826 {
7827 if (temp1)
7828 delete arg1;
7829 }
7830 return resultobj;
7831 fail:
7832 {
7833 if (temp1)
7834 delete arg1;
7835 }
7836 return NULL;
7837 }
7838
7839
7840 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
7841 PyObject *resultobj;
7842 int arg1 ;
7843 int arg2 ;
7844 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7845 wxString const &arg4_defvalue = wxPyEmptyString ;
7846 wxString *arg4 = (wxString *) &arg4_defvalue ;
7847 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7848 wxFont *result;
7849 bool temp4 = False ;
7850 PyObject * obj0 = 0 ;
7851 PyObject * obj1 = 0 ;
7852 PyObject * obj2 = 0 ;
7853 PyObject * obj3 = 0 ;
7854 PyObject * obj4 = 0 ;
7855 char *kwnames[] = {
7856 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7857 };
7858
7859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7860 arg1 = (int)SWIG_As_int(obj0);
7861 if (PyErr_Occurred()) SWIG_fail;
7862 arg2 = (int)SWIG_As_int(obj1);
7863 if (PyErr_Occurred()) SWIG_fail;
7864 if (obj2) {
7865 arg3 = (int)SWIG_As_int(obj2);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 if (obj3) {
7869 {
7870 arg4 = wxString_in_helper(obj3);
7871 if (arg4 == NULL) SWIG_fail;
7872 temp4 = True;
7873 }
7874 }
7875 if (obj4) {
7876 arg5 = (int)SWIG_As_int(obj4);
7877 if (PyErr_Occurred()) SWIG_fail;
7878 }
7879 {
7880 if (!wxPyCheckForApp()) SWIG_fail;
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7883
7884 wxPyEndAllowThreads(__tstate);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7888 {
7889 if (temp4)
7890 delete arg4;
7891 }
7892 return resultobj;
7893 fail:
7894 {
7895 if (temp4)
7896 delete arg4;
7897 }
7898 return NULL;
7899 }
7900
7901
7902 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
7903 PyObject *resultobj;
7904 wxFont *arg1 = (wxFont *) 0 ;
7905 bool result;
7906 PyObject * obj0 = 0 ;
7907 char *kwnames[] = {
7908 (char *) "self", NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (bool)((wxFont const *)arg1)->Ok();
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 {
7922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7923 }
7924 return resultobj;
7925 fail:
7926 return NULL;
7927 }
7928
7929
7930 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
7931 PyObject *resultobj;
7932 wxFont *arg1 = (wxFont *) 0 ;
7933 wxFont *arg2 = (wxFont *) 0 ;
7934 bool result;
7935 PyObject * obj0 = 0 ;
7936 PyObject * obj1 = 0 ;
7937 char *kwnames[] = {
7938 (char *) "self",(char *) "other", NULL
7939 };
7940
7941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7944 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7946 {
7947 PyThreadState* __tstate = wxPyBeginAllowThreads();
7948 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7949
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
7953 {
7954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7955 }
7956 return resultobj;
7957 fail:
7958 return NULL;
7959 }
7960
7961
7962 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
7963 PyObject *resultobj;
7964 wxFont *arg1 = (wxFont *) 0 ;
7965 wxFont *arg2 = (wxFont *) 0 ;
7966 bool result;
7967 PyObject * obj0 = 0 ;
7968 PyObject * obj1 = 0 ;
7969 char *kwnames[] = {
7970 (char *) "self",(char *) "other", NULL
7971 };
7972
7973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7976 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7981
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 {
7986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7987 }
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj;
7996 wxFont *arg1 = (wxFont *) 0 ;
7997 int result;
7998 PyObject * obj0 = 0 ;
7999 char *kwnames[] = {
8000 (char *) "self", NULL
8001 };
8002
8003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8006 {
8007 PyThreadState* __tstate = wxPyBeginAllowThreads();
8008 result = (int)((wxFont const *)arg1)->GetPointSize();
8009
8010 wxPyEndAllowThreads(__tstate);
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 resultobj = SWIG_From_int((int)result);
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8021 PyObject *resultobj;
8022 wxFont *arg1 = (wxFont *) 0 ;
8023 int result;
8024 PyObject * obj0 = 0 ;
8025 char *kwnames[] = {
8026 (char *) "self", NULL
8027 };
8028
8029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = (int)((wxFont const *)arg1)->GetFamily();
8035
8036 wxPyEndAllowThreads(__tstate);
8037 if (PyErr_Occurred()) SWIG_fail;
8038 }
8039 resultobj = SWIG_From_int((int)result);
8040 return resultobj;
8041 fail:
8042 return NULL;
8043 }
8044
8045
8046 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8047 PyObject *resultobj;
8048 wxFont *arg1 = (wxFont *) 0 ;
8049 int result;
8050 PyObject * obj0 = 0 ;
8051 char *kwnames[] = {
8052 (char *) "self", NULL
8053 };
8054
8055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8058 {
8059 PyThreadState* __tstate = wxPyBeginAllowThreads();
8060 result = (int)((wxFont const *)arg1)->GetStyle();
8061
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 resultobj = SWIG_From_int((int)result);
8066 return resultobj;
8067 fail:
8068 return NULL;
8069 }
8070
8071
8072 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8073 PyObject *resultobj;
8074 wxFont *arg1 = (wxFont *) 0 ;
8075 int result;
8076 PyObject * obj0 = 0 ;
8077 char *kwnames[] = {
8078 (char *) "self", NULL
8079 };
8080
8081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8084 {
8085 PyThreadState* __tstate = wxPyBeginAllowThreads();
8086 result = (int)((wxFont const *)arg1)->GetWeight();
8087
8088 wxPyEndAllowThreads(__tstate);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 resultobj = SWIG_From_int((int)result);
8092 return resultobj;
8093 fail:
8094 return NULL;
8095 }
8096
8097
8098 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8099 PyObject *resultobj;
8100 wxFont *arg1 = (wxFont *) 0 ;
8101 bool result;
8102 PyObject * obj0 = 0 ;
8103 char *kwnames[] = {
8104 (char *) "self", NULL
8105 };
8106
8107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8110 {
8111 PyThreadState* __tstate = wxPyBeginAllowThreads();
8112 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8113
8114 wxPyEndAllowThreads(__tstate);
8115 if (PyErr_Occurred()) SWIG_fail;
8116 }
8117 {
8118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8119 }
8120 return resultobj;
8121 fail:
8122 return NULL;
8123 }
8124
8125
8126 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8127 PyObject *resultobj;
8128 wxFont *arg1 = (wxFont *) 0 ;
8129 wxString result;
8130 PyObject * obj0 = 0 ;
8131 char *kwnames[] = {
8132 (char *) "self", NULL
8133 };
8134
8135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8138 {
8139 PyThreadState* __tstate = wxPyBeginAllowThreads();
8140 result = ((wxFont const *)arg1)->GetFaceName();
8141
8142 wxPyEndAllowThreads(__tstate);
8143 if (PyErr_Occurred()) SWIG_fail;
8144 }
8145 {
8146 #if wxUSE_UNICODE
8147 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8148 #else
8149 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8150 #endif
8151 }
8152 return resultobj;
8153 fail:
8154 return NULL;
8155 }
8156
8157
8158 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxFont *arg1 = (wxFont *) 0 ;
8161 int result;
8162 PyObject * obj0 = 0 ;
8163 char *kwnames[] = {
8164 (char *) "self", NULL
8165 };
8166
8167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8170 {
8171 PyThreadState* __tstate = wxPyBeginAllowThreads();
8172 result = (int)((wxFont const *)arg1)->GetEncoding();
8173
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 resultobj = SWIG_From_int((int)result);
8178 return resultobj;
8179 fail:
8180 return NULL;
8181 }
8182
8183
8184 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8185 PyObject *resultobj;
8186 wxFont *arg1 = (wxFont *) 0 ;
8187 wxNativeFontInfo *result;
8188 PyObject * obj0 = 0 ;
8189 char *kwnames[] = {
8190 (char *) "self", NULL
8191 };
8192
8193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8196 {
8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
8198 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8199
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8204 return resultobj;
8205 fail:
8206 return NULL;
8207 }
8208
8209
8210 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj;
8212 wxFont *arg1 = (wxFont *) 0 ;
8213 bool result;
8214 PyObject * obj0 = 0 ;
8215 char *kwnames[] = {
8216 (char *) "self", NULL
8217 };
8218
8219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8222 {
8223 PyThreadState* __tstate = wxPyBeginAllowThreads();
8224 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8225
8226 wxPyEndAllowThreads(__tstate);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 }
8229 {
8230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8231 }
8232 return resultobj;
8233 fail:
8234 return NULL;
8235 }
8236
8237
8238 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8239 PyObject *resultobj;
8240 wxFont *arg1 = (wxFont *) 0 ;
8241 wxString result;
8242 PyObject * obj0 = 0 ;
8243 char *kwnames[] = {
8244 (char *) "self", NULL
8245 };
8246
8247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8250 {
8251 PyThreadState* __tstate = wxPyBeginAllowThreads();
8252 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8253
8254 wxPyEndAllowThreads(__tstate);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 {
8258 #if wxUSE_UNICODE
8259 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8260 #else
8261 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8262 #endif
8263 }
8264 return resultobj;
8265 fail:
8266 return NULL;
8267 }
8268
8269
8270 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8271 PyObject *resultobj;
8272 wxFont *arg1 = (wxFont *) 0 ;
8273 wxString result;
8274 PyObject * obj0 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8285
8286 wxPyEndAllowThreads(__tstate);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 {
8290 #if wxUSE_UNICODE
8291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8292 #else
8293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8294 #endif
8295 }
8296 return resultobj;
8297 fail:
8298 return NULL;
8299 }
8300
8301
8302 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8303 PyObject *resultobj;
8304 wxFont *arg1 = (wxFont *) 0 ;
8305 int arg2 ;
8306 PyObject * obj0 = 0 ;
8307 PyObject * obj1 = 0 ;
8308 char *kwnames[] = {
8309 (char *) "self",(char *) "pointSize", NULL
8310 };
8311
8312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8315 arg2 = (int)SWIG_As_int(obj1);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 {
8318 PyThreadState* __tstate = wxPyBeginAllowThreads();
8319 (arg1)->SetPointSize(arg2);
8320
8321 wxPyEndAllowThreads(__tstate);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 }
8324 Py_INCREF(Py_None); resultobj = Py_None;
8325 return resultobj;
8326 fail:
8327 return NULL;
8328 }
8329
8330
8331 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8332 PyObject *resultobj;
8333 wxFont *arg1 = (wxFont *) 0 ;
8334 int arg2 ;
8335 PyObject * obj0 = 0 ;
8336 PyObject * obj1 = 0 ;
8337 char *kwnames[] = {
8338 (char *) "self",(char *) "family", NULL
8339 };
8340
8341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8344 arg2 = (int)SWIG_As_int(obj1);
8345 if (PyErr_Occurred()) SWIG_fail;
8346 {
8347 PyThreadState* __tstate = wxPyBeginAllowThreads();
8348 (arg1)->SetFamily(arg2);
8349
8350 wxPyEndAllowThreads(__tstate);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 Py_INCREF(Py_None); resultobj = Py_None;
8354 return resultobj;
8355 fail:
8356 return NULL;
8357 }
8358
8359
8360 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8361 PyObject *resultobj;
8362 wxFont *arg1 = (wxFont *) 0 ;
8363 int arg2 ;
8364 PyObject * obj0 = 0 ;
8365 PyObject * obj1 = 0 ;
8366 char *kwnames[] = {
8367 (char *) "self",(char *) "style", NULL
8368 };
8369
8370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8373 arg2 = (int)SWIG_As_int(obj1);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 {
8376 PyThreadState* __tstate = wxPyBeginAllowThreads();
8377 (arg1)->SetStyle(arg2);
8378
8379 wxPyEndAllowThreads(__tstate);
8380 if (PyErr_Occurred()) SWIG_fail;
8381 }
8382 Py_INCREF(Py_None); resultobj = Py_None;
8383 return resultobj;
8384 fail:
8385 return NULL;
8386 }
8387
8388
8389 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8390 PyObject *resultobj;
8391 wxFont *arg1 = (wxFont *) 0 ;
8392 int arg2 ;
8393 PyObject * obj0 = 0 ;
8394 PyObject * obj1 = 0 ;
8395 char *kwnames[] = {
8396 (char *) "self",(char *) "weight", NULL
8397 };
8398
8399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8402 arg2 = (int)SWIG_As_int(obj1);
8403 if (PyErr_Occurred()) SWIG_fail;
8404 {
8405 PyThreadState* __tstate = wxPyBeginAllowThreads();
8406 (arg1)->SetWeight(arg2);
8407
8408 wxPyEndAllowThreads(__tstate);
8409 if (PyErr_Occurred()) SWIG_fail;
8410 }
8411 Py_INCREF(Py_None); resultobj = Py_None;
8412 return resultobj;
8413 fail:
8414 return NULL;
8415 }
8416
8417
8418 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8419 PyObject *resultobj;
8420 wxFont *arg1 = (wxFont *) 0 ;
8421 wxString *arg2 = 0 ;
8422 bool temp2 = False ;
8423 PyObject * obj0 = 0 ;
8424 PyObject * obj1 = 0 ;
8425 char *kwnames[] = {
8426 (char *) "self",(char *) "faceName", NULL
8427 };
8428
8429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8432 {
8433 arg2 = wxString_in_helper(obj1);
8434 if (arg2 == NULL) SWIG_fail;
8435 temp2 = True;
8436 }
8437 {
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 (arg1)->SetFaceName((wxString const &)*arg2);
8440
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
8444 Py_INCREF(Py_None); resultobj = Py_None;
8445 {
8446 if (temp2)
8447 delete arg2;
8448 }
8449 return resultobj;
8450 fail:
8451 {
8452 if (temp2)
8453 delete arg2;
8454 }
8455 return NULL;
8456 }
8457
8458
8459 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj;
8461 wxFont *arg1 = (wxFont *) 0 ;
8462 bool arg2 ;
8463 PyObject * obj0 = 0 ;
8464 PyObject * obj1 = 0 ;
8465 char *kwnames[] = {
8466 (char *) "self",(char *) "underlined", NULL
8467 };
8468
8469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8472 arg2 = (bool)SWIG_As_bool(obj1);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 {
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 (arg1)->SetUnderlined(arg2);
8477
8478 wxPyEndAllowThreads(__tstate);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 Py_INCREF(Py_None); resultobj = Py_None;
8482 return resultobj;
8483 fail:
8484 return NULL;
8485 }
8486
8487
8488 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8489 PyObject *resultobj;
8490 wxFont *arg1 = (wxFont *) 0 ;
8491 int arg2 ;
8492 PyObject * obj0 = 0 ;
8493 PyObject * obj1 = 0 ;
8494 char *kwnames[] = {
8495 (char *) "self",(char *) "encoding", NULL
8496 };
8497
8498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8501 arg2 = (int)SWIG_As_int(obj1);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 {
8504 PyThreadState* __tstate = wxPyBeginAllowThreads();
8505 (arg1)->SetEncoding((wxFontEncoding )arg2);
8506
8507 wxPyEndAllowThreads(__tstate);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 }
8510 Py_INCREF(Py_None); resultobj = Py_None;
8511 return resultobj;
8512 fail:
8513 return NULL;
8514 }
8515
8516
8517 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj;
8519 wxFont *arg1 = (wxFont *) 0 ;
8520 wxNativeFontInfo *arg2 = 0 ;
8521 PyObject * obj0 = 0 ;
8522 PyObject * obj1 = 0 ;
8523 char *kwnames[] = {
8524 (char *) "self",(char *) "info", NULL
8525 };
8526
8527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8531 SWIG_POINTER_EXCEPTION | 0)) == -1)
8532 SWIG_fail;
8533 if (arg2 == NULL) {
8534 PyErr_SetString(PyExc_TypeError,"null reference");
8535 SWIG_fail;
8536 }
8537 {
8538 PyThreadState* __tstate = wxPyBeginAllowThreads();
8539 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8540
8541 wxPyEndAllowThreads(__tstate);
8542 if (PyErr_Occurred()) SWIG_fail;
8543 }
8544 Py_INCREF(Py_None); resultobj = Py_None;
8545 return resultobj;
8546 fail:
8547 return NULL;
8548 }
8549
8550
8551 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
8552 PyObject *resultobj;
8553 wxFont *arg1 = (wxFont *) 0 ;
8554 wxString *arg2 = 0 ;
8555 bool temp2 = False ;
8556 PyObject * obj0 = 0 ;
8557 PyObject * obj1 = 0 ;
8558 char *kwnames[] = {
8559 (char *) "self",(char *) "info", NULL
8560 };
8561
8562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8565 {
8566 arg2 = wxString_in_helper(obj1);
8567 if (arg2 == NULL) SWIG_fail;
8568 temp2 = True;
8569 }
8570 {
8571 PyThreadState* __tstate = wxPyBeginAllowThreads();
8572 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8573
8574 wxPyEndAllowThreads(__tstate);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 Py_INCREF(Py_None); resultobj = Py_None;
8578 {
8579 if (temp2)
8580 delete arg2;
8581 }
8582 return resultobj;
8583 fail:
8584 {
8585 if (temp2)
8586 delete arg2;
8587 }
8588 return NULL;
8589 }
8590
8591
8592 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8593 PyObject *resultobj;
8594 wxFont *arg1 = (wxFont *) 0 ;
8595 wxString *arg2 = 0 ;
8596 bool temp2 = False ;
8597 PyObject * obj0 = 0 ;
8598 PyObject * obj1 = 0 ;
8599 char *kwnames[] = {
8600 (char *) "self",(char *) "info", NULL
8601 };
8602
8603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8606 {
8607 arg2 = wxString_in_helper(obj1);
8608 if (arg2 == NULL) SWIG_fail;
8609 temp2 = True;
8610 }
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8614
8615 wxPyEndAllowThreads(__tstate);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 Py_INCREF(Py_None); resultobj = Py_None;
8619 {
8620 if (temp2)
8621 delete arg2;
8622 }
8623 return resultobj;
8624 fail:
8625 {
8626 if (temp2)
8627 delete arg2;
8628 }
8629 return NULL;
8630 }
8631
8632
8633 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
8634 PyObject *resultobj;
8635 wxFont *arg1 = (wxFont *) 0 ;
8636 wxString result;
8637 PyObject * obj0 = 0 ;
8638 char *kwnames[] = {
8639 (char *) "self", NULL
8640 };
8641
8642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8645 {
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 result = ((wxFont const *)arg1)->GetFamilyString();
8648
8649 wxPyEndAllowThreads(__tstate);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 }
8652 {
8653 #if wxUSE_UNICODE
8654 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8655 #else
8656 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8657 #endif
8658 }
8659 return resultobj;
8660 fail:
8661 return NULL;
8662 }
8663
8664
8665 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
8666 PyObject *resultobj;
8667 wxFont *arg1 = (wxFont *) 0 ;
8668 wxString result;
8669 PyObject * obj0 = 0 ;
8670 char *kwnames[] = {
8671 (char *) "self", NULL
8672 };
8673
8674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8677 {
8678 PyThreadState* __tstate = wxPyBeginAllowThreads();
8679 result = ((wxFont const *)arg1)->GetStyleString();
8680
8681 wxPyEndAllowThreads(__tstate);
8682 if (PyErr_Occurred()) SWIG_fail;
8683 }
8684 {
8685 #if wxUSE_UNICODE
8686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8687 #else
8688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8689 #endif
8690 }
8691 return resultobj;
8692 fail:
8693 return NULL;
8694 }
8695
8696
8697 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
8698 PyObject *resultobj;
8699 wxFont *arg1 = (wxFont *) 0 ;
8700 wxString result;
8701 PyObject * obj0 = 0 ;
8702 char *kwnames[] = {
8703 (char *) "self", NULL
8704 };
8705
8706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8709 {
8710 PyThreadState* __tstate = wxPyBeginAllowThreads();
8711 result = ((wxFont const *)arg1)->GetWeightString();
8712
8713 wxPyEndAllowThreads(__tstate);
8714 if (PyErr_Occurred()) SWIG_fail;
8715 }
8716 {
8717 #if wxUSE_UNICODE
8718 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8719 #else
8720 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8721 #endif
8722 }
8723 return resultobj;
8724 fail:
8725 return NULL;
8726 }
8727
8728
8729 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8730 PyObject *resultobj;
8731 wxFont *arg1 = (wxFont *) 0 ;
8732 bool arg2 = (bool) True ;
8733 PyObject * obj0 = 0 ;
8734 PyObject * obj1 = 0 ;
8735 char *kwnames[] = {
8736 (char *) "self",(char *) "no", NULL
8737 };
8738
8739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8742 if (obj1) {
8743 arg2 = (bool)SWIG_As_bool(obj1);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 {
8747 PyThreadState* __tstate = wxPyBeginAllowThreads();
8748 (arg1)->SetNoAntiAliasing(arg2);
8749
8750 wxPyEndAllowThreads(__tstate);
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 Py_INCREF(Py_None); resultobj = Py_None;
8754 return resultobj;
8755 fail:
8756 return NULL;
8757 }
8758
8759
8760 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8761 PyObject *resultobj;
8762 wxFont *arg1 = (wxFont *) 0 ;
8763 bool result;
8764 PyObject * obj0 = 0 ;
8765 char *kwnames[] = {
8766 (char *) "self", NULL
8767 };
8768
8769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
8775
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 {
8780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8781 }
8782 return resultobj;
8783 fail:
8784 return NULL;
8785 }
8786
8787
8788 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8789 PyObject *resultobj;
8790 int result;
8791 char *kwnames[] = {
8792 NULL
8793 };
8794
8795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8796 {
8797 if (!wxPyCheckForApp()) SWIG_fail;
8798 PyThreadState* __tstate = wxPyBeginAllowThreads();
8799 result = (int)wxFont::GetDefaultEncoding();
8800
8801 wxPyEndAllowThreads(__tstate);
8802 if (PyErr_Occurred()) SWIG_fail;
8803 }
8804 resultobj = SWIG_From_int((int)result);
8805 return resultobj;
8806 fail:
8807 return NULL;
8808 }
8809
8810
8811 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8812 PyObject *resultobj;
8813 int arg1 ;
8814 PyObject * obj0 = 0 ;
8815 char *kwnames[] = {
8816 (char *) "encoding", NULL
8817 };
8818
8819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8820 arg1 = (int)SWIG_As_int(obj0);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 {
8823 if (!wxPyCheckForApp()) SWIG_fail;
8824 PyThreadState* __tstate = wxPyBeginAllowThreads();
8825 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8826
8827 wxPyEndAllowThreads(__tstate);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 Py_INCREF(Py_None); resultobj = Py_None;
8831 return resultobj;
8832 fail:
8833 return NULL;
8834 }
8835
8836
8837 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
8838 PyObject *obj;
8839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8840 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8841 Py_INCREF(obj);
8842 return Py_BuildValue((char *)"");
8843 }
8844 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8845 PyObject *resultobj;
8846 wxPyFontEnumerator *result;
8847 char *kwnames[] = {
8848 NULL
8849 };
8850
8851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8852 {
8853 if (!wxPyCheckForApp()) SWIG_fail;
8854 PyThreadState* __tstate = wxPyBeginAllowThreads();
8855 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8856
8857 wxPyEndAllowThreads(__tstate);
8858 if (PyErr_Occurred()) SWIG_fail;
8859 }
8860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8861 return resultobj;
8862 fail:
8863 return NULL;
8864 }
8865
8866
8867 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8868 PyObject *resultobj;
8869 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8870 PyObject * obj0 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "self", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8878 {
8879 PyThreadState* __tstate = wxPyBeginAllowThreads();
8880 delete arg1;
8881
8882 wxPyEndAllowThreads(__tstate);
8883 if (PyErr_Occurred()) SWIG_fail;
8884 }
8885 Py_INCREF(Py_None); resultobj = Py_None;
8886 return resultobj;
8887 fail:
8888 return NULL;
8889 }
8890
8891
8892 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8893 PyObject *resultobj;
8894 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8895 PyObject *arg2 = (PyObject *) 0 ;
8896 PyObject *arg3 = (PyObject *) 0 ;
8897 bool arg4 ;
8898 PyObject * obj0 = 0 ;
8899 PyObject * obj1 = 0 ;
8900 PyObject * obj2 = 0 ;
8901 PyObject * obj3 = 0 ;
8902 char *kwnames[] = {
8903 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8904 };
8905
8906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8909 arg2 = obj1;
8910 arg3 = obj2;
8911 arg4 = (bool)SWIG_As_bool(obj3);
8912 if (PyErr_Occurred()) SWIG_fail;
8913 {
8914 PyThreadState* __tstate = wxPyBeginAllowThreads();
8915 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8916
8917 wxPyEndAllowThreads(__tstate);
8918 if (PyErr_Occurred()) SWIG_fail;
8919 }
8920 Py_INCREF(Py_None); resultobj = Py_None;
8921 return resultobj;
8922 fail:
8923 return NULL;
8924 }
8925
8926
8927 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
8928 PyObject *resultobj;
8929 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8930 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8931 bool arg3 = (bool) False ;
8932 bool result;
8933 PyObject * obj0 = 0 ;
8934 PyObject * obj1 = 0 ;
8935 PyObject * obj2 = 0 ;
8936 char *kwnames[] = {
8937 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8938 };
8939
8940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8943 if (obj1) {
8944 arg2 = (int)SWIG_As_int(obj1);
8945 if (PyErr_Occurred()) SWIG_fail;
8946 }
8947 if (obj2) {
8948 arg3 = (bool)SWIG_As_bool(obj2);
8949 if (PyErr_Occurred()) SWIG_fail;
8950 }
8951 {
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8954
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
8958 {
8959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8960 }
8961 return resultobj;
8962 fail:
8963 return NULL;
8964 }
8965
8966
8967 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj;
8969 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8970 wxString const &arg2_defvalue = wxPyEmptyString ;
8971 wxString *arg2 = (wxString *) &arg2_defvalue ;
8972 bool result;
8973 bool temp2 = False ;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 char *kwnames[] = {
8977 (char *) "self",(char *) "facename", NULL
8978 };
8979
8980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8983 if (obj1) {
8984 {
8985 arg2 = wxString_in_helper(obj1);
8986 if (arg2 == NULL) SWIG_fail;
8987 temp2 = True;
8988 }
8989 }
8990 {
8991 PyThreadState* __tstate = wxPyBeginAllowThreads();
8992 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8993
8994 wxPyEndAllowThreads(__tstate);
8995 if (PyErr_Occurred()) SWIG_fail;
8996 }
8997 {
8998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8999 }
9000 {
9001 if (temp2)
9002 delete arg2;
9003 }
9004 return resultobj;
9005 fail:
9006 {
9007 if (temp2)
9008 delete arg2;
9009 }
9010 return NULL;
9011 }
9012
9013
9014 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9015 PyObject *resultobj;
9016 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9017 PyObject *result;
9018 PyObject * obj0 = 0 ;
9019 char *kwnames[] = {
9020 (char *) "self", NULL
9021 };
9022
9023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9026 {
9027 PyThreadState* __tstate = wxPyBeginAllowThreads();
9028 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9029
9030 wxPyEndAllowThreads(__tstate);
9031 if (PyErr_Occurred()) SWIG_fail;
9032 }
9033 resultobj = result;
9034 return resultobj;
9035 fail:
9036 return NULL;
9037 }
9038
9039
9040 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9041 PyObject *resultobj;
9042 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9043 PyObject *result;
9044 PyObject * obj0 = 0 ;
9045 char *kwnames[] = {
9046 (char *) "self", NULL
9047 };
9048
9049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9052 {
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9055
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 resultobj = result;
9060 return resultobj;
9061 fail:
9062 return NULL;
9063 }
9064
9065
9066 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
9067 PyObject *obj;
9068 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9069 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9070 Py_INCREF(obj);
9071 return Py_BuildValue((char *)"");
9072 }
9073 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
9074 PyObject *resultobj;
9075 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9076 int arg2 ;
9077 PyObject * obj0 = 0 ;
9078 PyObject * obj1 = 0 ;
9079 char *kwnames[] = {
9080 (char *) "self",(char *) "Language", NULL
9081 };
9082
9083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9086 arg2 = (int)SWIG_As_int(obj1);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 if (arg1) (arg1)->Language = arg2;
9089
9090 Py_INCREF(Py_None); resultobj = Py_None;
9091 return resultobj;
9092 fail:
9093 return NULL;
9094 }
9095
9096
9097 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
9098 PyObject *resultobj;
9099 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9100 int result;
9101 PyObject * obj0 = 0 ;
9102 char *kwnames[] = {
9103 (char *) "self", NULL
9104 };
9105
9106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9109 result = (int) ((arg1)->Language);
9110
9111 resultobj = SWIG_From_int((int)result);
9112 return resultobj;
9113 fail:
9114 return NULL;
9115 }
9116
9117
9118 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
9119 PyObject *resultobj;
9120 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9121 wxString *arg2 = (wxString *) 0 ;
9122 bool temp2 = False ;
9123 PyObject * obj0 = 0 ;
9124 PyObject * obj1 = 0 ;
9125 char *kwnames[] = {
9126 (char *) "self",(char *) "CanonicalName", NULL
9127 };
9128
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9132 {
9133 arg2 = wxString_in_helper(obj1);
9134 if (arg2 == NULL) SWIG_fail;
9135 temp2 = True;
9136 }
9137 if (arg1) (arg1)->CanonicalName = *arg2;
9138
9139 Py_INCREF(Py_None); resultobj = Py_None;
9140 {
9141 if (temp2)
9142 delete arg2;
9143 }
9144 return resultobj;
9145 fail:
9146 {
9147 if (temp2)
9148 delete arg2;
9149 }
9150 return NULL;
9151 }
9152
9153
9154 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
9155 PyObject *resultobj;
9156 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9157 wxString *result;
9158 PyObject * obj0 = 0 ;
9159 char *kwnames[] = {
9160 (char *) "self", NULL
9161 };
9162
9163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9166 result = (wxString *)& ((arg1)->CanonicalName);
9167
9168 {
9169 #if wxUSE_UNICODE
9170 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9171 #else
9172 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9173 #endif
9174 }
9175 return resultobj;
9176 fail:
9177 return NULL;
9178 }
9179
9180
9181 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
9182 PyObject *resultobj;
9183 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9184 wxString *arg2 = (wxString *) 0 ;
9185 bool temp2 = False ;
9186 PyObject * obj0 = 0 ;
9187 PyObject * obj1 = 0 ;
9188 char *kwnames[] = {
9189 (char *) "self",(char *) "Description", NULL
9190 };
9191
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9195 {
9196 arg2 = wxString_in_helper(obj1);
9197 if (arg2 == NULL) SWIG_fail;
9198 temp2 = True;
9199 }
9200 if (arg1) (arg1)->Description = *arg2;
9201
9202 Py_INCREF(Py_None); resultobj = Py_None;
9203 {
9204 if (temp2)
9205 delete arg2;
9206 }
9207 return resultobj;
9208 fail:
9209 {
9210 if (temp2)
9211 delete arg2;
9212 }
9213 return NULL;
9214 }
9215
9216
9217 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
9218 PyObject *resultobj;
9219 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9220 wxString *result;
9221 PyObject * obj0 = 0 ;
9222 char *kwnames[] = {
9223 (char *) "self", NULL
9224 };
9225
9226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9229 result = (wxString *)& ((arg1)->Description);
9230
9231 {
9232 #if wxUSE_UNICODE
9233 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9234 #else
9235 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9236 #endif
9237 }
9238 return resultobj;
9239 fail:
9240 return NULL;
9241 }
9242
9243
9244 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
9245 PyObject *obj;
9246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9247 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9248 Py_INCREF(obj);
9249 return Py_BuildValue((char *)"");
9250 }
9251 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9252 PyObject *resultobj;
9253 int arg1 = (int) -1 ;
9254 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9255 wxLocale *result;
9256 PyObject * obj0 = 0 ;
9257 PyObject * obj1 = 0 ;
9258 char *kwnames[] = {
9259 (char *) "language",(char *) "flags", NULL
9260 };
9261
9262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9263 if (obj0) {
9264 arg1 = (int)SWIG_As_int(obj0);
9265 if (PyErr_Occurred()) SWIG_fail;
9266 }
9267 if (obj1) {
9268 arg2 = (int)SWIG_As_int(obj1);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 {
9272 PyThreadState* __tstate = wxPyBeginAllowThreads();
9273 result = (wxLocale *)new_wxLocale(arg1,arg2);
9274
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9279 return resultobj;
9280 fail:
9281 return NULL;
9282 }
9283
9284
9285 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9286 PyObject *resultobj;
9287 wxLocale *arg1 = (wxLocale *) 0 ;
9288 PyObject * obj0 = 0 ;
9289 char *kwnames[] = {
9290 (char *) "self", NULL
9291 };
9292
9293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9296 {
9297 PyThreadState* __tstate = wxPyBeginAllowThreads();
9298 delete arg1;
9299
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 Py_INCREF(Py_None); resultobj = Py_None;
9304 return resultobj;
9305 fail:
9306 return NULL;
9307 }
9308
9309
9310 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
9311 PyObject *resultobj;
9312 wxLocale *arg1 = (wxLocale *) 0 ;
9313 wxString *arg2 = 0 ;
9314 wxString const &arg3_defvalue = wxPyEmptyString ;
9315 wxString *arg3 = (wxString *) &arg3_defvalue ;
9316 wxString const &arg4_defvalue = wxPyEmptyString ;
9317 wxString *arg4 = (wxString *) &arg4_defvalue ;
9318 bool arg5 = (bool) True ;
9319 bool arg6 = (bool) False ;
9320 bool result;
9321 bool temp2 = False ;
9322 bool temp3 = False ;
9323 bool temp4 = False ;
9324 PyObject * obj0 = 0 ;
9325 PyObject * obj1 = 0 ;
9326 PyObject * obj2 = 0 ;
9327 PyObject * obj3 = 0 ;
9328 PyObject * obj4 = 0 ;
9329 PyObject * obj5 = 0 ;
9330 char *kwnames[] = {
9331 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9332 };
9333
9334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9337 {
9338 arg2 = wxString_in_helper(obj1);
9339 if (arg2 == NULL) SWIG_fail;
9340 temp2 = True;
9341 }
9342 if (obj2) {
9343 {
9344 arg3 = wxString_in_helper(obj2);
9345 if (arg3 == NULL) SWIG_fail;
9346 temp3 = True;
9347 }
9348 }
9349 if (obj3) {
9350 {
9351 arg4 = wxString_in_helper(obj3);
9352 if (arg4 == NULL) SWIG_fail;
9353 temp4 = True;
9354 }
9355 }
9356 if (obj4) {
9357 arg5 = (bool)SWIG_As_bool(obj4);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
9360 if (obj5) {
9361 arg6 = (bool)SWIG_As_bool(obj5);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 {
9372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9373 }
9374 {
9375 if (temp2)
9376 delete arg2;
9377 }
9378 {
9379 if (temp3)
9380 delete arg3;
9381 }
9382 {
9383 if (temp4)
9384 delete arg4;
9385 }
9386 return resultobj;
9387 fail:
9388 {
9389 if (temp2)
9390 delete arg2;
9391 }
9392 {
9393 if (temp3)
9394 delete arg3;
9395 }
9396 {
9397 if (temp4)
9398 delete arg4;
9399 }
9400 return NULL;
9401 }
9402
9403
9404 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
9405 PyObject *resultobj;
9406 wxLocale *arg1 = (wxLocale *) 0 ;
9407 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9408 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9409 bool result;
9410 PyObject * obj0 = 0 ;
9411 PyObject * obj1 = 0 ;
9412 PyObject * obj2 = 0 ;
9413 char *kwnames[] = {
9414 (char *) "self",(char *) "language",(char *) "flags", NULL
9415 };
9416
9417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9420 if (obj1) {
9421 arg2 = (int)SWIG_As_int(obj1);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 if (obj2) {
9425 arg3 = (int)SWIG_As_int(obj2);
9426 if (PyErr_Occurred()) SWIG_fail;
9427 }
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 result = (bool)(arg1)->Init(arg2,arg3);
9431
9432 wxPyEndAllowThreads(__tstate);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 {
9436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9437 }
9438 return resultobj;
9439 fail:
9440 return NULL;
9441 }
9442
9443
9444 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj;
9446 int result;
9447 char *kwnames[] = {
9448 NULL
9449 };
9450
9451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9452 {
9453 PyThreadState* __tstate = wxPyBeginAllowThreads();
9454 result = (int)wxLocale::GetSystemLanguage();
9455
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 resultobj = SWIG_From_int((int)result);
9460 return resultobj;
9461 fail:
9462 return NULL;
9463 }
9464
9465
9466 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj;
9468 int result;
9469 char *kwnames[] = {
9470 NULL
9471 };
9472
9473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 result = (int)wxLocale::GetSystemEncoding();
9477
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 resultobj = SWIG_From_int((int)result);
9482 return resultobj;
9483 fail:
9484 return NULL;
9485 }
9486
9487
9488 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj;
9490 wxString result;
9491 char *kwnames[] = {
9492 NULL
9493 };
9494
9495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9496 {
9497 PyThreadState* __tstate = wxPyBeginAllowThreads();
9498 result = wxLocale::GetSystemEncodingName();
9499
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 {
9504 #if wxUSE_UNICODE
9505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9506 #else
9507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9508 #endif
9509 }
9510 return resultobj;
9511 fail:
9512 return NULL;
9513 }
9514
9515
9516 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9517 PyObject *resultobj;
9518 wxLocale *arg1 = (wxLocale *) 0 ;
9519 bool result;
9520 PyObject * obj0 = 0 ;
9521 char *kwnames[] = {
9522 (char *) "self", NULL
9523 };
9524
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9528 {
9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
9530 result = (bool)((wxLocale const *)arg1)->IsOk();
9531
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 {
9536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9537 }
9538 return resultobj;
9539 fail:
9540 return NULL;
9541 }
9542
9543
9544 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj;
9546 wxLocale *arg1 = (wxLocale *) 0 ;
9547 wxString result;
9548 PyObject * obj0 = 0 ;
9549 char *kwnames[] = {
9550 (char *) "self", NULL
9551 };
9552
9553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9556 {
9557 PyThreadState* __tstate = wxPyBeginAllowThreads();
9558 result = ((wxLocale const *)arg1)->GetLocale();
9559
9560 wxPyEndAllowThreads(__tstate);
9561 if (PyErr_Occurred()) SWIG_fail;
9562 }
9563 {
9564 #if wxUSE_UNICODE
9565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9566 #else
9567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9568 #endif
9569 }
9570 return resultobj;
9571 fail:
9572 return NULL;
9573 }
9574
9575
9576 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9577 PyObject *resultobj;
9578 wxLocale *arg1 = (wxLocale *) 0 ;
9579 int result;
9580 PyObject * obj0 = 0 ;
9581 char *kwnames[] = {
9582 (char *) "self", NULL
9583 };
9584
9585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9588 {
9589 PyThreadState* __tstate = wxPyBeginAllowThreads();
9590 result = (int)((wxLocale const *)arg1)->GetLanguage();
9591
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_From_int((int)result);
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj;
9604 wxLocale *arg1 = (wxLocale *) 0 ;
9605 wxString result;
9606 PyObject * obj0 = 0 ;
9607 char *kwnames[] = {
9608 (char *) "self", NULL
9609 };
9610
9611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 result = ((wxLocale const *)arg1)->GetSysName();
9617
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 {
9622 #if wxUSE_UNICODE
9623 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9624 #else
9625 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9626 #endif
9627 }
9628 return resultobj;
9629 fail:
9630 return NULL;
9631 }
9632
9633
9634 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
9635 PyObject *resultobj;
9636 wxLocale *arg1 = (wxLocale *) 0 ;
9637 wxString result;
9638 PyObject * obj0 = 0 ;
9639 char *kwnames[] = {
9640 (char *) "self", NULL
9641 };
9642
9643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 result = ((wxLocale const *)arg1)->GetCanonicalName();
9649
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 {
9654 #if wxUSE_UNICODE
9655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9656 #else
9657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9658 #endif
9659 }
9660 return resultobj;
9661 fail:
9662 return NULL;
9663 }
9664
9665
9666 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
9667 PyObject *resultobj;
9668 wxString *arg1 = 0 ;
9669 bool temp1 = False ;
9670 PyObject * obj0 = 0 ;
9671 char *kwnames[] = {
9672 (char *) "prefix", NULL
9673 };
9674
9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9676 {
9677 arg1 = wxString_in_helper(obj0);
9678 if (arg1 == NULL) SWIG_fail;
9679 temp1 = True;
9680 }
9681 {
9682 PyThreadState* __tstate = wxPyBeginAllowThreads();
9683 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9684
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 Py_INCREF(Py_None); resultobj = Py_None;
9689 {
9690 if (temp1)
9691 delete arg1;
9692 }
9693 return resultobj;
9694 fail:
9695 {
9696 if (temp1)
9697 delete arg1;
9698 }
9699 return NULL;
9700 }
9701
9702
9703 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
9704 PyObject *resultobj;
9705 wxLocale *arg1 = (wxLocale *) 0 ;
9706 wxString *arg2 = 0 ;
9707 bool result;
9708 bool temp2 = False ;
9709 PyObject * obj0 = 0 ;
9710 PyObject * obj1 = 0 ;
9711 char *kwnames[] = {
9712 (char *) "self",(char *) "szDomain", NULL
9713 };
9714
9715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9718 {
9719 arg2 = wxString_in_helper(obj1);
9720 if (arg2 == NULL) SWIG_fail;
9721 temp2 = True;
9722 }
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9726
9727 wxPyEndAllowThreads(__tstate);
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 {
9731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9732 }
9733 {
9734 if (temp2)
9735 delete arg2;
9736 }
9737 return resultobj;
9738 fail:
9739 {
9740 if (temp2)
9741 delete arg2;
9742 }
9743 return NULL;
9744 }
9745
9746
9747 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj;
9749 wxLocale *arg1 = (wxLocale *) 0 ;
9750 wxString *arg2 = 0 ;
9751 bool result;
9752 bool temp2 = False ;
9753 PyObject * obj0 = 0 ;
9754 PyObject * obj1 = 0 ;
9755 char *kwnames[] = {
9756 (char *) "self",(char *) "szDomain", NULL
9757 };
9758
9759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9762 {
9763 arg2 = wxString_in_helper(obj1);
9764 if (arg2 == NULL) SWIG_fail;
9765 temp2 = True;
9766 }
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9770
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 {
9775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9776 }
9777 {
9778 if (temp2)
9779 delete arg2;
9780 }
9781 return resultobj;
9782 fail:
9783 {
9784 if (temp2)
9785 delete arg2;
9786 }
9787 return NULL;
9788 }
9789
9790
9791 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9792 PyObject *resultobj;
9793 int arg1 ;
9794 wxLanguageInfo *result;
9795 PyObject * obj0 = 0 ;
9796 char *kwnames[] = {
9797 (char *) "lang", NULL
9798 };
9799
9800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9801 arg1 = (int)SWIG_As_int(obj0);
9802 if (PyErr_Occurred()) SWIG_fail;
9803 {
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9806
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9811 return resultobj;
9812 fail:
9813 return NULL;
9814 }
9815
9816
9817 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj;
9819 int arg1 ;
9820 wxString result;
9821 PyObject * obj0 = 0 ;
9822 char *kwnames[] = {
9823 (char *) "lang", NULL
9824 };
9825
9826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9827 arg1 = (int)SWIG_As_int(obj0);
9828 if (PyErr_Occurred()) SWIG_fail;
9829 {
9830 PyThreadState* __tstate = wxPyBeginAllowThreads();
9831 result = wxLocale::GetLanguageName(arg1);
9832
9833 wxPyEndAllowThreads(__tstate);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 }
9836 {
9837 #if wxUSE_UNICODE
9838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9839 #else
9840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9841 #endif
9842 }
9843 return resultobj;
9844 fail:
9845 return NULL;
9846 }
9847
9848
9849 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9850 PyObject *resultobj;
9851 wxString *arg1 = 0 ;
9852 wxLanguageInfo *result;
9853 bool temp1 = False ;
9854 PyObject * obj0 = 0 ;
9855 char *kwnames[] = {
9856 (char *) "locale", NULL
9857 };
9858
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9860 {
9861 arg1 = wxString_in_helper(obj0);
9862 if (arg1 == NULL) SWIG_fail;
9863 temp1 = True;
9864 }
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9868
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9873 {
9874 if (temp1)
9875 delete arg1;
9876 }
9877 return resultobj;
9878 fail:
9879 {
9880 if (temp1)
9881 delete arg1;
9882 }
9883 return NULL;
9884 }
9885
9886
9887 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj;
9889 wxLanguageInfo *arg1 = 0 ;
9890 PyObject * obj0 = 0 ;
9891 char *kwnames[] = {
9892 (char *) "info", NULL
9893 };
9894
9895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9897 SWIG_POINTER_EXCEPTION | 0)) == -1)
9898 SWIG_fail;
9899 if (arg1 == NULL) {
9900 PyErr_SetString(PyExc_TypeError,"null reference");
9901 SWIG_fail;
9902 }
9903 {
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9906
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 Py_INCREF(Py_None); resultobj = Py_None;
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9918 PyObject *resultobj;
9919 wxLocale *arg1 = (wxLocale *) 0 ;
9920 wxString *arg2 = 0 ;
9921 wxString const &arg3_defvalue = wxPyEmptyString ;
9922 wxString *arg3 = (wxString *) &arg3_defvalue ;
9923 wxString result;
9924 bool temp2 = False ;
9925 bool temp3 = False ;
9926 PyObject * obj0 = 0 ;
9927 PyObject * obj1 = 0 ;
9928 PyObject * obj2 = 0 ;
9929 char *kwnames[] = {
9930 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9931 };
9932
9933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9936 {
9937 arg2 = wxString_in_helper(obj1);
9938 if (arg2 == NULL) SWIG_fail;
9939 temp2 = True;
9940 }
9941 if (obj2) {
9942 {
9943 arg3 = wxString_in_helper(obj2);
9944 if (arg3 == NULL) SWIG_fail;
9945 temp3 = True;
9946 }
9947 }
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9951
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 {
9956 #if wxUSE_UNICODE
9957 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9958 #else
9959 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9960 #endif
9961 }
9962 {
9963 if (temp2)
9964 delete arg2;
9965 }
9966 {
9967 if (temp3)
9968 delete arg3;
9969 }
9970 return resultobj;
9971 fail:
9972 {
9973 if (temp2)
9974 delete arg2;
9975 }
9976 {
9977 if (temp3)
9978 delete arg3;
9979 }
9980 return NULL;
9981 }
9982
9983
9984 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj;
9986 wxLocale *arg1 = (wxLocale *) 0 ;
9987 wxString *result;
9988 PyObject * obj0 = 0 ;
9989 char *kwnames[] = {
9990 (char *) "self", NULL
9991 };
9992
9993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 {
9999 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10000 result = (wxString *) &_result_ref;
10001 }
10002
10003 wxPyEndAllowThreads(__tstate);
10004 if (PyErr_Occurred()) SWIG_fail;
10005 }
10006 {
10007 #if wxUSE_UNICODE
10008 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10009 #else
10010 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10011 #endif
10012 }
10013 return resultobj;
10014 fail:
10015 return NULL;
10016 }
10017
10018
10019 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
10020 PyObject *obj;
10021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10022 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10023 Py_INCREF(obj);
10024 return Py_BuildValue((char *)"");
10025 }
10026 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
10027 PyObject *resultobj;
10028 wxLocale *result;
10029 char *kwnames[] = {
10030 NULL
10031 };
10032
10033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 result = (wxLocale *)wxGetLocale();
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10042 return resultobj;
10043 fail:
10044 return NULL;
10045 }
10046
10047
10048 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
10049 PyObject *resultobj;
10050 wxString *arg1 = 0 ;
10051 wxString result;
10052 bool temp1 = False ;
10053 PyObject * obj0 = 0 ;
10054
10055 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10056 {
10057 arg1 = wxString_in_helper(obj0);
10058 if (arg1 == NULL) SWIG_fail;
10059 temp1 = True;
10060 }
10061 {
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
10063 result = wxGetTranslation((wxString const &)*arg1);
10064
10065 wxPyEndAllowThreads(__tstate);
10066 if (PyErr_Occurred()) SWIG_fail;
10067 }
10068 {
10069 #if wxUSE_UNICODE
10070 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10071 #else
10072 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10073 #endif
10074 }
10075 {
10076 if (temp1)
10077 delete arg1;
10078 }
10079 return resultobj;
10080 fail:
10081 {
10082 if (temp1)
10083 delete arg1;
10084 }
10085 return NULL;
10086 }
10087
10088
10089 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
10090 PyObject *resultobj;
10091 wxString *arg1 = 0 ;
10092 wxString *arg2 = 0 ;
10093 size_t arg3 ;
10094 wxString result;
10095 bool temp1 = False ;
10096 bool temp2 = False ;
10097 PyObject * obj0 = 0 ;
10098 PyObject * obj1 = 0 ;
10099 PyObject * obj2 = 0 ;
10100
10101 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10102 {
10103 arg1 = wxString_in_helper(obj0);
10104 if (arg1 == NULL) SWIG_fail;
10105 temp1 = True;
10106 }
10107 {
10108 arg2 = wxString_in_helper(obj1);
10109 if (arg2 == NULL) SWIG_fail;
10110 temp2 = True;
10111 }
10112 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
10113 if (PyErr_Occurred()) SWIG_fail;
10114 {
10115 PyThreadState* __tstate = wxPyBeginAllowThreads();
10116 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10117
10118 wxPyEndAllowThreads(__tstate);
10119 if (PyErr_Occurred()) SWIG_fail;
10120 }
10121 {
10122 #if wxUSE_UNICODE
10123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10124 #else
10125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10126 #endif
10127 }
10128 {
10129 if (temp1)
10130 delete arg1;
10131 }
10132 {
10133 if (temp2)
10134 delete arg2;
10135 }
10136 return resultobj;
10137 fail:
10138 {
10139 if (temp1)
10140 delete arg1;
10141 }
10142 {
10143 if (temp2)
10144 delete arg2;
10145 }
10146 return NULL;
10147 }
10148
10149
10150 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10151 int argc;
10152 PyObject *argv[4];
10153 int ii;
10154
10155 argc = PyObject_Length(args);
10156 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10157 argv[ii] = PyTuple_GetItem(args,ii);
10158 }
10159 if (argc == 1) {
10160 int _v;
10161 {
10162 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10163 }
10164 if (_v) {
10165 return _wrap_GetTranslation__SWIG_0(self,args);
10166 }
10167 }
10168 if (argc == 3) {
10169 int _v;
10170 {
10171 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10172 }
10173 if (_v) {
10174 {
10175 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10176 }
10177 if (_v) {
10178 _v = SWIG_Check_unsigned_SS_long(argv[2]);
10179 if (_v) {
10180 return _wrap_GetTranslation__SWIG_1(self,args);
10181 }
10182 }
10183 }
10184 }
10185
10186 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10187 return NULL;
10188 }
10189
10190
10191 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10192 PyObject *resultobj;
10193 wxEncodingConverter *result;
10194 char *kwnames[] = {
10195 NULL
10196 };
10197
10198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 result = (wxEncodingConverter *)new wxEncodingConverter();
10202
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj;
10215 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10216 PyObject * obj0 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 delete arg1;
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 Py_INCREF(Py_None); resultobj = Py_None;
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj;
10240 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10241 int arg2 ;
10242 int arg3 ;
10243 int arg4 = (int) wxCONVERT_STRICT ;
10244 bool result;
10245 PyObject * obj0 = 0 ;
10246 PyObject * obj1 = 0 ;
10247 PyObject * obj2 = 0 ;
10248 PyObject * obj3 = 0 ;
10249 char *kwnames[] = {
10250 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10251 };
10252
10253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10256 arg2 = (int)SWIG_As_int(obj1);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 arg3 = (int)SWIG_As_int(obj2);
10259 if (PyErr_Occurred()) SWIG_fail;
10260 if (obj3) {
10261 arg4 = (int)SWIG_As_int(obj3);
10262 if (PyErr_Occurred()) SWIG_fail;
10263 }
10264 {
10265 PyThreadState* __tstate = wxPyBeginAllowThreads();
10266 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10267
10268 wxPyEndAllowThreads(__tstate);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 }
10271 {
10272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10273 }
10274 return resultobj;
10275 fail:
10276 return NULL;
10277 }
10278
10279
10280 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
10281 PyObject *resultobj;
10282 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10283 wxString *arg2 = 0 ;
10284 wxString result;
10285 bool temp2 = False ;
10286 PyObject * obj0 = 0 ;
10287 PyObject * obj1 = 0 ;
10288 char *kwnames[] = {
10289 (char *) "self",(char *) "input", NULL
10290 };
10291
10292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10295 {
10296 arg2 = wxString_in_helper(obj1);
10297 if (arg2 == NULL) SWIG_fail;
10298 temp2 = True;
10299 }
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = (arg1)->Convert((wxString const &)*arg2);
10303
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 {
10308 #if wxUSE_UNICODE
10309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10310 #else
10311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10312 #endif
10313 }
10314 {
10315 if (temp2)
10316 delete arg2;
10317 }
10318 return resultobj;
10319 fail:
10320 {
10321 if (temp2)
10322 delete arg2;
10323 }
10324 return NULL;
10325 }
10326
10327
10328 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10329 PyObject *resultobj;
10330 int arg1 ;
10331 int arg2 = (int) wxPLATFORM_CURRENT ;
10332 wxFontEncodingArray result;
10333 PyObject * obj0 = 0 ;
10334 PyObject * obj1 = 0 ;
10335 char *kwnames[] = {
10336 (char *) "enc",(char *) "platform", NULL
10337 };
10338
10339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10340 arg1 = (int)SWIG_As_int(obj0);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 if (obj1) {
10343 arg2 = (int)SWIG_As_int(obj1);
10344 if (PyErr_Occurred()) SWIG_fail;
10345 }
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 {
10354 resultobj = PyList_New(0);
10355 for (size_t i=0; i < (&result)->GetCount(); i++) {
10356 PyObject* number = PyInt_FromLong((&result)->Item(i));
10357 PyList_Append(resultobj, number);
10358 Py_DECREF(number);
10359 }
10360 }
10361 return resultobj;
10362 fail:
10363 return NULL;
10364 }
10365
10366
10367 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10368 PyObject *resultobj;
10369 int arg1 ;
10370 wxFontEncodingArray result;
10371 PyObject * obj0 = 0 ;
10372 char *kwnames[] = {
10373 (char *) "enc", NULL
10374 };
10375
10376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10377 arg1 = (int)SWIG_As_int(obj0);
10378 if (PyErr_Occurred()) SWIG_fail;
10379 {
10380 PyThreadState* __tstate = wxPyBeginAllowThreads();
10381 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10382
10383 wxPyEndAllowThreads(__tstate);
10384 if (PyErr_Occurred()) SWIG_fail;
10385 }
10386 {
10387 resultobj = PyList_New(0);
10388 for (size_t i=0; i < (&result)->GetCount(); i++) {
10389 PyObject* number = PyInt_FromLong((&result)->Item(i));
10390 PyList_Append(resultobj, number);
10391 Py_DECREF(number);
10392 }
10393 }
10394 return resultobj;
10395 fail:
10396 return NULL;
10397 }
10398
10399
10400 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
10401 PyObject *resultobj;
10402 int arg1 ;
10403 int arg2 ;
10404 bool result;
10405 PyObject * obj0 = 0 ;
10406 PyObject * obj1 = 0 ;
10407 char *kwnames[] = {
10408 (char *) "encIn",(char *) "encOut", NULL
10409 };
10410
10411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10412 arg1 = (int)SWIG_As_int(obj0);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 arg2 = (int)SWIG_As_int(obj1);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 {
10417 PyThreadState* __tstate = wxPyBeginAllowThreads();
10418 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10419
10420 wxPyEndAllowThreads(__tstate);
10421 if (PyErr_Occurred()) SWIG_fail;
10422 }
10423 {
10424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10425 }
10426 return resultobj;
10427 fail:
10428 return NULL;
10429 }
10430
10431
10432 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
10433 PyObject *obj;
10434 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10435 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10436 Py_INCREF(obj);
10437 return Py_BuildValue((char *)"");
10438 }
10439 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
10440 PyObject *resultobj;
10441 wxDC *arg1 = (wxDC *) 0 ;
10442 PyObject * obj0 = 0 ;
10443 char *kwnames[] = {
10444 (char *) "self", NULL
10445 };
10446
10447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 delete arg1;
10453
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 Py_INCREF(Py_None); resultobj = Py_None;
10458 return resultobj;
10459 fail:
10460 return NULL;
10461 }
10462
10463
10464 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10465 PyObject *resultobj;
10466 wxDC *arg1 = (wxDC *) 0 ;
10467 PyObject * obj0 = 0 ;
10468 char *kwnames[] = {
10469 (char *) "self", NULL
10470 };
10471
10472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 (arg1)->BeginDrawing();
10478
10479 wxPyEndAllowThreads(__tstate);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 Py_INCREF(Py_None); resultobj = Py_None;
10483 return resultobj;
10484 fail:
10485 return NULL;
10486 }
10487
10488
10489 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10490 PyObject *resultobj;
10491 wxDC *arg1 = (wxDC *) 0 ;
10492 PyObject * obj0 = 0 ;
10493 char *kwnames[] = {
10494 (char *) "self", NULL
10495 };
10496
10497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10500 {
10501 PyThreadState* __tstate = wxPyBeginAllowThreads();
10502 (arg1)->EndDrawing();
10503
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 Py_INCREF(Py_None); resultobj = Py_None;
10508 return resultobj;
10509 fail:
10510 return NULL;
10511 }
10512
10513
10514 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
10515 PyObject *resultobj;
10516 wxDC *arg1 = (wxDC *) 0 ;
10517 int arg2 ;
10518 int arg3 ;
10519 wxColour *arg4 = 0 ;
10520 int arg5 = (int) wxFLOOD_SURFACE ;
10521 bool result;
10522 wxColour temp4 ;
10523 PyObject * obj0 = 0 ;
10524 PyObject * obj1 = 0 ;
10525 PyObject * obj2 = 0 ;
10526 PyObject * obj3 = 0 ;
10527 PyObject * obj4 = 0 ;
10528 char *kwnames[] = {
10529 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10530 };
10531
10532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10535 arg2 = (int)SWIG_As_int(obj1);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 arg3 = (int)SWIG_As_int(obj2);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 {
10540 arg4 = &temp4;
10541 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10542 }
10543 if (obj4) {
10544 arg5 = (int)SWIG_As_int(obj4);
10545 if (PyErr_Occurred()) SWIG_fail;
10546 }
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10550
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 {
10555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10556 }
10557 return resultobj;
10558 fail:
10559 return NULL;
10560 }
10561
10562
10563 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10564 PyObject *resultobj;
10565 wxDC *arg1 = (wxDC *) 0 ;
10566 wxPoint *arg2 = 0 ;
10567 wxColour *arg3 = 0 ;
10568 int arg4 = (int) wxFLOOD_SURFACE ;
10569 bool result;
10570 wxPoint temp2 ;
10571 wxColour temp3 ;
10572 PyObject * obj0 = 0 ;
10573 PyObject * obj1 = 0 ;
10574 PyObject * obj2 = 0 ;
10575 PyObject * obj3 = 0 ;
10576 char *kwnames[] = {
10577 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10578 };
10579
10580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10583 {
10584 arg2 = &temp2;
10585 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10586 }
10587 {
10588 arg3 = &temp3;
10589 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10590 }
10591 if (obj3) {
10592 arg4 = (int)SWIG_As_int(obj3);
10593 if (PyErr_Occurred()) SWIG_fail;
10594 }
10595 {
10596 PyThreadState* __tstate = wxPyBeginAllowThreads();
10597 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10598
10599 wxPyEndAllowThreads(__tstate);
10600 if (PyErr_Occurred()) SWIG_fail;
10601 }
10602 {
10603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10604 }
10605 return resultobj;
10606 fail:
10607 return NULL;
10608 }
10609
10610
10611 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
10612 PyObject *resultobj;
10613 wxDC *arg1 = (wxDC *) 0 ;
10614 int arg2 ;
10615 int arg3 ;
10616 wxColour result;
10617 PyObject * obj0 = 0 ;
10618 PyObject * obj1 = 0 ;
10619 PyObject * obj2 = 0 ;
10620 char *kwnames[] = {
10621 (char *) "self",(char *) "x",(char *) "y", NULL
10622 };
10623
10624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10627 arg2 = (int)SWIG_As_int(obj1);
10628 if (PyErr_Occurred()) SWIG_fail;
10629 arg3 = (int)SWIG_As_int(obj2);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 result = wxDC_GetPixel(arg1,arg2,arg3);
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 {
10639 wxColour * resultptr;
10640 resultptr = new wxColour((wxColour &) result);
10641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10642 }
10643 return resultobj;
10644 fail:
10645 return NULL;
10646 }
10647
10648
10649 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10650 PyObject *resultobj;
10651 wxDC *arg1 = (wxDC *) 0 ;
10652 wxPoint *arg2 = 0 ;
10653 wxColour result;
10654 wxPoint temp2 ;
10655 PyObject * obj0 = 0 ;
10656 PyObject * obj1 = 0 ;
10657 char *kwnames[] = {
10658 (char *) "self",(char *) "pt", NULL
10659 };
10660
10661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10664 {
10665 arg2 = &temp2;
10666 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10667 }
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10671
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 {
10676 wxColour * resultptr;
10677 resultptr = new wxColour((wxColour &) result);
10678 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10679 }
10680 return resultobj;
10681 fail:
10682 return NULL;
10683 }
10684
10685
10686 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj;
10688 wxDC *arg1 = (wxDC *) 0 ;
10689 int arg2 ;
10690 int arg3 ;
10691 int arg4 ;
10692 int arg5 ;
10693 PyObject * obj0 = 0 ;
10694 PyObject * obj1 = 0 ;
10695 PyObject * obj2 = 0 ;
10696 PyObject * obj3 = 0 ;
10697 PyObject * obj4 = 0 ;
10698 char *kwnames[] = {
10699 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10700 };
10701
10702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10705 arg2 = (int)SWIG_As_int(obj1);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 arg3 = (int)SWIG_As_int(obj2);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 arg4 = (int)SWIG_As_int(obj3);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 arg5 = (int)SWIG_As_int(obj4);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 {
10714 PyThreadState* __tstate = wxPyBeginAllowThreads();
10715 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10716
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 Py_INCREF(Py_None); resultobj = Py_None;
10721 return resultobj;
10722 fail:
10723 return NULL;
10724 }
10725
10726
10727 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
10728 PyObject *resultobj;
10729 wxDC *arg1 = (wxDC *) 0 ;
10730 wxPoint *arg2 = 0 ;
10731 wxPoint *arg3 = 0 ;
10732 wxPoint temp2 ;
10733 wxPoint temp3 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 char *kwnames[] = {
10738 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10739 };
10740
10741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10744 {
10745 arg2 = &temp2;
10746 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10747 }
10748 {
10749 arg3 = &temp3;
10750 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10751 }
10752 {
10753 PyThreadState* __tstate = wxPyBeginAllowThreads();
10754 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10755
10756 wxPyEndAllowThreads(__tstate);
10757 if (PyErr_Occurred()) SWIG_fail;
10758 }
10759 Py_INCREF(Py_None); resultobj = Py_None;
10760 return resultobj;
10761 fail:
10762 return NULL;
10763 }
10764
10765
10766 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
10767 PyObject *resultobj;
10768 wxDC *arg1 = (wxDC *) 0 ;
10769 int arg2 ;
10770 int arg3 ;
10771 PyObject * obj0 = 0 ;
10772 PyObject * obj1 = 0 ;
10773 PyObject * obj2 = 0 ;
10774 char *kwnames[] = {
10775 (char *) "self",(char *) "x",(char *) "y", NULL
10776 };
10777
10778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10781 arg2 = (int)SWIG_As_int(obj1);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 arg3 = (int)SWIG_As_int(obj2);
10784 if (PyErr_Occurred()) SWIG_fail;
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 (arg1)->CrossHair(arg2,arg3);
10788
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 Py_INCREF(Py_None); resultobj = Py_None;
10793 return resultobj;
10794 fail:
10795 return NULL;
10796 }
10797
10798
10799 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10800 PyObject *resultobj;
10801 wxDC *arg1 = (wxDC *) 0 ;
10802 wxPoint *arg2 = 0 ;
10803 wxPoint temp2 ;
10804 PyObject * obj0 = 0 ;
10805 PyObject * obj1 = 0 ;
10806 char *kwnames[] = {
10807 (char *) "self",(char *) "pt", NULL
10808 };
10809
10810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10813 {
10814 arg2 = &temp2;
10815 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10816 }
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 (arg1)->CrossHair((wxPoint const &)*arg2);
10820
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 Py_INCREF(Py_None); resultobj = Py_None;
10825 return resultobj;
10826 fail:
10827 return NULL;
10828 }
10829
10830
10831 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
10832 PyObject *resultobj;
10833 wxDC *arg1 = (wxDC *) 0 ;
10834 int arg2 ;
10835 int arg3 ;
10836 int arg4 ;
10837 int arg5 ;
10838 int arg6 ;
10839 int arg7 ;
10840 PyObject * obj0 = 0 ;
10841 PyObject * obj1 = 0 ;
10842 PyObject * obj2 = 0 ;
10843 PyObject * obj3 = 0 ;
10844 PyObject * obj4 = 0 ;
10845 PyObject * obj5 = 0 ;
10846 PyObject * obj6 = 0 ;
10847 char *kwnames[] = {
10848 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10849 };
10850
10851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10854 arg2 = (int)SWIG_As_int(obj1);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 arg3 = (int)SWIG_As_int(obj2);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 arg4 = (int)SWIG_As_int(obj3);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 arg5 = (int)SWIG_As_int(obj4);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 arg6 = (int)SWIG_As_int(obj5);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 arg7 = (int)SWIG_As_int(obj6);
10865 if (PyErr_Occurred()) SWIG_fail;
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10869
10870 wxPyEndAllowThreads(__tstate);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 }
10873 Py_INCREF(Py_None); resultobj = Py_None;
10874 return resultobj;
10875 fail:
10876 return NULL;
10877 }
10878
10879
10880 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10881 PyObject *resultobj;
10882 wxDC *arg1 = (wxDC *) 0 ;
10883 wxPoint *arg2 = 0 ;
10884 wxPoint *arg3 = 0 ;
10885 wxPoint *arg4 = 0 ;
10886 wxPoint temp2 ;
10887 wxPoint temp3 ;
10888 wxPoint temp4 ;
10889 PyObject * obj0 = 0 ;
10890 PyObject * obj1 = 0 ;
10891 PyObject * obj2 = 0 ;
10892 PyObject * obj3 = 0 ;
10893 char *kwnames[] = {
10894 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
10895 };
10896
10897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10900 {
10901 arg2 = &temp2;
10902 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10903 }
10904 {
10905 arg3 = &temp3;
10906 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10907 }
10908 {
10909 arg4 = &temp4;
10910 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10911 }
10912 {
10913 PyThreadState* __tstate = wxPyBeginAllowThreads();
10914 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10915
10916 wxPyEndAllowThreads(__tstate);
10917 if (PyErr_Occurred()) SWIG_fail;
10918 }
10919 Py_INCREF(Py_None); resultobj = Py_None;
10920 return resultobj;
10921 fail:
10922 return NULL;
10923 }
10924
10925
10926 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
10927 PyObject *resultobj;
10928 wxDC *arg1 = (wxDC *) 0 ;
10929 int arg2 ;
10930 int arg3 ;
10931 int arg4 ;
10932 int arg5 ;
10933 PyObject * obj0 = 0 ;
10934 PyObject * obj1 = 0 ;
10935 PyObject * obj2 = 0 ;
10936 PyObject * obj3 = 0 ;
10937 PyObject * obj4 = 0 ;
10938 char *kwnames[] = {
10939 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10940 };
10941
10942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10945 arg2 = (int)SWIG_As_int(obj1);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 arg3 = (int)SWIG_As_int(obj2);
10948 if (PyErr_Occurred()) SWIG_fail;
10949 arg4 = (int)SWIG_As_int(obj3);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 arg5 = (int)SWIG_As_int(obj4);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 {
10954 PyThreadState* __tstate = wxPyBeginAllowThreads();
10955 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10956
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 Py_INCREF(Py_None); resultobj = Py_None;
10961 return resultobj;
10962 fail:
10963 return NULL;
10964 }
10965
10966
10967 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
10968 PyObject *resultobj;
10969 wxDC *arg1 = (wxDC *) 0 ;
10970 wxRect *arg2 = 0 ;
10971 wxRect temp2 ;
10972 PyObject * obj0 = 0 ;
10973 PyObject * obj1 = 0 ;
10974 char *kwnames[] = {
10975 (char *) "self",(char *) "rect", NULL
10976 };
10977
10978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10981 {
10982 arg2 = &temp2;
10983 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10984 }
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10988
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 Py_INCREF(Py_None); resultobj = Py_None;
10993 return resultobj;
10994 fail:
10995 return NULL;
10996 }
10997
10998
10999 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
11000 PyObject *resultobj;
11001 wxDC *arg1 = (wxDC *) 0 ;
11002 int arg2 ;
11003 int arg3 ;
11004 int arg4 ;
11005 int arg5 ;
11006 double arg6 ;
11007 double arg7 ;
11008 PyObject * obj0 = 0 ;
11009 PyObject * obj1 = 0 ;
11010 PyObject * obj2 = 0 ;
11011 PyObject * obj3 = 0 ;
11012 PyObject * obj4 = 0 ;
11013 PyObject * obj5 = 0 ;
11014 PyObject * obj6 = 0 ;
11015 char *kwnames[] = {
11016 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
11017 };
11018
11019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11022 arg2 = (int)SWIG_As_int(obj1);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 arg3 = (int)SWIG_As_int(obj2);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 arg4 = (int)SWIG_As_int(obj3);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 arg5 = (int)SWIG_As_int(obj4);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 arg6 = (double)SWIG_As_double(obj5);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 arg7 = (double)SWIG_As_double(obj6);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 {
11035 PyThreadState* __tstate = wxPyBeginAllowThreads();
11036 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11037
11038 wxPyEndAllowThreads(__tstate);
11039 if (PyErr_Occurred()) SWIG_fail;
11040 }
11041 Py_INCREF(Py_None); resultobj = Py_None;
11042 return resultobj;
11043 fail:
11044 return NULL;
11045 }
11046
11047
11048 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11049 PyObject *resultobj;
11050 wxDC *arg1 = (wxDC *) 0 ;
11051 wxPoint *arg2 = 0 ;
11052 wxSize *arg3 = 0 ;
11053 double arg4 ;
11054 double arg5 ;
11055 wxPoint temp2 ;
11056 wxSize temp3 ;
11057 PyObject * obj0 = 0 ;
11058 PyObject * obj1 = 0 ;
11059 PyObject * obj2 = 0 ;
11060 PyObject * obj3 = 0 ;
11061 PyObject * obj4 = 0 ;
11062 char *kwnames[] = {
11063 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
11064 };
11065
11066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11069 {
11070 arg2 = &temp2;
11071 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11072 }
11073 {
11074 arg3 = &temp3;
11075 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11076 }
11077 arg4 = (double)SWIG_As_double(obj3);
11078 if (PyErr_Occurred()) SWIG_fail;
11079 arg5 = (double)SWIG_As_double(obj4);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11084
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 Py_INCREF(Py_None); resultobj = Py_None;
11089 return resultobj;
11090 fail:
11091 return NULL;
11092 }
11093
11094
11095 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj;
11097 wxDC *arg1 = (wxDC *) 0 ;
11098 int arg2 ;
11099 int arg3 ;
11100 PyObject * obj0 = 0 ;
11101 PyObject * obj1 = 0 ;
11102 PyObject * obj2 = 0 ;
11103 char *kwnames[] = {
11104 (char *) "self",(char *) "x",(char *) "y", NULL
11105 };
11106
11107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11110 arg2 = (int)SWIG_As_int(obj1);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 arg3 = (int)SWIG_As_int(obj2);
11113 if (PyErr_Occurred()) SWIG_fail;
11114 {
11115 PyThreadState* __tstate = wxPyBeginAllowThreads();
11116 (arg1)->DrawPoint(arg2,arg3);
11117
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 Py_INCREF(Py_None); resultobj = Py_None;
11122 return resultobj;
11123 fail:
11124 return NULL;
11125 }
11126
11127
11128 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11129 PyObject *resultobj;
11130 wxDC *arg1 = (wxDC *) 0 ;
11131 wxPoint *arg2 = 0 ;
11132 wxPoint temp2 ;
11133 PyObject * obj0 = 0 ;
11134 PyObject * obj1 = 0 ;
11135 char *kwnames[] = {
11136 (char *) "self",(char *) "pt", NULL
11137 };
11138
11139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11142 {
11143 arg2 = &temp2;
11144 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11145 }
11146 {
11147 PyThreadState* __tstate = wxPyBeginAllowThreads();
11148 (arg1)->DrawPoint((wxPoint const &)*arg2);
11149
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 }
11153 Py_INCREF(Py_None); resultobj = Py_None;
11154 return resultobj;
11155 fail:
11156 return NULL;
11157 }
11158
11159
11160 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11161 PyObject *resultobj;
11162 wxDC *arg1 = (wxDC *) 0 ;
11163 int arg2 ;
11164 int arg3 ;
11165 int arg4 ;
11166 int arg5 ;
11167 PyObject * obj0 = 0 ;
11168 PyObject * obj1 = 0 ;
11169 PyObject * obj2 = 0 ;
11170 PyObject * obj3 = 0 ;
11171 PyObject * obj4 = 0 ;
11172 char *kwnames[] = {
11173 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11174 };
11175
11176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11179 arg2 = (int)SWIG_As_int(obj1);
11180 if (PyErr_Occurred()) SWIG_fail;
11181 arg3 = (int)SWIG_As_int(obj2);
11182 if (PyErr_Occurred()) SWIG_fail;
11183 arg4 = (int)SWIG_As_int(obj3);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 arg5 = (int)SWIG_As_int(obj4);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 {
11188 PyThreadState* __tstate = wxPyBeginAllowThreads();
11189 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11190
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 Py_INCREF(Py_None); resultobj = Py_None;
11195 return resultobj;
11196 fail:
11197 return NULL;
11198 }
11199
11200
11201 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11202 PyObject *resultobj;
11203 wxDC *arg1 = (wxDC *) 0 ;
11204 wxRect *arg2 = 0 ;
11205 wxRect temp2 ;
11206 PyObject * obj0 = 0 ;
11207 PyObject * obj1 = 0 ;
11208 char *kwnames[] = {
11209 (char *) "self",(char *) "rect", NULL
11210 };
11211
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11215 {
11216 arg2 = &temp2;
11217 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11218 }
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 (arg1)->DrawRectangle((wxRect const &)*arg2);
11222
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 Py_INCREF(Py_None); resultobj = Py_None;
11227 return resultobj;
11228 fail:
11229 return NULL;
11230 }
11231
11232
11233 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11234 PyObject *resultobj;
11235 wxDC *arg1 = (wxDC *) 0 ;
11236 wxPoint *arg2 = 0 ;
11237 wxSize *arg3 = 0 ;
11238 wxPoint temp2 ;
11239 wxSize temp3 ;
11240 PyObject * obj0 = 0 ;
11241 PyObject * obj1 = 0 ;
11242 PyObject * obj2 = 0 ;
11243 char *kwnames[] = {
11244 (char *) "self",(char *) "pt",(char *) "sz", NULL
11245 };
11246
11247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11250 {
11251 arg2 = &temp2;
11252 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11253 }
11254 {
11255 arg3 = &temp3;
11256 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11257 }
11258 {
11259 PyThreadState* __tstate = wxPyBeginAllowThreads();
11260 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11261
11262 wxPyEndAllowThreads(__tstate);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 }
11265 Py_INCREF(Py_None); resultobj = Py_None;
11266 return resultobj;
11267 fail:
11268 return NULL;
11269 }
11270
11271
11272 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11273 PyObject *resultobj;
11274 wxDC *arg1 = (wxDC *) 0 ;
11275 int arg2 ;
11276 int arg3 ;
11277 int arg4 ;
11278 int arg5 ;
11279 double arg6 ;
11280 PyObject * obj0 = 0 ;
11281 PyObject * obj1 = 0 ;
11282 PyObject * obj2 = 0 ;
11283 PyObject * obj3 = 0 ;
11284 PyObject * obj4 = 0 ;
11285 PyObject * obj5 = 0 ;
11286 char *kwnames[] = {
11287 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11288 };
11289
11290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11293 arg2 = (int)SWIG_As_int(obj1);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 arg3 = (int)SWIG_As_int(obj2);
11296 if (PyErr_Occurred()) SWIG_fail;
11297 arg4 = (int)SWIG_As_int(obj3);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 arg5 = (int)SWIG_As_int(obj4);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 arg6 = (double)SWIG_As_double(obj5);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11306
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 Py_INCREF(Py_None); resultobj = Py_None;
11311 return resultobj;
11312 fail:
11313 return NULL;
11314 }
11315
11316
11317 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj;
11319 wxDC *arg1 = (wxDC *) 0 ;
11320 wxRect *arg2 = 0 ;
11321 double arg3 ;
11322 wxRect temp2 ;
11323 PyObject * obj0 = 0 ;
11324 PyObject * obj1 = 0 ;
11325 PyObject * obj2 = 0 ;
11326 char *kwnames[] = {
11327 (char *) "self",(char *) "r",(char *) "radius", NULL
11328 };
11329
11330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11333 {
11334 arg2 = &temp2;
11335 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11336 }
11337 arg3 = (double)SWIG_As_double(obj2);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 {
11340 PyThreadState* __tstate = wxPyBeginAllowThreads();
11341 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11342
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 Py_INCREF(Py_None); resultobj = Py_None;
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11354 PyObject *resultobj;
11355 wxDC *arg1 = (wxDC *) 0 ;
11356 wxPoint *arg2 = 0 ;
11357 wxSize *arg3 = 0 ;
11358 double arg4 ;
11359 wxPoint temp2 ;
11360 wxSize temp3 ;
11361 PyObject * obj0 = 0 ;
11362 PyObject * obj1 = 0 ;
11363 PyObject * obj2 = 0 ;
11364 PyObject * obj3 = 0 ;
11365 char *kwnames[] = {
11366 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11367 };
11368
11369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11372 {
11373 arg2 = &temp2;
11374 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11375 }
11376 {
11377 arg3 = &temp3;
11378 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11379 }
11380 arg4 = (double)SWIG_As_double(obj3);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 {
11383 PyThreadState* __tstate = wxPyBeginAllowThreads();
11384 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11385
11386 wxPyEndAllowThreads(__tstate);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 }
11389 Py_INCREF(Py_None); resultobj = Py_None;
11390 return resultobj;
11391 fail:
11392 return NULL;
11393 }
11394
11395
11396 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
11397 PyObject *resultobj;
11398 wxDC *arg1 = (wxDC *) 0 ;
11399 int arg2 ;
11400 int arg3 ;
11401 int arg4 ;
11402 PyObject * obj0 = 0 ;
11403 PyObject * obj1 = 0 ;
11404 PyObject * obj2 = 0 ;
11405 PyObject * obj3 = 0 ;
11406 char *kwnames[] = {
11407 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11408 };
11409
11410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11413 arg2 = (int)SWIG_As_int(obj1);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 arg3 = (int)SWIG_As_int(obj2);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 arg4 = (int)SWIG_As_int(obj3);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 (arg1)->DrawCircle(arg2,arg3,arg4);
11422
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 Py_INCREF(Py_None); resultobj = Py_None;
11427 return resultobj;
11428 fail:
11429 return NULL;
11430 }
11431
11432
11433 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj;
11435 wxDC *arg1 = (wxDC *) 0 ;
11436 wxPoint *arg2 = 0 ;
11437 int arg3 ;
11438 wxPoint temp2 ;
11439 PyObject * obj0 = 0 ;
11440 PyObject * obj1 = 0 ;
11441 PyObject * obj2 = 0 ;
11442 char *kwnames[] = {
11443 (char *) "self",(char *) "pt",(char *) "radius", NULL
11444 };
11445
11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11449 {
11450 arg2 = &temp2;
11451 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11452 }
11453 arg3 = (int)SWIG_As_int(obj2);
11454 if (PyErr_Occurred()) SWIG_fail;
11455 {
11456 PyThreadState* __tstate = wxPyBeginAllowThreads();
11457 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11458
11459 wxPyEndAllowThreads(__tstate);
11460 if (PyErr_Occurred()) SWIG_fail;
11461 }
11462 Py_INCREF(Py_None); resultobj = Py_None;
11463 return resultobj;
11464 fail:
11465 return NULL;
11466 }
11467
11468
11469 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
11470 PyObject *resultobj;
11471 wxDC *arg1 = (wxDC *) 0 ;
11472 int arg2 ;
11473 int arg3 ;
11474 int arg4 ;
11475 int arg5 ;
11476 PyObject * obj0 = 0 ;
11477 PyObject * obj1 = 0 ;
11478 PyObject * obj2 = 0 ;
11479 PyObject * obj3 = 0 ;
11480 PyObject * obj4 = 0 ;
11481 char *kwnames[] = {
11482 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11483 };
11484
11485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11488 arg2 = (int)SWIG_As_int(obj1);
11489 if (PyErr_Occurred()) SWIG_fail;
11490 arg3 = (int)SWIG_As_int(obj2);
11491 if (PyErr_Occurred()) SWIG_fail;
11492 arg4 = (int)SWIG_As_int(obj3);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 arg5 = (int)SWIG_As_int(obj4);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 {
11497 PyThreadState* __tstate = wxPyBeginAllowThreads();
11498 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11499
11500 wxPyEndAllowThreads(__tstate);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 }
11503 Py_INCREF(Py_None); resultobj = Py_None;
11504 return resultobj;
11505 fail:
11506 return NULL;
11507 }
11508
11509
11510 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
11511 PyObject *resultobj;
11512 wxDC *arg1 = (wxDC *) 0 ;
11513 wxRect *arg2 = 0 ;
11514 wxRect temp2 ;
11515 PyObject * obj0 = 0 ;
11516 PyObject * obj1 = 0 ;
11517 char *kwnames[] = {
11518 (char *) "self",(char *) "rect", NULL
11519 };
11520
11521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11524 {
11525 arg2 = &temp2;
11526 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11527 }
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 (arg1)->DrawEllipse((wxRect const &)*arg2);
11531
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 Py_INCREF(Py_None); resultobj = Py_None;
11536 return resultobj;
11537 fail:
11538 return NULL;
11539 }
11540
11541
11542 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj;
11544 wxDC *arg1 = (wxDC *) 0 ;
11545 wxPoint *arg2 = 0 ;
11546 wxSize *arg3 = 0 ;
11547 wxPoint temp2 ;
11548 wxSize temp3 ;
11549 PyObject * obj0 = 0 ;
11550 PyObject * obj1 = 0 ;
11551 PyObject * obj2 = 0 ;
11552 char *kwnames[] = {
11553 (char *) "self",(char *) "pt",(char *) "sz", NULL
11554 };
11555
11556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11559 {
11560 arg2 = &temp2;
11561 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11562 }
11563 {
11564 arg3 = &temp3;
11565 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11566 }
11567 {
11568 PyThreadState* __tstate = wxPyBeginAllowThreads();
11569 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11570
11571 wxPyEndAllowThreads(__tstate);
11572 if (PyErr_Occurred()) SWIG_fail;
11573 }
11574 Py_INCREF(Py_None); resultobj = Py_None;
11575 return resultobj;
11576 fail:
11577 return NULL;
11578 }
11579
11580
11581 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11582 PyObject *resultobj;
11583 wxDC *arg1 = (wxDC *) 0 ;
11584 wxIcon *arg2 = 0 ;
11585 int arg3 ;
11586 int arg4 ;
11587 PyObject * obj0 = 0 ;
11588 PyObject * obj1 = 0 ;
11589 PyObject * obj2 = 0 ;
11590 PyObject * obj3 = 0 ;
11591 char *kwnames[] = {
11592 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11593 };
11594
11595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11599 SWIG_POINTER_EXCEPTION | 0)) == -1)
11600 SWIG_fail;
11601 if (arg2 == NULL) {
11602 PyErr_SetString(PyExc_TypeError,"null reference");
11603 SWIG_fail;
11604 }
11605 arg3 = (int)SWIG_As_int(obj2);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 arg4 = (int)SWIG_As_int(obj3);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 {
11610 PyThreadState* __tstate = wxPyBeginAllowThreads();
11611 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11612
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 Py_INCREF(Py_None); resultobj = Py_None;
11617 return resultobj;
11618 fail:
11619 return NULL;
11620 }
11621
11622
11623 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11624 PyObject *resultobj;
11625 wxDC *arg1 = (wxDC *) 0 ;
11626 wxIcon *arg2 = 0 ;
11627 wxPoint *arg3 = 0 ;
11628 wxPoint temp3 ;
11629 PyObject * obj0 = 0 ;
11630 PyObject * obj1 = 0 ;
11631 PyObject * obj2 = 0 ;
11632 char *kwnames[] = {
11633 (char *) "self",(char *) "icon",(char *) "pt", NULL
11634 };
11635
11636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11640 SWIG_POINTER_EXCEPTION | 0)) == -1)
11641 SWIG_fail;
11642 if (arg2 == NULL) {
11643 PyErr_SetString(PyExc_TypeError,"null reference");
11644 SWIG_fail;
11645 }
11646 {
11647 arg3 = &temp3;
11648 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11649 }
11650 {
11651 PyThreadState* __tstate = wxPyBeginAllowThreads();
11652 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11653
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 Py_INCREF(Py_None); resultobj = Py_None;
11658 return resultobj;
11659 fail:
11660 return NULL;
11661 }
11662
11663
11664 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11665 PyObject *resultobj;
11666 wxDC *arg1 = (wxDC *) 0 ;
11667 wxBitmap *arg2 = 0 ;
11668 int arg3 ;
11669 int arg4 ;
11670 bool arg5 = (bool) False ;
11671 PyObject * obj0 = 0 ;
11672 PyObject * obj1 = 0 ;
11673 PyObject * obj2 = 0 ;
11674 PyObject * obj3 = 0 ;
11675 PyObject * obj4 = 0 ;
11676 char *kwnames[] = {
11677 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11678 };
11679
11680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11683 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11684 SWIG_POINTER_EXCEPTION | 0)) == -1)
11685 SWIG_fail;
11686 if (arg2 == NULL) {
11687 PyErr_SetString(PyExc_TypeError,"null reference");
11688 SWIG_fail;
11689 }
11690 arg3 = (int)SWIG_As_int(obj2);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 arg4 = (int)SWIG_As_int(obj3);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 if (obj4) {
11695 arg5 = (bool)SWIG_As_bool(obj4);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11701
11702 wxPyEndAllowThreads(__tstate);
11703 if (PyErr_Occurred()) SWIG_fail;
11704 }
11705 Py_INCREF(Py_None); resultobj = Py_None;
11706 return resultobj;
11707 fail:
11708 return NULL;
11709 }
11710
11711
11712 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11713 PyObject *resultobj;
11714 wxDC *arg1 = (wxDC *) 0 ;
11715 wxBitmap *arg2 = 0 ;
11716 wxPoint *arg3 = 0 ;
11717 bool arg4 = (bool) False ;
11718 wxPoint temp3 ;
11719 PyObject * obj0 = 0 ;
11720 PyObject * obj1 = 0 ;
11721 PyObject * obj2 = 0 ;
11722 PyObject * obj3 = 0 ;
11723 char *kwnames[] = {
11724 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11725 };
11726
11727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11731 SWIG_POINTER_EXCEPTION | 0)) == -1)
11732 SWIG_fail;
11733 if (arg2 == NULL) {
11734 PyErr_SetString(PyExc_TypeError,"null reference");
11735 SWIG_fail;
11736 }
11737 {
11738 arg3 = &temp3;
11739 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11740 }
11741 if (obj3) {
11742 arg4 = (bool)SWIG_As_bool(obj3);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 {
11746 PyThreadState* __tstate = wxPyBeginAllowThreads();
11747 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11748
11749 wxPyEndAllowThreads(__tstate);
11750 if (PyErr_Occurred()) SWIG_fail;
11751 }
11752 Py_INCREF(Py_None); resultobj = Py_None;
11753 return resultobj;
11754 fail:
11755 return NULL;
11756 }
11757
11758
11759 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
11760 PyObject *resultobj;
11761 wxDC *arg1 = (wxDC *) 0 ;
11762 wxString *arg2 = 0 ;
11763 int arg3 ;
11764 int arg4 ;
11765 bool temp2 = False ;
11766 PyObject * obj0 = 0 ;
11767 PyObject * obj1 = 0 ;
11768 PyObject * obj2 = 0 ;
11769 PyObject * obj3 = 0 ;
11770 char *kwnames[] = {
11771 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11772 };
11773
11774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11777 {
11778 arg2 = wxString_in_helper(obj1);
11779 if (arg2 == NULL) SWIG_fail;
11780 temp2 = True;
11781 }
11782 arg3 = (int)SWIG_As_int(obj2);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 arg4 = (int)SWIG_As_int(obj3);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 {
11787 PyThreadState* __tstate = wxPyBeginAllowThreads();
11788 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11789
11790 wxPyEndAllowThreads(__tstate);
11791 if (PyErr_Occurred()) SWIG_fail;
11792 }
11793 Py_INCREF(Py_None); resultobj = Py_None;
11794 {
11795 if (temp2)
11796 delete arg2;
11797 }
11798 return resultobj;
11799 fail:
11800 {
11801 if (temp2)
11802 delete arg2;
11803 }
11804 return NULL;
11805 }
11806
11807
11808 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11809 PyObject *resultobj;
11810 wxDC *arg1 = (wxDC *) 0 ;
11811 wxString *arg2 = 0 ;
11812 wxPoint *arg3 = 0 ;
11813 bool temp2 = False ;
11814 wxPoint temp3 ;
11815 PyObject * obj0 = 0 ;
11816 PyObject * obj1 = 0 ;
11817 PyObject * obj2 = 0 ;
11818 char *kwnames[] = {
11819 (char *) "self",(char *) "text",(char *) "pt", NULL
11820 };
11821
11822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11825 {
11826 arg2 = wxString_in_helper(obj1);
11827 if (arg2 == NULL) SWIG_fail;
11828 temp2 = True;
11829 }
11830 {
11831 arg3 = &temp3;
11832 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11833 }
11834 {
11835 PyThreadState* __tstate = wxPyBeginAllowThreads();
11836 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11837
11838 wxPyEndAllowThreads(__tstate);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 }
11841 Py_INCREF(Py_None); resultobj = Py_None;
11842 {
11843 if (temp2)
11844 delete arg2;
11845 }
11846 return resultobj;
11847 fail:
11848 {
11849 if (temp2)
11850 delete arg2;
11851 }
11852 return NULL;
11853 }
11854
11855
11856 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
11857 PyObject *resultobj;
11858 wxDC *arg1 = (wxDC *) 0 ;
11859 wxString *arg2 = 0 ;
11860 int arg3 ;
11861 int arg4 ;
11862 double arg5 ;
11863 bool temp2 = False ;
11864 PyObject * obj0 = 0 ;
11865 PyObject * obj1 = 0 ;
11866 PyObject * obj2 = 0 ;
11867 PyObject * obj3 = 0 ;
11868 PyObject * obj4 = 0 ;
11869 char *kwnames[] = {
11870 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11871 };
11872
11873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11876 {
11877 arg2 = wxString_in_helper(obj1);
11878 if (arg2 == NULL) SWIG_fail;
11879 temp2 = True;
11880 }
11881 arg3 = (int)SWIG_As_int(obj2);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 arg4 = (int)SWIG_As_int(obj3);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 arg5 = (double)SWIG_As_double(obj4);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11890
11891 wxPyEndAllowThreads(__tstate);
11892 if (PyErr_Occurred()) SWIG_fail;
11893 }
11894 Py_INCREF(Py_None); resultobj = Py_None;
11895 {
11896 if (temp2)
11897 delete arg2;
11898 }
11899 return resultobj;
11900 fail:
11901 {
11902 if (temp2)
11903 delete arg2;
11904 }
11905 return NULL;
11906 }
11907
11908
11909 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11910 PyObject *resultobj;
11911 wxDC *arg1 = (wxDC *) 0 ;
11912 wxString *arg2 = 0 ;
11913 wxPoint *arg3 = 0 ;
11914 double arg4 ;
11915 bool temp2 = False ;
11916 wxPoint temp3 ;
11917 PyObject * obj0 = 0 ;
11918 PyObject * obj1 = 0 ;
11919 PyObject * obj2 = 0 ;
11920 PyObject * obj3 = 0 ;
11921 char *kwnames[] = {
11922 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11923 };
11924
11925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11928 {
11929 arg2 = wxString_in_helper(obj1);
11930 if (arg2 == NULL) SWIG_fail;
11931 temp2 = True;
11932 }
11933 {
11934 arg3 = &temp3;
11935 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11936 }
11937 arg4 = (double)SWIG_As_double(obj3);
11938 if (PyErr_Occurred()) SWIG_fail;
11939 {
11940 PyThreadState* __tstate = wxPyBeginAllowThreads();
11941 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11942
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 Py_INCREF(Py_None); resultobj = Py_None;
11947 {
11948 if (temp2)
11949 delete arg2;
11950 }
11951 return resultobj;
11952 fail:
11953 {
11954 if (temp2)
11955 delete arg2;
11956 }
11957 return NULL;
11958 }
11959
11960
11961 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
11962 PyObject *resultobj;
11963 wxDC *arg1 = (wxDC *) 0 ;
11964 int arg2 ;
11965 int arg3 ;
11966 int arg4 ;
11967 int arg5 ;
11968 wxDC *arg6 = (wxDC *) 0 ;
11969 int arg7 ;
11970 int arg8 ;
11971 int arg9 = (int) wxCOPY ;
11972 bool arg10 = (bool) False ;
11973 int arg11 = (int) -1 ;
11974 int arg12 = (int) -1 ;
11975 bool result;
11976 PyObject * obj0 = 0 ;
11977 PyObject * obj1 = 0 ;
11978 PyObject * obj2 = 0 ;
11979 PyObject * obj3 = 0 ;
11980 PyObject * obj4 = 0 ;
11981 PyObject * obj5 = 0 ;
11982 PyObject * obj6 = 0 ;
11983 PyObject * obj7 = 0 ;
11984 PyObject * obj8 = 0 ;
11985 PyObject * obj9 = 0 ;
11986 PyObject * obj10 = 0 ;
11987 PyObject * obj11 = 0 ;
11988 char *kwnames[] = {
11989 (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
11990 };
11991
11992 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;
11993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11995 arg2 = (int)SWIG_As_int(obj1);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 arg3 = (int)SWIG_As_int(obj2);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 arg4 = (int)SWIG_As_int(obj3);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 arg5 = (int)SWIG_As_int(obj4);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12005 arg7 = (int)SWIG_As_int(obj6);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 arg8 = (int)SWIG_As_int(obj7);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 if (obj8) {
12010 arg9 = (int)SWIG_As_int(obj8);
12011 if (PyErr_Occurred()) SWIG_fail;
12012 }
12013 if (obj9) {
12014 arg10 = (bool)SWIG_As_bool(obj9);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 if (obj10) {
12018 arg11 = (int)SWIG_As_int(obj10);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 if (obj11) {
12022 arg12 = (int)SWIG_As_int(obj11);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12028
12029 wxPyEndAllowThreads(__tstate);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 }
12032 {
12033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12034 }
12035 return resultobj;
12036 fail:
12037 return NULL;
12038 }
12039
12040
12041 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12042 PyObject *resultobj;
12043 wxDC *arg1 = (wxDC *) 0 ;
12044 wxPoint *arg2 = 0 ;
12045 wxSize *arg3 = 0 ;
12046 wxDC *arg4 = (wxDC *) 0 ;
12047 wxPoint *arg5 = 0 ;
12048 int arg6 = (int) wxCOPY ;
12049 bool arg7 = (bool) False ;
12050 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12051 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12052 bool result;
12053 wxPoint temp2 ;
12054 wxSize temp3 ;
12055 wxPoint temp5 ;
12056 wxPoint temp8 ;
12057 PyObject * obj0 = 0 ;
12058 PyObject * obj1 = 0 ;
12059 PyObject * obj2 = 0 ;
12060 PyObject * obj3 = 0 ;
12061 PyObject * obj4 = 0 ;
12062 PyObject * obj5 = 0 ;
12063 PyObject * obj6 = 0 ;
12064 PyObject * obj7 = 0 ;
12065 char *kwnames[] = {
12066 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12067 };
12068
12069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12072 {
12073 arg2 = &temp2;
12074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12075 }
12076 {
12077 arg3 = &temp3;
12078 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12079 }
12080 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12082 {
12083 arg5 = &temp5;
12084 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12085 }
12086 if (obj5) {
12087 arg6 = (int)SWIG_As_int(obj5);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 if (obj6) {
12091 arg7 = (bool)SWIG_As_bool(obj6);
12092 if (PyErr_Occurred()) SWIG_fail;
12093 }
12094 if (obj7) {
12095 {
12096 arg8 = &temp8;
12097 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12098 }
12099 }
12100 {
12101 PyThreadState* __tstate = wxPyBeginAllowThreads();
12102 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12103
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 {
12108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12109 }
12110 return resultobj;
12111 fail:
12112 return NULL;
12113 }
12114
12115
12116 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12117 PyObject *resultobj;
12118 wxDC *arg1 = (wxDC *) 0 ;
12119 int arg2 ;
12120 int arg3 ;
12121 int arg4 ;
12122 int arg5 ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj1 = 0 ;
12125 PyObject * obj2 = 0 ;
12126 PyObject * obj3 = 0 ;
12127 PyObject * obj4 = 0 ;
12128 char *kwnames[] = {
12129 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12130 };
12131
12132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12135 arg2 = (int)SWIG_As_int(obj1);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 arg3 = (int)SWIG_As_int(obj2);
12138 if (PyErr_Occurred()) SWIG_fail;
12139 arg4 = (int)SWIG_As_int(obj3);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 arg5 = (int)SWIG_As_int(obj4);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12146
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 Py_INCREF(Py_None); resultobj = Py_None;
12151 return resultobj;
12152 fail:
12153 return NULL;
12154 }
12155
12156
12157 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj;
12159 wxDC *arg1 = (wxDC *) 0 ;
12160 wxPoint *arg2 = 0 ;
12161 wxSize *arg3 = 0 ;
12162 wxPoint temp2 ;
12163 wxSize temp3 ;
12164 PyObject * obj0 = 0 ;
12165 PyObject * obj1 = 0 ;
12166 PyObject * obj2 = 0 ;
12167 char *kwnames[] = {
12168 (char *) "self",(char *) "pt",(char *) "sz", NULL
12169 };
12170
12171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12174 {
12175 arg2 = &temp2;
12176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12177 }
12178 {
12179 arg3 = &temp3;
12180 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12181 }
12182 {
12183 PyThreadState* __tstate = wxPyBeginAllowThreads();
12184 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12185
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 Py_INCREF(Py_None); resultobj = Py_None;
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12197 PyObject *resultobj;
12198 wxDC *arg1 = (wxDC *) 0 ;
12199 wxRegion *arg2 = 0 ;
12200 PyObject * obj0 = 0 ;
12201 PyObject * obj1 = 0 ;
12202 char *kwnames[] = {
12203 (char *) "self",(char *) "region", NULL
12204 };
12205
12206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12210 SWIG_POINTER_EXCEPTION | 0)) == -1)
12211 SWIG_fail;
12212 if (arg2 == NULL) {
12213 PyErr_SetString(PyExc_TypeError,"null reference");
12214 SWIG_fail;
12215 }
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12219
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 Py_INCREF(Py_None); resultobj = Py_None;
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj;
12232 wxDC *arg1 = (wxDC *) 0 ;
12233 wxRect *arg2 = 0 ;
12234 wxRect temp2 ;
12235 PyObject * obj0 = 0 ;
12236 PyObject * obj1 = 0 ;
12237 char *kwnames[] = {
12238 (char *) "self",(char *) "rect", NULL
12239 };
12240
12241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12244 {
12245 arg2 = &temp2;
12246 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12247 }
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12251
12252 wxPyEndAllowThreads(__tstate);
12253 if (PyErr_Occurred()) SWIG_fail;
12254 }
12255 Py_INCREF(Py_None); resultobj = Py_None;
12256 return resultobj;
12257 fail:
12258 return NULL;
12259 }
12260
12261
12262 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
12263 PyObject *resultobj;
12264 wxDC *arg1 = (wxDC *) 0 ;
12265 int arg2 ;
12266 wxPoint *arg3 = (wxPoint *) 0 ;
12267 int arg4 = (int) 0 ;
12268 int arg5 = (int) 0 ;
12269 PyObject * obj0 = 0 ;
12270 PyObject * obj1 = 0 ;
12271 PyObject * obj2 = 0 ;
12272 PyObject * obj3 = 0 ;
12273 char *kwnames[] = {
12274 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12275 };
12276
12277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12280 {
12281 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12282 if (arg3 == NULL) SWIG_fail;
12283 }
12284 if (obj2) {
12285 arg4 = (int)SWIG_As_int(obj2);
12286 if (PyErr_Occurred()) SWIG_fail;
12287 }
12288 if (obj3) {
12289 arg5 = (int)SWIG_As_int(obj3);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 }
12292 {
12293 PyThreadState* __tstate = wxPyBeginAllowThreads();
12294 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12295
12296 wxPyEndAllowThreads(__tstate);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 Py_INCREF(Py_None); resultobj = Py_None;
12300 {
12301 if (arg3) delete [] arg3;
12302 }
12303 return resultobj;
12304 fail:
12305 {
12306 if (arg3) delete [] arg3;
12307 }
12308 return NULL;
12309 }
12310
12311
12312 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
12313 PyObject *resultobj;
12314 wxDC *arg1 = (wxDC *) 0 ;
12315 int arg2 ;
12316 wxPoint *arg3 = (wxPoint *) 0 ;
12317 int arg4 = (int) 0 ;
12318 int arg5 = (int) 0 ;
12319 int arg6 = (int) wxODDEVEN_RULE ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 PyObject * obj2 = 0 ;
12323 PyObject * obj3 = 0 ;
12324 PyObject * obj4 = 0 ;
12325 char *kwnames[] = {
12326 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12327 };
12328
12329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12332 {
12333 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12334 if (arg3 == NULL) SWIG_fail;
12335 }
12336 if (obj2) {
12337 arg4 = (int)SWIG_As_int(obj2);
12338 if (PyErr_Occurred()) SWIG_fail;
12339 }
12340 if (obj3) {
12341 arg5 = (int)SWIG_As_int(obj3);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 }
12344 if (obj4) {
12345 arg6 = (int)SWIG_As_int(obj4);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12351
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 Py_INCREF(Py_None); resultobj = Py_None;
12356 {
12357 if (arg3) delete [] arg3;
12358 }
12359 return resultobj;
12360 fail:
12361 {
12362 if (arg3) delete [] arg3;
12363 }
12364 return NULL;
12365 }
12366
12367
12368 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12369 PyObject *resultobj;
12370 wxDC *arg1 = (wxDC *) 0 ;
12371 wxString *arg2 = 0 ;
12372 wxRect *arg3 = 0 ;
12373 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12374 int arg5 = (int) -1 ;
12375 bool temp2 = False ;
12376 wxRect temp3 ;
12377 PyObject * obj0 = 0 ;
12378 PyObject * obj1 = 0 ;
12379 PyObject * obj2 = 0 ;
12380 PyObject * obj3 = 0 ;
12381 PyObject * obj4 = 0 ;
12382 char *kwnames[] = {
12383 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12384 };
12385
12386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12389 {
12390 arg2 = wxString_in_helper(obj1);
12391 if (arg2 == NULL) SWIG_fail;
12392 temp2 = True;
12393 }
12394 {
12395 arg3 = &temp3;
12396 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12397 }
12398 if (obj3) {
12399 arg4 = (int)SWIG_As_int(obj3);
12400 if (PyErr_Occurred()) SWIG_fail;
12401 }
12402 if (obj4) {
12403 arg5 = (int)SWIG_As_int(obj4);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 {
12407 PyThreadState* __tstate = wxPyBeginAllowThreads();
12408 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12409
12410 wxPyEndAllowThreads(__tstate);
12411 if (PyErr_Occurred()) SWIG_fail;
12412 }
12413 Py_INCREF(Py_None); resultobj = Py_None;
12414 {
12415 if (temp2)
12416 delete arg2;
12417 }
12418 return resultobj;
12419 fail:
12420 {
12421 if (temp2)
12422 delete arg2;
12423 }
12424 return NULL;
12425 }
12426
12427
12428 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12429 PyObject *resultobj;
12430 wxDC *arg1 = (wxDC *) 0 ;
12431 wxString *arg2 = 0 ;
12432 wxBitmap *arg3 = 0 ;
12433 wxRect *arg4 = 0 ;
12434 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12435 int arg6 = (int) -1 ;
12436 wxRect result;
12437 bool temp2 = False ;
12438 wxRect temp4 ;
12439 PyObject * obj0 = 0 ;
12440 PyObject * obj1 = 0 ;
12441 PyObject * obj2 = 0 ;
12442 PyObject * obj3 = 0 ;
12443 PyObject * obj4 = 0 ;
12444 PyObject * obj5 = 0 ;
12445 char *kwnames[] = {
12446 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12447 };
12448
12449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12452 {
12453 arg2 = wxString_in_helper(obj1);
12454 if (arg2 == NULL) SWIG_fail;
12455 temp2 = True;
12456 }
12457 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12458 SWIG_POINTER_EXCEPTION | 0)) == -1)
12459 SWIG_fail;
12460 if (arg3 == NULL) {
12461 PyErr_SetString(PyExc_TypeError,"null reference");
12462 SWIG_fail;
12463 }
12464 {
12465 arg4 = &temp4;
12466 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12467 }
12468 if (obj4) {
12469 arg5 = (int)SWIG_As_int(obj4);
12470 if (PyErr_Occurred()) SWIG_fail;
12471 }
12472 if (obj5) {
12473 arg6 = (int)SWIG_As_int(obj5);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
12476 {
12477 PyThreadState* __tstate = wxPyBeginAllowThreads();
12478 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12479
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 {
12484 wxRect * resultptr;
12485 resultptr = new wxRect((wxRect &) result);
12486 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12487 }
12488 {
12489 if (temp2)
12490 delete arg2;
12491 }
12492 return resultobj;
12493 fail:
12494 {
12495 if (temp2)
12496 delete arg2;
12497 }
12498 return NULL;
12499 }
12500
12501
12502 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
12503 PyObject *resultobj;
12504 wxDC *arg1 = (wxDC *) 0 ;
12505 int arg2 ;
12506 wxPoint *arg3 = (wxPoint *) 0 ;
12507 PyObject * obj0 = 0 ;
12508 PyObject * obj1 = 0 ;
12509 char *kwnames[] = {
12510 (char *) "self",(char *) "points", NULL
12511 };
12512
12513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12516 {
12517 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12518 if (arg3 == NULL) SWIG_fail;
12519 }
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 (arg1)->DrawSpline(arg2,arg3);
12523
12524 wxPyEndAllowThreads(__tstate);
12525 if (PyErr_Occurred()) SWIG_fail;
12526 }
12527 Py_INCREF(Py_None); resultobj = Py_None;
12528 {
12529 if (arg3) delete [] arg3;
12530 }
12531 return resultobj;
12532 fail:
12533 {
12534 if (arg3) delete [] arg3;
12535 }
12536 return NULL;
12537 }
12538
12539
12540 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
12541 PyObject *resultobj;
12542 wxDC *arg1 = (wxDC *) 0 ;
12543 PyObject * obj0 = 0 ;
12544 char *kwnames[] = {
12545 (char *) "self", NULL
12546 };
12547
12548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 (arg1)->Clear();
12554
12555 wxPyEndAllowThreads(__tstate);
12556 if (PyErr_Occurred()) SWIG_fail;
12557 }
12558 Py_INCREF(Py_None); resultobj = Py_None;
12559 return resultobj;
12560 fail:
12561 return NULL;
12562 }
12563
12564
12565 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12566 PyObject *resultobj;
12567 wxDC *arg1 = (wxDC *) 0 ;
12568 wxString *arg2 = 0 ;
12569 bool result;
12570 bool temp2 = False ;
12571 PyObject * obj0 = 0 ;
12572 PyObject * obj1 = 0 ;
12573 char *kwnames[] = {
12574 (char *) "self",(char *) "message", NULL
12575 };
12576
12577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12580 {
12581 arg2 = wxString_in_helper(obj1);
12582 if (arg2 == NULL) SWIG_fail;
12583 temp2 = True;
12584 }
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
12587 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12588
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 {
12593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12594 }
12595 {
12596 if (temp2)
12597 delete arg2;
12598 }
12599 return resultobj;
12600 fail:
12601 {
12602 if (temp2)
12603 delete arg2;
12604 }
12605 return NULL;
12606 }
12607
12608
12609 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12610 PyObject *resultobj;
12611 wxDC *arg1 = (wxDC *) 0 ;
12612 PyObject * obj0 = 0 ;
12613 char *kwnames[] = {
12614 (char *) "self", NULL
12615 };
12616
12617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 (arg1)->EndDoc();
12623
12624 wxPyEndAllowThreads(__tstate);
12625 if (PyErr_Occurred()) SWIG_fail;
12626 }
12627 Py_INCREF(Py_None); resultobj = Py_None;
12628 return resultobj;
12629 fail:
12630 return NULL;
12631 }
12632
12633
12634 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
12635 PyObject *resultobj;
12636 wxDC *arg1 = (wxDC *) 0 ;
12637 PyObject * obj0 = 0 ;
12638 char *kwnames[] = {
12639 (char *) "self", NULL
12640 };
12641
12642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 (arg1)->StartPage();
12648
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 Py_INCREF(Py_None); resultobj = Py_None;
12653 return resultobj;
12654 fail:
12655 return NULL;
12656 }
12657
12658
12659 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
12660 PyObject *resultobj;
12661 wxDC *arg1 = (wxDC *) 0 ;
12662 PyObject * obj0 = 0 ;
12663 char *kwnames[] = {
12664 (char *) "self", NULL
12665 };
12666
12667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12670 {
12671 PyThreadState* __tstate = wxPyBeginAllowThreads();
12672 (arg1)->EndPage();
12673
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 Py_INCREF(Py_None); resultobj = Py_None;
12678 return resultobj;
12679 fail:
12680 return NULL;
12681 }
12682
12683
12684 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj;
12686 wxDC *arg1 = (wxDC *) 0 ;
12687 wxFont *arg2 = 0 ;
12688 PyObject * obj0 = 0 ;
12689 PyObject * obj1 = 0 ;
12690 char *kwnames[] = {
12691 (char *) "self",(char *) "font", NULL
12692 };
12693
12694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12697 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12698 SWIG_POINTER_EXCEPTION | 0)) == -1)
12699 SWIG_fail;
12700 if (arg2 == NULL) {
12701 PyErr_SetString(PyExc_TypeError,"null reference");
12702 SWIG_fail;
12703 }
12704 {
12705 PyThreadState* __tstate = wxPyBeginAllowThreads();
12706 (arg1)->SetFont((wxFont const &)*arg2);
12707
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 Py_INCREF(Py_None); resultobj = Py_None;
12712 return resultobj;
12713 fail:
12714 return NULL;
12715 }
12716
12717
12718 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj;
12720 wxDC *arg1 = (wxDC *) 0 ;
12721 wxPen *arg2 = 0 ;
12722 PyObject * obj0 = 0 ;
12723 PyObject * obj1 = 0 ;
12724 char *kwnames[] = {
12725 (char *) "self",(char *) "pen", NULL
12726 };
12727
12728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12732 SWIG_POINTER_EXCEPTION | 0)) == -1)
12733 SWIG_fail;
12734 if (arg2 == NULL) {
12735 PyErr_SetString(PyExc_TypeError,"null reference");
12736 SWIG_fail;
12737 }
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 (arg1)->SetPen((wxPen const &)*arg2);
12741
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 Py_INCREF(Py_None); resultobj = Py_None;
12746 return resultobj;
12747 fail:
12748 return NULL;
12749 }
12750
12751
12752 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
12753 PyObject *resultobj;
12754 wxDC *arg1 = (wxDC *) 0 ;
12755 wxBrush *arg2 = 0 ;
12756 PyObject * obj0 = 0 ;
12757 PyObject * obj1 = 0 ;
12758 char *kwnames[] = {
12759 (char *) "self",(char *) "brush", NULL
12760 };
12761
12762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12766 SWIG_POINTER_EXCEPTION | 0)) == -1)
12767 SWIG_fail;
12768 if (arg2 == NULL) {
12769 PyErr_SetString(PyExc_TypeError,"null reference");
12770 SWIG_fail;
12771 }
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 (arg1)->SetBrush((wxBrush const &)*arg2);
12775
12776 wxPyEndAllowThreads(__tstate);
12777 if (PyErr_Occurred()) SWIG_fail;
12778 }
12779 Py_INCREF(Py_None); resultobj = Py_None;
12780 return resultobj;
12781 fail:
12782 return NULL;
12783 }
12784
12785
12786 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
12787 PyObject *resultobj;
12788 wxDC *arg1 = (wxDC *) 0 ;
12789 wxBrush *arg2 = 0 ;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 char *kwnames[] = {
12793 (char *) "self",(char *) "brush", NULL
12794 };
12795
12796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12800 SWIG_POINTER_EXCEPTION | 0)) == -1)
12801 SWIG_fail;
12802 if (arg2 == NULL) {
12803 PyErr_SetString(PyExc_TypeError,"null reference");
12804 SWIG_fail;
12805 }
12806 {
12807 PyThreadState* __tstate = wxPyBeginAllowThreads();
12808 (arg1)->SetBackground((wxBrush const &)*arg2);
12809
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 Py_INCREF(Py_None); resultobj = Py_None;
12814 return resultobj;
12815 fail:
12816 return NULL;
12817 }
12818
12819
12820 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
12821 PyObject *resultobj;
12822 wxDC *arg1 = (wxDC *) 0 ;
12823 int arg2 ;
12824 PyObject * obj0 = 0 ;
12825 PyObject * obj1 = 0 ;
12826 char *kwnames[] = {
12827 (char *) "self",(char *) "mode", NULL
12828 };
12829
12830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12833 arg2 = (int)SWIG_As_int(obj1);
12834 if (PyErr_Occurred()) SWIG_fail;
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 (arg1)->SetBackgroundMode(arg2);
12838
12839 wxPyEndAllowThreads(__tstate);
12840 if (PyErr_Occurred()) SWIG_fail;
12841 }
12842 Py_INCREF(Py_None); resultobj = Py_None;
12843 return resultobj;
12844 fail:
12845 return NULL;
12846 }
12847
12848
12849 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
12850 PyObject *resultobj;
12851 wxDC *arg1 = (wxDC *) 0 ;
12852 wxPalette *arg2 = 0 ;
12853 PyObject * obj0 = 0 ;
12854 PyObject * obj1 = 0 ;
12855 char *kwnames[] = {
12856 (char *) "self",(char *) "palette", NULL
12857 };
12858
12859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12863 SWIG_POINTER_EXCEPTION | 0)) == -1)
12864 SWIG_fail;
12865 if (arg2 == NULL) {
12866 PyErr_SetString(PyExc_TypeError,"null reference");
12867 SWIG_fail;
12868 }
12869 {
12870 PyThreadState* __tstate = wxPyBeginAllowThreads();
12871 (arg1)->SetPalette((wxPalette const &)*arg2);
12872
12873 wxPyEndAllowThreads(__tstate);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 Py_INCREF(Py_None); resultobj = Py_None;
12877 return resultobj;
12878 fail:
12879 return NULL;
12880 }
12881
12882
12883 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj;
12885 wxDC *arg1 = (wxDC *) 0 ;
12886 PyObject * obj0 = 0 ;
12887 char *kwnames[] = {
12888 (char *) "self", NULL
12889 };
12890
12891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12894 {
12895 PyThreadState* __tstate = wxPyBeginAllowThreads();
12896 (arg1)->DestroyClippingRegion();
12897
12898 wxPyEndAllowThreads(__tstate);
12899 if (PyErr_Occurred()) SWIG_fail;
12900 }
12901 Py_INCREF(Py_None); resultobj = Py_None;
12902 return resultobj;
12903 fail:
12904 return NULL;
12905 }
12906
12907
12908 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
12909 PyObject *resultobj;
12910 wxDC *arg1 = (wxDC *) 0 ;
12911 int *arg2 = (int *) 0 ;
12912 int *arg3 = (int *) 0 ;
12913 int *arg4 = (int *) 0 ;
12914 int *arg5 = (int *) 0 ;
12915 int temp2 ;
12916 int res2 = 0 ;
12917 int temp3 ;
12918 int res3 = 0 ;
12919 int temp4 ;
12920 int res4 = 0 ;
12921 int temp5 ;
12922 int res5 = 0 ;
12923 PyObject * obj0 = 0 ;
12924 char *kwnames[] = {
12925 (char *) "self", NULL
12926 };
12927
12928 arg2 = &temp2; res2 = SWIG_NEWOBJ;
12929 arg3 = &temp3; res3 = SWIG_NEWOBJ;
12930 arg4 = &temp4; res4 = SWIG_NEWOBJ;
12931 arg5 = &temp5; res5 = SWIG_NEWOBJ;
12932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12938
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 Py_INCREF(Py_None); resultobj = Py_None;
12943 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
12944 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
12945 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
12946 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
12947 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
12948 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
12949 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
12950 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
12951 return resultobj;
12952 fail:
12953 return NULL;
12954 }
12955
12956
12957 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj;
12959 wxDC *arg1 = (wxDC *) 0 ;
12960 wxRect result;
12961 PyObject * obj0 = 0 ;
12962 char *kwnames[] = {
12963 (char *) "self", NULL
12964 };
12965
12966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 result = wxDC_GetClippingRect(arg1);
12972
12973 wxPyEndAllowThreads(__tstate);
12974 if (PyErr_Occurred()) SWIG_fail;
12975 }
12976 {
12977 wxRect * resultptr;
12978 resultptr = new wxRect((wxRect &) result);
12979 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12980 }
12981 return resultobj;
12982 fail:
12983 return NULL;
12984 }
12985
12986
12987 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj;
12989 wxDC *arg1 = (wxDC *) 0 ;
12990 int result;
12991 PyObject * obj0 = 0 ;
12992 char *kwnames[] = {
12993 (char *) "self", NULL
12994 };
12995
12996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12999 {
13000 PyThreadState* __tstate = wxPyBeginAllowThreads();
13001 result = (int)((wxDC const *)arg1)->GetCharHeight();
13002
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 resultobj = SWIG_From_int((int)result);
13007 return resultobj;
13008 fail:
13009 return NULL;
13010 }
13011
13012
13013 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
13014 PyObject *resultobj;
13015 wxDC *arg1 = (wxDC *) 0 ;
13016 int result;
13017 PyObject * obj0 = 0 ;
13018 char *kwnames[] = {
13019 (char *) "self", NULL
13020 };
13021
13022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13025 {
13026 PyThreadState* __tstate = wxPyBeginAllowThreads();
13027 result = (int)((wxDC const *)arg1)->GetCharWidth();
13028
13029 wxPyEndAllowThreads(__tstate);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 resultobj = SWIG_From_int((int)result);
13033 return resultobj;
13034 fail:
13035 return NULL;
13036 }
13037
13038
13039 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13040 PyObject *resultobj;
13041 wxDC *arg1 = (wxDC *) 0 ;
13042 wxString *arg2 = 0 ;
13043 int *arg3 = (int *) 0 ;
13044 int *arg4 = (int *) 0 ;
13045 bool temp2 = False ;
13046 int temp3 ;
13047 int res3 = 0 ;
13048 int temp4 ;
13049 int res4 = 0 ;
13050 PyObject * obj0 = 0 ;
13051 PyObject * obj1 = 0 ;
13052 char *kwnames[] = {
13053 (char *) "self",(char *) "string", NULL
13054 };
13055
13056 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13057 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13061 {
13062 arg2 = wxString_in_helper(obj1);
13063 if (arg2 == NULL) SWIG_fail;
13064 temp2 = True;
13065 }
13066 {
13067 PyThreadState* __tstate = wxPyBeginAllowThreads();
13068 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13069
13070 wxPyEndAllowThreads(__tstate);
13071 if (PyErr_Occurred()) SWIG_fail;
13072 }
13073 Py_INCREF(Py_None); resultobj = Py_None;
13074 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13075 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13076 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13077 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13078 {
13079 if (temp2)
13080 delete arg2;
13081 }
13082 return resultobj;
13083 fail:
13084 {
13085 if (temp2)
13086 delete arg2;
13087 }
13088 return NULL;
13089 }
13090
13091
13092 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13093 PyObject *resultobj;
13094 wxDC *arg1 = (wxDC *) 0 ;
13095 wxString *arg2 = 0 ;
13096 int *arg3 = (int *) 0 ;
13097 int *arg4 = (int *) 0 ;
13098 int *arg5 = (int *) 0 ;
13099 int *arg6 = (int *) 0 ;
13100 wxFont *arg7 = (wxFont *) NULL ;
13101 bool temp2 = False ;
13102 int temp3 ;
13103 int res3 = 0 ;
13104 int temp4 ;
13105 int res4 = 0 ;
13106 int temp5 ;
13107 int res5 = 0 ;
13108 int temp6 ;
13109 int res6 = 0 ;
13110 PyObject * obj0 = 0 ;
13111 PyObject * obj1 = 0 ;
13112 PyObject * obj2 = 0 ;
13113 char *kwnames[] = {
13114 (char *) "self",(char *) "string",(char *) "font", NULL
13115 };
13116
13117 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13118 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13119 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13120 arg6 = &temp6; res6 = SWIG_NEWOBJ;
13121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13124 {
13125 arg2 = wxString_in_helper(obj1);
13126 if (arg2 == NULL) SWIG_fail;
13127 temp2 = True;
13128 }
13129 if (obj2) {
13130 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13132 }
13133 {
13134 PyThreadState* __tstate = wxPyBeginAllowThreads();
13135 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13136
13137 wxPyEndAllowThreads(__tstate);
13138 if (PyErr_Occurred()) SWIG_fail;
13139 }
13140 Py_INCREF(Py_None); resultobj = Py_None;
13141 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13142 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13143 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13144 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13145 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13146 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13147 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13148 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
13149 {
13150 if (temp2)
13151 delete arg2;
13152 }
13153 return resultobj;
13154 fail:
13155 {
13156 if (temp2)
13157 delete arg2;
13158 }
13159 return NULL;
13160 }
13161
13162
13163 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj;
13165 wxDC *arg1 = (wxDC *) 0 ;
13166 wxString *arg2 = 0 ;
13167 int *arg3 = (int *) 0 ;
13168 int *arg4 = (int *) 0 ;
13169 int *arg5 = (int *) 0 ;
13170 wxFont *arg6 = (wxFont *) NULL ;
13171 bool temp2 = False ;
13172 int temp3 ;
13173 int res3 = 0 ;
13174 int temp4 ;
13175 int res4 = 0 ;
13176 int temp5 ;
13177 int res5 = 0 ;
13178 PyObject * obj0 = 0 ;
13179 PyObject * obj1 = 0 ;
13180 PyObject * obj2 = 0 ;
13181 char *kwnames[] = {
13182 (char *) "self",(char *) "text",(char *) "font", NULL
13183 };
13184
13185 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13186 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13187 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13191 {
13192 arg2 = wxString_in_helper(obj1);
13193 if (arg2 == NULL) SWIG_fail;
13194 temp2 = True;
13195 }
13196 if (obj2) {
13197 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13199 }
13200 {
13201 PyThreadState* __tstate = wxPyBeginAllowThreads();
13202 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13203
13204 wxPyEndAllowThreads(__tstate);
13205 if (PyErr_Occurred()) SWIG_fail;
13206 }
13207 Py_INCREF(Py_None); resultobj = Py_None;
13208 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13209 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13210 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13211 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13212 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13213 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13214 {
13215 if (temp2)
13216 delete arg2;
13217 }
13218 return resultobj;
13219 fail:
13220 {
13221 if (temp2)
13222 delete arg2;
13223 }
13224 return NULL;
13225 }
13226
13227
13228 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj;
13230 wxDC *arg1 = (wxDC *) 0 ;
13231 wxString *arg2 = 0 ;
13232 wxArrayInt result;
13233 bool temp2 = False ;
13234 PyObject * obj0 = 0 ;
13235 PyObject * obj1 = 0 ;
13236 char *kwnames[] = {
13237 (char *) "self",(char *) "text", NULL
13238 };
13239
13240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13243 {
13244 arg2 = wxString_in_helper(obj1);
13245 if (arg2 == NULL) SWIG_fail;
13246 temp2 = True;
13247 }
13248 {
13249 PyThreadState* __tstate = wxPyBeginAllowThreads();
13250 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13251
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 {
13256 resultobj = PyList_New(0);
13257 size_t idx;
13258 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13259 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13260 PyList_Append(resultobj, val);
13261 Py_DECREF(val);
13262 }
13263 }
13264 {
13265 if (temp2)
13266 delete arg2;
13267 }
13268 return resultobj;
13269 fail:
13270 {
13271 if (temp2)
13272 delete arg2;
13273 }
13274 return NULL;
13275 }
13276
13277
13278 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
13279 PyObject *resultobj;
13280 wxDC *arg1 = (wxDC *) 0 ;
13281 wxSize result;
13282 PyObject * obj0 = 0 ;
13283 char *kwnames[] = {
13284 (char *) "self", NULL
13285 };
13286
13287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (arg1)->GetSize();
13293
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 {
13298 wxSize * resultptr;
13299 resultptr = new wxSize((wxSize &) result);
13300 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13301 }
13302 return resultobj;
13303 fail:
13304 return NULL;
13305 }
13306
13307
13308 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13309 PyObject *resultobj;
13310 wxDC *arg1 = (wxDC *) 0 ;
13311 int *arg2 = (int *) 0 ;
13312 int *arg3 = (int *) 0 ;
13313 int temp2 ;
13314 int res2 = 0 ;
13315 int temp3 ;
13316 int res3 = 0 ;
13317 PyObject * obj0 = 0 ;
13318 char *kwnames[] = {
13319 (char *) "self", NULL
13320 };
13321
13322 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13323 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 (arg1)->GetSize(arg2,arg3);
13330
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 Py_INCREF(Py_None); resultobj = Py_None;
13335 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13336 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13337 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13338 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13339 return resultobj;
13340 fail:
13341 return NULL;
13342 }
13343
13344
13345 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj;
13347 wxDC *arg1 = (wxDC *) 0 ;
13348 wxSize result;
13349 PyObject * obj0 = 0 ;
13350 char *kwnames[] = {
13351 (char *) "self", NULL
13352 };
13353
13354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13357 {
13358 PyThreadState* __tstate = wxPyBeginAllowThreads();
13359 result = ((wxDC const *)arg1)->GetSizeMM();
13360
13361 wxPyEndAllowThreads(__tstate);
13362 if (PyErr_Occurred()) SWIG_fail;
13363 }
13364 {
13365 wxSize * resultptr;
13366 resultptr = new wxSize((wxSize &) result);
13367 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13368 }
13369 return resultobj;
13370 fail:
13371 return NULL;
13372 }
13373
13374
13375 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13376 PyObject *resultobj;
13377 wxDC *arg1 = (wxDC *) 0 ;
13378 int *arg2 = (int *) 0 ;
13379 int *arg3 = (int *) 0 ;
13380 int temp2 ;
13381 int res2 = 0 ;
13382 int temp3 ;
13383 int res3 = 0 ;
13384 PyObject * obj0 = 0 ;
13385 char *kwnames[] = {
13386 (char *) "self", NULL
13387 };
13388
13389 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13390 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13394 {
13395 PyThreadState* __tstate = wxPyBeginAllowThreads();
13396 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13397
13398 wxPyEndAllowThreads(__tstate);
13399 if (PyErr_Occurred()) SWIG_fail;
13400 }
13401 Py_INCREF(Py_None); resultobj = Py_None;
13402 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13403 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13404 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13405 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
13413 PyObject *resultobj;
13414 wxDC *arg1 = (wxDC *) 0 ;
13415 int arg2 ;
13416 int result;
13417 PyObject * obj0 = 0 ;
13418 PyObject * obj1 = 0 ;
13419 char *kwnames[] = {
13420 (char *) "self",(char *) "x", NULL
13421 };
13422
13423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13426 arg2 = (int)SWIG_As_int(obj1);
13427 if (PyErr_Occurred()) SWIG_fail;
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13431
13432 wxPyEndAllowThreads(__tstate);
13433 if (PyErr_Occurred()) SWIG_fail;
13434 }
13435 resultobj = SWIG_From_int((int)result);
13436 return resultobj;
13437 fail:
13438 return NULL;
13439 }
13440
13441
13442 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
13443 PyObject *resultobj;
13444 wxDC *arg1 = (wxDC *) 0 ;
13445 int arg2 ;
13446 int result;
13447 PyObject * obj0 = 0 ;
13448 PyObject * obj1 = 0 ;
13449 char *kwnames[] = {
13450 (char *) "self",(char *) "y", NULL
13451 };
13452
13453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13456 arg2 = (int)SWIG_As_int(obj1);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 {
13459 PyThreadState* __tstate = wxPyBeginAllowThreads();
13460 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13461
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 resultobj = SWIG_From_int((int)result);
13466 return resultobj;
13467 fail:
13468 return NULL;
13469 }
13470
13471
13472 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13473 PyObject *resultobj;
13474 wxDC *arg1 = (wxDC *) 0 ;
13475 int arg2 ;
13476 int result;
13477 PyObject * obj0 = 0 ;
13478 PyObject * obj1 = 0 ;
13479 char *kwnames[] = {
13480 (char *) "self",(char *) "x", NULL
13481 };
13482
13483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13486 arg2 = (int)SWIG_As_int(obj1);
13487 if (PyErr_Occurred()) SWIG_fail;
13488 {
13489 PyThreadState* __tstate = wxPyBeginAllowThreads();
13490 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13491
13492 wxPyEndAllowThreads(__tstate);
13493 if (PyErr_Occurred()) SWIG_fail;
13494 }
13495 resultobj = SWIG_From_int((int)result);
13496 return resultobj;
13497 fail:
13498 return NULL;
13499 }
13500
13501
13502 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13503 PyObject *resultobj;
13504 wxDC *arg1 = (wxDC *) 0 ;
13505 int arg2 ;
13506 int result;
13507 PyObject * obj0 = 0 ;
13508 PyObject * obj1 = 0 ;
13509 char *kwnames[] = {
13510 (char *) "self",(char *) "y", NULL
13511 };
13512
13513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13516 arg2 = (int)SWIG_As_int(obj1);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 resultobj = SWIG_From_int((int)result);
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj;
13534 wxDC *arg1 = (wxDC *) 0 ;
13535 int arg2 ;
13536 int result;
13537 PyObject * obj0 = 0 ;
13538 PyObject * obj1 = 0 ;
13539 char *kwnames[] = {
13540 (char *) "self",(char *) "x", NULL
13541 };
13542
13543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13546 arg2 = (int)SWIG_As_int(obj1);
13547 if (PyErr_Occurred()) SWIG_fail;
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13551
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_From_int((int)result);
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj;
13564 wxDC *arg1 = (wxDC *) 0 ;
13565 int arg2 ;
13566 int result;
13567 PyObject * obj0 = 0 ;
13568 PyObject * obj1 = 0 ;
13569 char *kwnames[] = {
13570 (char *) "self",(char *) "y", NULL
13571 };
13572
13573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13576 arg2 = (int)SWIG_As_int(obj1);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13581
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 resultobj = SWIG_From_int((int)result);
13586 return resultobj;
13587 fail:
13588 return NULL;
13589 }
13590
13591
13592 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj;
13594 wxDC *arg1 = (wxDC *) 0 ;
13595 int arg2 ;
13596 int result;
13597 PyObject * obj0 = 0 ;
13598 PyObject * obj1 = 0 ;
13599 char *kwnames[] = {
13600 (char *) "self",(char *) "x", NULL
13601 };
13602
13603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13606 arg2 = (int)SWIG_As_int(obj1);
13607 if (PyErr_Occurred()) SWIG_fail;
13608 {
13609 PyThreadState* __tstate = wxPyBeginAllowThreads();
13610 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13611
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 resultobj = SWIG_From_int((int)result);
13616 return resultobj;
13617 fail:
13618 return NULL;
13619 }
13620
13621
13622 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13623 PyObject *resultobj;
13624 wxDC *arg1 = (wxDC *) 0 ;
13625 int arg2 ;
13626 int result;
13627 PyObject * obj0 = 0 ;
13628 PyObject * obj1 = 0 ;
13629 char *kwnames[] = {
13630 (char *) "self",(char *) "y", NULL
13631 };
13632
13633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13636 arg2 = (int)SWIG_As_int(obj1);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13641
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 resultobj = SWIG_From_int((int)result);
13646 return resultobj;
13647 fail:
13648 return NULL;
13649 }
13650
13651
13652 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj;
13654 wxDC *arg1 = (wxDC *) 0 ;
13655 bool result;
13656 PyObject * obj0 = 0 ;
13657 char *kwnames[] = {
13658 (char *) "self", NULL
13659 };
13660
13661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 {
13672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13673 }
13674 return resultobj;
13675 fail:
13676 return NULL;
13677 }
13678
13679
13680 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj;
13682 wxDC *arg1 = (wxDC *) 0 ;
13683 bool result;
13684 PyObject * obj0 = 0 ;
13685 char *kwnames[] = {
13686 (char *) "self", NULL
13687 };
13688
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13695
13696 wxPyEndAllowThreads(__tstate);
13697 if (PyErr_Occurred()) SWIG_fail;
13698 }
13699 {
13700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13701 }
13702 return resultobj;
13703 fail:
13704 return NULL;
13705 }
13706
13707
13708 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
13709 PyObject *resultobj;
13710 wxDC *arg1 = (wxDC *) 0 ;
13711 int result;
13712 PyObject * obj0 = 0 ;
13713 char *kwnames[] = {
13714 (char *) "self", NULL
13715 };
13716
13717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13720 {
13721 PyThreadState* __tstate = wxPyBeginAllowThreads();
13722 result = (int)((wxDC const *)arg1)->GetDepth();
13723
13724 wxPyEndAllowThreads(__tstate);
13725 if (PyErr_Occurred()) SWIG_fail;
13726 }
13727 resultobj = SWIG_From_int((int)result);
13728 return resultobj;
13729 fail:
13730 return NULL;
13731 }
13732
13733
13734 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
13735 PyObject *resultobj;
13736 wxDC *arg1 = (wxDC *) 0 ;
13737 wxSize result;
13738 PyObject * obj0 = 0 ;
13739 char *kwnames[] = {
13740 (char *) "self", NULL
13741 };
13742
13743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 result = ((wxDC const *)arg1)->GetPPI();
13749
13750 wxPyEndAllowThreads(__tstate);
13751 if (PyErr_Occurred()) SWIG_fail;
13752 }
13753 {
13754 wxSize * resultptr;
13755 resultptr = new wxSize((wxSize &) result);
13756 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13757 }
13758 return resultobj;
13759 fail:
13760 return NULL;
13761 }
13762
13763
13764 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
13765 PyObject *resultobj;
13766 wxDC *arg1 = (wxDC *) 0 ;
13767 bool result;
13768 PyObject * obj0 = 0 ;
13769 char *kwnames[] = {
13770 (char *) "self", NULL
13771 };
13772
13773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13776 {
13777 PyThreadState* __tstate = wxPyBeginAllowThreads();
13778 result = (bool)((wxDC const *)arg1)->Ok();
13779
13780 wxPyEndAllowThreads(__tstate);
13781 if (PyErr_Occurred()) SWIG_fail;
13782 }
13783 {
13784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13785 }
13786 return resultobj;
13787 fail:
13788 return NULL;
13789 }
13790
13791
13792 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13793 PyObject *resultobj;
13794 wxDC *arg1 = (wxDC *) 0 ;
13795 int result;
13796 PyObject * obj0 = 0 ;
13797 char *kwnames[] = {
13798 (char *) "self", NULL
13799 };
13800
13801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13804 {
13805 PyThreadState* __tstate = wxPyBeginAllowThreads();
13806 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13807
13808 wxPyEndAllowThreads(__tstate);
13809 if (PyErr_Occurred()) SWIG_fail;
13810 }
13811 resultobj = SWIG_From_int((int)result);
13812 return resultobj;
13813 fail:
13814 return NULL;
13815 }
13816
13817
13818 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13819 PyObject *resultobj;
13820 wxDC *arg1 = (wxDC *) 0 ;
13821 wxBrush *result;
13822 PyObject * obj0 = 0 ;
13823 char *kwnames[] = {
13824 (char *) "self", NULL
13825 };
13826
13827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13830 {
13831 PyThreadState* __tstate = wxPyBeginAllowThreads();
13832 {
13833 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13834 result = (wxBrush *) &_result_ref;
13835 }
13836
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
13840 {
13841 wxBrush* resultptr = new wxBrush(*result);
13842 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13843 }
13844 return resultobj;
13845 fail:
13846 return NULL;
13847 }
13848
13849
13850 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
13851 PyObject *resultobj;
13852 wxDC *arg1 = (wxDC *) 0 ;
13853 wxBrush *result;
13854 PyObject * obj0 = 0 ;
13855 char *kwnames[] = {
13856 (char *) "self", NULL
13857 };
13858
13859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13862 {
13863 PyThreadState* __tstate = wxPyBeginAllowThreads();
13864 {
13865 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13866 result = (wxBrush *) &_result_ref;
13867 }
13868
13869 wxPyEndAllowThreads(__tstate);
13870 if (PyErr_Occurred()) SWIG_fail;
13871 }
13872 {
13873 wxBrush* resultptr = new wxBrush(*result);
13874 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13875 }
13876 return resultobj;
13877 fail:
13878 return NULL;
13879 }
13880
13881
13882 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
13883 PyObject *resultobj;
13884 wxDC *arg1 = (wxDC *) 0 ;
13885 wxFont *result;
13886 PyObject * obj0 = 0 ;
13887 char *kwnames[] = {
13888 (char *) "self", NULL
13889 };
13890
13891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13894 {
13895 PyThreadState* __tstate = wxPyBeginAllowThreads();
13896 {
13897 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13898 result = (wxFont *) &_result_ref;
13899 }
13900
13901 wxPyEndAllowThreads(__tstate);
13902 if (PyErr_Occurred()) SWIG_fail;
13903 }
13904 {
13905 wxFont* resultptr = new wxFont(*result);
13906 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13907 }
13908 return resultobj;
13909 fail:
13910 return NULL;
13911 }
13912
13913
13914 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj;
13916 wxDC *arg1 = (wxDC *) 0 ;
13917 wxPen *result;
13918 PyObject * obj0 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "self", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 {
13929 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13930 result = (wxPen *) &_result_ref;
13931 }
13932
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 {
13937 wxPen* resultptr = new wxPen(*result);
13938 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13939 }
13940 return resultobj;
13941 fail:
13942 return NULL;
13943 }
13944
13945
13946 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13947 PyObject *resultobj;
13948 wxDC *arg1 = (wxDC *) 0 ;
13949 wxColour *result;
13950 PyObject * obj0 = 0 ;
13951 char *kwnames[] = {
13952 (char *) "self", NULL
13953 };
13954
13955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 {
13961 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13962 result = (wxColour *) &_result_ref;
13963 }
13964
13965 wxPyEndAllowThreads(__tstate);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13969 return resultobj;
13970 fail:
13971 return NULL;
13972 }
13973
13974
13975 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
13976 PyObject *resultobj;
13977 wxDC *arg1 = (wxDC *) 0 ;
13978 wxColour *result;
13979 PyObject * obj0 = 0 ;
13980 char *kwnames[] = {
13981 (char *) "self", NULL
13982 };
13983
13984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13987 {
13988 PyThreadState* __tstate = wxPyBeginAllowThreads();
13989 {
13990 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13991 result = (wxColour *) &_result_ref;
13992 }
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj;
14006 wxDC *arg1 = (wxDC *) 0 ;
14007 wxColour *arg2 = 0 ;
14008 wxColour temp2 ;
14009 PyObject * obj0 = 0 ;
14010 PyObject * obj1 = 0 ;
14011 char *kwnames[] = {
14012 (char *) "self",(char *) "colour", NULL
14013 };
14014
14015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14018 {
14019 arg2 = &temp2;
14020 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14021 }
14022 {
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 (arg1)->SetTextForeground((wxColour const &)*arg2);
14025
14026 wxPyEndAllowThreads(__tstate);
14027 if (PyErr_Occurred()) SWIG_fail;
14028 }
14029 Py_INCREF(Py_None); resultobj = Py_None;
14030 return resultobj;
14031 fail:
14032 return NULL;
14033 }
14034
14035
14036 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14037 PyObject *resultobj;
14038 wxDC *arg1 = (wxDC *) 0 ;
14039 wxColour *arg2 = 0 ;
14040 wxColour temp2 ;
14041 PyObject * obj0 = 0 ;
14042 PyObject * obj1 = 0 ;
14043 char *kwnames[] = {
14044 (char *) "self",(char *) "colour", NULL
14045 };
14046
14047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14050 {
14051 arg2 = &temp2;
14052 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14053 }
14054 {
14055 PyThreadState* __tstate = wxPyBeginAllowThreads();
14056 (arg1)->SetTextBackground((wxColour const &)*arg2);
14057
14058 wxPyEndAllowThreads(__tstate);
14059 if (PyErr_Occurred()) SWIG_fail;
14060 }
14061 Py_INCREF(Py_None); resultobj = Py_None;
14062 return resultobj;
14063 fail:
14064 return NULL;
14065 }
14066
14067
14068 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14069 PyObject *resultobj;
14070 wxDC *arg1 = (wxDC *) 0 ;
14071 int result;
14072 PyObject * obj0 = 0 ;
14073 char *kwnames[] = {
14074 (char *) "self", NULL
14075 };
14076
14077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14080 {
14081 PyThreadState* __tstate = wxPyBeginAllowThreads();
14082 result = (int)((wxDC const *)arg1)->GetMapMode();
14083
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 resultobj = SWIG_From_int((int)result);
14088 return resultobj;
14089 fail:
14090 return NULL;
14091 }
14092
14093
14094 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14095 PyObject *resultobj;
14096 wxDC *arg1 = (wxDC *) 0 ;
14097 int arg2 ;
14098 PyObject * obj0 = 0 ;
14099 PyObject * obj1 = 0 ;
14100 char *kwnames[] = {
14101 (char *) "self",(char *) "mode", NULL
14102 };
14103
14104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14107 arg2 = (int)SWIG_As_int(obj1);
14108 if (PyErr_Occurred()) SWIG_fail;
14109 {
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 (arg1)->SetMapMode(arg2);
14112
14113 wxPyEndAllowThreads(__tstate);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 }
14116 Py_INCREF(Py_None); resultobj = Py_None;
14117 return resultobj;
14118 fail:
14119 return NULL;
14120 }
14121
14122
14123 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14124 PyObject *resultobj;
14125 wxDC *arg1 = (wxDC *) 0 ;
14126 double *arg2 = (double *) 0 ;
14127 double *arg3 = (double *) 0 ;
14128 double temp2 ;
14129 int res2 = 0 ;
14130 double temp3 ;
14131 int res3 = 0 ;
14132 PyObject * obj0 = 0 ;
14133 char *kwnames[] = {
14134 (char *) "self", NULL
14135 };
14136
14137 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14138 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14142 {
14143 PyThreadState* __tstate = wxPyBeginAllowThreads();
14144 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14145
14146 wxPyEndAllowThreads(__tstate);
14147 if (PyErr_Occurred()) SWIG_fail;
14148 }
14149 Py_INCREF(Py_None); resultobj = Py_None;
14150 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14151 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14152 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14153 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14154 return resultobj;
14155 fail:
14156 return NULL;
14157 }
14158
14159
14160 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14161 PyObject *resultobj;
14162 wxDC *arg1 = (wxDC *) 0 ;
14163 double arg2 ;
14164 double arg3 ;
14165 PyObject * obj0 = 0 ;
14166 PyObject * obj1 = 0 ;
14167 PyObject * obj2 = 0 ;
14168 char *kwnames[] = {
14169 (char *) "self",(char *) "x",(char *) "y", NULL
14170 };
14171
14172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14175 arg2 = (double)SWIG_As_double(obj1);
14176 if (PyErr_Occurred()) SWIG_fail;
14177 arg3 = (double)SWIG_As_double(obj2);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 (arg1)->SetUserScale(arg2,arg3);
14182
14183 wxPyEndAllowThreads(__tstate);
14184 if (PyErr_Occurred()) SWIG_fail;
14185 }
14186 Py_INCREF(Py_None); resultobj = Py_None;
14187 return resultobj;
14188 fail:
14189 return NULL;
14190 }
14191
14192
14193 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14194 PyObject *resultobj;
14195 wxDC *arg1 = (wxDC *) 0 ;
14196 double *arg2 = (double *) 0 ;
14197 double *arg3 = (double *) 0 ;
14198 double temp2 ;
14199 int res2 = 0 ;
14200 double temp3 ;
14201 int res3 = 0 ;
14202 PyObject * obj0 = 0 ;
14203 char *kwnames[] = {
14204 (char *) "self", NULL
14205 };
14206
14207 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14208 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14212 {
14213 PyThreadState* __tstate = wxPyBeginAllowThreads();
14214 (arg1)->GetLogicalScale(arg2,arg3);
14215
14216 wxPyEndAllowThreads(__tstate);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 Py_INCREF(Py_None); resultobj = Py_None;
14220 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14221 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14222 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14223 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
14224 return resultobj;
14225 fail:
14226 return NULL;
14227 }
14228
14229
14230 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14231 PyObject *resultobj;
14232 wxDC *arg1 = (wxDC *) 0 ;
14233 double arg2 ;
14234 double arg3 ;
14235 PyObject * obj0 = 0 ;
14236 PyObject * obj1 = 0 ;
14237 PyObject * obj2 = 0 ;
14238 char *kwnames[] = {
14239 (char *) "self",(char *) "x",(char *) "y", NULL
14240 };
14241
14242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14245 arg2 = (double)SWIG_As_double(obj1);
14246 if (PyErr_Occurred()) SWIG_fail;
14247 arg3 = (double)SWIG_As_double(obj2);
14248 if (PyErr_Occurred()) SWIG_fail;
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 (arg1)->SetLogicalScale(arg2,arg3);
14252
14253 wxPyEndAllowThreads(__tstate);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 }
14256 Py_INCREF(Py_None); resultobj = Py_None;
14257 return resultobj;
14258 fail:
14259 return NULL;
14260 }
14261
14262
14263 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14264 PyObject *resultobj;
14265 wxDC *arg1 = (wxDC *) 0 ;
14266 wxPoint result;
14267 PyObject * obj0 = 0 ;
14268 char *kwnames[] = {
14269 (char *) "self", NULL
14270 };
14271
14272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 {
14283 wxPoint * resultptr;
14284 resultptr = new wxPoint((wxPoint &) result);
14285 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14286 }
14287 return resultobj;
14288 fail:
14289 return NULL;
14290 }
14291
14292
14293 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14294 PyObject *resultobj;
14295 wxDC *arg1 = (wxDC *) 0 ;
14296 int *arg2 = (int *) 0 ;
14297 int *arg3 = (int *) 0 ;
14298 int temp2 ;
14299 int res2 = 0 ;
14300 int temp3 ;
14301 int res3 = 0 ;
14302 PyObject * obj0 = 0 ;
14303 char *kwnames[] = {
14304 (char *) "self", NULL
14305 };
14306
14307 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14308 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14315
14316 wxPyEndAllowThreads(__tstate);
14317 if (PyErr_Occurred()) SWIG_fail;
14318 }
14319 Py_INCREF(Py_None); resultobj = Py_None;
14320 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14321 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14322 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14323 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14324 return resultobj;
14325 fail:
14326 return NULL;
14327 }
14328
14329
14330 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14331 PyObject *resultobj;
14332 wxDC *arg1 = (wxDC *) 0 ;
14333 int arg2 ;
14334 int arg3 ;
14335 PyObject * obj0 = 0 ;
14336 PyObject * obj1 = 0 ;
14337 PyObject * obj2 = 0 ;
14338 char *kwnames[] = {
14339 (char *) "self",(char *) "x",(char *) "y", NULL
14340 };
14341
14342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14345 arg2 = (int)SWIG_As_int(obj1);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 arg3 = (int)SWIG_As_int(obj2);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 {
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 (arg1)->SetLogicalOrigin(arg2,arg3);
14352
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 Py_INCREF(Py_None); resultobj = Py_None;
14357 return resultobj;
14358 fail:
14359 return NULL;
14360 }
14361
14362
14363 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14364 PyObject *resultobj;
14365 wxDC *arg1 = (wxDC *) 0 ;
14366 wxPoint *arg2 = 0 ;
14367 wxPoint temp2 ;
14368 PyObject * obj0 = 0 ;
14369 PyObject * obj1 = 0 ;
14370 char *kwnames[] = {
14371 (char *) "self",(char *) "point", NULL
14372 };
14373
14374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14377 {
14378 arg2 = &temp2;
14379 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14380 }
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14384
14385 wxPyEndAllowThreads(__tstate);
14386 if (PyErr_Occurred()) SWIG_fail;
14387 }
14388 Py_INCREF(Py_None); resultobj = Py_None;
14389 return resultobj;
14390 fail:
14391 return NULL;
14392 }
14393
14394
14395 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14396 PyObject *resultobj;
14397 wxDC *arg1 = (wxDC *) 0 ;
14398 wxPoint result;
14399 PyObject * obj0 = 0 ;
14400 char *kwnames[] = {
14401 (char *) "self", NULL
14402 };
14403
14404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14407 {
14408 PyThreadState* __tstate = wxPyBeginAllowThreads();
14409 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14410
14411 wxPyEndAllowThreads(__tstate);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 {
14415 wxPoint * resultptr;
14416 resultptr = new wxPoint((wxPoint &) result);
14417 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14418 }
14419 return resultobj;
14420 fail:
14421 return NULL;
14422 }
14423
14424
14425 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14426 PyObject *resultobj;
14427 wxDC *arg1 = (wxDC *) 0 ;
14428 int *arg2 = (int *) 0 ;
14429 int *arg3 = (int *) 0 ;
14430 int temp2 ;
14431 int res2 = 0 ;
14432 int temp3 ;
14433 int res3 = 0 ;
14434 PyObject * obj0 = 0 ;
14435 char *kwnames[] = {
14436 (char *) "self", NULL
14437 };
14438
14439 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14440 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14447
14448 wxPyEndAllowThreads(__tstate);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 }
14451 Py_INCREF(Py_None); resultobj = Py_None;
14452 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14453 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14454 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14455 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14456 return resultobj;
14457 fail:
14458 return NULL;
14459 }
14460
14461
14462 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14463 PyObject *resultobj;
14464 wxDC *arg1 = (wxDC *) 0 ;
14465 int arg2 ;
14466 int arg3 ;
14467 PyObject * obj0 = 0 ;
14468 PyObject * obj1 = 0 ;
14469 PyObject * obj2 = 0 ;
14470 char *kwnames[] = {
14471 (char *) "self",(char *) "x",(char *) "y", NULL
14472 };
14473
14474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14477 arg2 = (int)SWIG_As_int(obj1);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 arg3 = (int)SWIG_As_int(obj2);
14480 if (PyErr_Occurred()) SWIG_fail;
14481 {
14482 PyThreadState* __tstate = wxPyBeginAllowThreads();
14483 (arg1)->SetDeviceOrigin(arg2,arg3);
14484
14485 wxPyEndAllowThreads(__tstate);
14486 if (PyErr_Occurred()) SWIG_fail;
14487 }
14488 Py_INCREF(Py_None); resultobj = Py_None;
14489 return resultobj;
14490 fail:
14491 return NULL;
14492 }
14493
14494
14495 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14496 PyObject *resultobj;
14497 wxDC *arg1 = (wxDC *) 0 ;
14498 wxPoint *arg2 = 0 ;
14499 wxPoint temp2 ;
14500 PyObject * obj0 = 0 ;
14501 PyObject * obj1 = 0 ;
14502 char *kwnames[] = {
14503 (char *) "self",(char *) "point", NULL
14504 };
14505
14506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14509 {
14510 arg2 = &temp2;
14511 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14512 }
14513 {
14514 PyThreadState* __tstate = wxPyBeginAllowThreads();
14515 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14516
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 Py_INCREF(Py_None); resultobj = Py_None;
14521 return resultobj;
14522 fail:
14523 return NULL;
14524 }
14525
14526
14527 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj;
14529 wxDC *arg1 = (wxDC *) 0 ;
14530 bool arg2 ;
14531 bool arg3 ;
14532 PyObject * obj0 = 0 ;
14533 PyObject * obj1 = 0 ;
14534 PyObject * obj2 = 0 ;
14535 char *kwnames[] = {
14536 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14537 };
14538
14539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14542 arg2 = (bool)SWIG_As_bool(obj1);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 arg3 = (bool)SWIG_As_bool(obj2);
14545 if (PyErr_Occurred()) SWIG_fail;
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 (arg1)->SetAxisOrientation(arg2,arg3);
14549
14550 wxPyEndAllowThreads(__tstate);
14551 if (PyErr_Occurred()) SWIG_fail;
14552 }
14553 Py_INCREF(Py_None); resultobj = Py_None;
14554 return resultobj;
14555 fail:
14556 return NULL;
14557 }
14558
14559
14560 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14561 PyObject *resultobj;
14562 wxDC *arg1 = (wxDC *) 0 ;
14563 int result;
14564 PyObject * obj0 = 0 ;
14565 char *kwnames[] = {
14566 (char *) "self", NULL
14567 };
14568
14569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14572 {
14573 PyThreadState* __tstate = wxPyBeginAllowThreads();
14574 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14575
14576 wxPyEndAllowThreads(__tstate);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 resultobj = SWIG_From_int((int)result);
14580 return resultobj;
14581 fail:
14582 return NULL;
14583 }
14584
14585
14586 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14587 PyObject *resultobj;
14588 wxDC *arg1 = (wxDC *) 0 ;
14589 int arg2 ;
14590 PyObject * obj0 = 0 ;
14591 PyObject * obj1 = 0 ;
14592 char *kwnames[] = {
14593 (char *) "self",(char *) "function", NULL
14594 };
14595
14596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14599 arg2 = (int)SWIG_As_int(obj1);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 {
14602 PyThreadState* __tstate = wxPyBeginAllowThreads();
14603 (arg1)->SetLogicalFunction(arg2);
14604
14605 wxPyEndAllowThreads(__tstate);
14606 if (PyErr_Occurred()) SWIG_fail;
14607 }
14608 Py_INCREF(Py_None); resultobj = Py_None;
14609 return resultobj;
14610 fail:
14611 return NULL;
14612 }
14613
14614
14615 static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14616 PyObject *resultobj;
14617 wxDC *arg1 = (wxDC *) 0 ;
14618 bool arg2 ;
14619 PyObject * obj0 = 0 ;
14620 PyObject * obj1 = 0 ;
14621 char *kwnames[] = {
14622 (char *) "self",(char *) "optimize", NULL
14623 };
14624
14625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14628 arg2 = (bool)SWIG_As_bool(obj1);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 {
14631 PyThreadState* __tstate = wxPyBeginAllowThreads();
14632 (arg1)->SetOptimization(arg2);
14633
14634 wxPyEndAllowThreads(__tstate);
14635 if (PyErr_Occurred()) SWIG_fail;
14636 }
14637 Py_INCREF(Py_None); resultobj = Py_None;
14638 return resultobj;
14639 fail:
14640 return NULL;
14641 }
14642
14643
14644 static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14645 PyObject *resultobj;
14646 wxDC *arg1 = (wxDC *) 0 ;
14647 bool result;
14648 PyObject * obj0 = 0 ;
14649 char *kwnames[] = {
14650 (char *) "self", NULL
14651 };
14652
14653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (bool)(arg1)->GetOptimization();
14659
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 {
14664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14665 }
14666 return resultobj;
14667 fail:
14668 return NULL;
14669 }
14670
14671
14672 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14673 PyObject *resultobj;
14674 wxDC *arg1 = (wxDC *) 0 ;
14675 int arg2 ;
14676 int arg3 ;
14677 PyObject * obj0 = 0 ;
14678 PyObject * obj1 = 0 ;
14679 PyObject * obj2 = 0 ;
14680 char *kwnames[] = {
14681 (char *) "self",(char *) "x",(char *) "y", NULL
14682 };
14683
14684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14687 arg2 = (int)SWIG_As_int(obj1);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 arg3 = (int)SWIG_As_int(obj2);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 {
14692 PyThreadState* __tstate = wxPyBeginAllowThreads();
14693 (arg1)->CalcBoundingBox(arg2,arg3);
14694
14695 wxPyEndAllowThreads(__tstate);
14696 if (PyErr_Occurred()) SWIG_fail;
14697 }
14698 Py_INCREF(Py_None); resultobj = Py_None;
14699 return resultobj;
14700 fail:
14701 return NULL;
14702 }
14703
14704
14705 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj;
14707 wxDC *arg1 = (wxDC *) 0 ;
14708 wxPoint *arg2 = 0 ;
14709 wxPoint temp2 ;
14710 PyObject * obj0 = 0 ;
14711 PyObject * obj1 = 0 ;
14712 char *kwnames[] = {
14713 (char *) "self",(char *) "point", NULL
14714 };
14715
14716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14719 {
14720 arg2 = &temp2;
14721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14722 }
14723 {
14724 PyThreadState* __tstate = wxPyBeginAllowThreads();
14725 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14726
14727 wxPyEndAllowThreads(__tstate);
14728 if (PyErr_Occurred()) SWIG_fail;
14729 }
14730 Py_INCREF(Py_None); resultobj = Py_None;
14731 return resultobj;
14732 fail:
14733 return NULL;
14734 }
14735
14736
14737 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14738 PyObject *resultobj;
14739 wxDC *arg1 = (wxDC *) 0 ;
14740 PyObject * obj0 = 0 ;
14741 char *kwnames[] = {
14742 (char *) "self", NULL
14743 };
14744
14745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14748 {
14749 PyThreadState* __tstate = wxPyBeginAllowThreads();
14750 (arg1)->ResetBoundingBox();
14751
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 Py_INCREF(Py_None); resultobj = Py_None;
14756 return resultobj;
14757 fail:
14758 return NULL;
14759 }
14760
14761
14762 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
14763 PyObject *resultobj;
14764 wxDC *arg1 = (wxDC *) 0 ;
14765 int result;
14766 PyObject * obj0 = 0 ;
14767 char *kwnames[] = {
14768 (char *) "self", NULL
14769 };
14770
14771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 result = (int)((wxDC const *)arg1)->MinX();
14777
14778 wxPyEndAllowThreads(__tstate);
14779 if (PyErr_Occurred()) SWIG_fail;
14780 }
14781 resultobj = SWIG_From_int((int)result);
14782 return resultobj;
14783 fail:
14784 return NULL;
14785 }
14786
14787
14788 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
14789 PyObject *resultobj;
14790 wxDC *arg1 = (wxDC *) 0 ;
14791 int result;
14792 PyObject * obj0 = 0 ;
14793 char *kwnames[] = {
14794 (char *) "self", NULL
14795 };
14796
14797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = (int)((wxDC const *)arg1)->MaxX();
14803
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
14807 resultobj = SWIG_From_int((int)result);
14808 return resultobj;
14809 fail:
14810 return NULL;
14811 }
14812
14813
14814 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
14815 PyObject *resultobj;
14816 wxDC *arg1 = (wxDC *) 0 ;
14817 int result;
14818 PyObject * obj0 = 0 ;
14819 char *kwnames[] = {
14820 (char *) "self", NULL
14821 };
14822
14823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14826 {
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 result = (int)((wxDC const *)arg1)->MinY();
14829
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 resultobj = SWIG_From_int((int)result);
14834 return resultobj;
14835 fail:
14836 return NULL;
14837 }
14838
14839
14840 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
14841 PyObject *resultobj;
14842 wxDC *arg1 = (wxDC *) 0 ;
14843 int result;
14844 PyObject * obj0 = 0 ;
14845 char *kwnames[] = {
14846 (char *) "self", NULL
14847 };
14848
14849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14852 {
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 result = (int)((wxDC const *)arg1)->MaxY();
14855
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 resultobj = SWIG_From_int((int)result);
14860 return resultobj;
14861 fail:
14862 return NULL;
14863 }
14864
14865
14866 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14867 PyObject *resultobj;
14868 wxDC *arg1 = (wxDC *) 0 ;
14869 int *arg2 = (int *) 0 ;
14870 int *arg3 = (int *) 0 ;
14871 int *arg4 = (int *) 0 ;
14872 int *arg5 = (int *) 0 ;
14873 int temp2 ;
14874 int res2 = 0 ;
14875 int temp3 ;
14876 int res3 = 0 ;
14877 int temp4 ;
14878 int res4 = 0 ;
14879 int temp5 ;
14880 int res5 = 0 ;
14881 PyObject * obj0 = 0 ;
14882 char *kwnames[] = {
14883 (char *) "self", NULL
14884 };
14885
14886 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14887 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14888 arg4 = &temp4; res4 = SWIG_NEWOBJ;
14889 arg5 = &temp5; res5 = SWIG_NEWOBJ;
14890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14896
14897 wxPyEndAllowThreads(__tstate);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 }
14900 Py_INCREF(Py_None); resultobj = Py_None;
14901 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14902 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14903 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14904 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14905 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
14906 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
14907 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
14908 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
14909 return resultobj;
14910 fail:
14911 return NULL;
14912 }
14913
14914
14915 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj;
14917 wxDC *arg1 = (wxDC *) 0 ;
14918 PyObject *arg2 = (PyObject *) 0 ;
14919 PyObject *arg3 = (PyObject *) 0 ;
14920 PyObject *arg4 = (PyObject *) 0 ;
14921 PyObject *result;
14922 PyObject * obj0 = 0 ;
14923 PyObject * obj1 = 0 ;
14924 PyObject * obj2 = 0 ;
14925 PyObject * obj3 = 0 ;
14926 char *kwnames[] = {
14927 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14928 };
14929
14930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14933 arg2 = obj1;
14934 arg3 = obj2;
14935 arg4 = obj3;
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14939
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 resultobj = result;
14944 return resultobj;
14945 fail:
14946 return NULL;
14947 }
14948
14949
14950 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
14951 PyObject *resultobj;
14952 wxDC *arg1 = (wxDC *) 0 ;
14953 PyObject *arg2 = (PyObject *) 0 ;
14954 PyObject *arg3 = (PyObject *) 0 ;
14955 PyObject *arg4 = (PyObject *) 0 ;
14956 PyObject *result;
14957 PyObject * obj0 = 0 ;
14958 PyObject * obj1 = 0 ;
14959 PyObject * obj2 = 0 ;
14960 PyObject * obj3 = 0 ;
14961 char *kwnames[] = {
14962 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14963 };
14964
14965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14968 arg2 = obj1;
14969 arg3 = obj2;
14970 arg4 = obj3;
14971 {
14972 PyThreadState* __tstate = wxPyBeginAllowThreads();
14973 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14974
14975 wxPyEndAllowThreads(__tstate);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 }
14978 resultobj = result;
14979 return resultobj;
14980 fail:
14981 return NULL;
14982 }
14983
14984
14985 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
14986 PyObject *resultobj;
14987 wxDC *arg1 = (wxDC *) 0 ;
14988 PyObject *arg2 = (PyObject *) 0 ;
14989 PyObject *arg3 = (PyObject *) 0 ;
14990 PyObject *arg4 = (PyObject *) 0 ;
14991 PyObject *result;
14992 PyObject * obj0 = 0 ;
14993 PyObject * obj1 = 0 ;
14994 PyObject * obj2 = 0 ;
14995 PyObject * obj3 = 0 ;
14996 char *kwnames[] = {
14997 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14998 };
14999
15000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15003 arg2 = obj1;
15004 arg3 = obj2;
15005 arg4 = obj3;
15006 {
15007 PyThreadState* __tstate = wxPyBeginAllowThreads();
15008 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15009
15010 wxPyEndAllowThreads(__tstate);
15011 if (PyErr_Occurred()) SWIG_fail;
15012 }
15013 resultobj = result;
15014 return resultobj;
15015 fail:
15016 return NULL;
15017 }
15018
15019
15020 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
15021 PyObject *resultobj;
15022 wxDC *arg1 = (wxDC *) 0 ;
15023 PyObject *arg2 = (PyObject *) 0 ;
15024 PyObject *arg3 = (PyObject *) 0 ;
15025 PyObject *arg4 = (PyObject *) 0 ;
15026 PyObject *result;
15027 PyObject * obj0 = 0 ;
15028 PyObject * obj1 = 0 ;
15029 PyObject * obj2 = 0 ;
15030 PyObject * obj3 = 0 ;
15031 char *kwnames[] = {
15032 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15033 };
15034
15035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15038 arg2 = obj1;
15039 arg3 = obj2;
15040 arg4 = obj3;
15041 {
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15044
15045 wxPyEndAllowThreads(__tstate);
15046 if (PyErr_Occurred()) SWIG_fail;
15047 }
15048 resultobj = result;
15049 return resultobj;
15050 fail:
15051 return NULL;
15052 }
15053
15054
15055 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
15056 PyObject *resultobj;
15057 wxDC *arg1 = (wxDC *) 0 ;
15058 PyObject *arg2 = (PyObject *) 0 ;
15059 PyObject *arg3 = (PyObject *) 0 ;
15060 PyObject *arg4 = (PyObject *) 0 ;
15061 PyObject *result;
15062 PyObject * obj0 = 0 ;
15063 PyObject * obj1 = 0 ;
15064 PyObject * obj2 = 0 ;
15065 PyObject * obj3 = 0 ;
15066 char *kwnames[] = {
15067 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15068 };
15069
15070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15073 arg2 = obj1;
15074 arg3 = obj2;
15075 arg4 = obj3;
15076 {
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15079
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 resultobj = result;
15084 return resultobj;
15085 fail:
15086 return NULL;
15087 }
15088
15089
15090 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
15091 PyObject *resultobj;
15092 wxDC *arg1 = (wxDC *) 0 ;
15093 PyObject *arg2 = (PyObject *) 0 ;
15094 PyObject *arg3 = (PyObject *) 0 ;
15095 PyObject *arg4 = (PyObject *) 0 ;
15096 PyObject *arg5 = (PyObject *) 0 ;
15097 PyObject *result;
15098 PyObject * obj0 = 0 ;
15099 PyObject * obj1 = 0 ;
15100 PyObject * obj2 = 0 ;
15101 PyObject * obj3 = 0 ;
15102 PyObject * obj4 = 0 ;
15103 char *kwnames[] = {
15104 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15105 };
15106
15107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15110 arg2 = obj1;
15111 arg3 = obj2;
15112 arg4 = obj3;
15113 arg5 = obj4;
15114 {
15115 PyThreadState* __tstate = wxPyBeginAllowThreads();
15116 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15117
15118 wxPyEndAllowThreads(__tstate);
15119 if (PyErr_Occurred()) SWIG_fail;
15120 }
15121 resultobj = result;
15122 return resultobj;
15123 fail:
15124 return NULL;
15125 }
15126
15127
15128 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
15129 PyObject *obj;
15130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15131 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15132 Py_INCREF(obj);
15133 return Py_BuildValue((char *)"");
15134 }
15135 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
15136 PyObject *resultobj;
15137 wxMemoryDC *result;
15138 char *kwnames[] = {
15139 NULL
15140 };
15141
15142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15143 {
15144 if (!wxPyCheckForApp()) SWIG_fail;
15145 PyThreadState* __tstate = wxPyBeginAllowThreads();
15146 result = (wxMemoryDC *)new wxMemoryDC();
15147
15148 wxPyEndAllowThreads(__tstate);
15149 if (PyErr_Occurred()) SWIG_fail;
15150 }
15151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15152 return resultobj;
15153 fail:
15154 return NULL;
15155 }
15156
15157
15158 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
15159 PyObject *resultobj;
15160 wxDC *arg1 = (wxDC *) 0 ;
15161 wxMemoryDC *result;
15162 PyObject * obj0 = 0 ;
15163 char *kwnames[] = {
15164 (char *) "oldDC", NULL
15165 };
15166
15167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15170 {
15171 if (!wxPyCheckForApp()) SWIG_fail;
15172 PyThreadState* __tstate = wxPyBeginAllowThreads();
15173 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15174
15175 wxPyEndAllowThreads(__tstate);
15176 if (PyErr_Occurred()) SWIG_fail;
15177 }
15178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15179 return resultobj;
15180 fail:
15181 return NULL;
15182 }
15183
15184
15185 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
15186 PyObject *resultobj;
15187 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15188 wxBitmap *arg2 = 0 ;
15189 PyObject * obj0 = 0 ;
15190 PyObject * obj1 = 0 ;
15191 char *kwnames[] = {
15192 (char *) "self",(char *) "bitmap", NULL
15193 };
15194
15195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15198 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15199 SWIG_POINTER_EXCEPTION | 0)) == -1)
15200 SWIG_fail;
15201 if (arg2 == NULL) {
15202 PyErr_SetString(PyExc_TypeError,"null reference");
15203 SWIG_fail;
15204 }
15205 {
15206 PyThreadState* __tstate = wxPyBeginAllowThreads();
15207 (arg1)->SelectObject((wxBitmap const &)*arg2);
15208
15209 wxPyEndAllowThreads(__tstate);
15210 if (PyErr_Occurred()) SWIG_fail;
15211 }
15212 Py_INCREF(Py_None); resultobj = Py_None;
15213 return resultobj;
15214 fail:
15215 return NULL;
15216 }
15217
15218
15219 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
15220 PyObject *obj;
15221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15222 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15223 Py_INCREF(obj);
15224 return Py_BuildValue((char *)"");
15225 }
15226 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
15227 PyObject *resultobj;
15228 wxDC *arg1 = (wxDC *) 0 ;
15229 wxBitmap *arg2 = 0 ;
15230 wxBufferedDC *result;
15231 PyObject * obj0 = 0 ;
15232 PyObject * obj1 = 0 ;
15233
15234 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15238 SWIG_POINTER_EXCEPTION | 0)) == -1)
15239 SWIG_fail;
15240 if (arg2 == NULL) {
15241 PyErr_SetString(PyExc_TypeError,"null reference");
15242 SWIG_fail;
15243 }
15244 {
15245 if (!wxPyCheckForApp()) SWIG_fail;
15246 PyThreadState* __tstate = wxPyBeginAllowThreads();
15247 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15248
15249 wxPyEndAllowThreads(__tstate);
15250 if (PyErr_Occurred()) SWIG_fail;
15251 }
15252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15253 return resultobj;
15254 fail:
15255 return NULL;
15256 }
15257
15258
15259 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
15260 PyObject *resultobj;
15261 wxDC *arg1 = (wxDC *) 0 ;
15262 wxSize *arg2 = 0 ;
15263 wxBufferedDC *result;
15264 wxSize temp2 ;
15265 PyObject * obj0 = 0 ;
15266 PyObject * obj1 = 0 ;
15267
15268 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15271 {
15272 arg2 = &temp2;
15273 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15274 }
15275 {
15276 if (!wxPyCheckForApp()) SWIG_fail;
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15279
15280 wxPyEndAllowThreads(__tstate);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15284 return resultobj;
15285 fail:
15286 return NULL;
15287 }
15288
15289
15290 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15291 int argc;
15292 PyObject *argv[3];
15293 int ii;
15294
15295 argc = PyObject_Length(args);
15296 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15297 argv[ii] = PyTuple_GetItem(args,ii);
15298 }
15299 if (argc == 2) {
15300 int _v;
15301 {
15302 void *ptr;
15303 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15304 _v = 0;
15305 PyErr_Clear();
15306 } else {
15307 _v = 1;
15308 }
15309 }
15310 if (_v) {
15311 {
15312 void *ptr;
15313 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15314 _v = 0;
15315 PyErr_Clear();
15316 } else {
15317 _v = 1;
15318 }
15319 }
15320 if (_v) {
15321 return _wrap_new_BufferedDC__SWIG_0(self,args);
15322 }
15323 }
15324 }
15325 if (argc == 2) {
15326 int _v;
15327 {
15328 void *ptr;
15329 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15330 _v = 0;
15331 PyErr_Clear();
15332 } else {
15333 _v = 1;
15334 }
15335 }
15336 if (_v) {
15337 {
15338 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15339 }
15340 if (_v) {
15341 return _wrap_new_BufferedDC__SWIG_1(self,args);
15342 }
15343 }
15344 }
15345
15346 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15347 return NULL;
15348 }
15349
15350
15351 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
15352 PyObject *resultobj;
15353 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15354 PyObject * obj0 = 0 ;
15355 char *kwnames[] = {
15356 (char *) "self", NULL
15357 };
15358
15359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 delete arg1;
15365
15366 wxPyEndAllowThreads(__tstate);
15367 if (PyErr_Occurred()) SWIG_fail;
15368 }
15369 Py_INCREF(Py_None); resultobj = Py_None;
15370 return resultobj;
15371 fail:
15372 return NULL;
15373 }
15374
15375
15376 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
15377 PyObject *resultobj;
15378 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15379 PyObject * obj0 = 0 ;
15380 char *kwnames[] = {
15381 (char *) "self", NULL
15382 };
15383
15384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15387 {
15388 PyThreadState* __tstate = wxPyBeginAllowThreads();
15389 (arg1)->UnMask();
15390
15391 wxPyEndAllowThreads(__tstate);
15392 if (PyErr_Occurred()) SWIG_fail;
15393 }
15394 Py_INCREF(Py_None); resultobj = Py_None;
15395 return resultobj;
15396 fail:
15397 return NULL;
15398 }
15399
15400
15401 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
15402 PyObject *obj;
15403 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15404 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15405 Py_INCREF(obj);
15406 return Py_BuildValue((char *)"");
15407 }
15408 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15409 PyObject *resultobj;
15410 wxWindow *arg1 = (wxWindow *) 0 ;
15411 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15412 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15413 wxBufferedPaintDC *result;
15414 PyObject * obj0 = 0 ;
15415 PyObject * obj1 = 0 ;
15416 char *kwnames[] = {
15417 (char *) "window",(char *) "buffer", NULL
15418 };
15419
15420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15423 if (obj1) {
15424 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15425 SWIG_POINTER_EXCEPTION | 0)) == -1)
15426 SWIG_fail;
15427 if (arg2 == NULL) {
15428 PyErr_SetString(PyExc_TypeError,"null reference");
15429 SWIG_fail;
15430 }
15431 }
15432 {
15433 if (!wxPyCheckForApp()) SWIG_fail;
15434 PyThreadState* __tstate = wxPyBeginAllowThreads();
15435 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15436
15437 wxPyEndAllowThreads(__tstate);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 }
15440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15441 return resultobj;
15442 fail:
15443 return NULL;
15444 }
15445
15446
15447 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
15448 PyObject *obj;
15449 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15450 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15451 Py_INCREF(obj);
15452 return Py_BuildValue((char *)"");
15453 }
15454 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
15455 PyObject *resultobj;
15456 wxScreenDC *result;
15457 char *kwnames[] = {
15458 NULL
15459 };
15460
15461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15462 {
15463 if (!wxPyCheckForApp()) SWIG_fail;
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
15465 result = (wxScreenDC *)new wxScreenDC();
15466
15467 wxPyEndAllowThreads(__tstate);
15468 if (PyErr_Occurred()) SWIG_fail;
15469 }
15470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15471 return resultobj;
15472 fail:
15473 return NULL;
15474 }
15475
15476
15477 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
15478 PyObject *resultobj;
15479 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15480 wxWindow *arg2 = (wxWindow *) 0 ;
15481 bool result;
15482 PyObject * obj0 = 0 ;
15483 PyObject * obj1 = 0 ;
15484 char *kwnames[] = {
15485 (char *) "self",(char *) "window", NULL
15486 };
15487
15488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15496
15497 wxPyEndAllowThreads(__tstate);
15498 if (PyErr_Occurred()) SWIG_fail;
15499 }
15500 {
15501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15502 }
15503 return resultobj;
15504 fail:
15505 return NULL;
15506 }
15507
15508
15509 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15510 PyObject *resultobj;
15511 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15512 wxRect *arg2 = (wxRect *) NULL ;
15513 bool result;
15514 PyObject * obj0 = 0 ;
15515 PyObject * obj1 = 0 ;
15516 char *kwnames[] = {
15517 (char *) "self",(char *) "rect", NULL
15518 };
15519
15520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15523 if (obj1) {
15524 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15526 }
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15530
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 {
15535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15536 }
15537 return resultobj;
15538 fail:
15539 return NULL;
15540 }
15541
15542
15543 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15544 PyObject *resultobj;
15545 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15546 bool result;
15547 PyObject * obj0 = 0 ;
15548 char *kwnames[] = {
15549 (char *) "self", NULL
15550 };
15551
15552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15555 {
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 result = (bool)(arg1)->EndDrawingOnTop();
15558
15559 wxPyEndAllowThreads(__tstate);
15560 if (PyErr_Occurred()) SWIG_fail;
15561 }
15562 {
15563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15564 }
15565 return resultobj;
15566 fail:
15567 return NULL;
15568 }
15569
15570
15571 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
15572 PyObject *obj;
15573 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15574 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15575 Py_INCREF(obj);
15576 return Py_BuildValue((char *)"");
15577 }
15578 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj;
15580 wxWindow *arg1 = (wxWindow *) 0 ;
15581 wxClientDC *result;
15582 PyObject * obj0 = 0 ;
15583 char *kwnames[] = {
15584 (char *) "win", NULL
15585 };
15586
15587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15590 {
15591 if (!wxPyCheckForApp()) SWIG_fail;
15592 PyThreadState* __tstate = wxPyBeginAllowThreads();
15593 result = (wxClientDC *)new wxClientDC(arg1);
15594
15595 wxPyEndAllowThreads(__tstate);
15596 if (PyErr_Occurred()) SWIG_fail;
15597 }
15598 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15599 return resultobj;
15600 fail:
15601 return NULL;
15602 }
15603
15604
15605 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
15606 PyObject *obj;
15607 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15608 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15609 Py_INCREF(obj);
15610 return Py_BuildValue((char *)"");
15611 }
15612 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj;
15614 wxWindow *arg1 = (wxWindow *) 0 ;
15615 wxPaintDC *result;
15616 PyObject * obj0 = 0 ;
15617 char *kwnames[] = {
15618 (char *) "win", NULL
15619 };
15620
15621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15624 {
15625 if (!wxPyCheckForApp()) SWIG_fail;
15626 PyThreadState* __tstate = wxPyBeginAllowThreads();
15627 result = (wxPaintDC *)new wxPaintDC(arg1);
15628
15629 wxPyEndAllowThreads(__tstate);
15630 if (PyErr_Occurred()) SWIG_fail;
15631 }
15632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15633 return resultobj;
15634 fail:
15635 return NULL;
15636 }
15637
15638
15639 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
15640 PyObject *obj;
15641 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15642 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15643 Py_INCREF(obj);
15644 return Py_BuildValue((char *)"");
15645 }
15646 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
15647 PyObject *resultobj;
15648 wxWindow *arg1 = (wxWindow *) 0 ;
15649 wxWindowDC *result;
15650 PyObject * obj0 = 0 ;
15651 char *kwnames[] = {
15652 (char *) "win", NULL
15653 };
15654
15655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15658 {
15659 if (!wxPyCheckForApp()) SWIG_fail;
15660 PyThreadState* __tstate = wxPyBeginAllowThreads();
15661 result = (wxWindowDC *)new wxWindowDC(arg1);
15662
15663 wxPyEndAllowThreads(__tstate);
15664 if (PyErr_Occurred()) SWIG_fail;
15665 }
15666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15667 return resultobj;
15668 fail:
15669 return NULL;
15670 }
15671
15672
15673 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
15674 PyObject *obj;
15675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15676 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15677 Py_INCREF(obj);
15678 return Py_BuildValue((char *)"");
15679 }
15680 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
15681 PyObject *resultobj;
15682 wxDC *arg1 = 0 ;
15683 bool arg2 ;
15684 wxMirrorDC *result;
15685 PyObject * obj0 = 0 ;
15686 PyObject * obj1 = 0 ;
15687 char *kwnames[] = {
15688 (char *) "dc",(char *) "mirror", NULL
15689 };
15690
15691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15693 SWIG_POINTER_EXCEPTION | 0)) == -1)
15694 SWIG_fail;
15695 if (arg1 == NULL) {
15696 PyErr_SetString(PyExc_TypeError,"null reference");
15697 SWIG_fail;
15698 }
15699 arg2 = (bool)SWIG_As_bool(obj1);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 {
15702 if (!wxPyCheckForApp()) SWIG_fail;
15703 PyThreadState* __tstate = wxPyBeginAllowThreads();
15704 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15705
15706 wxPyEndAllowThreads(__tstate);
15707 if (PyErr_Occurred()) SWIG_fail;
15708 }
15709 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15710 return resultobj;
15711 fail:
15712 return NULL;
15713 }
15714
15715
15716 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
15717 PyObject *obj;
15718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15719 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15720 Py_INCREF(obj);
15721 return Py_BuildValue((char *)"");
15722 }
15723 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
15724 PyObject *resultobj;
15725 wxPrintData *arg1 = 0 ;
15726 wxPostScriptDC *result;
15727 PyObject * obj0 = 0 ;
15728 char *kwnames[] = {
15729 (char *) "printData", NULL
15730 };
15731
15732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15734 SWIG_POINTER_EXCEPTION | 0)) == -1)
15735 SWIG_fail;
15736 if (arg1 == NULL) {
15737 PyErr_SetString(PyExc_TypeError,"null reference");
15738 SWIG_fail;
15739 }
15740 {
15741 if (!wxPyCheckForApp()) SWIG_fail;
15742 PyThreadState* __tstate = wxPyBeginAllowThreads();
15743 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15744
15745 wxPyEndAllowThreads(__tstate);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15749 return resultobj;
15750 fail:
15751 return NULL;
15752 }
15753
15754
15755 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15756 PyObject *resultobj;
15757 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15758 wxPrintData *result;
15759 PyObject * obj0 = 0 ;
15760 char *kwnames[] = {
15761 (char *) "self", NULL
15762 };
15763
15764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15767 {
15768 PyThreadState* __tstate = wxPyBeginAllowThreads();
15769 {
15770 wxPrintData &_result_ref = (arg1)->GetPrintData();
15771 result = (wxPrintData *) &_result_ref;
15772 }
15773
15774 wxPyEndAllowThreads(__tstate);
15775 if (PyErr_Occurred()) SWIG_fail;
15776 }
15777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15778 return resultobj;
15779 fail:
15780 return NULL;
15781 }
15782
15783
15784 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15785 PyObject *resultobj;
15786 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15787 wxPrintData *arg2 = 0 ;
15788 PyObject * obj0 = 0 ;
15789 PyObject * obj1 = 0 ;
15790 char *kwnames[] = {
15791 (char *) "self",(char *) "data", NULL
15792 };
15793
15794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15798 SWIG_POINTER_EXCEPTION | 0)) == -1)
15799 SWIG_fail;
15800 if (arg2 == NULL) {
15801 PyErr_SetString(PyExc_TypeError,"null reference");
15802 SWIG_fail;
15803 }
15804 {
15805 PyThreadState* __tstate = wxPyBeginAllowThreads();
15806 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15807
15808 wxPyEndAllowThreads(__tstate);
15809 if (PyErr_Occurred()) SWIG_fail;
15810 }
15811 Py_INCREF(Py_None); resultobj = Py_None;
15812 return resultobj;
15813 fail:
15814 return NULL;
15815 }
15816
15817
15818 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15819 PyObject *resultobj;
15820 int arg1 ;
15821 PyObject * obj0 = 0 ;
15822 char *kwnames[] = {
15823 (char *) "ppi", NULL
15824 };
15825
15826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15827 arg1 = (int)SWIG_As_int(obj0);
15828 if (PyErr_Occurred()) SWIG_fail;
15829 {
15830 PyThreadState* __tstate = wxPyBeginAllowThreads();
15831 wxPostScriptDC::SetResolution(arg1);
15832
15833 wxPyEndAllowThreads(__tstate);
15834 if (PyErr_Occurred()) SWIG_fail;
15835 }
15836 Py_INCREF(Py_None); resultobj = Py_None;
15837 return resultobj;
15838 fail:
15839 return NULL;
15840 }
15841
15842
15843 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15844 PyObject *resultobj;
15845 int result;
15846 char *kwnames[] = {
15847 NULL
15848 };
15849
15850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = (int)wxPostScriptDC::GetResolution();
15854
15855 wxPyEndAllowThreads(__tstate);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 }
15858 resultobj = SWIG_From_int((int)result);
15859 return resultobj;
15860 fail:
15861 return NULL;
15862 }
15863
15864
15865 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
15866 PyObject *obj;
15867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15868 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15869 Py_INCREF(obj);
15870 return Py_BuildValue((char *)"");
15871 }
15872 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15873 PyObject *resultobj;
15874 wxString const &arg1_defvalue = wxPyEmptyString ;
15875 wxString *arg1 = (wxString *) &arg1_defvalue ;
15876 wxMetaFile *result;
15877 bool temp1 = False ;
15878 PyObject * obj0 = 0 ;
15879 char *kwnames[] = {
15880 (char *) "filename", NULL
15881 };
15882
15883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15884 if (obj0) {
15885 {
15886 arg1 = wxString_in_helper(obj0);
15887 if (arg1 == NULL) SWIG_fail;
15888 temp1 = True;
15889 }
15890 }
15891 {
15892 if (!wxPyCheckForApp()) SWIG_fail;
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15895
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15900 {
15901 if (temp1)
15902 delete arg1;
15903 }
15904 return resultobj;
15905 fail:
15906 {
15907 if (temp1)
15908 delete arg1;
15909 }
15910 return NULL;
15911 }
15912
15913
15914 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj;
15916 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15917 PyObject * obj0 = 0 ;
15918 char *kwnames[] = {
15919 (char *) "self", NULL
15920 };
15921
15922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15925 {
15926 PyThreadState* __tstate = wxPyBeginAllowThreads();
15927 delete arg1;
15928
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 Py_INCREF(Py_None); resultobj = Py_None;
15933 return resultobj;
15934 fail:
15935 return NULL;
15936 }
15937
15938
15939 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
15940 PyObject *resultobj;
15941 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15942 bool result;
15943 PyObject * obj0 = 0 ;
15944 char *kwnames[] = {
15945 (char *) "self", NULL
15946 };
15947
15948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15951 {
15952 PyThreadState* __tstate = wxPyBeginAllowThreads();
15953 result = (bool)(arg1)->Ok();
15954
15955 wxPyEndAllowThreads(__tstate);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
15958 {
15959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15960 }
15961 return resultobj;
15962 fail:
15963 return NULL;
15964 }
15965
15966
15967 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
15968 PyObject *resultobj;
15969 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15970 int arg2 = (int) 0 ;
15971 int arg3 = (int) 0 ;
15972 bool result;
15973 PyObject * obj0 = 0 ;
15974 PyObject * obj1 = 0 ;
15975 PyObject * obj2 = 0 ;
15976 char *kwnames[] = {
15977 (char *) "self",(char *) "width",(char *) "height", NULL
15978 };
15979
15980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15983 if (obj1) {
15984 arg2 = (int)SWIG_As_int(obj1);
15985 if (PyErr_Occurred()) SWIG_fail;
15986 }
15987 if (obj2) {
15988 arg3 = (int)SWIG_As_int(obj2);
15989 if (PyErr_Occurred()) SWIG_fail;
15990 }
15991 {
15992 PyThreadState* __tstate = wxPyBeginAllowThreads();
15993 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15994
15995 wxPyEndAllowThreads(__tstate);
15996 if (PyErr_Occurred()) SWIG_fail;
15997 }
15998 {
15999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16000 }
16001 return resultobj;
16002 fail:
16003 return NULL;
16004 }
16005
16006
16007 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16008 PyObject *resultobj;
16009 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16010 wxSize result;
16011 PyObject * obj0 = 0 ;
16012 char *kwnames[] = {
16013 (char *) "self", NULL
16014 };
16015
16016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16019 {
16020 PyThreadState* __tstate = wxPyBeginAllowThreads();
16021 result = (arg1)->GetSize();
16022
16023 wxPyEndAllowThreads(__tstate);
16024 if (PyErr_Occurred()) SWIG_fail;
16025 }
16026 {
16027 wxSize * resultptr;
16028 resultptr = new wxSize((wxSize &) result);
16029 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16030 }
16031 return resultobj;
16032 fail:
16033 return NULL;
16034 }
16035
16036
16037 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
16038 PyObject *resultobj;
16039 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16040 int result;
16041 PyObject * obj0 = 0 ;
16042 char *kwnames[] = {
16043 (char *) "self", NULL
16044 };
16045
16046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16049 {
16050 PyThreadState* __tstate = wxPyBeginAllowThreads();
16051 result = (int)(arg1)->GetWidth();
16052
16053 wxPyEndAllowThreads(__tstate);
16054 if (PyErr_Occurred()) SWIG_fail;
16055 }
16056 resultobj = SWIG_From_int((int)result);
16057 return resultobj;
16058 fail:
16059 return NULL;
16060 }
16061
16062
16063 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
16064 PyObject *resultobj;
16065 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16066 int result;
16067 PyObject * obj0 = 0 ;
16068 char *kwnames[] = {
16069 (char *) "self", NULL
16070 };
16071
16072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16075 {
16076 PyThreadState* __tstate = wxPyBeginAllowThreads();
16077 result = (int)(arg1)->GetHeight();
16078
16079 wxPyEndAllowThreads(__tstate);
16080 if (PyErr_Occurred()) SWIG_fail;
16081 }
16082 resultobj = SWIG_From_int((int)result);
16083 return resultobj;
16084 fail:
16085 return NULL;
16086 }
16087
16088
16089 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
16090 PyObject *obj;
16091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16092 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16093 Py_INCREF(obj);
16094 return Py_BuildValue((char *)"");
16095 }
16096 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
16097 PyObject *resultobj;
16098 wxString const &arg1_defvalue = wxPyEmptyString ;
16099 wxString *arg1 = (wxString *) &arg1_defvalue ;
16100 int arg2 = (int) 0 ;
16101 int arg3 = (int) 0 ;
16102 wxString const &arg4_defvalue = wxPyEmptyString ;
16103 wxString *arg4 = (wxString *) &arg4_defvalue ;
16104 wxMetaFileDC *result;
16105 bool temp1 = False ;
16106 bool temp4 = False ;
16107 PyObject * obj0 = 0 ;
16108 PyObject * obj1 = 0 ;
16109 PyObject * obj2 = 0 ;
16110 PyObject * obj3 = 0 ;
16111 char *kwnames[] = {
16112 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16113 };
16114
16115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16116 if (obj0) {
16117 {
16118 arg1 = wxString_in_helper(obj0);
16119 if (arg1 == NULL) SWIG_fail;
16120 temp1 = True;
16121 }
16122 }
16123 if (obj1) {
16124 arg2 = (int)SWIG_As_int(obj1);
16125 if (PyErr_Occurred()) SWIG_fail;
16126 }
16127 if (obj2) {
16128 arg3 = (int)SWIG_As_int(obj2);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 if (obj3) {
16132 {
16133 arg4 = wxString_in_helper(obj3);
16134 if (arg4 == NULL) SWIG_fail;
16135 temp4 = True;
16136 }
16137 }
16138 {
16139 if (!wxPyCheckForApp()) SWIG_fail;
16140 PyThreadState* __tstate = wxPyBeginAllowThreads();
16141 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16142
16143 wxPyEndAllowThreads(__tstate);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 }
16146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16147 {
16148 if (temp1)
16149 delete arg1;
16150 }
16151 {
16152 if (temp4)
16153 delete arg4;
16154 }
16155 return resultobj;
16156 fail:
16157 {
16158 if (temp1)
16159 delete arg1;
16160 }
16161 {
16162 if (temp4)
16163 delete arg4;
16164 }
16165 return NULL;
16166 }
16167
16168
16169 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
16170 PyObject *resultobj;
16171 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16172 wxMetaFile *result;
16173 PyObject * obj0 = 0 ;
16174 char *kwnames[] = {
16175 (char *) "self", NULL
16176 };
16177
16178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 result = (wxMetaFile *)(arg1)->Close();
16184
16185 wxPyEndAllowThreads(__tstate);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 }
16188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16189 return resultobj;
16190 fail:
16191 return NULL;
16192 }
16193
16194
16195 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
16196 PyObject *obj;
16197 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16198 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16199 Py_INCREF(obj);
16200 return Py_BuildValue((char *)"");
16201 }
16202 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
16203 PyObject *resultobj;
16204 wxPrintData *arg1 = 0 ;
16205 wxPrinterDC *result;
16206 PyObject * obj0 = 0 ;
16207 char *kwnames[] = {
16208 (char *) "printData", NULL
16209 };
16210
16211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16213 SWIG_POINTER_EXCEPTION | 0)) == -1)
16214 SWIG_fail;
16215 if (arg1 == NULL) {
16216 PyErr_SetString(PyExc_TypeError,"null reference");
16217 SWIG_fail;
16218 }
16219 {
16220 if (!wxPyCheckForApp()) SWIG_fail;
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16223
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16228 return resultobj;
16229 fail:
16230 return NULL;
16231 }
16232
16233
16234 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
16235 PyObject *obj;
16236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16237 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16238 Py_INCREF(obj);
16239 return Py_BuildValue((char *)"");
16240 }
16241 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16242 PyObject *resultobj;
16243 int arg1 ;
16244 int arg2 ;
16245 int arg3 = (int) True ;
16246 int arg4 = (int) 1 ;
16247 wxImageList *result;
16248 PyObject * obj0 = 0 ;
16249 PyObject * obj1 = 0 ;
16250 PyObject * obj2 = 0 ;
16251 PyObject * obj3 = 0 ;
16252 char *kwnames[] = {
16253 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16254 };
16255
16256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16257 arg1 = (int)SWIG_As_int(obj0);
16258 if (PyErr_Occurred()) SWIG_fail;
16259 arg2 = (int)SWIG_As_int(obj1);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 if (obj2) {
16262 arg3 = (int)SWIG_As_int(obj2);
16263 if (PyErr_Occurred()) SWIG_fail;
16264 }
16265 if (obj3) {
16266 arg4 = (int)SWIG_As_int(obj3);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 {
16270 if (!wxPyCheckForApp()) SWIG_fail;
16271 PyThreadState* __tstate = wxPyBeginAllowThreads();
16272 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16273
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 {
16278 resultobj = wxPyMake_wxObject(result, 1);
16279 }
16280 return resultobj;
16281 fail:
16282 return NULL;
16283 }
16284
16285
16286 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16287 PyObject *resultobj;
16288 wxImageList *arg1 = (wxImageList *) 0 ;
16289 PyObject * obj0 = 0 ;
16290 char *kwnames[] = {
16291 (char *) "self", NULL
16292 };
16293
16294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16297 {
16298 PyThreadState* __tstate = wxPyBeginAllowThreads();
16299 delete arg1;
16300
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 Py_INCREF(Py_None); resultobj = Py_None;
16305 return resultobj;
16306 fail:
16307 return NULL;
16308 }
16309
16310
16311 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
16312 PyObject *resultobj;
16313 wxImageList *arg1 = (wxImageList *) 0 ;
16314 wxBitmap *arg2 = 0 ;
16315 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16316 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16317 int result;
16318 PyObject * obj0 = 0 ;
16319 PyObject * obj1 = 0 ;
16320 PyObject * obj2 = 0 ;
16321 char *kwnames[] = {
16322 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16323 };
16324
16325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16328 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16329 SWIG_POINTER_EXCEPTION | 0)) == -1)
16330 SWIG_fail;
16331 if (arg2 == NULL) {
16332 PyErr_SetString(PyExc_TypeError,"null reference");
16333 SWIG_fail;
16334 }
16335 if (obj2) {
16336 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16337 SWIG_POINTER_EXCEPTION | 0)) == -1)
16338 SWIG_fail;
16339 if (arg3 == NULL) {
16340 PyErr_SetString(PyExc_TypeError,"null reference");
16341 SWIG_fail;
16342 }
16343 }
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16347
16348 wxPyEndAllowThreads(__tstate);
16349 if (PyErr_Occurred()) SWIG_fail;
16350 }
16351 resultobj = SWIG_From_int((int)result);
16352 return resultobj;
16353 fail:
16354 return NULL;
16355 }
16356
16357
16358 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
16359 PyObject *resultobj;
16360 wxImageList *arg1 = (wxImageList *) 0 ;
16361 wxBitmap *arg2 = 0 ;
16362 wxColour *arg3 = 0 ;
16363 int result;
16364 wxColour temp3 ;
16365 PyObject * obj0 = 0 ;
16366 PyObject * obj1 = 0 ;
16367 PyObject * obj2 = 0 ;
16368 char *kwnames[] = {
16369 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16370 };
16371
16372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16376 SWIG_POINTER_EXCEPTION | 0)) == -1)
16377 SWIG_fail;
16378 if (arg2 == NULL) {
16379 PyErr_SetString(PyExc_TypeError,"null reference");
16380 SWIG_fail;
16381 }
16382 {
16383 arg3 = &temp3;
16384 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16385 }
16386 {
16387 PyThreadState* __tstate = wxPyBeginAllowThreads();
16388 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16389
16390 wxPyEndAllowThreads(__tstate);
16391 if (PyErr_Occurred()) SWIG_fail;
16392 }
16393 resultobj = SWIG_From_int((int)result);
16394 return resultobj;
16395 fail:
16396 return NULL;
16397 }
16398
16399
16400 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
16401 PyObject *resultobj;
16402 wxImageList *arg1 = (wxImageList *) 0 ;
16403 wxIcon *arg2 = 0 ;
16404 int result;
16405 PyObject * obj0 = 0 ;
16406 PyObject * obj1 = 0 ;
16407 char *kwnames[] = {
16408 (char *) "self",(char *) "icon", NULL
16409 };
16410
16411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16415 SWIG_POINTER_EXCEPTION | 0)) == -1)
16416 SWIG_fail;
16417 if (arg2 == NULL) {
16418 PyErr_SetString(PyExc_TypeError,"null reference");
16419 SWIG_fail;
16420 }
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16424
16425 wxPyEndAllowThreads(__tstate);
16426 if (PyErr_Occurred()) SWIG_fail;
16427 }
16428 resultobj = SWIG_From_int((int)result);
16429 return resultobj;
16430 fail:
16431 return NULL;
16432 }
16433
16434
16435 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
16436 PyObject *resultobj;
16437 wxImageList *arg1 = (wxImageList *) 0 ;
16438 int arg2 ;
16439 wxBitmap *arg3 = 0 ;
16440 bool result;
16441 PyObject * obj0 = 0 ;
16442 PyObject * obj1 = 0 ;
16443 PyObject * obj2 = 0 ;
16444 char *kwnames[] = {
16445 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16446 };
16447
16448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16451 arg2 = (int)SWIG_As_int(obj1);
16452 if (PyErr_Occurred()) SWIG_fail;
16453 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16454 SWIG_POINTER_EXCEPTION | 0)) == -1)
16455 SWIG_fail;
16456 if (arg3 == NULL) {
16457 PyErr_SetString(PyExc_TypeError,"null reference");
16458 SWIG_fail;
16459 }
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16463
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 {
16468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16469 }
16470 return resultobj;
16471 fail:
16472 return NULL;
16473 }
16474
16475
16476 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
16477 PyObject *resultobj;
16478 wxImageList *arg1 = (wxImageList *) 0 ;
16479 int arg2 ;
16480 wxDC *arg3 = 0 ;
16481 int arg4 ;
16482 int arg5 ;
16483 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16484 bool arg7 = (bool) (bool)False ;
16485 bool result;
16486 PyObject * obj0 = 0 ;
16487 PyObject * obj1 = 0 ;
16488 PyObject * obj2 = 0 ;
16489 PyObject * obj3 = 0 ;
16490 PyObject * obj4 = 0 ;
16491 PyObject * obj5 = 0 ;
16492 PyObject * obj6 = 0 ;
16493 char *kwnames[] = {
16494 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16495 };
16496
16497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16500 arg2 = (int)SWIG_As_int(obj1);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16503 SWIG_POINTER_EXCEPTION | 0)) == -1)
16504 SWIG_fail;
16505 if (arg3 == NULL) {
16506 PyErr_SetString(PyExc_TypeError,"null reference");
16507 SWIG_fail;
16508 }
16509 arg4 = (int)SWIG_As_int(obj3);
16510 if (PyErr_Occurred()) SWIG_fail;
16511 arg5 = (int)SWIG_As_int(obj4);
16512 if (PyErr_Occurred()) SWIG_fail;
16513 if (obj5) {
16514 arg6 = (int)SWIG_As_int(obj5);
16515 if (PyErr_Occurred()) SWIG_fail;
16516 }
16517 if (obj6) {
16518 arg7 = (bool)SWIG_As_bool(obj6);
16519 if (PyErr_Occurred()) SWIG_fail;
16520 }
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16524
16525 wxPyEndAllowThreads(__tstate);
16526 if (PyErr_Occurred()) SWIG_fail;
16527 }
16528 {
16529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16530 }
16531 return resultobj;
16532 fail:
16533 return NULL;
16534 }
16535
16536
16537 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
16538 PyObject *resultobj;
16539 wxImageList *arg1 = (wxImageList *) 0 ;
16540 int result;
16541 PyObject * obj0 = 0 ;
16542 char *kwnames[] = {
16543 (char *) "self", NULL
16544 };
16545
16546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16549 {
16550 PyThreadState* __tstate = wxPyBeginAllowThreads();
16551 result = (int)(arg1)->GetImageCount();
16552
16553 wxPyEndAllowThreads(__tstate);
16554 if (PyErr_Occurred()) SWIG_fail;
16555 }
16556 resultobj = SWIG_From_int((int)result);
16557 return resultobj;
16558 fail:
16559 return NULL;
16560 }
16561
16562
16563 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
16564 PyObject *resultobj;
16565 wxImageList *arg1 = (wxImageList *) 0 ;
16566 int arg2 ;
16567 bool result;
16568 PyObject * obj0 = 0 ;
16569 PyObject * obj1 = 0 ;
16570 char *kwnames[] = {
16571 (char *) "self",(char *) "index", NULL
16572 };
16573
16574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16577 arg2 = (int)SWIG_As_int(obj1);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 {
16580 PyThreadState* __tstate = wxPyBeginAllowThreads();
16581 result = (bool)(arg1)->Remove(arg2);
16582
16583 wxPyEndAllowThreads(__tstate);
16584 if (PyErr_Occurred()) SWIG_fail;
16585 }
16586 {
16587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16588 }
16589 return resultobj;
16590 fail:
16591 return NULL;
16592 }
16593
16594
16595 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj;
16597 wxImageList *arg1 = (wxImageList *) 0 ;
16598 bool result;
16599 PyObject * obj0 = 0 ;
16600 char *kwnames[] = {
16601 (char *) "self", NULL
16602 };
16603
16604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16607 {
16608 PyThreadState* __tstate = wxPyBeginAllowThreads();
16609 result = (bool)(arg1)->RemoveAll();
16610
16611 wxPyEndAllowThreads(__tstate);
16612 if (PyErr_Occurred()) SWIG_fail;
16613 }
16614 {
16615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16616 }
16617 return resultobj;
16618 fail:
16619 return NULL;
16620 }
16621
16622
16623 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16624 PyObject *resultobj;
16625 wxImageList *arg1 = (wxImageList *) 0 ;
16626 int arg2 ;
16627 int *arg3 = 0 ;
16628 int *arg4 = 0 ;
16629 int temp3 ;
16630 int res3 = 0 ;
16631 int temp4 ;
16632 int res4 = 0 ;
16633 PyObject * obj0 = 0 ;
16634 PyObject * obj1 = 0 ;
16635 char *kwnames[] = {
16636 (char *) "self",(char *) "index", NULL
16637 };
16638
16639 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16640 arg4 = &temp4; res4 = SWIG_NEWOBJ;
16641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16644 arg2 = (int)SWIG_As_int(obj1);
16645 if (PyErr_Occurred()) SWIG_fail;
16646 {
16647 PyThreadState* __tstate = wxPyBeginAllowThreads();
16648 (arg1)->GetSize(arg2,*arg3,*arg4);
16649
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 Py_INCREF(Py_None); resultobj = Py_None;
16654 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16655 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16656 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16657 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
16658 return resultobj;
16659 fail:
16660 return NULL;
16661 }
16662
16663
16664 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
16665 PyObject *obj;
16666 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16667 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16668 Py_INCREF(obj);
16669 return Py_BuildValue((char *)"");
16670 }
16671 static int _wrap_NORMAL_FONT_set(PyObject *) {
16672 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16673 return 1;
16674 }
16675
16676
16677 static PyObject *_wrap_NORMAL_FONT_get() {
16678 PyObject *pyobj;
16679
16680 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16681 return pyobj;
16682 }
16683
16684
16685 static int _wrap_SMALL_FONT_set(PyObject *) {
16686 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16687 return 1;
16688 }
16689
16690
16691 static PyObject *_wrap_SMALL_FONT_get() {
16692 PyObject *pyobj;
16693
16694 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16695 return pyobj;
16696 }
16697
16698
16699 static int _wrap_ITALIC_FONT_set(PyObject *) {
16700 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16701 return 1;
16702 }
16703
16704
16705 static PyObject *_wrap_ITALIC_FONT_get() {
16706 PyObject *pyobj;
16707
16708 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16709 return pyobj;
16710 }
16711
16712
16713 static int _wrap_SWISS_FONT_set(PyObject *) {
16714 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16715 return 1;
16716 }
16717
16718
16719 static PyObject *_wrap_SWISS_FONT_get() {
16720 PyObject *pyobj;
16721
16722 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16723 return pyobj;
16724 }
16725
16726
16727 static int _wrap_RED_PEN_set(PyObject *) {
16728 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16729 return 1;
16730 }
16731
16732
16733 static PyObject *_wrap_RED_PEN_get() {
16734 PyObject *pyobj;
16735
16736 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16737 return pyobj;
16738 }
16739
16740
16741 static int _wrap_CYAN_PEN_set(PyObject *) {
16742 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16743 return 1;
16744 }
16745
16746
16747 static PyObject *_wrap_CYAN_PEN_get() {
16748 PyObject *pyobj;
16749
16750 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16751 return pyobj;
16752 }
16753
16754
16755 static int _wrap_GREEN_PEN_set(PyObject *) {
16756 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16757 return 1;
16758 }
16759
16760
16761 static PyObject *_wrap_GREEN_PEN_get() {
16762 PyObject *pyobj;
16763
16764 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16765 return pyobj;
16766 }
16767
16768
16769 static int _wrap_BLACK_PEN_set(PyObject *) {
16770 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16771 return 1;
16772 }
16773
16774
16775 static PyObject *_wrap_BLACK_PEN_get() {
16776 PyObject *pyobj;
16777
16778 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16779 return pyobj;
16780 }
16781
16782
16783 static int _wrap_WHITE_PEN_set(PyObject *) {
16784 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16785 return 1;
16786 }
16787
16788
16789 static PyObject *_wrap_WHITE_PEN_get() {
16790 PyObject *pyobj;
16791
16792 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16793 return pyobj;
16794 }
16795
16796
16797 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16798 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16799 return 1;
16800 }
16801
16802
16803 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16804 PyObject *pyobj;
16805
16806 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16807 return pyobj;
16808 }
16809
16810
16811 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16812 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16813 return 1;
16814 }
16815
16816
16817 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16818 PyObject *pyobj;
16819
16820 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16821 return pyobj;
16822 }
16823
16824
16825 static int _wrap_GREY_PEN_set(PyObject *) {
16826 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16827 return 1;
16828 }
16829
16830
16831 static PyObject *_wrap_GREY_PEN_get() {
16832 PyObject *pyobj;
16833
16834 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16835 return pyobj;
16836 }
16837
16838
16839 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16840 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16841 return 1;
16842 }
16843
16844
16845 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16846 PyObject *pyobj;
16847
16848 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16849 return pyobj;
16850 }
16851
16852
16853 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16854 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16855 return 1;
16856 }
16857
16858
16859 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16860 PyObject *pyobj;
16861
16862 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16863 return pyobj;
16864 }
16865
16866
16867 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16868 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16869 return 1;
16870 }
16871
16872
16873 static PyObject *_wrap_BLUE_BRUSH_get() {
16874 PyObject *pyobj;
16875
16876 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16877 return pyobj;
16878 }
16879
16880
16881 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16882 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16883 return 1;
16884 }
16885
16886
16887 static PyObject *_wrap_GREEN_BRUSH_get() {
16888 PyObject *pyobj;
16889
16890 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16891 return pyobj;
16892 }
16893
16894
16895 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16896 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16897 return 1;
16898 }
16899
16900
16901 static PyObject *_wrap_WHITE_BRUSH_get() {
16902 PyObject *pyobj;
16903
16904 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16905 return pyobj;
16906 }
16907
16908
16909 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16910 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16911 return 1;
16912 }
16913
16914
16915 static PyObject *_wrap_BLACK_BRUSH_get() {
16916 PyObject *pyobj;
16917
16918 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16919 return pyobj;
16920 }
16921
16922
16923 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16924 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16925 return 1;
16926 }
16927
16928
16929 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16930 PyObject *pyobj;
16931
16932 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16933 return pyobj;
16934 }
16935
16936
16937 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16938 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16939 return 1;
16940 }
16941
16942
16943 static PyObject *_wrap_CYAN_BRUSH_get() {
16944 PyObject *pyobj;
16945
16946 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16947 return pyobj;
16948 }
16949
16950
16951 static int _wrap_RED_BRUSH_set(PyObject *) {
16952 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16953 return 1;
16954 }
16955
16956
16957 static PyObject *_wrap_RED_BRUSH_get() {
16958 PyObject *pyobj;
16959
16960 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16961 return pyobj;
16962 }
16963
16964
16965 static int _wrap_GREY_BRUSH_set(PyObject *) {
16966 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16967 return 1;
16968 }
16969
16970
16971 static PyObject *_wrap_GREY_BRUSH_get() {
16972 PyObject *pyobj;
16973
16974 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16975 return pyobj;
16976 }
16977
16978
16979 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16980 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16981 return 1;
16982 }
16983
16984
16985 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16986 PyObject *pyobj;
16987
16988 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16989 return pyobj;
16990 }
16991
16992
16993 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16994 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16995 return 1;
16996 }
16997
16998
16999 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17000 PyObject *pyobj;
17001
17002 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17003 return pyobj;
17004 }
17005
17006
17007 static int _wrap_BLACK_set(PyObject *) {
17008 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17009 return 1;
17010 }
17011
17012
17013 static PyObject *_wrap_BLACK_get() {
17014 PyObject *pyobj;
17015
17016 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17017 return pyobj;
17018 }
17019
17020
17021 static int _wrap_WHITE_set(PyObject *) {
17022 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17023 return 1;
17024 }
17025
17026
17027 static PyObject *_wrap_WHITE_get() {
17028 PyObject *pyobj;
17029
17030 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17031 return pyobj;
17032 }
17033
17034
17035 static int _wrap_RED_set(PyObject *) {
17036 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17037 return 1;
17038 }
17039
17040
17041 static PyObject *_wrap_RED_get() {
17042 PyObject *pyobj;
17043
17044 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17045 return pyobj;
17046 }
17047
17048
17049 static int _wrap_BLUE_set(PyObject *) {
17050 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17051 return 1;
17052 }
17053
17054
17055 static PyObject *_wrap_BLUE_get() {
17056 PyObject *pyobj;
17057
17058 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17059 return pyobj;
17060 }
17061
17062
17063 static int _wrap_GREEN_set(PyObject *) {
17064 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17065 return 1;
17066 }
17067
17068
17069 static PyObject *_wrap_GREEN_get() {
17070 PyObject *pyobj;
17071
17072 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17073 return pyobj;
17074 }
17075
17076
17077 static int _wrap_CYAN_set(PyObject *) {
17078 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17079 return 1;
17080 }
17081
17082
17083 static PyObject *_wrap_CYAN_get() {
17084 PyObject *pyobj;
17085
17086 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17087 return pyobj;
17088 }
17089
17090
17091 static int _wrap_LIGHT_GREY_set(PyObject *) {
17092 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17093 return 1;
17094 }
17095
17096
17097 static PyObject *_wrap_LIGHT_GREY_get() {
17098 PyObject *pyobj;
17099
17100 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17101 return pyobj;
17102 }
17103
17104
17105 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
17106 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17107 return 1;
17108 }
17109
17110
17111 static PyObject *_wrap_STANDARD_CURSOR_get() {
17112 PyObject *pyobj;
17113
17114 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17115 return pyobj;
17116 }
17117
17118
17119 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
17120 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17121 return 1;
17122 }
17123
17124
17125 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17126 PyObject *pyobj;
17127
17128 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17129 return pyobj;
17130 }
17131
17132
17133 static int _wrap_CROSS_CURSOR_set(PyObject *) {
17134 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17135 return 1;
17136 }
17137
17138
17139 static PyObject *_wrap_CROSS_CURSOR_get() {
17140 PyObject *pyobj;
17141
17142 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17143 return pyobj;
17144 }
17145
17146
17147 static int _wrap_NullBitmap_set(PyObject *) {
17148 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17149 return 1;
17150 }
17151
17152
17153 static PyObject *_wrap_NullBitmap_get() {
17154 PyObject *pyobj;
17155
17156 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17157 return pyobj;
17158 }
17159
17160
17161 static int _wrap_NullIcon_set(PyObject *) {
17162 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17163 return 1;
17164 }
17165
17166
17167 static PyObject *_wrap_NullIcon_get() {
17168 PyObject *pyobj;
17169
17170 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17171 return pyobj;
17172 }
17173
17174
17175 static int _wrap_NullCursor_set(PyObject *) {
17176 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17177 return 1;
17178 }
17179
17180
17181 static PyObject *_wrap_NullCursor_get() {
17182 PyObject *pyobj;
17183
17184 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17185 return pyobj;
17186 }
17187
17188
17189 static int _wrap_NullPen_set(PyObject *) {
17190 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17191 return 1;
17192 }
17193
17194
17195 static PyObject *_wrap_NullPen_get() {
17196 PyObject *pyobj;
17197
17198 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17199 return pyobj;
17200 }
17201
17202
17203 static int _wrap_NullBrush_set(PyObject *) {
17204 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17205 return 1;
17206 }
17207
17208
17209 static PyObject *_wrap_NullBrush_get() {
17210 PyObject *pyobj;
17211
17212 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17213 return pyobj;
17214 }
17215
17216
17217 static int _wrap_NullPalette_set(PyObject *) {
17218 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17219 return 1;
17220 }
17221
17222
17223 static PyObject *_wrap_NullPalette_get() {
17224 PyObject *pyobj;
17225
17226 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17227 return pyobj;
17228 }
17229
17230
17231 static int _wrap_NullFont_set(PyObject *) {
17232 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17233 return 1;
17234 }
17235
17236
17237 static PyObject *_wrap_NullFont_get() {
17238 PyObject *pyobj;
17239
17240 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17241 return pyobj;
17242 }
17243
17244
17245 static int _wrap_NullColour_set(PyObject *) {
17246 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17247 return 1;
17248 }
17249
17250
17251 static PyObject *_wrap_NullColour_get() {
17252 PyObject *pyobj;
17253
17254 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17255 return pyobj;
17256 }
17257
17258
17259 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
17260 PyObject *resultobj;
17261 wxPenList *arg1 = (wxPenList *) 0 ;
17262 wxPen *arg2 = (wxPen *) 0 ;
17263 PyObject * obj0 = 0 ;
17264 PyObject * obj1 = 0 ;
17265 char *kwnames[] = {
17266 (char *) "self",(char *) "pen", NULL
17267 };
17268
17269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17274 {
17275 PyThreadState* __tstate = wxPyBeginAllowThreads();
17276 (arg1)->AddPen(arg2);
17277
17278 wxPyEndAllowThreads(__tstate);
17279 if (PyErr_Occurred()) SWIG_fail;
17280 }
17281 Py_INCREF(Py_None); resultobj = Py_None;
17282 return resultobj;
17283 fail:
17284 return NULL;
17285 }
17286
17287
17288 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
17289 PyObject *resultobj;
17290 wxPenList *arg1 = (wxPenList *) 0 ;
17291 wxColour *arg2 = 0 ;
17292 int arg3 ;
17293 int arg4 ;
17294 wxPen *result;
17295 wxColour temp2 ;
17296 PyObject * obj0 = 0 ;
17297 PyObject * obj1 = 0 ;
17298 PyObject * obj2 = 0 ;
17299 PyObject * obj3 = 0 ;
17300 char *kwnames[] = {
17301 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17302 };
17303
17304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17307 {
17308 arg2 = &temp2;
17309 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17310 }
17311 arg3 = (int)SWIG_As_int(obj2);
17312 if (PyErr_Occurred()) SWIG_fail;
17313 arg4 = (int)SWIG_As_int(obj3);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17323 return resultobj;
17324 fail:
17325 return NULL;
17326 }
17327
17328
17329 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
17330 PyObject *resultobj;
17331 wxPenList *arg1 = (wxPenList *) 0 ;
17332 wxPen *arg2 = (wxPen *) 0 ;
17333 PyObject * obj0 = 0 ;
17334 PyObject * obj1 = 0 ;
17335 char *kwnames[] = {
17336 (char *) "self",(char *) "pen", NULL
17337 };
17338
17339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17342 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17344 {
17345 PyThreadState* __tstate = wxPyBeginAllowThreads();
17346 (arg1)->RemovePen(arg2);
17347
17348 wxPyEndAllowThreads(__tstate);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 }
17351 Py_INCREF(Py_None); resultobj = Py_None;
17352 return resultobj;
17353 fail:
17354 return NULL;
17355 }
17356
17357
17358 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17359 PyObject *resultobj;
17360 wxPenList *arg1 = (wxPenList *) 0 ;
17361 int result;
17362 PyObject * obj0 = 0 ;
17363 char *kwnames[] = {
17364 (char *) "self", NULL
17365 };
17366
17367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17370 {
17371 PyThreadState* __tstate = wxPyBeginAllowThreads();
17372 result = (int)(arg1)->GetCount();
17373
17374 wxPyEndAllowThreads(__tstate);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 }
17377 resultobj = SWIG_From_int((int)result);
17378 return resultobj;
17379 fail:
17380 return NULL;
17381 }
17382
17383
17384 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
17385 PyObject *obj;
17386 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17387 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17388 Py_INCREF(obj);
17389 return Py_BuildValue((char *)"");
17390 }
17391 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17392 PyObject *resultobj;
17393 wxBrushList *arg1 = (wxBrushList *) 0 ;
17394 wxBrush *arg2 = (wxBrush *) 0 ;
17395 PyObject * obj0 = 0 ;
17396 PyObject * obj1 = 0 ;
17397 char *kwnames[] = {
17398 (char *) "self",(char *) "brush", NULL
17399 };
17400
17401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17404 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17406 {
17407 PyThreadState* __tstate = wxPyBeginAllowThreads();
17408 (arg1)->AddBrush(arg2);
17409
17410 wxPyEndAllowThreads(__tstate);
17411 if (PyErr_Occurred()) SWIG_fail;
17412 }
17413 Py_INCREF(Py_None); resultobj = Py_None;
17414 return resultobj;
17415 fail:
17416 return NULL;
17417 }
17418
17419
17420 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17421 PyObject *resultobj;
17422 wxBrushList *arg1 = (wxBrushList *) 0 ;
17423 wxColour *arg2 = 0 ;
17424 int arg3 ;
17425 wxBrush *result;
17426 wxColour temp2 ;
17427 PyObject * obj0 = 0 ;
17428 PyObject * obj1 = 0 ;
17429 PyObject * obj2 = 0 ;
17430 char *kwnames[] = {
17431 (char *) "self",(char *) "colour",(char *) "style", NULL
17432 };
17433
17434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17437 {
17438 arg2 = &temp2;
17439 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17440 }
17441 arg3 = (int)SWIG_As_int(obj2);
17442 if (PyErr_Occurred()) SWIG_fail;
17443 {
17444 PyThreadState* __tstate = wxPyBeginAllowThreads();
17445 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17446
17447 wxPyEndAllowThreads(__tstate);
17448 if (PyErr_Occurred()) SWIG_fail;
17449 }
17450 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17451 return resultobj;
17452 fail:
17453 return NULL;
17454 }
17455
17456
17457 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17458 PyObject *resultobj;
17459 wxBrushList *arg1 = (wxBrushList *) 0 ;
17460 wxBrush *arg2 = (wxBrush *) 0 ;
17461 PyObject * obj0 = 0 ;
17462 PyObject * obj1 = 0 ;
17463 char *kwnames[] = {
17464 (char *) "self",(char *) "brush", NULL
17465 };
17466
17467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17472 {
17473 PyThreadState* __tstate = wxPyBeginAllowThreads();
17474 (arg1)->RemoveBrush(arg2);
17475
17476 wxPyEndAllowThreads(__tstate);
17477 if (PyErr_Occurred()) SWIG_fail;
17478 }
17479 Py_INCREF(Py_None); resultobj = Py_None;
17480 return resultobj;
17481 fail:
17482 return NULL;
17483 }
17484
17485
17486 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17487 PyObject *resultobj;
17488 wxBrushList *arg1 = (wxBrushList *) 0 ;
17489 int result;
17490 PyObject * obj0 = 0 ;
17491 char *kwnames[] = {
17492 (char *) "self", NULL
17493 };
17494
17495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17498 {
17499 PyThreadState* __tstate = wxPyBeginAllowThreads();
17500 result = (int)(arg1)->GetCount();
17501
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 resultobj = SWIG_From_int((int)result);
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
17513 PyObject *obj;
17514 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17515 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17516 Py_INCREF(obj);
17517 return Py_BuildValue((char *)"");
17518 }
17519 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17520 PyObject *resultobj;
17521 wxColourDatabase *result;
17522 char *kwnames[] = {
17523 NULL
17524 };
17525
17526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17527 {
17528 if (!wxPyCheckForApp()) SWIG_fail;
17529 PyThreadState* __tstate = wxPyBeginAllowThreads();
17530 result = (wxColourDatabase *)new wxColourDatabase();
17531
17532 wxPyEndAllowThreads(__tstate);
17533 if (PyErr_Occurred()) SWIG_fail;
17534 }
17535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17536 return resultobj;
17537 fail:
17538 return NULL;
17539 }
17540
17541
17542 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17543 PyObject *resultobj;
17544 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17545 PyObject * obj0 = 0 ;
17546 char *kwnames[] = {
17547 (char *) "self", NULL
17548 };
17549
17550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17553 {
17554 PyThreadState* __tstate = wxPyBeginAllowThreads();
17555 delete arg1;
17556
17557 wxPyEndAllowThreads(__tstate);
17558 if (PyErr_Occurred()) SWIG_fail;
17559 }
17560 Py_INCREF(Py_None); resultobj = Py_None;
17561 return resultobj;
17562 fail:
17563 return NULL;
17564 }
17565
17566
17567 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
17568 PyObject *resultobj;
17569 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17570 wxString *arg2 = 0 ;
17571 wxColour result;
17572 bool temp2 = False ;
17573 PyObject * obj0 = 0 ;
17574 PyObject * obj1 = 0 ;
17575 char *kwnames[] = {
17576 (char *) "self",(char *) "name", NULL
17577 };
17578
17579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17582 {
17583 arg2 = wxString_in_helper(obj1);
17584 if (arg2 == NULL) SWIG_fail;
17585 temp2 = True;
17586 }
17587 {
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17590
17591 wxPyEndAllowThreads(__tstate);
17592 if (PyErr_Occurred()) SWIG_fail;
17593 }
17594 {
17595 wxColour * resultptr;
17596 resultptr = new wxColour((wxColour &) result);
17597 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17598 }
17599 {
17600 if (temp2)
17601 delete arg2;
17602 }
17603 return resultobj;
17604 fail:
17605 {
17606 if (temp2)
17607 delete arg2;
17608 }
17609 return NULL;
17610 }
17611
17612
17613 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
17614 PyObject *resultobj;
17615 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17616 wxColour *arg2 = 0 ;
17617 wxString result;
17618 wxColour temp2 ;
17619 PyObject * obj0 = 0 ;
17620 PyObject * obj1 = 0 ;
17621 char *kwnames[] = {
17622 (char *) "self",(char *) "colour", NULL
17623 };
17624
17625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17628 {
17629 arg2 = &temp2;
17630 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17631 }
17632 {
17633 PyThreadState* __tstate = wxPyBeginAllowThreads();
17634 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17635
17636 wxPyEndAllowThreads(__tstate);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 }
17639 {
17640 #if wxUSE_UNICODE
17641 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17642 #else
17643 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17644 #endif
17645 }
17646 return resultobj;
17647 fail:
17648 return NULL;
17649 }
17650
17651
17652 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj;
17654 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17655 wxString *arg2 = 0 ;
17656 wxColour *arg3 = 0 ;
17657 bool temp2 = False ;
17658 wxColour temp3 ;
17659 PyObject * obj0 = 0 ;
17660 PyObject * obj1 = 0 ;
17661 PyObject * obj2 = 0 ;
17662 char *kwnames[] = {
17663 (char *) "self",(char *) "name",(char *) "colour", NULL
17664 };
17665
17666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17669 {
17670 arg2 = wxString_in_helper(obj1);
17671 if (arg2 == NULL) SWIG_fail;
17672 temp2 = True;
17673 }
17674 {
17675 arg3 = &temp3;
17676 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17677 }
17678 {
17679 PyThreadState* __tstate = wxPyBeginAllowThreads();
17680 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17681
17682 wxPyEndAllowThreads(__tstate);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 Py_INCREF(Py_None); resultobj = Py_None;
17686 {
17687 if (temp2)
17688 delete arg2;
17689 }
17690 return resultobj;
17691 fail:
17692 {
17693 if (temp2)
17694 delete arg2;
17695 }
17696 return NULL;
17697 }
17698
17699
17700 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
17701 PyObject *resultobj;
17702 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17703 wxString *arg2 = 0 ;
17704 int arg3 ;
17705 int arg4 ;
17706 int arg5 ;
17707 bool temp2 = False ;
17708 PyObject * obj0 = 0 ;
17709 PyObject * obj1 = 0 ;
17710 PyObject * obj2 = 0 ;
17711 PyObject * obj3 = 0 ;
17712 PyObject * obj4 = 0 ;
17713 char *kwnames[] = {
17714 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17715 };
17716
17717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17720 {
17721 arg2 = wxString_in_helper(obj1);
17722 if (arg2 == NULL) SWIG_fail;
17723 temp2 = True;
17724 }
17725 arg3 = (int)SWIG_As_int(obj2);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 arg4 = (int)SWIG_As_int(obj3);
17728 if (PyErr_Occurred()) SWIG_fail;
17729 arg5 = (int)SWIG_As_int(obj4);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 {
17732 PyThreadState* __tstate = wxPyBeginAllowThreads();
17733 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17734
17735 wxPyEndAllowThreads(__tstate);
17736 if (PyErr_Occurred()) SWIG_fail;
17737 }
17738 Py_INCREF(Py_None); resultobj = Py_None;
17739 {
17740 if (temp2)
17741 delete arg2;
17742 }
17743 return resultobj;
17744 fail:
17745 {
17746 if (temp2)
17747 delete arg2;
17748 }
17749 return NULL;
17750 }
17751
17752
17753 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
17754 PyObject *obj;
17755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17756 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17757 Py_INCREF(obj);
17758 return Py_BuildValue((char *)"");
17759 }
17760 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
17761 PyObject *resultobj;
17762 wxFontList *arg1 = (wxFontList *) 0 ;
17763 wxFont *arg2 = (wxFont *) 0 ;
17764 PyObject * obj0 = 0 ;
17765 PyObject * obj1 = 0 ;
17766 char *kwnames[] = {
17767 (char *) "self",(char *) "font", NULL
17768 };
17769
17770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17773 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17775 {
17776 PyThreadState* __tstate = wxPyBeginAllowThreads();
17777 (arg1)->AddFont(arg2);
17778
17779 wxPyEndAllowThreads(__tstate);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 Py_INCREF(Py_None); resultobj = Py_None;
17783 return resultobj;
17784 fail:
17785 return NULL;
17786 }
17787
17788
17789 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
17790 PyObject *resultobj;
17791 wxFontList *arg1 = (wxFontList *) 0 ;
17792 int arg2 ;
17793 int arg3 ;
17794 int arg4 ;
17795 int arg5 ;
17796 bool arg6 = (bool) False ;
17797 wxString const &arg7_defvalue = wxPyEmptyString ;
17798 wxString *arg7 = (wxString *) &arg7_defvalue ;
17799 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17800 wxFont *result;
17801 bool temp7 = False ;
17802 PyObject * obj0 = 0 ;
17803 PyObject * obj1 = 0 ;
17804 PyObject * obj2 = 0 ;
17805 PyObject * obj3 = 0 ;
17806 PyObject * obj4 = 0 ;
17807 PyObject * obj5 = 0 ;
17808 PyObject * obj6 = 0 ;
17809 PyObject * obj7 = 0 ;
17810 char *kwnames[] = {
17811 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17812 };
17813
17814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17817 arg2 = (int)SWIG_As_int(obj1);
17818 if (PyErr_Occurred()) SWIG_fail;
17819 arg3 = (int)SWIG_As_int(obj2);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 arg4 = (int)SWIG_As_int(obj3);
17822 if (PyErr_Occurred()) SWIG_fail;
17823 arg5 = (int)SWIG_As_int(obj4);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 if (obj5) {
17826 arg6 = (bool)SWIG_As_bool(obj5);
17827 if (PyErr_Occurred()) SWIG_fail;
17828 }
17829 if (obj6) {
17830 {
17831 arg7 = wxString_in_helper(obj6);
17832 if (arg7 == NULL) SWIG_fail;
17833 temp7 = True;
17834 }
17835 }
17836 if (obj7) {
17837 arg8 = (int)SWIG_As_int(obj7);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 {
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17843
17844 wxPyEndAllowThreads(__tstate);
17845 if (PyErr_Occurred()) SWIG_fail;
17846 }
17847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17848 {
17849 if (temp7)
17850 delete arg7;
17851 }
17852 return resultobj;
17853 fail:
17854 {
17855 if (temp7)
17856 delete arg7;
17857 }
17858 return NULL;
17859 }
17860
17861
17862 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
17863 PyObject *resultobj;
17864 wxFontList *arg1 = (wxFontList *) 0 ;
17865 wxFont *arg2 = (wxFont *) 0 ;
17866 PyObject * obj0 = 0 ;
17867 PyObject * obj1 = 0 ;
17868 char *kwnames[] = {
17869 (char *) "self",(char *) "font", NULL
17870 };
17871
17872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17875 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 (arg1)->RemoveFont(arg2);
17880
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 Py_INCREF(Py_None); resultobj = Py_None;
17885 return resultobj;
17886 fail:
17887 return NULL;
17888 }
17889
17890
17891 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17892 PyObject *resultobj;
17893 wxFontList *arg1 = (wxFontList *) 0 ;
17894 int result;
17895 PyObject * obj0 = 0 ;
17896 char *kwnames[] = {
17897 (char *) "self", NULL
17898 };
17899
17900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17903 {
17904 PyThreadState* __tstate = wxPyBeginAllowThreads();
17905 result = (int)(arg1)->GetCount();
17906
17907 wxPyEndAllowThreads(__tstate);
17908 if (PyErr_Occurred()) SWIG_fail;
17909 }
17910 resultobj = SWIG_From_int((int)result);
17911 return resultobj;
17912 fail:
17913 return NULL;
17914 }
17915
17916
17917 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
17918 PyObject *obj;
17919 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17920 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17921 Py_INCREF(obj);
17922 return Py_BuildValue((char *)"");
17923 }
17924 static int _wrap_TheFontList_set(PyObject *) {
17925 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17926 return 1;
17927 }
17928
17929
17930 static PyObject *_wrap_TheFontList_get() {
17931 PyObject *pyobj;
17932
17933 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17934 return pyobj;
17935 }
17936
17937
17938 static int _wrap_ThePenList_set(PyObject *) {
17939 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17940 return 1;
17941 }
17942
17943
17944 static PyObject *_wrap_ThePenList_get() {
17945 PyObject *pyobj;
17946
17947 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17948 return pyobj;
17949 }
17950
17951
17952 static int _wrap_TheBrushList_set(PyObject *) {
17953 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17954 return 1;
17955 }
17956
17957
17958 static PyObject *_wrap_TheBrushList_get() {
17959 PyObject *pyobj;
17960
17961 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17962 return pyobj;
17963 }
17964
17965
17966 static int _wrap_TheColourDatabase_set(PyObject *) {
17967 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17968 return 1;
17969 }
17970
17971
17972 static PyObject *_wrap_TheColourDatabase_get() {
17973 PyObject *pyobj;
17974
17975 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17976 return pyobj;
17977 }
17978
17979
17980 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
17981 PyObject *resultobj;
17982 wxEffects *result;
17983 char *kwnames[] = {
17984 NULL
17985 };
17986
17987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 result = (wxEffects *)new wxEffects();
17991
17992 wxPyEndAllowThreads(__tstate);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 }
17995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17996 return resultobj;
17997 fail:
17998 return NULL;
17999 }
18000
18001
18002 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18003 PyObject *resultobj;
18004 wxEffects *arg1 = (wxEffects *) 0 ;
18005 wxColour result;
18006 PyObject * obj0 = 0 ;
18007 char *kwnames[] = {
18008 (char *) "self", NULL
18009 };
18010
18011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18014 {
18015 PyThreadState* __tstate = wxPyBeginAllowThreads();
18016 result = ((wxEffects const *)arg1)->GetHighlightColour();
18017
18018 wxPyEndAllowThreads(__tstate);
18019 if (PyErr_Occurred()) SWIG_fail;
18020 }
18021 {
18022 wxColour * resultptr;
18023 resultptr = new wxColour((wxColour &) result);
18024 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18025 }
18026 return resultobj;
18027 fail:
18028 return NULL;
18029 }
18030
18031
18032 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18033 PyObject *resultobj;
18034 wxEffects *arg1 = (wxEffects *) 0 ;
18035 wxColour result;
18036 PyObject * obj0 = 0 ;
18037 char *kwnames[] = {
18038 (char *) "self", NULL
18039 };
18040
18041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18044 {
18045 PyThreadState* __tstate = wxPyBeginAllowThreads();
18046 result = ((wxEffects const *)arg1)->GetLightShadow();
18047
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 {
18052 wxColour * resultptr;
18053 resultptr = new wxColour((wxColour &) result);
18054 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18055 }
18056 return resultobj;
18057 fail:
18058 return NULL;
18059 }
18060
18061
18062 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18063 PyObject *resultobj;
18064 wxEffects *arg1 = (wxEffects *) 0 ;
18065 wxColour result;
18066 PyObject * obj0 = 0 ;
18067 char *kwnames[] = {
18068 (char *) "self", NULL
18069 };
18070
18071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18074 {
18075 PyThreadState* __tstate = wxPyBeginAllowThreads();
18076 result = ((wxEffects const *)arg1)->GetFaceColour();
18077
18078 wxPyEndAllowThreads(__tstate);
18079 if (PyErr_Occurred()) SWIG_fail;
18080 }
18081 {
18082 wxColour * resultptr;
18083 resultptr = new wxColour((wxColour &) result);
18084 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18085 }
18086 return resultobj;
18087 fail:
18088 return NULL;
18089 }
18090
18091
18092 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18093 PyObject *resultobj;
18094 wxEffects *arg1 = (wxEffects *) 0 ;
18095 wxColour result;
18096 PyObject * obj0 = 0 ;
18097 char *kwnames[] = {
18098 (char *) "self", NULL
18099 };
18100
18101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18104 {
18105 PyThreadState* __tstate = wxPyBeginAllowThreads();
18106 result = ((wxEffects const *)arg1)->GetMediumShadow();
18107
18108 wxPyEndAllowThreads(__tstate);
18109 if (PyErr_Occurred()) SWIG_fail;
18110 }
18111 {
18112 wxColour * resultptr;
18113 resultptr = new wxColour((wxColour &) result);
18114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18115 }
18116 return resultobj;
18117 fail:
18118 return NULL;
18119 }
18120
18121
18122 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18123 PyObject *resultobj;
18124 wxEffects *arg1 = (wxEffects *) 0 ;
18125 wxColour result;
18126 PyObject * obj0 = 0 ;
18127 char *kwnames[] = {
18128 (char *) "self", NULL
18129 };
18130
18131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18134 {
18135 PyThreadState* __tstate = wxPyBeginAllowThreads();
18136 result = ((wxEffects const *)arg1)->GetDarkShadow();
18137
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 {
18142 wxColour * resultptr;
18143 resultptr = new wxColour((wxColour &) result);
18144 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18145 }
18146 return resultobj;
18147 fail:
18148 return NULL;
18149 }
18150
18151
18152 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18153 PyObject *resultobj;
18154 wxEffects *arg1 = (wxEffects *) 0 ;
18155 wxColour *arg2 = 0 ;
18156 wxColour temp2 ;
18157 PyObject * obj0 = 0 ;
18158 PyObject * obj1 = 0 ;
18159 char *kwnames[] = {
18160 (char *) "self",(char *) "c", NULL
18161 };
18162
18163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18166 {
18167 arg2 = &temp2;
18168 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18169 }
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18173
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 Py_INCREF(Py_None); resultobj = Py_None;
18178 return resultobj;
18179 fail:
18180 return NULL;
18181 }
18182
18183
18184 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18185 PyObject *resultobj;
18186 wxEffects *arg1 = (wxEffects *) 0 ;
18187 wxColour *arg2 = 0 ;
18188 wxColour temp2 ;
18189 PyObject * obj0 = 0 ;
18190 PyObject * obj1 = 0 ;
18191 char *kwnames[] = {
18192 (char *) "self",(char *) "c", NULL
18193 };
18194
18195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18198 {
18199 arg2 = &temp2;
18200 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18201 }
18202 {
18203 PyThreadState* __tstate = wxPyBeginAllowThreads();
18204 (arg1)->SetLightShadow((wxColour const &)*arg2);
18205
18206 wxPyEndAllowThreads(__tstate);
18207 if (PyErr_Occurred()) SWIG_fail;
18208 }
18209 Py_INCREF(Py_None); resultobj = Py_None;
18210 return resultobj;
18211 fail:
18212 return NULL;
18213 }
18214
18215
18216 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18217 PyObject *resultobj;
18218 wxEffects *arg1 = (wxEffects *) 0 ;
18219 wxColour *arg2 = 0 ;
18220 wxColour temp2 ;
18221 PyObject * obj0 = 0 ;
18222 PyObject * obj1 = 0 ;
18223 char *kwnames[] = {
18224 (char *) "self",(char *) "c", NULL
18225 };
18226
18227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18230 {
18231 arg2 = &temp2;
18232 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18233 }
18234 {
18235 PyThreadState* __tstate = wxPyBeginAllowThreads();
18236 (arg1)->SetFaceColour((wxColour const &)*arg2);
18237
18238 wxPyEndAllowThreads(__tstate);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 }
18241 Py_INCREF(Py_None); resultobj = Py_None;
18242 return resultobj;
18243 fail:
18244 return NULL;
18245 }
18246
18247
18248 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18249 PyObject *resultobj;
18250 wxEffects *arg1 = (wxEffects *) 0 ;
18251 wxColour *arg2 = 0 ;
18252 wxColour temp2 ;
18253 PyObject * obj0 = 0 ;
18254 PyObject * obj1 = 0 ;
18255 char *kwnames[] = {
18256 (char *) "self",(char *) "c", NULL
18257 };
18258
18259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18262 {
18263 arg2 = &temp2;
18264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18265 }
18266 {
18267 PyThreadState* __tstate = wxPyBeginAllowThreads();
18268 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18269
18270 wxPyEndAllowThreads(__tstate);
18271 if (PyErr_Occurred()) SWIG_fail;
18272 }
18273 Py_INCREF(Py_None); resultobj = Py_None;
18274 return resultobj;
18275 fail:
18276 return NULL;
18277 }
18278
18279
18280 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18281 PyObject *resultobj;
18282 wxEffects *arg1 = (wxEffects *) 0 ;
18283 wxColour *arg2 = 0 ;
18284 wxColour temp2 ;
18285 PyObject * obj0 = 0 ;
18286 PyObject * obj1 = 0 ;
18287 char *kwnames[] = {
18288 (char *) "self",(char *) "c", NULL
18289 };
18290
18291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18294 {
18295 arg2 = &temp2;
18296 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18297 }
18298 {
18299 PyThreadState* __tstate = wxPyBeginAllowThreads();
18300 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18301
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 Py_INCREF(Py_None); resultobj = Py_None;
18306 return resultobj;
18307 fail:
18308 return NULL;
18309 }
18310
18311
18312 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj;
18314 wxEffects *arg1 = (wxEffects *) 0 ;
18315 wxColour *arg2 = 0 ;
18316 wxColour *arg3 = 0 ;
18317 wxColour *arg4 = 0 ;
18318 wxColour *arg5 = 0 ;
18319 wxColour *arg6 = 0 ;
18320 wxColour temp2 ;
18321 wxColour temp3 ;
18322 wxColour temp4 ;
18323 wxColour temp5 ;
18324 wxColour temp6 ;
18325 PyObject * obj0 = 0 ;
18326 PyObject * obj1 = 0 ;
18327 PyObject * obj2 = 0 ;
18328 PyObject * obj3 = 0 ;
18329 PyObject * obj4 = 0 ;
18330 PyObject * obj5 = 0 ;
18331 char *kwnames[] = {
18332 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18333 };
18334
18335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18338 {
18339 arg2 = &temp2;
18340 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18341 }
18342 {
18343 arg3 = &temp3;
18344 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18345 }
18346 {
18347 arg4 = &temp4;
18348 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18349 }
18350 {
18351 arg5 = &temp5;
18352 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18353 }
18354 {
18355 arg6 = &temp6;
18356 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18357 }
18358 {
18359 PyThreadState* __tstate = wxPyBeginAllowThreads();
18360 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18361
18362 wxPyEndAllowThreads(__tstate);
18363 if (PyErr_Occurred()) SWIG_fail;
18364 }
18365 Py_INCREF(Py_None); resultobj = Py_None;
18366 return resultobj;
18367 fail:
18368 return NULL;
18369 }
18370
18371
18372 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
18373 PyObject *resultobj;
18374 wxEffects *arg1 = (wxEffects *) 0 ;
18375 wxDC *arg2 = 0 ;
18376 wxRect *arg3 = 0 ;
18377 int arg4 = (int) 1 ;
18378 wxRect temp3 ;
18379 PyObject * obj0 = 0 ;
18380 PyObject * obj1 = 0 ;
18381 PyObject * obj2 = 0 ;
18382 PyObject * obj3 = 0 ;
18383 char *kwnames[] = {
18384 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18385 };
18386
18387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18390 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18391 SWIG_POINTER_EXCEPTION | 0)) == -1)
18392 SWIG_fail;
18393 if (arg2 == NULL) {
18394 PyErr_SetString(PyExc_TypeError,"null reference");
18395 SWIG_fail;
18396 }
18397 {
18398 arg3 = &temp3;
18399 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18400 }
18401 if (obj3) {
18402 arg4 = (int)SWIG_As_int(obj3);
18403 if (PyErr_Occurred()) SWIG_fail;
18404 }
18405 {
18406 PyThreadState* __tstate = wxPyBeginAllowThreads();
18407 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18408
18409 wxPyEndAllowThreads(__tstate);
18410 if (PyErr_Occurred()) SWIG_fail;
18411 }
18412 Py_INCREF(Py_None); resultobj = Py_None;
18413 return resultobj;
18414 fail:
18415 return NULL;
18416 }
18417
18418
18419 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18420 PyObject *resultobj;
18421 wxEffects *arg1 = (wxEffects *) 0 ;
18422 wxRect *arg2 = 0 ;
18423 wxDC *arg3 = 0 ;
18424 wxBitmap *arg4 = 0 ;
18425 bool result;
18426 wxRect temp2 ;
18427 PyObject * obj0 = 0 ;
18428 PyObject * obj1 = 0 ;
18429 PyObject * obj2 = 0 ;
18430 PyObject * obj3 = 0 ;
18431 char *kwnames[] = {
18432 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18433 };
18434
18435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18438 {
18439 arg2 = &temp2;
18440 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18441 }
18442 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18443 SWIG_POINTER_EXCEPTION | 0)) == -1)
18444 SWIG_fail;
18445 if (arg3 == NULL) {
18446 PyErr_SetString(PyExc_TypeError,"null reference");
18447 SWIG_fail;
18448 }
18449 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18450 SWIG_POINTER_EXCEPTION | 0)) == -1)
18451 SWIG_fail;
18452 if (arg4 == NULL) {
18453 PyErr_SetString(PyExc_TypeError,"null reference");
18454 SWIG_fail;
18455 }
18456 {
18457 PyThreadState* __tstate = wxPyBeginAllowThreads();
18458 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18459
18460 wxPyEndAllowThreads(__tstate);
18461 if (PyErr_Occurred()) SWIG_fail;
18462 }
18463 {
18464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18465 }
18466 return resultobj;
18467 fail:
18468 return NULL;
18469 }
18470
18471
18472 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
18473 PyObject *obj;
18474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18475 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18476 Py_INCREF(obj);
18477 return Py_BuildValue((char *)"");
18478 }
18479 static PyMethodDef SwigMethods[] = {
18480 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18481 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18482 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18483 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18484 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18485 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18486 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18487 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18488 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18489 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18490 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18491 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18492 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18493 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18494 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18495 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18496 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18497 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18498 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18499 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18500 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18501 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18502 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18503 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18504 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18505 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18506 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18507 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18508 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18509 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18510 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18511 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18512 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18513 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18514 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18515 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18516 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18517 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18518 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18519 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18520 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18521 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18522 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18523 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18524 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18525 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18526 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18527 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18528 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18529 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18530 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18531 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18532 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18533 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18534 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18535 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18536 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18537 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18538 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18539 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18540 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18541 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18542 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18543 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18544 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18545 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18546 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18547 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18548 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18549 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18550 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18551 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18552 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18553 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18554 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18555 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18556 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18557 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18558 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18559 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18560 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18561 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18562 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18563 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18564 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18565 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18566 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18567 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18568 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18569 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18570 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18571 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18572 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18573 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18574 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18575 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18576 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18577 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18578 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18579 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18580 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18581 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18582 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18583 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18584 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18585 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18586 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18587 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18588 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18589 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18590 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18591 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18592 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18593 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18594 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18595 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18596 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18597 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18598 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18599 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18600 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18601 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18602 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18603 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18604 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18605 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18606 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18607 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18608 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18609 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18610 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18611 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18612 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18613 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18614 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18615 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18616 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18617 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18618 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18619 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18620 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18621 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18622 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18623 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18624 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18625 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18626 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18627 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18628 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18629 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18630 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18631 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18632 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18633 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18634 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18635 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18636 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18637 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18638 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18639 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18640 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18641 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18642 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18643 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18644 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18645 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18646 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18647 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18648 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18649 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18650 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18651 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18652 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18653 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18654 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18655 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18656 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18657 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18658 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18659 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18660 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18661 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18662 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18663 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18664 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18665 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18666 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18667 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18668 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18669 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18670 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18671 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18672 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18673 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18674 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18675 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18676 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18677 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18678 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18679 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18680 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18681 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18682 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18683 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18684 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18685 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18686 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18687 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18688 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18689 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18690 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18691 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18692 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18693 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18694 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18695 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18696 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18697 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18698 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18699 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18700 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18701 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18702 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18703 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18704 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18705 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
18706 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18707 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18708 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18709 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18710 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18711 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18712 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18713 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18714 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18715 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18716 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18717 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18718 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18719 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18720 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18721 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18722 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18723 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18724 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18725 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18726 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18727 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18728 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18729 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18730 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18731 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18732 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18733 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18734 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18735 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18736 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18737 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
18738 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18739 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18740 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18741 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18742 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18743 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18744 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18745 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
18746 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
18747 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
18748 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
18749 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
18750 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
18751 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
18752 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
18753 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18754 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18755 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
18756 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
18757 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18758 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18759 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18760 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18761 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18762 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18763 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
18764 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
18765 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
18766 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
18767 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
18768 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18769 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
18770 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18771 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18772 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
18773 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
18774 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
18775 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18776 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
18777 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18778 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18779 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18780 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
18781 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18782 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18783 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
18784 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
18785 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
18786 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18787 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18788 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
18789 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18790 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18791 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18792 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
18793 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18794 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
18795 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18796 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
18797 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18798 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
18799 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
18800 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
18801 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18802 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18803 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18804 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18805 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18806 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18807 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18808 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18809 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18810 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
18811 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
18812 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
18813 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
18814 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18815 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18816 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18817 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18818 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18819 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
18820 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18821 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
18822 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18823 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
18824 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18825 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18826 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18827 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18828 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18829 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
18830 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
18831 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18832 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18833 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
18834 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18835 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18836 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18837 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
18838 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
18839 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18840 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18841 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18842 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18843 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18844 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
18845 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18846 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18847 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18848 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18849 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18850 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18851 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18852 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18853 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
18854 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18855 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18856 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
18857 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18858 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
18859 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
18860 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18861 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18862 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
18863 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
18864 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18865 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18866 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18867 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18868 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18869 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
18870 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18871 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18872 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18873 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18874 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18875 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18876 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18877 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18878 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18879 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18880 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18881 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18882 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18883 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18884 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18885 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18886 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18887 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18888 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18889 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18890 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18891 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18892 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18893 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18894 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
18895 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18896 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18897 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18898 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18899 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18900 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18901 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18902 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
18903 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
18904 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
18905 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
18906 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18907 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
18908 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
18909 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
18910 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
18911 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
18912 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
18913 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
18914 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
18915 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
18916 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
18917 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
18918 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
18919 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
18920 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
18921 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
18922 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18923 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
18924 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
18925 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
18926 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18927 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18928 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
18929 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
18930 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
18931 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18932 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
18933 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
18934 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
18935 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
18936 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
18937 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
18938 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18939 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18940 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18941 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18942 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
18943 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18944 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18945 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18946 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
18947 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18948 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18949 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18950 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
18951 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
18952 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
18953 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
18954 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
18955 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
18956 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18957 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18958 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
18959 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
18960 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18961 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
18962 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
18963 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
18964 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
18965 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
18966 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18967 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
18968 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
18969 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
18970 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
18971 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18972 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
18973 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18974 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18975 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18976 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18977 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
18978 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18979 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18980 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
18981 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
18982 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
18983 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
18984 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
18985 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
18986 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
18987 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
18988 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18989 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
18990 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
18991 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18992 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18993 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18994 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18995 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18996 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18997 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18998 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18999 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19000 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19001 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19002 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19003 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19004 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19005 { NULL, NULL, 0, NULL }
19006 };
19007
19008
19009 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19010
19011 static void *_p_wxControlTo_p_wxWindow(void *x) {
19012 return (void *)((wxWindow *) ((wxControl *) x));
19013 }
19014 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19015 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19016 }
19017 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19018 return (void *)((wxWindow *) ((wxMenuBar *) x));
19019 }
19020 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19021 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19022 }
19023 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19024 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19025 }
19026 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19027 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19028 }
19029 static void *_p_wxPenTo_p_wxObject(void *x) {
19030 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19031 }
19032 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19033 return (void *)((wxObject *) ((wxRegionIterator *) x));
19034 }
19035 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19036 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19037 }
19038 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19039 return (void *)((wxObject *) ((wxSizerItem *) x));
19040 }
19041 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19042 return (void *)((wxObject *) ((wxColourDatabase *) x));
19043 }
19044 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19045 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19046 }
19047 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19048 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19049 }
19050 static void *_p_wxIconTo_p_wxObject(void *x) {
19051 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19052 }
19053 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19054 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19055 }
19056 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19057 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19058 }
19059 static void *_p_wxSizerTo_p_wxObject(void *x) {
19060 return (void *)((wxObject *) ((wxSizer *) x));
19061 }
19062 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19063 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19064 }
19065 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19066 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19067 }
19068 static void *_p_wxPenListTo_p_wxObject(void *x) {
19069 return (void *)((wxObject *) ((wxPenList *) x));
19070 }
19071 static void *_p_wxEventTo_p_wxObject(void *x) {
19072 return (void *)((wxObject *) ((wxEvent *) x));
19073 }
19074 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19075 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19076 }
19077 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19078 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19079 }
19080 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19081 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19082 }
19083 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19084 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19085 }
19086 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19087 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19088 }
19089 static void *_p_wxDCTo_p_wxObject(void *x) {
19090 return (void *)((wxObject *) ((wxDC *) x));
19091 }
19092 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19093 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19094 }
19095 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19096 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19097 }
19098 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19099 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19100 }
19101 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19102 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19103 }
19104 static void *_p_wxControlTo_p_wxObject(void *x) {
19105 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19106 }
19107 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19108 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19109 }
19110 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19111 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19112 }
19113 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19114 return (void *)((wxObject *) ((wxFSFile *) x));
19115 }
19116 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19117 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19118 }
19119 static void *_p_wxRegionTo_p_wxObject(void *x) {
19120 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19121 }
19122 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19123 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19124 }
19125 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19126 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19127 }
19128 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19129 return (void *)((wxObject *) ((wxGDIObject *) x));
19130 }
19131 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19132 return (void *)((wxObject *) ((wxEffects *) x));
19133 }
19134 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19135 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19136 }
19137 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19138 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19139 }
19140 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19141 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19142 }
19143 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19144 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19145 }
19146 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19147 return (void *)((wxObject *) ((wxMenuItem *) x));
19148 }
19149 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19150 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19151 }
19152 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19153 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19154 }
19155 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19156 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19157 }
19158 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19159 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19160 }
19161 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19162 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19163 }
19164 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19165 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19166 }
19167 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19168 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19169 }
19170 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19171 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19172 }
19173 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19174 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19175 }
19176 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19177 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19178 }
19179 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19180 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19181 }
19182 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19183 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19184 }
19185 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19186 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19187 }
19188 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19189 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19190 }
19191 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19192 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19193 }
19194 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19195 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19196 }
19197 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19198 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19199 }
19200 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19201 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19202 }
19203 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19204 return (void *)((wxObject *) ((wxImageHandler *) x));
19205 }
19206 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19207 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19208 }
19209 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19210 return (void *)((wxObject *) ((wxEvtHandler *) x));
19211 }
19212 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19213 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19214 }
19215 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19216 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19217 }
19218 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19219 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19220 }
19221 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19222 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19223 }
19224 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19225 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19226 }
19227 static void *_p_wxImageTo_p_wxObject(void *x) {
19228 return (void *)((wxObject *) ((wxImage *) x));
19229 }
19230 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19231 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19232 }
19233 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19234 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19235 }
19236 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19237 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19238 }
19239 static void *_p_wxImageListTo_p_wxObject(void *x) {
19240 return (void *)((wxObject *) ((wxImageList *) x));
19241 }
19242 static void *_p_wxCursorTo_p_wxObject(void *x) {
19243 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19244 }
19245 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19246 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19247 }
19248 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19249 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19250 }
19251 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19252 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19253 }
19254 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19255 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19256 }
19257 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19258 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19259 }
19260 static void *_p_wxWindowTo_p_wxObject(void *x) {
19261 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19262 }
19263 static void *_p_wxMenuTo_p_wxObject(void *x) {
19264 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19265 }
19266 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19267 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19268 }
19269 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19270 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19271 }
19272 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19273 return (void *)((wxObject *) ((wxBrushList *) x));
19274 }
19275 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19276 return (void *)((wxObject *) ((wxFileSystem *) x));
19277 }
19278 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19279 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19280 }
19281 static void *_p_wxMaskTo_p_wxObject(void *x) {
19282 return (void *)((wxObject *) ((wxMask *) x));
19283 }
19284 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19285 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19286 }
19287 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19288 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19289 }
19290 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19291 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19292 }
19293 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19294 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19295 }
19296 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19297 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19298 }
19299 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19300 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19301 }
19302 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19303 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19304 }
19305 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19306 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19307 }
19308 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19309 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19310 }
19311 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19312 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19313 }
19314 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19315 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19316 }
19317 static void *_p_wxFontTo_p_wxObject(void *x) {
19318 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19319 }
19320 static void *_p_wxBrushTo_p_wxObject(void *x) {
19321 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19322 }
19323 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19324 return (void *)((wxObject *) ((wxMetaFile *) x));
19325 }
19326 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19327 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19328 }
19329 static void *_p_wxColourTo_p_wxObject(void *x) {
19330 return (void *)((wxObject *) ((wxColour *) x));
19331 }
19332 static void *_p_wxFontListTo_p_wxObject(void *x) {
19333 return (void *)((wxObject *) ((wxFontList *) x));
19334 }
19335 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19336 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19337 }
19338 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19339 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19340 }
19341 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19342 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19343 }
19344 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19345 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19346 }
19347 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19348 return (void *)((wxDC *) ((wxScreenDC *) x));
19349 }
19350 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19351 return (void *)((wxDC *) ((wxMirrorDC *) x));
19352 }
19353 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19354 return (void *)((wxDC *) ((wxMemoryDC *) x));
19355 }
19356 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19357 return (void *)((wxDC *) ((wxWindowDC *) x));
19358 }
19359 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19360 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19361 }
19362 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19363 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19364 }
19365 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19366 return (void *)((wxDC *) ((wxClientDC *) x));
19367 }
19368 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19369 return (void *)((wxDC *) ((wxPaintDC *) x));
19370 }
19371 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19372 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19373 }
19374 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19375 return (void *)((wxDC *) ((wxPrinterDC *) x));
19376 }
19377 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19378 return (void *)((wxGDIObject *) ((wxIcon *) x));
19379 }
19380 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19381 return (void *)((wxGDIObject *) ((wxPalette *) x));
19382 }
19383 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19384 return (void *)((wxGDIObject *) ((wxPen *) x));
19385 }
19386 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19387 return (void *)((wxGDIObject *) ((wxFont *) x));
19388 }
19389 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19390 return (void *)((wxGDIObject *) ((wxCursor *) x));
19391 }
19392 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19393 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19394 }
19395 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19396 return (void *)((wxGDIObject *) ((wxRegion *) x));
19397 }
19398 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19399 return (void *)((wxGDIObject *) ((wxBrush *) x));
19400 }
19401 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}};
19402 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}};
19403 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}};
19404 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}};
19405 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}};
19406 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}};
19407 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}};
19408 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}};
19409 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}};
19410 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}};
19411 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}};
19412 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}};
19413 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}};
19414 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}};
19415 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}};
19416 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}};
19417 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}};
19418 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}};
19419 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}};
19420 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}};
19421 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}};
19422 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}};
19423 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}};
19424 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}};
19425 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}};
19426 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}};
19427 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}};
19428 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}};
19429 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}};
19430 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}};
19431 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}};
19432 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}};
19433 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}};
19434 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}};
19435 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}};
19436 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}};
19437 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}};
19438 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}};
19439 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}};
19440 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}};
19441 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}};
19442 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}};
19443 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}};
19444 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}};
19445 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}};
19446 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}};
19447 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}};
19448 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}};
19449 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}};
19450 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}};
19451 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}};
19452 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}};
19453 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}};
19454 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}};
19455 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}};
19456
19457 static swig_type_info *swig_types_initial[] = {
19458 _swigt__p_wxPostScriptDC,
19459 _swigt__p_wxBrush,
19460 _swigt__p_wxColour,
19461 _swigt__p_wxDC,
19462 _swigt__p_wxMirrorDC,
19463 _swigt__p_byte,
19464 _swigt__p_wxPyFontEnumerator,
19465 _swigt__p_char,
19466 _swigt__p_wxIconLocation,
19467 _swigt__p_wxImage,
19468 _swigt__p_wxMetaFileDC,
19469 _swigt__p_wxMask,
19470 _swigt__p_wxSize,
19471 _swigt__p_wxFont,
19472 _swigt__p_wxWindow,
19473 _swigt__p_double,
19474 _swigt__p_wxMemoryDC,
19475 _swigt__p_wxFontMapper,
19476 _swigt__p_wxEffects,
19477 _swigt__p_wxNativeEncodingInfo,
19478 _swigt__p_wxPalette,
19479 _swigt__p_wxBitmap,
19480 _swigt__p_wxObject,
19481 _swigt__p_wxRegionIterator,
19482 _swigt__p_wxRect,
19483 _swigt__p_wxString,
19484 _swigt__p_wxPrinterDC,
19485 _swigt__p_wxIconBundle,
19486 _swigt__p_wxPoint,
19487 _swigt__p_wxDash,
19488 _swigt__p_wxScreenDC,
19489 _swigt__p_wxCursor,
19490 _swigt__p_wxClientDC,
19491 _swigt__p_wxBufferedDC,
19492 _swigt__p_wxImageList,
19493 _swigt__p_unsigned_char,
19494 _swigt__p_wxGDIObject,
19495 _swigt__p_wxIcon,
19496 _swigt__p_wxLocale,
19497 _swigt__p_wxRegion,
19498 _swigt__p_wxLanguageInfo,
19499 _swigt__p_wxConfigBase,
19500 _swigt__p_wxWindowDC,
19501 _swigt__p_wxPrintData,
19502 _swigt__p_wxBrushList,
19503 _swigt__p_wxFontList,
19504 _swigt__p_wxPen,
19505 _swigt__p_wxBufferedPaintDC,
19506 _swigt__p_wxPaintDC,
19507 _swigt__p_wxPenList,
19508 _swigt__p_int,
19509 _swigt__p_wxMetaFile,
19510 _swigt__p_wxNativeFontInfo,
19511 _swigt__p_wxEncodingConverter,
19512 _swigt__p_wxColourDatabase,
19513 0
19514 };
19515
19516
19517 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19518
19519 static swig_const_info swig_const_table[] = {
19520 {0, 0, 0, 0.0, 0, 0}};
19521
19522 #ifdef __cplusplus
19523 }
19524 #endif
19525
19526 #ifdef __cplusplus
19527 extern "C"
19528 #endif
19529 SWIGEXPORT(void) SWIG_init(void) {
19530 static PyObject *SWIG_globals = 0;
19531 static int typeinit = 0;
19532 PyObject *m, *d;
19533 int i;
19534 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19535 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19536 d = PyModule_GetDict(m);
19537
19538 if (!typeinit) {
19539 for (i = 0; swig_types_initial[i]; i++) {
19540 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19541 }
19542 typeinit = 1;
19543 }
19544 SWIG_InstallConstants(d,swig_const_table);
19545
19546 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
19547 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
19548 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
19549 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
19550 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
19551 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
19552 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
19553 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
19554 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
19555 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
19556 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
19557 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
19558 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
19559 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
19560 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
19561 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
19562 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
19563 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
19564 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
19565 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
19566 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
19567 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
19568 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
19569 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
19570 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
19571 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
19572 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
19573 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
19574 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
19575 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
19576 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
19577 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
19578 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
19579 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
19580 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
19581 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
19582 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
19583 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
19584 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
19585 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
19586 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
19587 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
19588 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
19589 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
19590 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
19591 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
19592 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
19593 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
19594 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
19595 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
19596 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
19597 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
19598 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
19599 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
19600 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
19601 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
19602 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
19603 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
19604 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
19605 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
19606 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
19607 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
19608 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
19609 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
19610 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
19611 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
19612 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
19613 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
19614 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
19615 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
19616 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
19617 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
19618 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
19619 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
19620 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
19621 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
19622 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
19623 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
19624 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
19625 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
19626 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
19627 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
19628 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
19629 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
19630 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
19631 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
19632 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
19633 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
19634 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
19635 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
19636 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
19637 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
19638 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
19639 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
19640 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
19641 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
19642 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
19643 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
19644 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
19645 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
19646 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
19647 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
19648 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
19649 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
19650 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
19651 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
19652 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
19653 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
19654 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
19655 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
19656 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
19657 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
19658 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
19659 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
19660 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
19661 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
19662 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
19663 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
19664 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
19665 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
19666 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
19667 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
19668 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
19669 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
19670 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
19671 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
19672 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
19673
19674 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19675
19676 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
19677 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
19678 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
19679 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
19680 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
19681 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
19682 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
19683 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
19684 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
19685 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
19686 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
19687 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
19688 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
19689 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
19690 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
19691 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
19692 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
19693 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
19694 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
19695 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19696 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
19697 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
19698 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
19699 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
19700 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
19701 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
19702 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
19703 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
19704 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
19705 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
19706 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
19707 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
19708 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
19709 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
19710 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
19711 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
19712 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
19713 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
19714 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
19715 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
19716 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
19717 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
19718 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
19719 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
19720 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19721 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19722 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
19723 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
19724 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
19725 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
19726 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
19727 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
19728 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
19729 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
19730 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
19731 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
19732 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
19733 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
19734 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
19735 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19736 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
19737 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19738 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
19739 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19740 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
19741 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
19742 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
19743 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19744 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19745 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19746 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19747 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19748 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
19749 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
19750 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
19751 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
19752 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
19753 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
19754 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
19755 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
19756 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
19757 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19758 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
19759 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
19760 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
19761 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
19762 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
19763 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
19764 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19765 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
19766 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19767 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19768 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
19769 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
19770 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
19771 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
19772 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
19773 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
19774 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
19775 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
19776 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
19777 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
19778 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
19779 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
19780 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
19781 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
19782 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
19783 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
19784 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
19785 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
19786 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
19787 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
19788 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
19789 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
19790 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
19791 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
19792 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
19793 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
19794 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
19795 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
19796 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
19797 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
19798 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
19799 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
19800 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
19801 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
19802 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
19803 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
19804 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
19805 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
19806 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
19807 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
19808 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19809 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
19810 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
19811 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
19812 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
19813 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
19814 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
19815 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
19816 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
19817 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
19818 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
19819 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19820 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19821 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
19822 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
19823 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
19824 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
19825 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
19826 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
19827 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19828 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
19829 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
19830 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
19831 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
19832 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
19833 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19834 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
19835 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
19836 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
19837 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
19838 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
19839 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19840 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
19841 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
19842 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
19843 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
19844 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
19845 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
19846 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
19847 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
19848 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
19849 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
19850 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
19851 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
19852 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
19853 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
19854 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
19855 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
19856 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19857 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19858 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
19859 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19860 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
19861 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
19862 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
19863 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
19864 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
19865 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
19866 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
19867 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
19868 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19869 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
19870 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
19871 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
19872 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
19873 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
19874 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
19875 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
19876 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
19877 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
19878 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
19879 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
19880 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
19881 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
19882 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
19883 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
19884 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
19885 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
19886 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
19887 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
19888 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
19889 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
19890 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
19891 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
19892 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
19893 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
19894 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
19895 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
19896 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
19897 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
19898 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
19899 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
19900 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
19901 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
19902 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
19903 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
19904 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
19905 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
19906 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
19907 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
19908 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
19909 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
19910 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
19911 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
19912 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
19913 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
19914 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
19915 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
19916 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
19917 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
19918 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
19919 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
19920 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
19921 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
19922 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
19923 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
19924 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
19925 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
19926 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
19927 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
19928 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
19929 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19930 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19931 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19932 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19933 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19934 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19935 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19936 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19937 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19938 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19939 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19940 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19941 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19942 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19943 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19944 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19945 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19946 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19947 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19948 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19949 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19950 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19951 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19952 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19953 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19954 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19955 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19956 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19957 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19958 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19959 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19960 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19961 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19962 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19963 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19964 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19965 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19966 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19967 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19968 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19969 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19970 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19971 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19972 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19973 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19974 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19975 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19976
19977 // Work around a chicken/egg problem in drawlist.cpp
19978 wxPyDrawList_SetAPIPtr();
19979
19980 }
19981