]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Added default values for some parameters
[wxWidgets.git] / wxPython / src / msw / _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 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
313 #define SWIG_From_signed_SS_char PyInt_FromLong
314 /*@@*/
315 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
316 #define SWIG_From_unsigned_SS_char PyInt_FromLong
317 /*@@*/
318 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
319 #define SWIG_From_short PyInt_FromLong
320 /*@@*/
321 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
322 #define SWIG_From_unsigned_SS_short PyInt_FromLong
323 /*@@*/
324 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
325 #define SWIG_From_int PyInt_FromLong
326 /*@@*/
327 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
328 #define SWIG_From_long PyInt_FromLong
329 /*@@*/
330 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
331 #define SWIG_From_float PyFloat_FromDouble
332 /*@@*/
333 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
334 #define SWIG_From_double PyFloat_FromDouble
335 /*@@*/
336
337
338 #include "wx/wxPython/wxPython.h"
339 #include "wx/wxPython/pyclasses.h"
340
341
342 static const wxString wxPyEmptyString(wxEmptyString);
343
344 #include <limits.h>
345
346
347 SWIGSTATICINLINE(int)
348 SWIG_CheckLongInRange(long value, long min_value, long max_value,
349 const char *errmsg)
350 {
351 if (value < min_value) {
352 if (errmsg) {
353 PyErr_Format(PyExc_OverflowError,
354 "value %ld is less than '%s' minimum %ld",
355 value, errmsg, min_value);
356 }
357 return 0;
358 } else if (value > max_value) {
359 if (errmsg) {
360 PyErr_Format(PyExc_OverflowError,
361 "value %ld is greater than '%s' maximum %ld",
362 value, errmsg, max_value);
363 }
364 return 0;
365 }
366 return 1;
367 }
368
369
370 // See my_fragments.i
371 SWIGSTATICINLINE(int)
372 SWIG_AsVal_long(PyObject* obj, long* val)
373 {
374 if (PyNumber_Check(obj)) {
375 if (val) *val = PyInt_AsLong(obj);
376 return 1;
377 }
378 else {
379 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
380 obj->ob_type->tp_name);
381 PyErr_SetObject(PyExc_TypeError, errmsg);
382 Py_DECREF(errmsg);
383 }
384 return 0;
385 }
386
387
388 #if INT_MAX != LONG_MAX
389 SWIGSTATICINLINE(int)
390 SWIG_AsVal_int(PyObject *obj, int *val)
391 {
392 const char* errmsg = val ? "int" : 0;
393 long v;
394 if (SWIG_AsVal_long(obj, &v)) {
395 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
396 if (val) *val = swig_numeric_cast(v, int);
397 return 1;
398 } else {
399 return 0;
400 }
401 } else {
402 PyErr_Clear();
403 }
404 if (val) {
405 PyErr_SetString(PyExc_TypeError, "an int is expected");
406 }
407 return 0;
408 }
409 #else
410 SWIGSTATICINLINE(int)
411 SWIG_AsVal_int(PyObject *obj, int *val)
412 {
413 return SWIG_AsVal_long(obj,(long*)val);
414 }
415 #endif
416
417
418 SWIGSTATICINLINE(int)
419 SWIG_AsVal_bool(PyObject *obj, bool *val)
420 {
421 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
422 if (obj == Py_True) {
423 if (val) *val = true;
424 return 1;
425 }
426 if (obj == Py_False) {
427 if (val) *val = false;
428 return 1;
429 }
430 int res = 0;
431 if (SWIG_AsVal_int(obj, &res)) {
432 if (val) *val = (bool)res;
433 return 1;
434 }
435 if (val) {
436 PyErr_SetString(PyExc_TypeError, "a bool is expected");
437 }
438 return 0;
439 }
440
441
442 SWIGSTATICINLINE(bool)
443 SWIG_As_bool(PyObject* obj)
444 {
445 bool v;
446 if (!SWIG_AsVal_bool(obj, &v)) {
447 /*
448 this is needed to make valgrind/purify happier. the other
449 solution is throw an exception, but since this code should work
450 with plain C ....
451 */
452 memset((void*)&v, 0, sizeof(bool));
453 }
454 return v;
455 }
456
457
458 SWIGSTATICINLINE(int)
459 SWIG_Check_bool(PyObject* obj)
460 {
461 return SWIG_AsVal_bool(obj, (bool*)0);
462 }
463
464
465 // See my_fragments.i
466 SWIGSTATICINLINE(int)
467 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
468 {
469 long v = 0;
470 if (SWIG_AsVal_long(obj, &v) && v < 0) {
471 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
472 return 0;
473 }
474 else if (val)
475 *val = (unsigned long)v;
476 return 1;
477 }
478
479
480 SWIGSTATICINLINE(int)
481 SWIG_CheckUnsignedLongInRange(unsigned long value,
482 unsigned long max_value,
483 const char *errmsg)
484 {
485 if (value > max_value) {
486 if (errmsg) {
487 PyErr_Format(PyExc_OverflowError,
488 "value %ld is greater than '%s' minimum %ld",
489 value, errmsg, max_value);
490 }
491 return 0;
492 }
493 return 1;
494 }
495
496
497 SWIGSTATICINLINE(int)
498 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
499 {
500 const char* errmsg = val ? "unsigned char" : 0;
501 unsigned long v;
502 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
503 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
504 if (val) *val = swig_numeric_cast(v, unsigned char);
505 return 1;
506 } else {
507 return 0;
508 }
509 } else {
510 PyErr_Clear();
511 }
512 if (val) {
513 PyErr_SetString(PyExc_TypeError, "an unsigned char is expected");
514 }
515 return 0;
516 }
517
518
519 SWIGSTATICINLINE(unsigned char)
520 SWIG_As_unsigned_SS_char(PyObject* obj)
521 {
522 unsigned char v;
523 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
524 /*
525 this is needed to make valgrind/purify happier. the other
526 solution is throw an exception, but since this code should work
527 with plain C ....
528 */
529 memset((void*)&v, 0, sizeof(unsigned char));
530 }
531 return v;
532 }
533
534
535 SWIGSTATICINLINE(int)
536 SWIG_Check_unsigned_SS_char(PyObject* obj)
537 {
538 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
539 }
540
541
542 SWIGSTATICINLINE(unsigned long)
543 SWIG_As_unsigned_SS_long(PyObject* obj)
544 {
545 unsigned long v;
546 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
547 /*
548 this is needed to make valgrind/purify happier. the other
549 solution is throw an exception, but since this code should work
550 with plain C ....
551 */
552 memset((void*)&v, 0, sizeof(unsigned long));
553 }
554 return v;
555 }
556
557
558 SWIGSTATICINLINE(int)
559 SWIG_Check_unsigned_SS_long(PyObject* obj)
560 {
561 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
562 }
563
564 PyObject *wxColour_Get(wxColour *self){
565 PyObject* rv = PyTuple_New(3);
566 int red = -1;
567 int green = -1;
568 int blue = -1;
569 if (self->Ok()) {
570 red = self->Red();
571 green = self->Green();
572 blue = self->Blue();
573 }
574 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
575 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
576 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
577 return rv;
578 }
579 unsigned long wxColour_GetRGB(wxColour *self){
580 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
581 }
582
583 SWIGSTATICINLINE(PyObject* )
584 SWIG_From_unsigned_SS_long(unsigned long value)
585 {
586 return (value > LONG_MAX) ?
587 PyLong_FromUnsignedLong(value)
588 : PyInt_FromLong(swig_numeric_cast(value,long));
589 }
590
591
592 SWIGSTATICINLINE(int)
593 SWIG_As_int(PyObject* obj)
594 {
595 int v;
596 if (!SWIG_AsVal_int(obj, &v)) {
597 /*
598 this is needed to make valgrind/purify happier. the other
599 solution is throw an exception, but since this code should work
600 with plain C ....
601 */
602 memset((void*)&v, 0, sizeof(int));
603 }
604 return v;
605 }
606
607
608 SWIGSTATICINLINE(int)
609 SWIG_Check_int(PyObject* obj)
610 {
611 return SWIG_AsVal_int(obj, (int*)0);
612 }
613
614
615 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
616 PyObject* o2;
617 PyObject* o3;
618
619 if (!target) {
620 target = o;
621 } else if (target == Py_None) {
622 Py_DECREF(Py_None);
623 target = o;
624 } else {
625 if (!PyTuple_Check(target)) {
626 o2 = target;
627 target = PyTuple_New(1);
628 PyTuple_SetItem(target, 0, o2);
629 }
630 o3 = PyTuple_New(1);
631 PyTuple_SetItem(o3, 0, o);
632
633 o2 = target;
634 target = PySequence_Concat(o2, o3);
635 Py_DECREF(o2);
636 Py_DECREF(o3);
637 }
638 return target;
639 }
640
641
642 PyObject *wxPen_GetDashes(wxPen *self){
643 wxDash* dashes;
644 int count = self->GetDashes(&dashes);
645 bool blocked = wxPyBeginBlockThreads();
646 PyObject* retval = PyList_New(0);
647 for (int x=0; x<count; x++) {
648 PyObject* pyint = PyInt_FromLong(dashes[x]);
649 PyList_Append(retval, pyint);
650 Py_DECREF(pyint);
651 }
652 wxPyEndBlockThreads(blocked);
653 return retval;
654 }
655 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
656 bool blocked = wxPyBeginBlockThreads();
657 int size = PyList_Size(pyDashes);
658 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
659
660 // black magic warning! The array of wxDashes needs to exist as
661 // long as the pen does because wxPen does not copy the array. So
662 // stick a copy in a Python string object and attach it to _self,
663 // and then call SetDashes with a pointer to that array. Then
664 // when the Python pen object is destroyed the array will be
665 // cleaned up too.
666 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
667 PyObject_SetAttrString(_self, "_dashes", strDashes);
668
669 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
670 delete [] dashes;
671 Py_DECREF(strDashes);
672 wxPyEndBlockThreads(blocked);
673 }
674 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
675 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
676
677 #include <wx/image.h>
678
679 static char** ConvertListOfStrings(PyObject* listOfStrings) {
680 char** cArray = NULL;
681 int count;
682
683 if (!PyList_Check(listOfStrings)) {
684 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
685 return NULL;
686 }
687 count = PyList_Size(listOfStrings);
688 cArray = new char*[count];
689
690 for(int x=0; x<count; x++) {
691 // TODO: Need some validation and error checking here
692 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
693 }
694 return cArray;
695 }
696
697
698 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
699 char** cArray = NULL;
700 wxBitmap* bmp;
701
702 cArray = ConvertListOfStrings(listOfStrings);
703 if (! cArray)
704 return NULL;
705 bmp = new wxBitmap(cArray);
706 delete [] cArray;
707 return bmp;
708 }
709 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
710 char* buf;
711 int length;
712 PyString_AsStringAndSize(bits, &buf, &length);
713 return new wxBitmap(buf, width, height, depth);
714 }
715
716 SWIGSTATICINLINE(long)
717 SWIG_As_long(PyObject* obj)
718 {
719 long v;
720 if (!SWIG_AsVal_long(obj, &v)) {
721 /*
722 this is needed to make valgrind/purify happier. the other
723 solution is throw an exception, but since this code should work
724 with plain C ....
725 */
726 memset((void*)&v, 0, sizeof(long));
727 }
728 return v;
729 }
730
731
732 SWIGSTATICINLINE(int)
733 SWIG_Check_long(PyObject* obj)
734 {
735 return SWIG_AsVal_long(obj, (long*)0);
736 }
737
738 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
739 wxSize wxBitmap_GetSize(wxBitmap *self){
740 wxSize size(self->GetWidth(), self->GetHeight());
741 return size;
742 }
743 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
744 wxMask *mask = new wxMask(*self, colour);
745 self->SetMask(mask);
746 }
747 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
748 self->SetWidth(size.x);
749 self->SetHeight(size.y);
750 }
751 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
752 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
753 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
754 if ( !colour.Ok() )
755 return new wxMask(bitmap, *wxBLACK);
756 else
757 return new wxMask(bitmap, colour);
758 }
759
760 #include <wx/iconbndl.h>
761
762 wxIcon *new_wxIcon(wxBitmap const &bmp){
763 wxIcon* icon = new wxIcon();
764 icon->CopyFromBitmap(bmp);
765 return icon;
766 }
767 wxIcon *new_wxIcon(PyObject *listOfStrings){
768 char** cArray = NULL;
769 wxIcon* icon;
770
771 cArray = ConvertListOfStrings(listOfStrings);
772 if (! cArray)
773 return NULL;
774 icon = new wxIcon(cArray);
775 delete [] cArray;
776 return icon;
777 }
778 void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
779 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
780
781 return new wxIconLocation(*filename, num);
782
783
784
785 }
786 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
787
788 self->SetIndex(num);
789
790
791
792 }
793 int wxIconLocation_GetIndex(wxIconLocation *self){
794
795 return self->GetIndex();
796
797
798
799 }
800 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
801 #ifdef __WXGTK__
802 wxCHECK_MSG(false, NULL,
803 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
804 #else
805 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
806 #endif
807 }
808 void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
809
810
811 void wxRegionIterator_Next(wxRegionIterator *self){
812 (*self) ++;
813 }
814 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
815 return self->operator bool();
816 }
817
818 #include <wx/fontutil.h>
819 #include <wx/fontmap.h>
820 #include <wx/fontenum.h>
821
822 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
823 return self->ToString();
824 }
825
826 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
827 { wxPyRaiseNotImplemented(); return NULL; }
828
829 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
830 { wxPyRaiseNotImplemented(); return false; }
831
832 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
833 wxFontEncoding alt_enc;
834 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
835 return PyInt_FromLong(alt_enc);
836 else {
837 Py_INCREF(Py_None);
838 return Py_None;
839 }
840 }
841 wxFont *new_wxFont(wxString const &info){
842 wxNativeFontInfo nfi;
843 nfi.FromString(info);
844 return new wxFont(nfi);
845 }
846 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
847 return wxFont::New(pointSize, family, flags, face, encoding);
848 }
849 wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){
850 return wxFontBase::New(pixelSize, family,
851 style, weight, underlined,
852 face, encoding);
853 }
854 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
855 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
856
857 class wxPyFontEnumerator : public wxFontEnumerator {
858 public:
859 wxPyFontEnumerator() {}
860 ~wxPyFontEnumerator() {}
861
862 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
863 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
864
865 PYPRIVATE;
866 };
867
868 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
869 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
870
871
872 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
873 wxArrayString* arr = self->GetEncodings();
874 if (arr)
875 return wxArrayString2PyList_helper(*arr);
876 else
877 return PyList_New(0);
878 }
879 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
880 wxArrayString* arr = self->GetFacenames();
881 if (arr)
882 return wxArrayString2PyList_helper(*arr);
883 else
884 return PyList_New(0);
885 }
886
887 #include <locale.h>
888
889 wxLocale *new_wxLocale(int language,int flags){
890 wxLocale* loc;
891 if (language == -1)
892 loc = new wxLocale();
893 else
894 loc = new wxLocale(language, flags);
895 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
896 // for the floating point conversions and such to work right.
897 #if PY_VERSION_HEX < 0x02040000
898 setlocale(LC_NUMERIC, "C");
899 #endif
900 return loc;
901 }
902 bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort,wxString const &szLocale,bool bLoadDefault,bool bConvertEncoding){
903 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
904 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
905 // for the floating point conversions and such to work right.
906 #if PY_VERSION_HEX < 0x02040000
907 setlocale(LC_NUMERIC, "C");
908 #endif
909 return rc;
910 }
911 bool wxLocale_Init2(wxLocale *self,int language,int flags){
912 bool rc = self->Init(language, flags);
913 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
914 // for the floating point conversions and such to work right.
915 #if PY_VERSION_HEX < 0x02040000
916 setlocale(LC_NUMERIC, "C");
917 #endif
918 return rc;
919 }
920
921 #include "wx/wxPython/pydrawxxx.h"
922
923 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
924 wxColour col;
925 self->GetPixel(x, y, &col);
926 return col;
927 }
928 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
929 wxColour col;
930 self->GetPixel(pt, &col);
931 return col;
932 }
933
934 // See my_fragments.i
935 SWIGSTATICINLINE(int)
936 SWIG_AsVal_double(PyObject *obj, double* val)
937 {
938 if (PyNumber_Check(obj)) {
939 if (val) *val = PyFloat_AsDouble(obj);
940 return 1;
941 }
942 else {
943 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
944 obj->ob_type->tp_name);
945 PyErr_SetObject(PyExc_TypeError, errmsg);
946 Py_DECREF(errmsg);
947 }
948 return 0;
949 }
950
951
952 SWIGSTATICINLINE(double)
953 SWIG_As_double(PyObject* obj)
954 {
955 double v;
956 if (!SWIG_AsVal_double(obj, &v)) {
957 /*
958 this is needed to make valgrind/purify happier. the other
959 solution is throw an exception, but since this code should work
960 with plain C ....
961 */
962 memset((void*)&v, 0, sizeof(double));
963 }
964 return v;
965 }
966
967
968 SWIGSTATICINLINE(int)
969 SWIG_Check_double(PyObject* obj)
970 {
971 return SWIG_AsVal_double(obj, (double*)0);
972 }
973
974 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
975 wxRect rv;
976 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
977 return rv;
978 }
979
980 wxRect wxDC_GetClippingRect(wxDC *self){
981 wxRect rect;
982 self->GetClippingBox(rect);
983 return rect;
984 }
985 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
986 wxArrayInt widths;
987 self->GetPartialTextExtents(text, widths);
988 return widths;
989 }
990
991 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
992 self->SetLogicalOrigin(point.x, point.y);
993 }
994 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
995 self->SetDeviceOrigin(point.x, point.y);
996 }
997 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
998 self->CalcBoundingBox(point.x, point.y);
999 }
1000 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1001 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
1002 }
1003 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1004 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
1005 }
1006 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1007 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
1008 }
1009 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1010 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
1011 }
1012 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
1013 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
1014 }
1015 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
1016 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
1017 }
1018
1019 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
1020 *x1 = dc->MinX();
1021 *y1 = dc->MinY();
1022 *x2 = dc->MaxX();
1023 *y2 = dc->MaxY();
1024 }
1025
1026
1027 #include <wx/dcbuffer.h>
1028
1029
1030 #include <wx/dcps.h>
1031
1032
1033 #include <wx/metafile.h>
1034
1035
1036
1037 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
1038 self->AddColour(name, wxColour(red, green, blue));
1039 }
1040
1041 #include <wx/effects.h>
1042
1043 #ifdef __cplusplus
1044 extern "C" {
1045 #endif
1046 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1047 PyObject *resultobj;
1048 wxGDIObject *result;
1049 char *kwnames[] = {
1050 NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
1054 {
1055 if (!wxPyCheckForApp()) SWIG_fail;
1056 PyThreadState* __tstate = wxPyBeginAllowThreads();
1057 result = (wxGDIObject *)new wxGDIObject();
1058
1059 wxPyEndAllowThreads(__tstate);
1060 if (PyErr_Occurred()) SWIG_fail;
1061 }
1062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
1063 return resultobj;
1064 fail:
1065 return NULL;
1066 }
1067
1068
1069 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
1070 PyObject *resultobj;
1071 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1072 PyObject * obj0 = 0 ;
1073 char *kwnames[] = {
1074 (char *) "self", NULL
1075 };
1076
1077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1080 {
1081 PyThreadState* __tstate = wxPyBeginAllowThreads();
1082 delete arg1;
1083
1084 wxPyEndAllowThreads(__tstate);
1085 if (PyErr_Occurred()) SWIG_fail;
1086 }
1087 Py_INCREF(Py_None); resultobj = Py_None;
1088 return resultobj;
1089 fail:
1090 return NULL;
1091 }
1092
1093
1094 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1095 PyObject *resultobj;
1096 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1097 bool result;
1098 PyObject * obj0 = 0 ;
1099 char *kwnames[] = {
1100 (char *) "self", NULL
1101 };
1102
1103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1106 {
1107 PyThreadState* __tstate = wxPyBeginAllowThreads();
1108 result = (bool)(arg1)->GetVisible();
1109
1110 wxPyEndAllowThreads(__tstate);
1111 if (PyErr_Occurred()) SWIG_fail;
1112 }
1113 {
1114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1115 }
1116 return resultobj;
1117 fail:
1118 return NULL;
1119 }
1120
1121
1122 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1123 PyObject *resultobj;
1124 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1125 bool arg2 ;
1126 PyObject * obj0 = 0 ;
1127 PyObject * obj1 = 0 ;
1128 char *kwnames[] = {
1129 (char *) "self",(char *) "visible", NULL
1130 };
1131
1132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1135 arg2 = (bool)SWIG_As_bool(obj1);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 {
1138 PyThreadState* __tstate = wxPyBeginAllowThreads();
1139 (arg1)->SetVisible(arg2);
1140
1141 wxPyEndAllowThreads(__tstate);
1142 if (PyErr_Occurred()) SWIG_fail;
1143 }
1144 Py_INCREF(Py_None); resultobj = Py_None;
1145 return resultobj;
1146 fail:
1147 return NULL;
1148 }
1149
1150
1151 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1152 PyObject *resultobj;
1153 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1154 bool result;
1155 PyObject * obj0 = 0 ;
1156 char *kwnames[] = {
1157 (char *) "self", NULL
1158 };
1159
1160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1163 {
1164 PyThreadState* __tstate = wxPyBeginAllowThreads();
1165 result = (bool)(arg1)->IsNull();
1166
1167 wxPyEndAllowThreads(__tstate);
1168 if (PyErr_Occurred()) SWIG_fail;
1169 }
1170 {
1171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1172 }
1173 return resultobj;
1174 fail:
1175 return NULL;
1176 }
1177
1178
1179 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1180 PyObject *obj;
1181 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1182 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1183 Py_INCREF(obj);
1184 return Py_BuildValue((char *)"");
1185 }
1186 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1187 PyObject *resultobj;
1188 byte arg1 = (byte) 0 ;
1189 byte arg2 = (byte) 0 ;
1190 byte arg3 = (byte) 0 ;
1191 wxColour *result;
1192 PyObject * obj0 = 0 ;
1193 PyObject * obj1 = 0 ;
1194 PyObject * obj2 = 0 ;
1195 char *kwnames[] = {
1196 (char *) "red",(char *) "green",(char *) "blue", NULL
1197 };
1198
1199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1200 if (obj0) {
1201 arg1 = (byte)SWIG_As_unsigned_SS_char(obj0);
1202 if (PyErr_Occurred()) SWIG_fail;
1203 }
1204 if (obj1) {
1205 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1206 if (PyErr_Occurred()) SWIG_fail;
1207 }
1208 if (obj2) {
1209 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1210 if (PyErr_Occurred()) SWIG_fail;
1211 }
1212 {
1213 PyThreadState* __tstate = wxPyBeginAllowThreads();
1214 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1215
1216 wxPyEndAllowThreads(__tstate);
1217 if (PyErr_Occurred()) SWIG_fail;
1218 }
1219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1220 return resultobj;
1221 fail:
1222 return NULL;
1223 }
1224
1225
1226 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1227 PyObject *resultobj;
1228 wxString *arg1 = 0 ;
1229 wxColour *result;
1230 bool temp1 = false ;
1231 PyObject * obj0 = 0 ;
1232 char *kwnames[] = {
1233 (char *) "colorName", NULL
1234 };
1235
1236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1237 {
1238 arg1 = wxString_in_helper(obj0);
1239 if (arg1 == NULL) SWIG_fail;
1240 temp1 = true;
1241 }
1242 {
1243 if (!wxPyCheckForApp()) SWIG_fail;
1244 PyThreadState* __tstate = wxPyBeginAllowThreads();
1245 result = (wxColour *)new wxColour((wxString const &)*arg1);
1246
1247 wxPyEndAllowThreads(__tstate);
1248 if (PyErr_Occurred()) SWIG_fail;
1249 }
1250 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1251 {
1252 if (temp1)
1253 delete arg1;
1254 }
1255 return resultobj;
1256 fail:
1257 {
1258 if (temp1)
1259 delete arg1;
1260 }
1261 return NULL;
1262 }
1263
1264
1265 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1266 PyObject *resultobj;
1267 unsigned long arg1 ;
1268 wxColour *result;
1269 PyObject * obj0 = 0 ;
1270 char *kwnames[] = {
1271 (char *) "colRGB", NULL
1272 };
1273
1274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1275 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
1276 if (PyErr_Occurred()) SWIG_fail;
1277 {
1278 PyThreadState* __tstate = wxPyBeginAllowThreads();
1279 result = (wxColour *)new wxColour(arg1);
1280
1281 wxPyEndAllowThreads(__tstate);
1282 if (PyErr_Occurred()) SWIG_fail;
1283 }
1284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1285 return resultobj;
1286 fail:
1287 return NULL;
1288 }
1289
1290
1291 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1292 PyObject *resultobj;
1293 wxColour *arg1 = (wxColour *) 0 ;
1294 PyObject * obj0 = 0 ;
1295 char *kwnames[] = {
1296 (char *) "self", NULL
1297 };
1298
1299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1302 {
1303 PyThreadState* __tstate = wxPyBeginAllowThreads();
1304 delete arg1;
1305
1306 wxPyEndAllowThreads(__tstate);
1307 if (PyErr_Occurred()) SWIG_fail;
1308 }
1309 Py_INCREF(Py_None); resultobj = Py_None;
1310 return resultobj;
1311 fail:
1312 return NULL;
1313 }
1314
1315
1316 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1317 PyObject *resultobj;
1318 wxColour *arg1 = (wxColour *) 0 ;
1319 byte result;
1320 PyObject * obj0 = 0 ;
1321 char *kwnames[] = {
1322 (char *) "self", NULL
1323 };
1324
1325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1328 {
1329 PyThreadState* __tstate = wxPyBeginAllowThreads();
1330 result = (byte)(arg1)->Red();
1331
1332 wxPyEndAllowThreads(__tstate);
1333 if (PyErr_Occurred()) SWIG_fail;
1334 }
1335 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1336 return resultobj;
1337 fail:
1338 return NULL;
1339 }
1340
1341
1342 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1343 PyObject *resultobj;
1344 wxColour *arg1 = (wxColour *) 0 ;
1345 byte result;
1346 PyObject * obj0 = 0 ;
1347 char *kwnames[] = {
1348 (char *) "self", NULL
1349 };
1350
1351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1354 {
1355 PyThreadState* __tstate = wxPyBeginAllowThreads();
1356 result = (byte)(arg1)->Green();
1357
1358 wxPyEndAllowThreads(__tstate);
1359 if (PyErr_Occurred()) SWIG_fail;
1360 }
1361 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1362 return resultobj;
1363 fail:
1364 return NULL;
1365 }
1366
1367
1368 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1369 PyObject *resultobj;
1370 wxColour *arg1 = (wxColour *) 0 ;
1371 byte result;
1372 PyObject * obj0 = 0 ;
1373 char *kwnames[] = {
1374 (char *) "self", NULL
1375 };
1376
1377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1380 {
1381 PyThreadState* __tstate = wxPyBeginAllowThreads();
1382 result = (byte)(arg1)->Blue();
1383
1384 wxPyEndAllowThreads(__tstate);
1385 if (PyErr_Occurred()) SWIG_fail;
1386 }
1387 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
1388 return resultobj;
1389 fail:
1390 return NULL;
1391 }
1392
1393
1394 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1395 PyObject *resultobj;
1396 wxColour *arg1 = (wxColour *) 0 ;
1397 bool result;
1398 PyObject * obj0 = 0 ;
1399 char *kwnames[] = {
1400 (char *) "self", NULL
1401 };
1402
1403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1406 {
1407 PyThreadState* __tstate = wxPyBeginAllowThreads();
1408 result = (bool)(arg1)->Ok();
1409
1410 wxPyEndAllowThreads(__tstate);
1411 if (PyErr_Occurred()) SWIG_fail;
1412 }
1413 {
1414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1415 }
1416 return resultobj;
1417 fail:
1418 return NULL;
1419 }
1420
1421
1422 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1423 PyObject *resultobj;
1424 wxColour *arg1 = (wxColour *) 0 ;
1425 byte arg2 ;
1426 byte arg3 ;
1427 byte arg4 ;
1428 PyObject * obj0 = 0 ;
1429 PyObject * obj1 = 0 ;
1430 PyObject * obj2 = 0 ;
1431 PyObject * obj3 = 0 ;
1432 char *kwnames[] = {
1433 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1434 };
1435
1436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1439 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1440 if (PyErr_Occurred()) SWIG_fail;
1441 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1442 if (PyErr_Occurred()) SWIG_fail;
1443 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1444 if (PyErr_Occurred()) SWIG_fail;
1445 {
1446 PyThreadState* __tstate = wxPyBeginAllowThreads();
1447 (arg1)->Set(arg2,arg3,arg4);
1448
1449 wxPyEndAllowThreads(__tstate);
1450 if (PyErr_Occurred()) SWIG_fail;
1451 }
1452 Py_INCREF(Py_None); resultobj = Py_None;
1453 return resultobj;
1454 fail:
1455 return NULL;
1456 }
1457
1458
1459 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1460 PyObject *resultobj;
1461 wxColour *arg1 = (wxColour *) 0 ;
1462 unsigned long arg2 ;
1463 PyObject * obj0 = 0 ;
1464 PyObject * obj1 = 0 ;
1465 char *kwnames[] = {
1466 (char *) "self",(char *) "colRGB", NULL
1467 };
1468
1469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1472 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
1473 if (PyErr_Occurred()) SWIG_fail;
1474 {
1475 PyThreadState* __tstate = wxPyBeginAllowThreads();
1476 (arg1)->Set(arg2);
1477
1478 wxPyEndAllowThreads(__tstate);
1479 if (PyErr_Occurred()) SWIG_fail;
1480 }
1481 Py_INCREF(Py_None); resultobj = Py_None;
1482 return resultobj;
1483 fail:
1484 return NULL;
1485 }
1486
1487
1488 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1489 PyObject *resultobj;
1490 wxColour *arg1 = (wxColour *) 0 ;
1491 wxString *arg2 = 0 ;
1492 bool temp2 = false ;
1493 PyObject * obj0 = 0 ;
1494 PyObject * obj1 = 0 ;
1495 char *kwnames[] = {
1496 (char *) "self",(char *) "colourName", NULL
1497 };
1498
1499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1502 {
1503 arg2 = wxString_in_helper(obj1);
1504 if (arg2 == NULL) SWIG_fail;
1505 temp2 = true;
1506 }
1507 {
1508 PyThreadState* __tstate = wxPyBeginAllowThreads();
1509 (arg1)->InitFromName((wxString const &)*arg2);
1510
1511 wxPyEndAllowThreads(__tstate);
1512 if (PyErr_Occurred()) SWIG_fail;
1513 }
1514 Py_INCREF(Py_None); resultobj = Py_None;
1515 {
1516 if (temp2)
1517 delete arg2;
1518 }
1519 return resultobj;
1520 fail:
1521 {
1522 if (temp2)
1523 delete arg2;
1524 }
1525 return NULL;
1526 }
1527
1528
1529 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1530 PyObject *resultobj;
1531 wxColour *arg1 = (wxColour *) 0 ;
1532 long result;
1533 PyObject * obj0 = 0 ;
1534 char *kwnames[] = {
1535 (char *) "self", NULL
1536 };
1537
1538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1541 {
1542 PyThreadState* __tstate = wxPyBeginAllowThreads();
1543 result = (long)((wxColour const *)arg1)->GetPixel();
1544
1545 wxPyEndAllowThreads(__tstate);
1546 if (PyErr_Occurred()) SWIG_fail;
1547 }
1548 resultobj = SWIG_From_long((long)result);
1549 return resultobj;
1550 fail:
1551 return NULL;
1552 }
1553
1554
1555 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1556 PyObject *resultobj;
1557 wxColour *arg1 = (wxColour *) 0 ;
1558 wxColour *arg2 = 0 ;
1559 bool result;
1560 wxColour temp2 ;
1561 PyObject * obj0 = 0 ;
1562 PyObject * obj1 = 0 ;
1563 char *kwnames[] = {
1564 (char *) "self",(char *) "colour", NULL
1565 };
1566
1567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1570 {
1571 arg2 = &temp2;
1572 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1573 }
1574 {
1575 PyThreadState* __tstate = wxPyBeginAllowThreads();
1576 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1577
1578 wxPyEndAllowThreads(__tstate);
1579 if (PyErr_Occurred()) SWIG_fail;
1580 }
1581 {
1582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1583 }
1584 return resultobj;
1585 fail:
1586 return NULL;
1587 }
1588
1589
1590 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1591 PyObject *resultobj;
1592 wxColour *arg1 = (wxColour *) 0 ;
1593 wxColour *arg2 = 0 ;
1594 bool result;
1595 wxColour temp2 ;
1596 PyObject * obj0 = 0 ;
1597 PyObject * obj1 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "self",(char *) "colour", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1605 {
1606 arg2 = &temp2;
1607 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1608 }
1609 {
1610 PyThreadState* __tstate = wxPyBeginAllowThreads();
1611 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1612
1613 wxPyEndAllowThreads(__tstate);
1614 if (PyErr_Occurred()) SWIG_fail;
1615 }
1616 {
1617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1618 }
1619 return resultobj;
1620 fail:
1621 return NULL;
1622 }
1623
1624
1625 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1626 PyObject *resultobj;
1627 wxColour *arg1 = (wxColour *) 0 ;
1628 PyObject *result;
1629 PyObject * obj0 = 0 ;
1630 char *kwnames[] = {
1631 (char *) "self", NULL
1632 };
1633
1634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1637 {
1638 PyThreadState* __tstate = wxPyBeginAllowThreads();
1639 result = (PyObject *)wxColour_Get(arg1);
1640
1641 wxPyEndAllowThreads(__tstate);
1642 if (PyErr_Occurred()) SWIG_fail;
1643 }
1644 resultobj = result;
1645 return resultobj;
1646 fail:
1647 return NULL;
1648 }
1649
1650
1651 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1652 PyObject *resultobj;
1653 wxColour *arg1 = (wxColour *) 0 ;
1654 unsigned long result;
1655 PyObject * obj0 = 0 ;
1656 char *kwnames[] = {
1657 (char *) "self", NULL
1658 };
1659
1660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1663 {
1664 PyThreadState* __tstate = wxPyBeginAllowThreads();
1665 result = (unsigned long)wxColour_GetRGB(arg1);
1666
1667 wxPyEndAllowThreads(__tstate);
1668 if (PyErr_Occurred()) SWIG_fail;
1669 }
1670 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
1671 return resultobj;
1672 fail:
1673 return NULL;
1674 }
1675
1676
1677 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1678 PyObject *obj;
1679 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1680 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1681 Py_INCREF(obj);
1682 return Py_BuildValue((char *)"");
1683 }
1684 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1685 PyObject *resultobj;
1686 int arg1 ;
1687 unsigned char *arg2 = (unsigned char *) 0 ;
1688 unsigned char *arg3 = (unsigned char *) 0 ;
1689 unsigned char *arg4 = (unsigned char *) 0 ;
1690 wxPalette *result;
1691 PyObject * obj0 = 0 ;
1692 PyObject * obj1 = 0 ;
1693 PyObject * obj2 = 0 ;
1694 PyObject * obj3 = 0 ;
1695 char *kwnames[] = {
1696 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1697 };
1698
1699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1700 arg1 = (int)SWIG_As_int(obj0);
1701 if (PyErr_Occurred()) SWIG_fail;
1702 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1704 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1706 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1708 {
1709 if (!wxPyCheckForApp()) SWIG_fail;
1710 PyThreadState* __tstate = wxPyBeginAllowThreads();
1711 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1712
1713 wxPyEndAllowThreads(__tstate);
1714 if (PyErr_Occurred()) SWIG_fail;
1715 }
1716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1717 return resultobj;
1718 fail:
1719 return NULL;
1720 }
1721
1722
1723 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1724 PyObject *resultobj;
1725 wxPalette *arg1 = (wxPalette *) 0 ;
1726 PyObject * obj0 = 0 ;
1727 char *kwnames[] = {
1728 (char *) "self", NULL
1729 };
1730
1731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1734 {
1735 PyThreadState* __tstate = wxPyBeginAllowThreads();
1736 delete arg1;
1737
1738 wxPyEndAllowThreads(__tstate);
1739 if (PyErr_Occurred()) SWIG_fail;
1740 }
1741 Py_INCREF(Py_None); resultobj = Py_None;
1742 return resultobj;
1743 fail:
1744 return NULL;
1745 }
1746
1747
1748 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1749 PyObject *resultobj;
1750 wxPalette *arg1 = (wxPalette *) 0 ;
1751 byte arg2 ;
1752 byte arg3 ;
1753 byte arg4 ;
1754 int result;
1755 PyObject * obj0 = 0 ;
1756 PyObject * obj1 = 0 ;
1757 PyObject * obj2 = 0 ;
1758 PyObject * obj3 = 0 ;
1759 char *kwnames[] = {
1760 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1761 };
1762
1763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1766 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
1767 if (PyErr_Occurred()) SWIG_fail;
1768 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
1769 if (PyErr_Occurred()) SWIG_fail;
1770 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
1771 if (PyErr_Occurred()) SWIG_fail;
1772 {
1773 PyThreadState* __tstate = wxPyBeginAllowThreads();
1774 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1775
1776 wxPyEndAllowThreads(__tstate);
1777 if (PyErr_Occurred()) SWIG_fail;
1778 }
1779 resultobj = SWIG_From_int((int)result);
1780 return resultobj;
1781 fail:
1782 return NULL;
1783 }
1784
1785
1786 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1787 PyObject *resultobj;
1788 wxPalette *arg1 = (wxPalette *) 0 ;
1789 int arg2 ;
1790 byte *arg3 = (byte *) 0 ;
1791 byte *arg4 = (byte *) 0 ;
1792 byte *arg5 = (byte *) 0 ;
1793 bool result;
1794 byte temp3 ;
1795 int res3 = 0 ;
1796 byte temp4 ;
1797 int res4 = 0 ;
1798 byte temp5 ;
1799 int res5 = 0 ;
1800 PyObject * obj0 = 0 ;
1801 PyObject * obj1 = 0 ;
1802 char *kwnames[] = {
1803 (char *) "self",(char *) "pixel", NULL
1804 };
1805
1806 arg3 = &temp3; res3 = SWIG_NEWOBJ;
1807 arg4 = &temp4; res4 = SWIG_NEWOBJ;
1808 arg5 = &temp5; res5 = SWIG_NEWOBJ;
1809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1812 arg2 = (int)SWIG_As_int(obj1);
1813 if (PyErr_Occurred()) SWIG_fail;
1814 {
1815 PyThreadState* __tstate = wxPyBeginAllowThreads();
1816 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1817
1818 wxPyEndAllowThreads(__tstate);
1819 if (PyErr_Occurred()) SWIG_fail;
1820 }
1821 {
1822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1823 }
1824 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
1825 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
1826 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
1827 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
1828 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
1829 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0)));
1830 return resultobj;
1831 fail:
1832 return NULL;
1833 }
1834
1835
1836 static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) {
1837 PyObject *resultobj;
1838 wxPalette *arg1 = (wxPalette *) 0 ;
1839 int result;
1840 PyObject * obj0 = 0 ;
1841 char *kwnames[] = {
1842 (char *) "self", NULL
1843 };
1844
1845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail;
1846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1848 {
1849 PyThreadState* __tstate = wxPyBeginAllowThreads();
1850 result = (int)((wxPalette const *)arg1)->GetColoursCount();
1851
1852 wxPyEndAllowThreads(__tstate);
1853 if (PyErr_Occurred()) SWIG_fail;
1854 }
1855 resultobj = SWIG_From_int((int)result);
1856 return resultobj;
1857 fail:
1858 return NULL;
1859 }
1860
1861
1862 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1863 PyObject *resultobj;
1864 wxPalette *arg1 = (wxPalette *) 0 ;
1865 bool result;
1866 PyObject * obj0 = 0 ;
1867 char *kwnames[] = {
1868 (char *) "self", NULL
1869 };
1870
1871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1874 {
1875 PyThreadState* __tstate = wxPyBeginAllowThreads();
1876 result = (bool)(arg1)->Ok();
1877
1878 wxPyEndAllowThreads(__tstate);
1879 if (PyErr_Occurred()) SWIG_fail;
1880 }
1881 {
1882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1883 }
1884 return resultobj;
1885 fail:
1886 return NULL;
1887 }
1888
1889
1890 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1891 PyObject *obj;
1892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1893 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1894 Py_INCREF(obj);
1895 return Py_BuildValue((char *)"");
1896 }
1897 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1898 PyObject *resultobj;
1899 wxColour *arg1 = 0 ;
1900 int arg2 = (int) 1 ;
1901 int arg3 = (int) wxSOLID ;
1902 wxPen *result;
1903 wxColour temp1 ;
1904 PyObject * obj0 = 0 ;
1905 PyObject * obj1 = 0 ;
1906 PyObject * obj2 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "colour",(char *) "width",(char *) "style", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1912 {
1913 arg1 = &temp1;
1914 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1915 }
1916 if (obj1) {
1917 arg2 = (int)SWIG_As_int(obj1);
1918 if (PyErr_Occurred()) SWIG_fail;
1919 }
1920 if (obj2) {
1921 arg3 = (int)SWIG_As_int(obj2);
1922 if (PyErr_Occurred()) SWIG_fail;
1923 }
1924 {
1925 if (!wxPyCheckForApp()) SWIG_fail;
1926 PyThreadState* __tstate = wxPyBeginAllowThreads();
1927 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1928
1929 wxPyEndAllowThreads(__tstate);
1930 if (PyErr_Occurred()) SWIG_fail;
1931 }
1932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1933 return resultobj;
1934 fail:
1935 return NULL;
1936 }
1937
1938
1939 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1940 PyObject *resultobj;
1941 wxPen *arg1 = (wxPen *) 0 ;
1942 PyObject * obj0 = 0 ;
1943 char *kwnames[] = {
1944 (char *) "self", NULL
1945 };
1946
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1950 {
1951 PyThreadState* __tstate = wxPyBeginAllowThreads();
1952 delete arg1;
1953
1954 wxPyEndAllowThreads(__tstate);
1955 if (PyErr_Occurred()) SWIG_fail;
1956 }
1957 Py_INCREF(Py_None); resultobj = Py_None;
1958 return resultobj;
1959 fail:
1960 return NULL;
1961 }
1962
1963
1964 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1965 PyObject *resultobj;
1966 wxPen *arg1 = (wxPen *) 0 ;
1967 int result;
1968 PyObject * obj0 = 0 ;
1969 char *kwnames[] = {
1970 (char *) "self", NULL
1971 };
1972
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1976 {
1977 PyThreadState* __tstate = wxPyBeginAllowThreads();
1978 result = (int)(arg1)->GetCap();
1979
1980 wxPyEndAllowThreads(__tstate);
1981 if (PyErr_Occurred()) SWIG_fail;
1982 }
1983 resultobj = SWIG_From_int((int)result);
1984 return resultobj;
1985 fail:
1986 return NULL;
1987 }
1988
1989
1990 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1991 PyObject *resultobj;
1992 wxPen *arg1 = (wxPen *) 0 ;
1993 wxColour result;
1994 PyObject * obj0 = 0 ;
1995 char *kwnames[] = {
1996 (char *) "self", NULL
1997 };
1998
1999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
2000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2002 {
2003 PyThreadState* __tstate = wxPyBeginAllowThreads();
2004 result = (arg1)->GetColour();
2005
2006 wxPyEndAllowThreads(__tstate);
2007 if (PyErr_Occurred()) SWIG_fail;
2008 }
2009 {
2010 wxColour * resultptr;
2011 resultptr = new wxColour((wxColour &) result);
2012 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2013 }
2014 return resultobj;
2015 fail:
2016 return NULL;
2017 }
2018
2019
2020 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2021 PyObject *resultobj;
2022 wxPen *arg1 = (wxPen *) 0 ;
2023 int result;
2024 PyObject * obj0 = 0 ;
2025 char *kwnames[] = {
2026 (char *) "self", NULL
2027 };
2028
2029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
2030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2032 {
2033 PyThreadState* __tstate = wxPyBeginAllowThreads();
2034 result = (int)(arg1)->GetJoin();
2035
2036 wxPyEndAllowThreads(__tstate);
2037 if (PyErr_Occurred()) SWIG_fail;
2038 }
2039 resultobj = SWIG_From_int((int)result);
2040 return resultobj;
2041 fail:
2042 return NULL;
2043 }
2044
2045
2046 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2047 PyObject *resultobj;
2048 wxPen *arg1 = (wxPen *) 0 ;
2049 int result;
2050 PyObject * obj0 = 0 ;
2051 char *kwnames[] = {
2052 (char *) "self", NULL
2053 };
2054
2055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2058 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 result = (int)(arg1)->GetStyle();
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 }
2065 resultobj = SWIG_From_int((int)result);
2066 return resultobj;
2067 fail:
2068 return NULL;
2069 }
2070
2071
2072 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2073 PyObject *resultobj;
2074 wxPen *arg1 = (wxPen *) 0 ;
2075 int result;
2076 PyObject * obj0 = 0 ;
2077 char *kwnames[] = {
2078 (char *) "self", NULL
2079 };
2080
2081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2084 {
2085 PyThreadState* __tstate = wxPyBeginAllowThreads();
2086 result = (int)(arg1)->GetWidth();
2087
2088 wxPyEndAllowThreads(__tstate);
2089 if (PyErr_Occurred()) SWIG_fail;
2090 }
2091 resultobj = SWIG_From_int((int)result);
2092 return resultobj;
2093 fail:
2094 return NULL;
2095 }
2096
2097
2098 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2099 PyObject *resultobj;
2100 wxPen *arg1 = (wxPen *) 0 ;
2101 bool result;
2102 PyObject * obj0 = 0 ;
2103 char *kwnames[] = {
2104 (char *) "self", NULL
2105 };
2106
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2110 {
2111 PyThreadState* __tstate = wxPyBeginAllowThreads();
2112 result = (bool)(arg1)->Ok();
2113
2114 wxPyEndAllowThreads(__tstate);
2115 if (PyErr_Occurred()) SWIG_fail;
2116 }
2117 {
2118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2119 }
2120 return resultobj;
2121 fail:
2122 return NULL;
2123 }
2124
2125
2126 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2127 PyObject *resultobj;
2128 wxPen *arg1 = (wxPen *) 0 ;
2129 int arg2 ;
2130 PyObject * obj0 = 0 ;
2131 PyObject * obj1 = 0 ;
2132 char *kwnames[] = {
2133 (char *) "self",(char *) "cap_style", NULL
2134 };
2135
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2139 arg2 = (int)SWIG_As_int(obj1);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 {
2142 PyThreadState* __tstate = wxPyBeginAllowThreads();
2143 (arg1)->SetCap(arg2);
2144
2145 wxPyEndAllowThreads(__tstate);
2146 if (PyErr_Occurred()) SWIG_fail;
2147 }
2148 Py_INCREF(Py_None); resultobj = Py_None;
2149 return resultobj;
2150 fail:
2151 return NULL;
2152 }
2153
2154
2155 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2156 PyObject *resultobj;
2157 wxPen *arg1 = (wxPen *) 0 ;
2158 wxColour *arg2 = 0 ;
2159 wxColour temp2 ;
2160 PyObject * obj0 = 0 ;
2161 PyObject * obj1 = 0 ;
2162 char *kwnames[] = {
2163 (char *) "self",(char *) "colour", NULL
2164 };
2165
2166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2169 {
2170 arg2 = &temp2;
2171 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2172 }
2173 {
2174 PyThreadState* __tstate = wxPyBeginAllowThreads();
2175 (arg1)->SetColour(*arg2);
2176
2177 wxPyEndAllowThreads(__tstate);
2178 if (PyErr_Occurred()) SWIG_fail;
2179 }
2180 Py_INCREF(Py_None); resultobj = Py_None;
2181 return resultobj;
2182 fail:
2183 return NULL;
2184 }
2185
2186
2187 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2188 PyObject *resultobj;
2189 wxPen *arg1 = (wxPen *) 0 ;
2190 int arg2 ;
2191 PyObject * obj0 = 0 ;
2192 PyObject * obj1 = 0 ;
2193 char *kwnames[] = {
2194 (char *) "self",(char *) "join_style", NULL
2195 };
2196
2197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2200 arg2 = (int)SWIG_As_int(obj1);
2201 if (PyErr_Occurred()) SWIG_fail;
2202 {
2203 PyThreadState* __tstate = wxPyBeginAllowThreads();
2204 (arg1)->SetJoin(arg2);
2205
2206 wxPyEndAllowThreads(__tstate);
2207 if (PyErr_Occurred()) SWIG_fail;
2208 }
2209 Py_INCREF(Py_None); resultobj = Py_None;
2210 return resultobj;
2211 fail:
2212 return NULL;
2213 }
2214
2215
2216 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2217 PyObject *resultobj;
2218 wxPen *arg1 = (wxPen *) 0 ;
2219 int arg2 ;
2220 PyObject * obj0 = 0 ;
2221 PyObject * obj1 = 0 ;
2222 char *kwnames[] = {
2223 (char *) "self",(char *) "style", NULL
2224 };
2225
2226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2229 arg2 = (int)SWIG_As_int(obj1);
2230 if (PyErr_Occurred()) SWIG_fail;
2231 {
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 (arg1)->SetStyle(arg2);
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 Py_INCREF(Py_None); resultobj = Py_None;
2239 return resultobj;
2240 fail:
2241 return NULL;
2242 }
2243
2244
2245 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2246 PyObject *resultobj;
2247 wxPen *arg1 = (wxPen *) 0 ;
2248 int arg2 ;
2249 PyObject * obj0 = 0 ;
2250 PyObject * obj1 = 0 ;
2251 char *kwnames[] = {
2252 (char *) "self",(char *) "width", NULL
2253 };
2254
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2258 arg2 = (int)SWIG_As_int(obj1);
2259 if (PyErr_Occurred()) SWIG_fail;
2260 {
2261 PyThreadState* __tstate = wxPyBeginAllowThreads();
2262 (arg1)->SetWidth(arg2);
2263
2264 wxPyEndAllowThreads(__tstate);
2265 if (PyErr_Occurred()) SWIG_fail;
2266 }
2267 Py_INCREF(Py_None); resultobj = Py_None;
2268 return resultobj;
2269 fail:
2270 return NULL;
2271 }
2272
2273
2274 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2275 PyObject *resultobj;
2276 wxPen *arg1 = (wxPen *) 0 ;
2277 int arg2 ;
2278 wxDash *arg3 = (wxDash *) 0 ;
2279 PyObject * obj0 = 0 ;
2280 PyObject * obj1 = 0 ;
2281 char *kwnames[] = {
2282 (char *) "self",(char *) "dashes", NULL
2283 };
2284
2285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2288 {
2289 arg2 = PyList_Size(obj1);
2290 arg3 = (wxDash*)byte_LIST_helper(obj1);
2291 if (arg3 == NULL) SWIG_fail;
2292 }
2293 {
2294 PyThreadState* __tstate = wxPyBeginAllowThreads();
2295 (arg1)->SetDashes(arg2,arg3);
2296
2297 wxPyEndAllowThreads(__tstate);
2298 if (PyErr_Occurred()) SWIG_fail;
2299 }
2300 Py_INCREF(Py_None); resultobj = Py_None;
2301 {
2302 if (arg3) delete [] arg3;
2303 }
2304 return resultobj;
2305 fail:
2306 {
2307 if (arg3) delete [] arg3;
2308 }
2309 return NULL;
2310 }
2311
2312
2313 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2314 PyObject *resultobj;
2315 wxPen *arg1 = (wxPen *) 0 ;
2316 PyObject *result;
2317 PyObject * obj0 = 0 ;
2318 char *kwnames[] = {
2319 (char *) "self", NULL
2320 };
2321
2322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2325 {
2326 PyThreadState* __tstate = wxPyBeginAllowThreads();
2327 result = (PyObject *)wxPen_GetDashes(arg1);
2328
2329 wxPyEndAllowThreads(__tstate);
2330 if (PyErr_Occurred()) SWIG_fail;
2331 }
2332 resultobj = result;
2333 return resultobj;
2334 fail:
2335 return NULL;
2336 }
2337
2338
2339 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2340 PyObject *resultobj;
2341 wxPen *arg1 = (wxPen *) 0 ;
2342 PyObject *arg2 = (PyObject *) 0 ;
2343 PyObject *arg3 = (PyObject *) 0 ;
2344 PyObject * obj0 = 0 ;
2345 PyObject * obj1 = 0 ;
2346 PyObject * obj2 = 0 ;
2347 char *kwnames[] = {
2348 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2349 };
2350
2351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2354 arg2 = obj1;
2355 arg3 = obj2;
2356 {
2357 PyThreadState* __tstate = wxPyBeginAllowThreads();
2358 wxPen__SetDashes(arg1,arg2,arg3);
2359
2360 wxPyEndAllowThreads(__tstate);
2361 if (PyErr_Occurred()) SWIG_fail;
2362 }
2363 Py_INCREF(Py_None); resultobj = Py_None;
2364 return resultobj;
2365 fail:
2366 return NULL;
2367 }
2368
2369
2370 static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
2371 PyObject *resultobj;
2372 wxPen *arg1 = (wxPen *) 0 ;
2373 int result;
2374 PyObject * obj0 = 0 ;
2375 char *kwnames[] = {
2376 (char *) "self", NULL
2377 };
2378
2379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2382 {
2383 PyThreadState* __tstate = wxPyBeginAllowThreads();
2384 result = (int)((wxPen const *)arg1)->GetDashCount();
2385
2386 wxPyEndAllowThreads(__tstate);
2387 if (PyErr_Occurred()) SWIG_fail;
2388 }
2389 resultobj = SWIG_From_int((int)result);
2390 return resultobj;
2391 fail:
2392 return NULL;
2393 }
2394
2395
2396 static PyObject *_wrap_Pen_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2397 PyObject *resultobj;
2398 wxPen *arg1 = (wxPen *) 0 ;
2399 wxBitmap *result;
2400 PyObject * obj0 = 0 ;
2401 char *kwnames[] = {
2402 (char *) "self", NULL
2403 };
2404
2405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2408 {
2409 PyThreadState* __tstate = wxPyBeginAllowThreads();
2410 result = (wxBitmap *)(arg1)->GetStipple();
2411
2412 wxPyEndAllowThreads(__tstate);
2413 if (PyErr_Occurred()) SWIG_fail;
2414 }
2415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2416 return resultobj;
2417 fail:
2418 return NULL;
2419 }
2420
2421
2422 static PyObject *_wrap_Pen_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2423 PyObject *resultobj;
2424 wxPen *arg1 = (wxPen *) 0 ;
2425 wxBitmap *arg2 = 0 ;
2426 PyObject * obj0 = 0 ;
2427 PyObject * obj1 = 0 ;
2428 char *kwnames[] = {
2429 (char *) "self",(char *) "stipple", NULL
2430 };
2431
2432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2435 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2436 SWIG_POINTER_EXCEPTION | 0)) == -1)
2437 SWIG_fail;
2438 if (arg2 == NULL) {
2439 PyErr_SetString(PyExc_TypeError,"null reference");
2440 SWIG_fail;
2441 }
2442 {
2443 PyThreadState* __tstate = wxPyBeginAllowThreads();
2444 (arg1)->SetStipple(*arg2);
2445
2446 wxPyEndAllowThreads(__tstate);
2447 if (PyErr_Occurred()) SWIG_fail;
2448 }
2449 Py_INCREF(Py_None); resultobj = Py_None;
2450 return resultobj;
2451 fail:
2452 return NULL;
2453 }
2454
2455
2456 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2457 PyObject *resultobj;
2458 wxPen *arg1 = (wxPen *) 0 ;
2459 wxPen *arg2 = (wxPen *) 0 ;
2460 bool result;
2461 PyObject * obj0 = 0 ;
2462 PyObject * obj1 = 0 ;
2463 char *kwnames[] = {
2464 (char *) "self",(char *) "other", NULL
2465 };
2466
2467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2472 {
2473 PyThreadState* __tstate = wxPyBeginAllowThreads();
2474 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2475
2476 wxPyEndAllowThreads(__tstate);
2477 if (PyErr_Occurred()) SWIG_fail;
2478 }
2479 {
2480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2481 }
2482 return resultobj;
2483 fail:
2484 return NULL;
2485 }
2486
2487
2488 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2489 PyObject *resultobj;
2490 wxPen *arg1 = (wxPen *) 0 ;
2491 wxPen *arg2 = (wxPen *) 0 ;
2492 bool result;
2493 PyObject * obj0 = 0 ;
2494 PyObject * obj1 = 0 ;
2495 char *kwnames[] = {
2496 (char *) "self",(char *) "other", NULL
2497 };
2498
2499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2502 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2504 {
2505 PyThreadState* __tstate = wxPyBeginAllowThreads();
2506 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2507
2508 wxPyEndAllowThreads(__tstate);
2509 if (PyErr_Occurred()) SWIG_fail;
2510 }
2511 {
2512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2513 }
2514 return resultobj;
2515 fail:
2516 return NULL;
2517 }
2518
2519
2520 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2521 PyObject *obj;
2522 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2523 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2524 Py_INCREF(obj);
2525 return Py_BuildValue((char *)"");
2526 }
2527 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2528 PyObject *resultobj;
2529 wxColour *arg1 = 0 ;
2530 int arg2 = (int) wxSOLID ;
2531 wxBrush *result;
2532 wxColour temp1 ;
2533 PyObject * obj0 = 0 ;
2534 PyObject * obj1 = 0 ;
2535 char *kwnames[] = {
2536 (char *) "colour",(char *) "style", NULL
2537 };
2538
2539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2540 {
2541 arg1 = &temp1;
2542 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2543 }
2544 if (obj1) {
2545 arg2 = (int)SWIG_As_int(obj1);
2546 if (PyErr_Occurred()) SWIG_fail;
2547 }
2548 {
2549 if (!wxPyCheckForApp()) SWIG_fail;
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) SWIG_fail;
2555 }
2556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2557 return resultobj;
2558 fail:
2559 return NULL;
2560 }
2561
2562
2563 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2564 PyObject *resultobj;
2565 wxBrush *arg1 = (wxBrush *) 0 ;
2566 PyObject * obj0 = 0 ;
2567 char *kwnames[] = {
2568 (char *) "self", NULL
2569 };
2570
2571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2574 {
2575 PyThreadState* __tstate = wxPyBeginAllowThreads();
2576 delete arg1;
2577
2578 wxPyEndAllowThreads(__tstate);
2579 if (PyErr_Occurred()) SWIG_fail;
2580 }
2581 Py_INCREF(Py_None); resultobj = Py_None;
2582 return resultobj;
2583 fail:
2584 return NULL;
2585 }
2586
2587
2588 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2589 PyObject *resultobj;
2590 wxBrush *arg1 = (wxBrush *) 0 ;
2591 wxColour *arg2 = 0 ;
2592 wxColour temp2 ;
2593 PyObject * obj0 = 0 ;
2594 PyObject * obj1 = 0 ;
2595 char *kwnames[] = {
2596 (char *) "self",(char *) "col", NULL
2597 };
2598
2599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2602 {
2603 arg2 = &temp2;
2604 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2605 }
2606 {
2607 PyThreadState* __tstate = wxPyBeginAllowThreads();
2608 (arg1)->SetColour((wxColour const &)*arg2);
2609
2610 wxPyEndAllowThreads(__tstate);
2611 if (PyErr_Occurred()) SWIG_fail;
2612 }
2613 Py_INCREF(Py_None); resultobj = Py_None;
2614 return resultobj;
2615 fail:
2616 return NULL;
2617 }
2618
2619
2620 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2621 PyObject *resultobj;
2622 wxBrush *arg1 = (wxBrush *) 0 ;
2623 int arg2 ;
2624 PyObject * obj0 = 0 ;
2625 PyObject * obj1 = 0 ;
2626 char *kwnames[] = {
2627 (char *) "self",(char *) "style", NULL
2628 };
2629
2630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2633 arg2 = (int)SWIG_As_int(obj1);
2634 if (PyErr_Occurred()) SWIG_fail;
2635 {
2636 PyThreadState* __tstate = wxPyBeginAllowThreads();
2637 (arg1)->SetStyle(arg2);
2638
2639 wxPyEndAllowThreads(__tstate);
2640 if (PyErr_Occurred()) SWIG_fail;
2641 }
2642 Py_INCREF(Py_None); resultobj = Py_None;
2643 return resultobj;
2644 fail:
2645 return NULL;
2646 }
2647
2648
2649 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2650 PyObject *resultobj;
2651 wxBrush *arg1 = (wxBrush *) 0 ;
2652 wxBitmap *arg2 = 0 ;
2653 PyObject * obj0 = 0 ;
2654 PyObject * obj1 = 0 ;
2655 char *kwnames[] = {
2656 (char *) "self",(char *) "stipple", NULL
2657 };
2658
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2662 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2663 SWIG_POINTER_EXCEPTION | 0)) == -1)
2664 SWIG_fail;
2665 if (arg2 == NULL) {
2666 PyErr_SetString(PyExc_TypeError,"null reference");
2667 SWIG_fail;
2668 }
2669 {
2670 PyThreadState* __tstate = wxPyBeginAllowThreads();
2671 (arg1)->SetStipple((wxBitmap const &)*arg2);
2672
2673 wxPyEndAllowThreads(__tstate);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 }
2676 Py_INCREF(Py_None); resultobj = Py_None;
2677 return resultobj;
2678 fail:
2679 return NULL;
2680 }
2681
2682
2683 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2684 PyObject *resultobj;
2685 wxBrush *arg1 = (wxBrush *) 0 ;
2686 wxColour result;
2687 PyObject * obj0 = 0 ;
2688 char *kwnames[] = {
2689 (char *) "self", NULL
2690 };
2691
2692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2695 {
2696 PyThreadState* __tstate = wxPyBeginAllowThreads();
2697 result = ((wxBrush const *)arg1)->GetColour();
2698
2699 wxPyEndAllowThreads(__tstate);
2700 if (PyErr_Occurred()) SWIG_fail;
2701 }
2702 {
2703 wxColour * resultptr;
2704 resultptr = new wxColour((wxColour &) result);
2705 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2706 }
2707 return resultobj;
2708 fail:
2709 return NULL;
2710 }
2711
2712
2713 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2714 PyObject *resultobj;
2715 wxBrush *arg1 = (wxBrush *) 0 ;
2716 int result;
2717 PyObject * obj0 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "self", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2725 {
2726 PyThreadState* __tstate = wxPyBeginAllowThreads();
2727 result = (int)((wxBrush const *)arg1)->GetStyle();
2728
2729 wxPyEndAllowThreads(__tstate);
2730 if (PyErr_Occurred()) SWIG_fail;
2731 }
2732 resultobj = SWIG_From_int((int)result);
2733 return resultobj;
2734 fail:
2735 return NULL;
2736 }
2737
2738
2739 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2740 PyObject *resultobj;
2741 wxBrush *arg1 = (wxBrush *) 0 ;
2742 wxBitmap *result;
2743 PyObject * obj0 = 0 ;
2744 char *kwnames[] = {
2745 (char *) "self", NULL
2746 };
2747
2748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2751 {
2752 PyThreadState* __tstate = wxPyBeginAllowThreads();
2753 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2754
2755 wxPyEndAllowThreads(__tstate);
2756 if (PyErr_Occurred()) SWIG_fail;
2757 }
2758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2759 return resultobj;
2760 fail:
2761 return NULL;
2762 }
2763
2764
2765 static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
2766 PyObject *resultobj;
2767 wxBrush *arg1 = (wxBrush *) 0 ;
2768 bool result;
2769 PyObject * obj0 = 0 ;
2770 char *kwnames[] = {
2771 (char *) "self", NULL
2772 };
2773
2774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail;
2775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2777 {
2778 PyThreadState* __tstate = wxPyBeginAllowThreads();
2779 result = (bool)((wxBrush const *)arg1)->IsHatch();
2780
2781 wxPyEndAllowThreads(__tstate);
2782 if (PyErr_Occurred()) SWIG_fail;
2783 }
2784 {
2785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2786 }
2787 return resultobj;
2788 fail:
2789 return NULL;
2790 }
2791
2792
2793 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2794 PyObject *resultobj;
2795 wxBrush *arg1 = (wxBrush *) 0 ;
2796 bool result;
2797 PyObject * obj0 = 0 ;
2798 char *kwnames[] = {
2799 (char *) "self", NULL
2800 };
2801
2802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2805 {
2806 PyThreadState* __tstate = wxPyBeginAllowThreads();
2807 result = (bool)(arg1)->Ok();
2808
2809 wxPyEndAllowThreads(__tstate);
2810 if (PyErr_Occurred()) SWIG_fail;
2811 }
2812 {
2813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2814 }
2815 return resultobj;
2816 fail:
2817 return NULL;
2818 }
2819
2820
2821 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2822 PyObject *obj;
2823 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2824 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2825 Py_INCREF(obj);
2826 return Py_BuildValue((char *)"");
2827 }
2828 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2829 PyObject *resultobj;
2830 wxString *arg1 = 0 ;
2831 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2832 wxBitmap *result;
2833 bool temp1 = false ;
2834 PyObject * obj0 = 0 ;
2835 PyObject * obj1 = 0 ;
2836 char *kwnames[] = {
2837 (char *) "name",(char *) "type", NULL
2838 };
2839
2840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2841 {
2842 arg1 = wxString_in_helper(obj0);
2843 if (arg1 == NULL) SWIG_fail;
2844 temp1 = true;
2845 }
2846 if (obj1) {
2847 arg2 = (int)SWIG_As_int(obj1);
2848 if (PyErr_Occurred()) SWIG_fail;
2849 }
2850 {
2851 if (!wxPyCheckForApp()) SWIG_fail;
2852 PyThreadState* __tstate = wxPyBeginAllowThreads();
2853 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2854
2855 wxPyEndAllowThreads(__tstate);
2856 if (PyErr_Occurred()) SWIG_fail;
2857 }
2858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2859 {
2860 if (temp1)
2861 delete arg1;
2862 }
2863 return resultobj;
2864 fail:
2865 {
2866 if (temp1)
2867 delete arg1;
2868 }
2869 return NULL;
2870 }
2871
2872
2873 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2874 PyObject *resultobj;
2875 wxBitmap *arg1 = (wxBitmap *) 0 ;
2876 PyObject * obj0 = 0 ;
2877 char *kwnames[] = {
2878 (char *) "self", NULL
2879 };
2880
2881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2884 {
2885 PyThreadState* __tstate = wxPyBeginAllowThreads();
2886 delete arg1;
2887
2888 wxPyEndAllowThreads(__tstate);
2889 if (PyErr_Occurred()) SWIG_fail;
2890 }
2891 Py_INCREF(Py_None); resultobj = Py_None;
2892 return resultobj;
2893 fail:
2894 return NULL;
2895 }
2896
2897
2898 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2899 PyObject *resultobj;
2900 int arg1 ;
2901 int arg2 ;
2902 int arg3 = (int) -1 ;
2903 wxBitmap *result;
2904 PyObject * obj0 = 0 ;
2905 PyObject * obj1 = 0 ;
2906 PyObject * obj2 = 0 ;
2907 char *kwnames[] = {
2908 (char *) "width",(char *) "height",(char *) "depth", NULL
2909 };
2910
2911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2912 arg1 = (int)SWIG_As_int(obj0);
2913 if (PyErr_Occurred()) SWIG_fail;
2914 arg2 = (int)SWIG_As_int(obj1);
2915 if (PyErr_Occurred()) SWIG_fail;
2916 if (obj2) {
2917 arg3 = (int)SWIG_As_int(obj2);
2918 if (PyErr_Occurred()) SWIG_fail;
2919 }
2920 {
2921 if (!wxPyCheckForApp()) SWIG_fail;
2922 PyThreadState* __tstate = wxPyBeginAllowThreads();
2923 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2924
2925 wxPyEndAllowThreads(__tstate);
2926 if (PyErr_Occurred()) SWIG_fail;
2927 }
2928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2929 return resultobj;
2930 fail:
2931 return NULL;
2932 }
2933
2934
2935 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2936 PyObject *resultobj;
2937 wxIcon *arg1 = 0 ;
2938 wxBitmap *result;
2939 PyObject * obj0 = 0 ;
2940 char *kwnames[] = {
2941 (char *) "icon", NULL
2942 };
2943
2944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2946 SWIG_POINTER_EXCEPTION | 0)) == -1)
2947 SWIG_fail;
2948 if (arg1 == NULL) {
2949 PyErr_SetString(PyExc_TypeError,"null reference");
2950 SWIG_fail;
2951 }
2952 {
2953 if (!wxPyCheckForApp()) SWIG_fail;
2954 PyThreadState* __tstate = wxPyBeginAllowThreads();
2955 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2956
2957 wxPyEndAllowThreads(__tstate);
2958 if (PyErr_Occurred()) SWIG_fail;
2959 }
2960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2961 return resultobj;
2962 fail:
2963 return NULL;
2964 }
2965
2966
2967 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2968 PyObject *resultobj;
2969 wxImage *arg1 = 0 ;
2970 int arg2 = (int) -1 ;
2971 wxBitmap *result;
2972 PyObject * obj0 = 0 ;
2973 PyObject * obj1 = 0 ;
2974 char *kwnames[] = {
2975 (char *) "image",(char *) "depth", NULL
2976 };
2977
2978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2980 SWIG_POINTER_EXCEPTION | 0)) == -1)
2981 SWIG_fail;
2982 if (arg1 == NULL) {
2983 PyErr_SetString(PyExc_TypeError,"null reference");
2984 SWIG_fail;
2985 }
2986 if (obj1) {
2987 arg2 = (int)SWIG_As_int(obj1);
2988 if (PyErr_Occurred()) SWIG_fail;
2989 }
2990 {
2991 if (!wxPyCheckForApp()) SWIG_fail;
2992 PyThreadState* __tstate = wxPyBeginAllowThreads();
2993 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2994
2995 wxPyEndAllowThreads(__tstate);
2996 if (PyErr_Occurred()) SWIG_fail;
2997 }
2998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2999 return resultobj;
3000 fail:
3001 return NULL;
3002 }
3003
3004
3005 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3006 PyObject *resultobj;
3007 PyObject *arg1 = (PyObject *) 0 ;
3008 wxBitmap *result;
3009 PyObject * obj0 = 0 ;
3010 char *kwnames[] = {
3011 (char *) "listOfStrings", NULL
3012 };
3013
3014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
3015 arg1 = obj0;
3016 {
3017 if (!wxPyCheckForApp()) SWIG_fail;
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 result = (wxBitmap *)new_wxBitmap(arg1);
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) SWIG_fail;
3023 }
3024 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
3025 return resultobj;
3026 fail:
3027 return NULL;
3028 }
3029
3030
3031 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
3032 PyObject *resultobj;
3033 PyObject *arg1 = (PyObject *) 0 ;
3034 int arg2 ;
3035 int arg3 ;
3036 int arg4 = (int) 1 ;
3037 wxBitmap *result;
3038 PyObject * obj0 = 0 ;
3039 PyObject * obj1 = 0 ;
3040 PyObject * obj2 = 0 ;
3041 PyObject * obj3 = 0 ;
3042 char *kwnames[] = {
3043 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
3044 };
3045
3046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3047 arg1 = obj0;
3048 arg2 = (int)SWIG_As_int(obj1);
3049 if (PyErr_Occurred()) SWIG_fail;
3050 arg3 = (int)SWIG_As_int(obj2);
3051 if (PyErr_Occurred()) SWIG_fail;
3052 if (obj3) {
3053 arg4 = (int)SWIG_As_int(obj3);
3054 if (PyErr_Occurred()) SWIG_fail;
3055 }
3056 {
3057 if (!wxPyCheckForApp()) SWIG_fail;
3058 PyThreadState* __tstate = wxPyBeginAllowThreads();
3059 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
3060
3061 wxPyEndAllowThreads(__tstate);
3062 if (PyErr_Occurred()) SWIG_fail;
3063 }
3064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
3065 return resultobj;
3066 fail:
3067 return NULL;
3068 }
3069
3070
3071 static PyObject *_wrap_Bitmap_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
3072 PyObject *resultobj;
3073 wxBitmap *arg1 = (wxBitmap *) 0 ;
3074 long result;
3075 PyObject * obj0 = 0 ;
3076 char *kwnames[] = {
3077 (char *) "self", NULL
3078 };
3079
3080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
3081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3083 {
3084 PyThreadState* __tstate = wxPyBeginAllowThreads();
3085 result = (long)(arg1)->GetHandle();
3086
3087 wxPyEndAllowThreads(__tstate);
3088 if (PyErr_Occurred()) SWIG_fail;
3089 }
3090 resultobj = SWIG_From_long((long)result);
3091 return resultobj;
3092 fail:
3093 return NULL;
3094 }
3095
3096
3097 static PyObject *_wrap_Bitmap_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
3098 PyObject *resultobj;
3099 wxBitmap *arg1 = (wxBitmap *) 0 ;
3100 long arg2 ;
3101 PyObject * obj0 = 0 ;
3102 PyObject * obj1 = 0 ;
3103 char *kwnames[] = {
3104 (char *) "self",(char *) "handle", NULL
3105 };
3106
3107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3110 arg2 = (long)SWIG_As_long(obj1);
3111 if (PyErr_Occurred()) SWIG_fail;
3112 {
3113 PyThreadState* __tstate = wxPyBeginAllowThreads();
3114 wxBitmap_SetHandle(arg1,arg2);
3115
3116 wxPyEndAllowThreads(__tstate);
3117 if (PyErr_Occurred()) SWIG_fail;
3118 }
3119 Py_INCREF(Py_None); resultobj = Py_None;
3120 return resultobj;
3121 fail:
3122 return NULL;
3123 }
3124
3125
3126 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3127 PyObject *resultobj;
3128 wxBitmap *arg1 = (wxBitmap *) 0 ;
3129 bool result;
3130 PyObject * obj0 = 0 ;
3131 char *kwnames[] = {
3132 (char *) "self", NULL
3133 };
3134
3135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3138 {
3139 PyThreadState* __tstate = wxPyBeginAllowThreads();
3140 result = (bool)(arg1)->Ok();
3141
3142 wxPyEndAllowThreads(__tstate);
3143 if (PyErr_Occurred()) SWIG_fail;
3144 }
3145 {
3146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3147 }
3148 return resultobj;
3149 fail:
3150 return NULL;
3151 }
3152
3153
3154 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3155 PyObject *resultobj;
3156 wxBitmap *arg1 = (wxBitmap *) 0 ;
3157 int result;
3158 PyObject * obj0 = 0 ;
3159 char *kwnames[] = {
3160 (char *) "self", NULL
3161 };
3162
3163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3166 {
3167 PyThreadState* __tstate = wxPyBeginAllowThreads();
3168 result = (int)(arg1)->GetWidth();
3169
3170 wxPyEndAllowThreads(__tstate);
3171 if (PyErr_Occurred()) SWIG_fail;
3172 }
3173 resultobj = SWIG_From_int((int)result);
3174 return resultobj;
3175 fail:
3176 return NULL;
3177 }
3178
3179
3180 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3181 PyObject *resultobj;
3182 wxBitmap *arg1 = (wxBitmap *) 0 ;
3183 int result;
3184 PyObject * obj0 = 0 ;
3185 char *kwnames[] = {
3186 (char *) "self", NULL
3187 };
3188
3189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3192 {
3193 PyThreadState* __tstate = wxPyBeginAllowThreads();
3194 result = (int)(arg1)->GetHeight();
3195
3196 wxPyEndAllowThreads(__tstate);
3197 if (PyErr_Occurred()) SWIG_fail;
3198 }
3199 resultobj = SWIG_From_int((int)result);
3200 return resultobj;
3201 fail:
3202 return NULL;
3203 }
3204
3205
3206 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3207 PyObject *resultobj;
3208 wxBitmap *arg1 = (wxBitmap *) 0 ;
3209 int result;
3210 PyObject * obj0 = 0 ;
3211 char *kwnames[] = {
3212 (char *) "self", NULL
3213 };
3214
3215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3218 {
3219 PyThreadState* __tstate = wxPyBeginAllowThreads();
3220 result = (int)(arg1)->GetDepth();
3221
3222 wxPyEndAllowThreads(__tstate);
3223 if (PyErr_Occurred()) SWIG_fail;
3224 }
3225 resultobj = SWIG_From_int((int)result);
3226 return resultobj;
3227 fail:
3228 return NULL;
3229 }
3230
3231
3232 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3233 PyObject *resultobj;
3234 wxBitmap *arg1 = (wxBitmap *) 0 ;
3235 wxSize result;
3236 PyObject * obj0 = 0 ;
3237 char *kwnames[] = {
3238 (char *) "self", NULL
3239 };
3240
3241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3244 {
3245 PyThreadState* __tstate = wxPyBeginAllowThreads();
3246 result = wxBitmap_GetSize(arg1);
3247
3248 wxPyEndAllowThreads(__tstate);
3249 if (PyErr_Occurred()) SWIG_fail;
3250 }
3251 {
3252 wxSize * resultptr;
3253 resultptr = new wxSize((wxSize &) result);
3254 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3255 }
3256 return resultobj;
3257 fail:
3258 return NULL;
3259 }
3260
3261
3262 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3263 PyObject *resultobj;
3264 wxBitmap *arg1 = (wxBitmap *) 0 ;
3265 SwigValueWrapper< wxImage > result;
3266 PyObject * obj0 = 0 ;
3267 char *kwnames[] = {
3268 (char *) "self", NULL
3269 };
3270
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3274 {
3275 PyThreadState* __tstate = wxPyBeginAllowThreads();
3276 result = ((wxBitmap const *)arg1)->ConvertToImage();
3277
3278 wxPyEndAllowThreads(__tstate);
3279 if (PyErr_Occurred()) SWIG_fail;
3280 }
3281 {
3282 wxImage * resultptr;
3283 resultptr = new wxImage((wxImage &) result);
3284 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3285 }
3286 return resultobj;
3287 fail:
3288 return NULL;
3289 }
3290
3291
3292 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3293 PyObject *resultobj;
3294 wxBitmap *arg1 = (wxBitmap *) 0 ;
3295 wxMask *result;
3296 PyObject * obj0 = 0 ;
3297 char *kwnames[] = {
3298 (char *) "self", NULL
3299 };
3300
3301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3304 {
3305 PyThreadState* __tstate = wxPyBeginAllowThreads();
3306 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3307
3308 wxPyEndAllowThreads(__tstate);
3309 if (PyErr_Occurred()) SWIG_fail;
3310 }
3311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3312 return resultobj;
3313 fail:
3314 return NULL;
3315 }
3316
3317
3318 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3319 PyObject *resultobj;
3320 wxBitmap *arg1 = (wxBitmap *) 0 ;
3321 wxMask *arg2 = (wxMask *) 0 ;
3322 PyObject * obj0 = 0 ;
3323 PyObject * obj1 = 0 ;
3324 char *kwnames[] = {
3325 (char *) "self",(char *) "mask", NULL
3326 };
3327
3328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3331 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3333 {
3334 PyThreadState* __tstate = wxPyBeginAllowThreads();
3335 (arg1)->SetMask(arg2);
3336
3337 wxPyEndAllowThreads(__tstate);
3338 if (PyErr_Occurred()) SWIG_fail;
3339 }
3340 Py_INCREF(Py_None); resultobj = Py_None;
3341 return resultobj;
3342 fail:
3343 return NULL;
3344 }
3345
3346
3347 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3348 PyObject *resultobj;
3349 wxBitmap *arg1 = (wxBitmap *) 0 ;
3350 wxColour *arg2 = 0 ;
3351 wxColour temp2 ;
3352 PyObject * obj0 = 0 ;
3353 PyObject * obj1 = 0 ;
3354 char *kwnames[] = {
3355 (char *) "self",(char *) "colour", NULL
3356 };
3357
3358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3361 {
3362 arg2 = &temp2;
3363 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3364 }
3365 {
3366 PyThreadState* __tstate = wxPyBeginAllowThreads();
3367 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3368
3369 wxPyEndAllowThreads(__tstate);
3370 if (PyErr_Occurred()) SWIG_fail;
3371 }
3372 Py_INCREF(Py_None); resultobj = Py_None;
3373 return resultobj;
3374 fail:
3375 return NULL;
3376 }
3377
3378
3379 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3380 PyObject *resultobj;
3381 wxBitmap *arg1 = (wxBitmap *) 0 ;
3382 wxRect *arg2 = 0 ;
3383 SwigValueWrapper< wxBitmap > result;
3384 wxRect temp2 ;
3385 PyObject * obj0 = 0 ;
3386 PyObject * obj1 = 0 ;
3387 char *kwnames[] = {
3388 (char *) "self",(char *) "rect", NULL
3389 };
3390
3391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3394 {
3395 arg2 = &temp2;
3396 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3397 }
3398 {
3399 PyThreadState* __tstate = wxPyBeginAllowThreads();
3400 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3401
3402 wxPyEndAllowThreads(__tstate);
3403 if (PyErr_Occurred()) SWIG_fail;
3404 }
3405 {
3406 wxBitmap * resultptr;
3407 resultptr = new wxBitmap((wxBitmap &) result);
3408 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3409 }
3410 return resultobj;
3411 fail:
3412 return NULL;
3413 }
3414
3415
3416 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3417 PyObject *resultobj;
3418 wxBitmap *arg1 = (wxBitmap *) 0 ;
3419 wxString *arg2 = 0 ;
3420 int arg3 ;
3421 wxPalette *arg4 = (wxPalette *) NULL ;
3422 bool result;
3423 bool temp2 = false ;
3424 PyObject * obj0 = 0 ;
3425 PyObject * obj1 = 0 ;
3426 PyObject * obj2 = 0 ;
3427 PyObject * obj3 = 0 ;
3428 char *kwnames[] = {
3429 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3430 };
3431
3432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3435 {
3436 arg2 = wxString_in_helper(obj1);
3437 if (arg2 == NULL) SWIG_fail;
3438 temp2 = true;
3439 }
3440 arg3 = (int)SWIG_As_int(obj2);
3441 if (PyErr_Occurred()) SWIG_fail;
3442 if (obj3) {
3443 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3445 }
3446 {
3447 PyThreadState* __tstate = wxPyBeginAllowThreads();
3448 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3449
3450 wxPyEndAllowThreads(__tstate);
3451 if (PyErr_Occurred()) SWIG_fail;
3452 }
3453 {
3454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3455 }
3456 {
3457 if (temp2)
3458 delete arg2;
3459 }
3460 return resultobj;
3461 fail:
3462 {
3463 if (temp2)
3464 delete arg2;
3465 }
3466 return NULL;
3467 }
3468
3469
3470 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3471 PyObject *resultobj;
3472 wxBitmap *arg1 = (wxBitmap *) 0 ;
3473 wxString *arg2 = 0 ;
3474 int arg3 ;
3475 bool result;
3476 bool temp2 = false ;
3477 PyObject * obj0 = 0 ;
3478 PyObject * obj1 = 0 ;
3479 PyObject * obj2 = 0 ;
3480 char *kwnames[] = {
3481 (char *) "self",(char *) "name",(char *) "type", NULL
3482 };
3483
3484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3487 {
3488 arg2 = wxString_in_helper(obj1);
3489 if (arg2 == NULL) SWIG_fail;
3490 temp2 = true;
3491 }
3492 arg3 = (int)SWIG_As_int(obj2);
3493 if (PyErr_Occurred()) SWIG_fail;
3494 {
3495 PyThreadState* __tstate = wxPyBeginAllowThreads();
3496 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3497
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 {
3502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3503 }
3504 {
3505 if (temp2)
3506 delete arg2;
3507 }
3508 return resultobj;
3509 fail:
3510 {
3511 if (temp2)
3512 delete arg2;
3513 }
3514 return NULL;
3515 }
3516
3517
3518 static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
3519 PyObject *resultobj;
3520 wxBitmap *arg1 = (wxBitmap *) 0 ;
3521 wxPalette *result;
3522 PyObject * obj0 = 0 ;
3523 char *kwnames[] = {
3524 (char *) "self", NULL
3525 };
3526
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
3528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3530 {
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
3533
3534 wxPyEndAllowThreads(__tstate);
3535 if (PyErr_Occurred()) SWIG_fail;
3536 }
3537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
3538 return resultobj;
3539 fail:
3540 return NULL;
3541 }
3542
3543
3544 static PyObject *_wrap_Bitmap_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
3545 PyObject *resultobj;
3546 wxBitmap *arg1 = (wxBitmap *) 0 ;
3547 wxPalette *arg2 = 0 ;
3548 PyObject * obj0 = 0 ;
3549 PyObject * obj1 = 0 ;
3550 char *kwnames[] = {
3551 (char *) "self",(char *) "palette", NULL
3552 };
3553
3554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
3555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3557 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
3558 SWIG_POINTER_EXCEPTION | 0)) == -1)
3559 SWIG_fail;
3560 if (arg2 == NULL) {
3561 PyErr_SetString(PyExc_TypeError,"null reference");
3562 SWIG_fail;
3563 }
3564 {
3565 PyThreadState* __tstate = wxPyBeginAllowThreads();
3566 (arg1)->SetPalette((wxPalette const &)*arg2);
3567
3568 wxPyEndAllowThreads(__tstate);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 Py_INCREF(Py_None); resultobj = Py_None;
3572 return resultobj;
3573 fail:
3574 return NULL;
3575 }
3576
3577
3578 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3579 PyObject *resultobj;
3580 wxBitmap *arg1 = (wxBitmap *) 0 ;
3581 wxIcon *arg2 = 0 ;
3582 bool result;
3583 PyObject * obj0 = 0 ;
3584 PyObject * obj1 = 0 ;
3585 char *kwnames[] = {
3586 (char *) "self",(char *) "icon", NULL
3587 };
3588
3589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",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_wxIcon,
3593 SWIG_POINTER_EXCEPTION | 0)) == -1)
3594 SWIG_fail;
3595 if (arg2 == NULL) {
3596 PyErr_SetString(PyExc_TypeError,"null reference");
3597 SWIG_fail;
3598 }
3599 {
3600 PyThreadState* __tstate = wxPyBeginAllowThreads();
3601 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3602
3603 wxPyEndAllowThreads(__tstate);
3604 if (PyErr_Occurred()) SWIG_fail;
3605 }
3606 {
3607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3608 }
3609 return resultobj;
3610 fail:
3611 return NULL;
3612 }
3613
3614
3615 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3616 PyObject *resultobj;
3617 wxBitmap *arg1 = (wxBitmap *) 0 ;
3618 int arg2 ;
3619 PyObject * obj0 = 0 ;
3620 PyObject * obj1 = 0 ;
3621 char *kwnames[] = {
3622 (char *) "self",(char *) "height", NULL
3623 };
3624
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3628 arg2 = (int)SWIG_As_int(obj1);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 {
3631 PyThreadState* __tstate = wxPyBeginAllowThreads();
3632 (arg1)->SetHeight(arg2);
3633
3634 wxPyEndAllowThreads(__tstate);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 }
3637 Py_INCREF(Py_None); resultobj = Py_None;
3638 return resultobj;
3639 fail:
3640 return NULL;
3641 }
3642
3643
3644 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3645 PyObject *resultobj;
3646 wxBitmap *arg1 = (wxBitmap *) 0 ;
3647 int arg2 ;
3648 PyObject * obj0 = 0 ;
3649 PyObject * obj1 = 0 ;
3650 char *kwnames[] = {
3651 (char *) "self",(char *) "width", NULL
3652 };
3653
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3657 arg2 = (int)SWIG_As_int(obj1);
3658 if (PyErr_Occurred()) SWIG_fail;
3659 {
3660 PyThreadState* __tstate = wxPyBeginAllowThreads();
3661 (arg1)->SetWidth(arg2);
3662
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 Py_INCREF(Py_None); resultobj = Py_None;
3667 return resultobj;
3668 fail:
3669 return NULL;
3670 }
3671
3672
3673 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3674 PyObject *resultobj;
3675 wxBitmap *arg1 = (wxBitmap *) 0 ;
3676 int arg2 ;
3677 PyObject * obj0 = 0 ;
3678 PyObject * obj1 = 0 ;
3679 char *kwnames[] = {
3680 (char *) "self",(char *) "depth", NULL
3681 };
3682
3683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3686 arg2 = (int)SWIG_As_int(obj1);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 {
3689 PyThreadState* __tstate = wxPyBeginAllowThreads();
3690 (arg1)->SetDepth(arg2);
3691
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 Py_INCREF(Py_None); resultobj = Py_None;
3696 return resultobj;
3697 fail:
3698 return NULL;
3699 }
3700
3701
3702 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3703 PyObject *resultobj;
3704 wxBitmap *arg1 = (wxBitmap *) 0 ;
3705 wxSize *arg2 = 0 ;
3706 wxSize temp2 ;
3707 PyObject * obj0 = 0 ;
3708 PyObject * obj1 = 0 ;
3709 char *kwnames[] = {
3710 (char *) "self",(char *) "size", NULL
3711 };
3712
3713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3716 {
3717 arg2 = &temp2;
3718 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3719 }
3720 {
3721 PyThreadState* __tstate = wxPyBeginAllowThreads();
3722 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3723
3724 wxPyEndAllowThreads(__tstate);
3725 if (PyErr_Occurred()) SWIG_fail;
3726 }
3727 Py_INCREF(Py_None); resultobj = Py_None;
3728 return resultobj;
3729 fail:
3730 return NULL;
3731 }
3732
3733
3734 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *, PyObject *args, PyObject *kwargs) {
3735 PyObject *resultobj;
3736 wxBitmap *arg1 = (wxBitmap *) 0 ;
3737 wxCursor *arg2 = 0 ;
3738 bool result;
3739 PyObject * obj0 = 0 ;
3740 PyObject * obj1 = 0 ;
3741 char *kwnames[] = {
3742 (char *) "self",(char *) "cursor", NULL
3743 };
3744
3745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3749 SWIG_POINTER_EXCEPTION | 0)) == -1)
3750 SWIG_fail;
3751 if (arg2 == NULL) {
3752 PyErr_SetString(PyExc_TypeError,"null reference");
3753 SWIG_fail;
3754 }
3755 {
3756 PyThreadState* __tstate = wxPyBeginAllowThreads();
3757 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3758
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) SWIG_fail;
3761 }
3762 {
3763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3764 }
3765 return resultobj;
3766 fail:
3767 return NULL;
3768 }
3769
3770
3771 static PyObject *_wrap_Bitmap_GetQuality(PyObject *, PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj;
3773 wxBitmap *arg1 = (wxBitmap *) 0 ;
3774 int result;
3775 PyObject * obj0 = 0 ;
3776 char *kwnames[] = {
3777 (char *) "self", NULL
3778 };
3779
3780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 result = (int)(arg1)->GetQuality();
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 resultobj = SWIG_From_int((int)result);
3791 return resultobj;
3792 fail:
3793 return NULL;
3794 }
3795
3796
3797 static PyObject *_wrap_Bitmap_SetQuality(PyObject *, PyObject *args, PyObject *kwargs) {
3798 PyObject *resultobj;
3799 wxBitmap *arg1 = (wxBitmap *) 0 ;
3800 int arg2 ;
3801 PyObject * obj0 = 0 ;
3802 PyObject * obj1 = 0 ;
3803 char *kwnames[] = {
3804 (char *) "self",(char *) "q", NULL
3805 };
3806
3807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3810 arg2 = (int)SWIG_As_int(obj1);
3811 if (PyErr_Occurred()) SWIG_fail;
3812 {
3813 PyThreadState* __tstate = wxPyBeginAllowThreads();
3814 (arg1)->SetQuality(arg2);
3815
3816 wxPyEndAllowThreads(__tstate);
3817 if (PyErr_Occurred()) SWIG_fail;
3818 }
3819 Py_INCREF(Py_None); resultobj = Py_None;
3820 return resultobj;
3821 fail:
3822 return NULL;
3823 }
3824
3825
3826 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3827 PyObject *resultobj;
3828 wxBitmap *arg1 = (wxBitmap *) 0 ;
3829 wxBitmap *arg2 = (wxBitmap *) 0 ;
3830 bool result;
3831 PyObject * obj0 = 0 ;
3832 PyObject * obj1 = 0 ;
3833 char *kwnames[] = {
3834 (char *) "self",(char *) "other", NULL
3835 };
3836
3837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3842 {
3843 PyThreadState* __tstate = wxPyBeginAllowThreads();
3844 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3845
3846 wxPyEndAllowThreads(__tstate);
3847 if (PyErr_Occurred()) SWIG_fail;
3848 }
3849 {
3850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3851 }
3852 return resultobj;
3853 fail:
3854 return NULL;
3855 }
3856
3857
3858 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3859 PyObject *resultobj;
3860 wxBitmap *arg1 = (wxBitmap *) 0 ;
3861 wxBitmap *arg2 = (wxBitmap *) 0 ;
3862 bool result;
3863 PyObject * obj0 = 0 ;
3864 PyObject * obj1 = 0 ;
3865 char *kwnames[] = {
3866 (char *) "self",(char *) "other", NULL
3867 };
3868
3869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3874 {
3875 PyThreadState* __tstate = wxPyBeginAllowThreads();
3876 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3877
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 }
3881 {
3882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3883 }
3884 return resultobj;
3885 fail:
3886 return NULL;
3887 }
3888
3889
3890 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3891 PyObject *obj;
3892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3893 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3894 Py_INCREF(obj);
3895 return Py_BuildValue((char *)"");
3896 }
3897 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 wxBitmap *arg1 = 0 ;
3900 wxColour const &arg2_defvalue = wxNullColour ;
3901 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3902 wxMask *result;
3903 wxColour temp2 ;
3904 PyObject * obj0 = 0 ;
3905 PyObject * obj1 = 0 ;
3906 char *kwnames[] = {
3907 (char *) "bitmap",(char *) "colour", NULL
3908 };
3909
3910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3912 SWIG_POINTER_EXCEPTION | 0)) == -1)
3913 SWIG_fail;
3914 if (arg1 == NULL) {
3915 PyErr_SetString(PyExc_TypeError,"null reference");
3916 SWIG_fail;
3917 }
3918 if (obj1) {
3919 {
3920 arg2 = &temp2;
3921 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3922 }
3923 }
3924 {
3925 if (!wxPyCheckForApp()) SWIG_fail;
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3928
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3933 return resultobj;
3934 fail:
3935 return NULL;
3936 }
3937
3938
3939 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3940 PyObject *obj;
3941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3942 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3943 Py_INCREF(obj);
3944 return Py_BuildValue((char *)"");
3945 }
3946 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3947 PyObject *resultobj;
3948 wxString *arg1 = 0 ;
3949 int arg2 ;
3950 int arg3 = (int) -1 ;
3951 int arg4 = (int) -1 ;
3952 wxIcon *result;
3953 bool temp1 = false ;
3954 PyObject * obj0 = 0 ;
3955 PyObject * obj1 = 0 ;
3956 PyObject * obj2 = 0 ;
3957 PyObject * obj3 = 0 ;
3958 char *kwnames[] = {
3959 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3960 };
3961
3962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3963 {
3964 arg1 = wxString_in_helper(obj0);
3965 if (arg1 == NULL) SWIG_fail;
3966 temp1 = true;
3967 }
3968 arg2 = (int)SWIG_As_int(obj1);
3969 if (PyErr_Occurred()) SWIG_fail;
3970 if (obj2) {
3971 arg3 = (int)SWIG_As_int(obj2);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 if (obj3) {
3975 arg4 = (int)SWIG_As_int(obj3);
3976 if (PyErr_Occurred()) SWIG_fail;
3977 }
3978 {
3979 if (!wxPyCheckForApp()) SWIG_fail;
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3982
3983 wxPyEndAllowThreads(__tstate);
3984 if (PyErr_Occurred()) SWIG_fail;
3985 }
3986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3987 {
3988 if (temp1)
3989 delete arg1;
3990 }
3991 return resultobj;
3992 fail:
3993 {
3994 if (temp1)
3995 delete arg1;
3996 }
3997 return NULL;
3998 }
3999
4000
4001 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
4002 PyObject *resultobj;
4003 wxIcon *arg1 = (wxIcon *) 0 ;
4004 PyObject * obj0 = 0 ;
4005 char *kwnames[] = {
4006 (char *) "self", NULL
4007 };
4008
4009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
4010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4012 {
4013 PyThreadState* __tstate = wxPyBeginAllowThreads();
4014 delete arg1;
4015
4016 wxPyEndAllowThreads(__tstate);
4017 if (PyErr_Occurred()) SWIG_fail;
4018 }
4019 Py_INCREF(Py_None); resultobj = Py_None;
4020 return resultobj;
4021 fail:
4022 return NULL;
4023 }
4024
4025
4026 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4027 PyObject *resultobj;
4028 wxIcon *result;
4029 char *kwnames[] = {
4030 NULL
4031 };
4032
4033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
4034 {
4035 if (!wxPyCheckForApp()) SWIG_fail;
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 result = (wxIcon *)new wxIcon();
4038
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4043 return resultobj;
4044 fail:
4045 return NULL;
4046 }
4047
4048
4049 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4050 PyObject *resultobj;
4051 wxIconLocation *arg1 = 0 ;
4052 wxIcon *result;
4053 PyObject * obj0 = 0 ;
4054 char *kwnames[] = {
4055 (char *) "loc", NULL
4056 };
4057
4058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
4059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4060 SWIG_POINTER_EXCEPTION | 0)) == -1)
4061 SWIG_fail;
4062 if (arg1 == NULL) {
4063 PyErr_SetString(PyExc_TypeError,"null reference");
4064 SWIG_fail;
4065 }
4066 {
4067 if (!wxPyCheckForApp()) SWIG_fail;
4068 PyThreadState* __tstate = wxPyBeginAllowThreads();
4069 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
4070
4071 wxPyEndAllowThreads(__tstate);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4075 return resultobj;
4076 fail:
4077 return NULL;
4078 }
4079
4080
4081 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4082 PyObject *resultobj;
4083 wxBitmap *arg1 = 0 ;
4084 wxIcon *result;
4085 PyObject * obj0 = 0 ;
4086 char *kwnames[] = {
4087 (char *) "bmp", NULL
4088 };
4089
4090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
4091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4092 SWIG_POINTER_EXCEPTION | 0)) == -1)
4093 SWIG_fail;
4094 if (arg1 == NULL) {
4095 PyErr_SetString(PyExc_TypeError,"null reference");
4096 SWIG_fail;
4097 }
4098 {
4099 if (!wxPyCheckForApp()) SWIG_fail;
4100 PyThreadState* __tstate = wxPyBeginAllowThreads();
4101 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
4102
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 }
4106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4107 return resultobj;
4108 fail:
4109 return NULL;
4110 }
4111
4112
4113 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
4114 PyObject *resultobj;
4115 PyObject *arg1 = (PyObject *) 0 ;
4116 wxIcon *result;
4117 PyObject * obj0 = 0 ;
4118 char *kwnames[] = {
4119 (char *) "listOfStrings", NULL
4120 };
4121
4122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
4123 arg1 = obj0;
4124 {
4125 if (!wxPyCheckForApp()) SWIG_fail;
4126 PyThreadState* __tstate = wxPyBeginAllowThreads();
4127 result = (wxIcon *)new_wxIcon(arg1);
4128
4129 wxPyEndAllowThreads(__tstate);
4130 if (PyErr_Occurred()) SWIG_fail;
4131 }
4132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4133 return resultobj;
4134 fail:
4135 return NULL;
4136 }
4137
4138
4139 static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
4140 PyObject *resultobj;
4141 wxIcon *arg1 = (wxIcon *) 0 ;
4142 wxString *arg2 = 0 ;
4143 int arg3 ;
4144 bool result;
4145 bool temp2 = false ;
4146 PyObject * obj0 = 0 ;
4147 PyObject * obj1 = 0 ;
4148 PyObject * obj2 = 0 ;
4149 char *kwnames[] = {
4150 (char *) "self",(char *) "name",(char *) "type", NULL
4151 };
4152
4153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4156 {
4157 arg2 = wxString_in_helper(obj1);
4158 if (arg2 == NULL) SWIG_fail;
4159 temp2 = true;
4160 }
4161 arg3 = (int)SWIG_As_int(obj2);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 {
4164 PyThreadState* __tstate = wxPyBeginAllowThreads();
4165 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
4166
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 {
4171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4172 }
4173 {
4174 if (temp2)
4175 delete arg2;
4176 }
4177 return resultobj;
4178 fail:
4179 {
4180 if (temp2)
4181 delete arg2;
4182 }
4183 return NULL;
4184 }
4185
4186
4187 static PyObject *_wrap_Icon_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj;
4189 wxIcon *arg1 = (wxIcon *) 0 ;
4190 long result;
4191 PyObject * obj0 = 0 ;
4192 char *kwnames[] = {
4193 (char *) "self", NULL
4194 };
4195
4196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
4197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4199 {
4200 PyThreadState* __tstate = wxPyBeginAllowThreads();
4201 result = (long)(arg1)->GetHandle();
4202
4203 wxPyEndAllowThreads(__tstate);
4204 if (PyErr_Occurred()) SWIG_fail;
4205 }
4206 resultobj = SWIG_From_long((long)result);
4207 return resultobj;
4208 fail:
4209 return NULL;
4210 }
4211
4212
4213 static PyObject *_wrap_Icon_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
4214 PyObject *resultobj;
4215 wxIcon *arg1 = (wxIcon *) 0 ;
4216 long arg2 ;
4217 PyObject * obj0 = 0 ;
4218 PyObject * obj1 = 0 ;
4219 char *kwnames[] = {
4220 (char *) "self",(char *) "handle", NULL
4221 };
4222
4223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4226 arg2 = (long)SWIG_As_long(obj1);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 wxIcon_SetHandle(arg1,arg2);
4231
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 Py_INCREF(Py_None); resultobj = Py_None;
4236 return resultobj;
4237 fail:
4238 return NULL;
4239 }
4240
4241
4242 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4243 PyObject *resultobj;
4244 wxIcon *arg1 = (wxIcon *) 0 ;
4245 bool result;
4246 PyObject * obj0 = 0 ;
4247 char *kwnames[] = {
4248 (char *) "self", NULL
4249 };
4250
4251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
4252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4254 {
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 result = (bool)(arg1)->Ok();
4257
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 {
4262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4263 }
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj;
4272 wxIcon *arg1 = (wxIcon *) 0 ;
4273 int result;
4274 PyObject * obj0 = 0 ;
4275 char *kwnames[] = {
4276 (char *) "self", NULL
4277 };
4278
4279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4282 {
4283 PyThreadState* __tstate = wxPyBeginAllowThreads();
4284 result = (int)(arg1)->GetWidth();
4285
4286 wxPyEndAllowThreads(__tstate);
4287 if (PyErr_Occurred()) SWIG_fail;
4288 }
4289 resultobj = SWIG_From_int((int)result);
4290 return resultobj;
4291 fail:
4292 return NULL;
4293 }
4294
4295
4296 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4297 PyObject *resultobj;
4298 wxIcon *arg1 = (wxIcon *) 0 ;
4299 int result;
4300 PyObject * obj0 = 0 ;
4301 char *kwnames[] = {
4302 (char *) "self", NULL
4303 };
4304
4305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4308 {
4309 PyThreadState* __tstate = wxPyBeginAllowThreads();
4310 result = (int)(arg1)->GetHeight();
4311
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_From_int((int)result);
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj;
4324 wxIcon *arg1 = (wxIcon *) 0 ;
4325 int result;
4326 PyObject * obj0 = 0 ;
4327 char *kwnames[] = {
4328 (char *) "self", NULL
4329 };
4330
4331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4334 {
4335 PyThreadState* __tstate = wxPyBeginAllowThreads();
4336 result = (int)(arg1)->GetDepth();
4337
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 resultobj = SWIG_From_int((int)result);
4342 return resultobj;
4343 fail:
4344 return NULL;
4345 }
4346
4347
4348 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj;
4350 wxIcon *arg1 = (wxIcon *) 0 ;
4351 int arg2 ;
4352 PyObject * obj0 = 0 ;
4353 PyObject * obj1 = 0 ;
4354 char *kwnames[] = {
4355 (char *) "self",(char *) "w", NULL
4356 };
4357
4358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4361 arg2 = (int)SWIG_As_int(obj1);
4362 if (PyErr_Occurred()) SWIG_fail;
4363 {
4364 PyThreadState* __tstate = wxPyBeginAllowThreads();
4365 (arg1)->SetWidth(arg2);
4366
4367 wxPyEndAllowThreads(__tstate);
4368 if (PyErr_Occurred()) SWIG_fail;
4369 }
4370 Py_INCREF(Py_None); resultobj = Py_None;
4371 return resultobj;
4372 fail:
4373 return NULL;
4374 }
4375
4376
4377 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4378 PyObject *resultobj;
4379 wxIcon *arg1 = (wxIcon *) 0 ;
4380 int arg2 ;
4381 PyObject * obj0 = 0 ;
4382 PyObject * obj1 = 0 ;
4383 char *kwnames[] = {
4384 (char *) "self",(char *) "h", NULL
4385 };
4386
4387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4390 arg2 = (int)SWIG_As_int(obj1);
4391 if (PyErr_Occurred()) SWIG_fail;
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
4394 (arg1)->SetHeight(arg2);
4395
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 Py_INCREF(Py_None); resultobj = Py_None;
4400 return resultobj;
4401 fail:
4402 return NULL;
4403 }
4404
4405
4406 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4407 PyObject *resultobj;
4408 wxIcon *arg1 = (wxIcon *) 0 ;
4409 int arg2 ;
4410 PyObject * obj0 = 0 ;
4411 PyObject * obj1 = 0 ;
4412 char *kwnames[] = {
4413 (char *) "self",(char *) "d", NULL
4414 };
4415
4416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4419 arg2 = (int)SWIG_As_int(obj1);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
4423 (arg1)->SetDepth(arg2);
4424
4425 wxPyEndAllowThreads(__tstate);
4426 if (PyErr_Occurred()) SWIG_fail;
4427 }
4428 Py_INCREF(Py_None); resultobj = Py_None;
4429 return resultobj;
4430 fail:
4431 return NULL;
4432 }
4433
4434
4435 static PyObject *_wrap_Icon_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj;
4437 wxIcon *arg1 = (wxIcon *) 0 ;
4438 wxSize *arg2 = 0 ;
4439 wxSize temp2 ;
4440 PyObject * obj0 = 0 ;
4441 PyObject * obj1 = 0 ;
4442 char *kwnames[] = {
4443 (char *) "self",(char *) "size", NULL
4444 };
4445
4446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4449 {
4450 arg2 = &temp2;
4451 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4452 }
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 (arg1)->SetSize((wxSize const &)*arg2);
4456
4457 wxPyEndAllowThreads(__tstate);
4458 if (PyErr_Occurred()) SWIG_fail;
4459 }
4460 Py_INCREF(Py_None); resultobj = Py_None;
4461 return resultobj;
4462 fail:
4463 return NULL;
4464 }
4465
4466
4467 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4468 PyObject *resultobj;
4469 wxIcon *arg1 = (wxIcon *) 0 ;
4470 wxBitmap *arg2 = 0 ;
4471 PyObject * obj0 = 0 ;
4472 PyObject * obj1 = 0 ;
4473 char *kwnames[] = {
4474 (char *) "self",(char *) "bmp", NULL
4475 };
4476
4477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4480 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4481 SWIG_POINTER_EXCEPTION | 0)) == -1)
4482 SWIG_fail;
4483 if (arg2 == NULL) {
4484 PyErr_SetString(PyExc_TypeError,"null reference");
4485 SWIG_fail;
4486 }
4487 {
4488 PyThreadState* __tstate = wxPyBeginAllowThreads();
4489 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4490
4491 wxPyEndAllowThreads(__tstate);
4492 if (PyErr_Occurred()) SWIG_fail;
4493 }
4494 Py_INCREF(Py_None); resultobj = Py_None;
4495 return resultobj;
4496 fail:
4497 return NULL;
4498 }
4499
4500
4501 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
4502 PyObject *obj;
4503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4504 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4505 Py_INCREF(obj);
4506 return Py_BuildValue((char *)"");
4507 }
4508 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4509 PyObject *resultobj;
4510 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4511 int arg2 = (int) 0 ;
4512 wxIconLocation *result;
4513 bool temp1 = false ;
4514 PyObject * obj0 = 0 ;
4515 PyObject * obj1 = 0 ;
4516 char *kwnames[] = {
4517 (char *) "filename",(char *) "num", NULL
4518 };
4519
4520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4521 if (obj0) {
4522 {
4523 arg1 = wxString_in_helper(obj0);
4524 if (arg1 == NULL) SWIG_fail;
4525 temp1 = true;
4526 }
4527 }
4528 if (obj1) {
4529 arg2 = (int)SWIG_As_int(obj1);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 {
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
4534 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4535
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 }
4539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4540 {
4541 if (temp1)
4542 delete arg1;
4543 }
4544 return resultobj;
4545 fail:
4546 {
4547 if (temp1)
4548 delete arg1;
4549 }
4550 return NULL;
4551 }
4552
4553
4554 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj;
4556 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4557 PyObject * obj0 = 0 ;
4558 char *kwnames[] = {
4559 (char *) "self", NULL
4560 };
4561
4562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 delete arg1;
4568
4569 wxPyEndAllowThreads(__tstate);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 Py_INCREF(Py_None); resultobj = Py_None;
4573 return resultobj;
4574 fail:
4575 return NULL;
4576 }
4577
4578
4579 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4580 PyObject *resultobj;
4581 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4582 bool result;
4583 PyObject * obj0 = 0 ;
4584 char *kwnames[] = {
4585 (char *) "self", NULL
4586 };
4587
4588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4591 {
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4594
4595 wxPyEndAllowThreads(__tstate);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4598 {
4599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4600 }
4601 return resultobj;
4602 fail:
4603 return NULL;
4604 }
4605
4606
4607 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4608 PyObject *resultobj;
4609 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4610 wxString *arg2 = 0 ;
4611 bool temp2 = false ;
4612 PyObject * obj0 = 0 ;
4613 PyObject * obj1 = 0 ;
4614 char *kwnames[] = {
4615 (char *) "self",(char *) "filename", NULL
4616 };
4617
4618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4621 {
4622 arg2 = wxString_in_helper(obj1);
4623 if (arg2 == NULL) SWIG_fail;
4624 temp2 = true;
4625 }
4626 {
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 (arg1)->SetFileName((wxString const &)*arg2);
4629
4630 wxPyEndAllowThreads(__tstate);
4631 if (PyErr_Occurred()) SWIG_fail;
4632 }
4633 Py_INCREF(Py_None); resultobj = Py_None;
4634 {
4635 if (temp2)
4636 delete arg2;
4637 }
4638 return resultobj;
4639 fail:
4640 {
4641 if (temp2)
4642 delete arg2;
4643 }
4644 return NULL;
4645 }
4646
4647
4648 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj;
4650 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4651 wxString *result;
4652 PyObject * obj0 = 0 ;
4653 char *kwnames[] = {
4654 (char *) "self", NULL
4655 };
4656
4657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4660 {
4661 PyThreadState* __tstate = wxPyBeginAllowThreads();
4662 {
4663 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4664 result = (wxString *) &_result_ref;
4665 }
4666
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 {
4671 #if wxUSE_UNICODE
4672 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4673 #else
4674 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4675 #endif
4676 }
4677 return resultobj;
4678 fail:
4679 return NULL;
4680 }
4681
4682
4683 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4684 PyObject *resultobj;
4685 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4686 int arg2 ;
4687 PyObject * obj0 = 0 ;
4688 PyObject * obj1 = 0 ;
4689 char *kwnames[] = {
4690 (char *) "self",(char *) "num", NULL
4691 };
4692
4693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4696 arg2 = (int)SWIG_As_int(obj1);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 {
4699 PyThreadState* __tstate = wxPyBeginAllowThreads();
4700 wxIconLocation_SetIndex(arg1,arg2);
4701
4702 wxPyEndAllowThreads(__tstate);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 Py_INCREF(Py_None); resultobj = Py_None;
4706 return resultobj;
4707 fail:
4708 return NULL;
4709 }
4710
4711
4712 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4713 PyObject *resultobj;
4714 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4715 int result;
4716 PyObject * obj0 = 0 ;
4717 char *kwnames[] = {
4718 (char *) "self", NULL
4719 };
4720
4721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4724 {
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 result = (int)wxIconLocation_GetIndex(arg1);
4727
4728 wxPyEndAllowThreads(__tstate);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = SWIG_From_int((int)result);
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4739 PyObject *obj;
4740 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4741 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4742 Py_INCREF(obj);
4743 return Py_BuildValue((char *)"");
4744 }
4745 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4746 PyObject *resultobj;
4747 wxIconBundle *result;
4748 char *kwnames[] = {
4749 NULL
4750 };
4751
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4753 {
4754 PyThreadState* __tstate = wxPyBeginAllowThreads();
4755 result = (wxIconBundle *)new wxIconBundle();
4756
4757 wxPyEndAllowThreads(__tstate);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4761 return resultobj;
4762 fail:
4763 return NULL;
4764 }
4765
4766
4767 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4768 PyObject *resultobj;
4769 wxString *arg1 = 0 ;
4770 long arg2 ;
4771 wxIconBundle *result;
4772 bool temp1 = false ;
4773 PyObject * obj0 = 0 ;
4774 PyObject * obj1 = 0 ;
4775 char *kwnames[] = {
4776 (char *) "file",(char *) "type", NULL
4777 };
4778
4779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4780 {
4781 arg1 = wxString_in_helper(obj0);
4782 if (arg1 == NULL) SWIG_fail;
4783 temp1 = true;
4784 }
4785 arg2 = (long)SWIG_As_long(obj1);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
4789 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4790
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4795 {
4796 if (temp1)
4797 delete arg1;
4798 }
4799 return resultobj;
4800 fail:
4801 {
4802 if (temp1)
4803 delete arg1;
4804 }
4805 return NULL;
4806 }
4807
4808
4809 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4810 PyObject *resultobj;
4811 wxIcon *arg1 = 0 ;
4812 wxIconBundle *result;
4813 PyObject * obj0 = 0 ;
4814 char *kwnames[] = {
4815 (char *) "icon", NULL
4816 };
4817
4818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4820 SWIG_POINTER_EXCEPTION | 0)) == -1)
4821 SWIG_fail;
4822 if (arg1 == NULL) {
4823 PyErr_SetString(PyExc_TypeError,"null reference");
4824 SWIG_fail;
4825 }
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4829
4830 wxPyEndAllowThreads(__tstate);
4831 if (PyErr_Occurred()) SWIG_fail;
4832 }
4833 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4834 return resultobj;
4835 fail:
4836 return NULL;
4837 }
4838
4839
4840 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4841 PyObject *resultobj;
4842 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4843 PyObject * obj0 = 0 ;
4844 char *kwnames[] = {
4845 (char *) "self", NULL
4846 };
4847
4848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 delete arg1;
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 Py_INCREF(Py_None); resultobj = Py_None;
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj;
4867 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4868 wxIcon *arg2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char *kwnames[] = {
4872 (char *) "self",(char *) "icon", NULL
4873 };
4874
4875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4879 SWIG_POINTER_EXCEPTION | 0)) == -1)
4880 SWIG_fail;
4881 if (arg2 == NULL) {
4882 PyErr_SetString(PyExc_TypeError,"null reference");
4883 SWIG_fail;
4884 }
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 (arg1)->AddIcon((wxIcon const &)*arg2);
4888
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 Py_INCREF(Py_None); resultobj = Py_None;
4893 return resultobj;
4894 fail:
4895 return NULL;
4896 }
4897
4898
4899 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4900 PyObject *resultobj;
4901 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4902 wxString *arg2 = 0 ;
4903 long arg3 ;
4904 bool temp2 = false ;
4905 PyObject * obj0 = 0 ;
4906 PyObject * obj1 = 0 ;
4907 PyObject * obj2 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "file",(char *) "type", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4915 {
4916 arg2 = wxString_in_helper(obj1);
4917 if (arg2 == NULL) SWIG_fail;
4918 temp2 = true;
4919 }
4920 arg3 = (long)SWIG_As_long(obj2);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 {
4923 PyThreadState* __tstate = wxPyBeginAllowThreads();
4924 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4925
4926 wxPyEndAllowThreads(__tstate);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 Py_INCREF(Py_None); resultobj = Py_None;
4930 {
4931 if (temp2)
4932 delete arg2;
4933 }
4934 return resultobj;
4935 fail:
4936 {
4937 if (temp2)
4938 delete arg2;
4939 }
4940 return NULL;
4941 }
4942
4943
4944 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4945 PyObject *resultobj;
4946 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4947 wxSize *arg2 = 0 ;
4948 wxIcon *result;
4949 wxSize temp2 ;
4950 PyObject * obj0 = 0 ;
4951 PyObject * obj1 = 0 ;
4952 char *kwnames[] = {
4953 (char *) "self",(char *) "size", NULL
4954 };
4955
4956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4959 {
4960 arg2 = &temp2;
4961 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4962 }
4963 {
4964 PyThreadState* __tstate = wxPyBeginAllowThreads();
4965 {
4966 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4967 result = (wxIcon *) &_result_ref;
4968 }
4969
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 {
4974 wxIcon* resultptr = new wxIcon(*result);
4975 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4976 }
4977 return resultobj;
4978 fail:
4979 return NULL;
4980 }
4981
4982
4983 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4984 PyObject *obj;
4985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4986 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4987 Py_INCREF(obj);
4988 return Py_BuildValue((char *)"");
4989 }
4990 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4991 PyObject *resultobj;
4992 wxString *arg1 = (wxString *) 0 ;
4993 long arg2 ;
4994 int arg3 = (int) 0 ;
4995 int arg4 = (int) 0 ;
4996 wxCursor *result;
4997 bool temp1 = false ;
4998 PyObject * obj0 = 0 ;
4999 PyObject * obj1 = 0 ;
5000 PyObject * obj2 = 0 ;
5001 PyObject * obj3 = 0 ;
5002 char *kwnames[] = {
5003 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
5004 };
5005
5006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5007 {
5008 arg1 = wxString_in_helper(obj0);
5009 if (arg1 == NULL) SWIG_fail;
5010 temp1 = true;
5011 }
5012 arg2 = (long)SWIG_As_long(obj1);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 if (obj2) {
5015 arg3 = (int)SWIG_As_int(obj2);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
5018 if (obj3) {
5019 arg4 = (int)SWIG_As_int(obj3);
5020 if (PyErr_Occurred()) SWIG_fail;
5021 }
5022 {
5023 if (!wxPyCheckForApp()) SWIG_fail;
5024 PyThreadState* __tstate = wxPyBeginAllowThreads();
5025 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
5026
5027 wxPyEndAllowThreads(__tstate);
5028 if (PyErr_Occurred()) SWIG_fail;
5029 }
5030 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
5031 {
5032 if (temp1)
5033 delete arg1;
5034 }
5035 return resultobj;
5036 fail:
5037 {
5038 if (temp1)
5039 delete arg1;
5040 }
5041 return NULL;
5042 }
5043
5044
5045 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
5046 PyObject *resultobj;
5047 wxCursor *arg1 = (wxCursor *) 0 ;
5048 PyObject * obj0 = 0 ;
5049 char *kwnames[] = {
5050 (char *) "self", NULL
5051 };
5052
5053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
5054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5056 {
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 delete arg1;
5059
5060 wxPyEndAllowThreads(__tstate);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 }
5063 Py_INCREF(Py_None); resultobj = Py_None;
5064 return resultobj;
5065 fail:
5066 return NULL;
5067 }
5068
5069
5070 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj;
5072 int arg1 ;
5073 wxCursor *result;
5074 PyObject * obj0 = 0 ;
5075 char *kwnames[] = {
5076 (char *) "id", NULL
5077 };
5078
5079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
5080 arg1 = (int)SWIG_As_int(obj0);
5081 if (PyErr_Occurred()) SWIG_fail;
5082 {
5083 if (!wxPyCheckForApp()) SWIG_fail;
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 result = (wxCursor *)new wxCursor(arg1);
5086
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxImage *arg1 = 0 ;
5100 wxCursor *result;
5101 PyObject * obj0 = 0 ;
5102 char *kwnames[] = {
5103 (char *) "image", NULL
5104 };
5105
5106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
5107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
5108 SWIG_POINTER_EXCEPTION | 0)) == -1)
5109 SWIG_fail;
5110 if (arg1 == NULL) {
5111 PyErr_SetString(PyExc_TypeError,"null reference");
5112 SWIG_fail;
5113 }
5114 {
5115 if (!wxPyCheckForApp()) SWIG_fail;
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
5118
5119 wxPyEndAllowThreads(__tstate);
5120 if (PyErr_Occurred()) SWIG_fail;
5121 }
5122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
5123 return resultobj;
5124 fail:
5125 return NULL;
5126 }
5127
5128
5129 static PyObject *_wrap_Cursor_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
5130 PyObject *resultobj;
5131 wxCursor *arg1 = (wxCursor *) 0 ;
5132 long result;
5133 PyObject * obj0 = 0 ;
5134 char *kwnames[] = {
5135 (char *) "self", NULL
5136 };
5137
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
5139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5141 {
5142 PyThreadState* __tstate = wxPyBeginAllowThreads();
5143 result = (long)(arg1)->GetHandle();
5144
5145 wxPyEndAllowThreads(__tstate);
5146 if (PyErr_Occurred()) SWIG_fail;
5147 }
5148 resultobj = SWIG_From_long((long)result);
5149 return resultobj;
5150 fail:
5151 return NULL;
5152 }
5153
5154
5155 static PyObject *_wrap_Cursor_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
5156 PyObject *resultobj;
5157 wxCursor *arg1 = (wxCursor *) 0 ;
5158 long arg2 ;
5159 PyObject * obj0 = 0 ;
5160 PyObject * obj1 = 0 ;
5161 char *kwnames[] = {
5162 (char *) "self",(char *) "handle", NULL
5163 };
5164
5165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
5166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5168 arg2 = (long)SWIG_As_long(obj1);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 {
5171 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172 wxCursor_SetHandle(arg1,arg2);
5173
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 Py_INCREF(Py_None); resultobj = Py_None;
5178 return resultobj;
5179 fail:
5180 return NULL;
5181 }
5182
5183
5184 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
5185 PyObject *resultobj;
5186 wxCursor *arg1 = (wxCursor *) 0 ;
5187 bool result;
5188 PyObject * obj0 = 0 ;
5189 char *kwnames[] = {
5190 (char *) "self", NULL
5191 };
5192
5193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
5194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = (bool)(arg1)->Ok();
5199
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 {
5204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5205 }
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 static PyObject *_wrap_Cursor_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5213 PyObject *resultobj;
5214 wxCursor *arg1 = (wxCursor *) 0 ;
5215 int result;
5216 PyObject * obj0 = 0 ;
5217 char *kwnames[] = {
5218 (char *) "self", NULL
5219 };
5220
5221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
5222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5224 {
5225 PyThreadState* __tstate = wxPyBeginAllowThreads();
5226 result = (int)(arg1)->GetWidth();
5227
5228 wxPyEndAllowThreads(__tstate);
5229 if (PyErr_Occurred()) SWIG_fail;
5230 }
5231 resultobj = SWIG_From_int((int)result);
5232 return resultobj;
5233 fail:
5234 return NULL;
5235 }
5236
5237
5238 static PyObject *_wrap_Cursor_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5239 PyObject *resultobj;
5240 wxCursor *arg1 = (wxCursor *) 0 ;
5241 int result;
5242 PyObject * obj0 = 0 ;
5243 char *kwnames[] = {
5244 (char *) "self", NULL
5245 };
5246
5247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
5248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5250 {
5251 PyThreadState* __tstate = wxPyBeginAllowThreads();
5252 result = (int)(arg1)->GetHeight();
5253
5254 wxPyEndAllowThreads(__tstate);
5255 if (PyErr_Occurred()) SWIG_fail;
5256 }
5257 resultobj = SWIG_From_int((int)result);
5258 return resultobj;
5259 fail:
5260 return NULL;
5261 }
5262
5263
5264 static PyObject *_wrap_Cursor_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5265 PyObject *resultobj;
5266 wxCursor *arg1 = (wxCursor *) 0 ;
5267 int result;
5268 PyObject * obj0 = 0 ;
5269 char *kwnames[] = {
5270 (char *) "self", NULL
5271 };
5272
5273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5276 {
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 result = (int)(arg1)->GetDepth();
5279
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 resultobj = SWIG_From_int((int)result);
5284 return resultobj;
5285 fail:
5286 return NULL;
5287 }
5288
5289
5290 static PyObject *_wrap_Cursor_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5291 PyObject *resultobj;
5292 wxCursor *arg1 = (wxCursor *) 0 ;
5293 int arg2 ;
5294 PyObject * obj0 = 0 ;
5295 PyObject * obj1 = 0 ;
5296 char *kwnames[] = {
5297 (char *) "self",(char *) "w", NULL
5298 };
5299
5300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5303 arg2 = (int)SWIG_As_int(obj1);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 {
5306 PyThreadState* __tstate = wxPyBeginAllowThreads();
5307 (arg1)->SetWidth(arg2);
5308
5309 wxPyEndAllowThreads(__tstate);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 Py_INCREF(Py_None); resultobj = Py_None;
5313 return resultobj;
5314 fail:
5315 return NULL;
5316 }
5317
5318
5319 static PyObject *_wrap_Cursor_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5320 PyObject *resultobj;
5321 wxCursor *arg1 = (wxCursor *) 0 ;
5322 int arg2 ;
5323 PyObject * obj0 = 0 ;
5324 PyObject * obj1 = 0 ;
5325 char *kwnames[] = {
5326 (char *) "self",(char *) "h", NULL
5327 };
5328
5329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5332 arg2 = (int)SWIG_As_int(obj1);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 (arg1)->SetHeight(arg2);
5337
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 Py_INCREF(Py_None); resultobj = Py_None;
5342 return resultobj;
5343 fail:
5344 return NULL;
5345 }
5346
5347
5348 static PyObject *_wrap_Cursor_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj;
5350 wxCursor *arg1 = (wxCursor *) 0 ;
5351 int arg2 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char *kwnames[] = {
5355 (char *) "self",(char *) "d", NULL
5356 };
5357
5358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5361 arg2 = (int)SWIG_As_int(obj1);
5362 if (PyErr_Occurred()) SWIG_fail;
5363 {
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 (arg1)->SetDepth(arg2);
5366
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 Py_INCREF(Py_None); resultobj = Py_None;
5371 return resultobj;
5372 fail:
5373 return NULL;
5374 }
5375
5376
5377 static PyObject *_wrap_Cursor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj;
5379 wxCursor *arg1 = (wxCursor *) 0 ;
5380 wxSize *arg2 = 0 ;
5381 wxSize temp2 ;
5382 PyObject * obj0 = 0 ;
5383 PyObject * obj1 = 0 ;
5384 char *kwnames[] = {
5385 (char *) "self",(char *) "size", NULL
5386 };
5387
5388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5391 {
5392 arg2 = &temp2;
5393 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5394 }
5395 {
5396 PyThreadState* __tstate = wxPyBeginAllowThreads();
5397 (arg1)->SetSize((wxSize const &)*arg2);
5398
5399 wxPyEndAllowThreads(__tstate);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 }
5402 Py_INCREF(Py_None); resultobj = Py_None;
5403 return resultobj;
5404 fail:
5405 return NULL;
5406 }
5407
5408
5409 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
5410 PyObject *obj;
5411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5412 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5413 Py_INCREF(obj);
5414 return Py_BuildValue((char *)"");
5415 }
5416 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
5417 PyObject *resultobj;
5418 int arg1 = (int) 0 ;
5419 int arg2 = (int) 0 ;
5420 int arg3 = (int) 0 ;
5421 int arg4 = (int) 0 ;
5422 wxRegion *result;
5423 PyObject * obj0 = 0 ;
5424 PyObject * obj1 = 0 ;
5425 PyObject * obj2 = 0 ;
5426 PyObject * obj3 = 0 ;
5427 char *kwnames[] = {
5428 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5429 };
5430
5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5432 if (obj0) {
5433 arg1 = (int)SWIG_As_int(obj0);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 if (obj1) {
5437 arg2 = (int)SWIG_As_int(obj1);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 if (obj2) {
5441 arg3 = (int)SWIG_As_int(obj2);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 if (obj3) {
5445 arg4 = (int)SWIG_As_int(obj3);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 }
5448 {
5449 if (!wxPyCheckForApp()) SWIG_fail;
5450 PyThreadState* __tstate = wxPyBeginAllowThreads();
5451 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5452
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj;
5465 wxBitmap *arg1 = 0 ;
5466 wxRegion *result;
5467 PyObject * obj0 = 0 ;
5468 char *kwnames[] = {
5469 (char *) "bmp", NULL
5470 };
5471
5472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
5473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5474 SWIG_POINTER_EXCEPTION | 0)) == -1)
5475 SWIG_fail;
5476 if (arg1 == NULL) {
5477 PyErr_SetString(PyExc_TypeError,"null reference");
5478 SWIG_fail;
5479 }
5480 {
5481 if (!wxPyCheckForApp()) SWIG_fail;
5482 PyThreadState* __tstate = wxPyBeginAllowThreads();
5483 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
5484
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5489 return resultobj;
5490 fail:
5491 return NULL;
5492 }
5493
5494
5495 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj;
5497 wxBitmap *arg1 = 0 ;
5498 wxColour *arg2 = 0 ;
5499 int arg3 = (int) 0 ;
5500 wxRegion *result;
5501 wxColour temp2 ;
5502 PyObject * obj0 = 0 ;
5503 PyObject * obj1 = 0 ;
5504 PyObject * obj2 = 0 ;
5505 char *kwnames[] = {
5506 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5507 };
5508
5509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5511 SWIG_POINTER_EXCEPTION | 0)) == -1)
5512 SWIG_fail;
5513 if (arg1 == NULL) {
5514 PyErr_SetString(PyExc_TypeError,"null reference");
5515 SWIG_fail;
5516 }
5517 {
5518 arg2 = &temp2;
5519 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5520 }
5521 if (obj2) {
5522 arg3 = (int)SWIG_As_int(obj2);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 {
5526 if (!wxPyCheckForApp()) SWIG_fail;
5527 PyThreadState* __tstate = wxPyBeginAllowThreads();
5528 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5529
5530 wxPyEndAllowThreads(__tstate);
5531 if (PyErr_Occurred()) SWIG_fail;
5532 }
5533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5534 return resultobj;
5535 fail:
5536 return NULL;
5537 }
5538
5539
5540 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
5541 PyObject *resultobj;
5542 int arg1 ;
5543 wxPoint *arg2 = (wxPoint *) 0 ;
5544 int arg3 = (int) wxWINDING_RULE ;
5545 wxRegion *result;
5546 PyObject * obj0 = 0 ;
5547 PyObject * obj1 = 0 ;
5548 char *kwnames[] = {
5549 (char *) "points",(char *) "fillStyle", NULL
5550 };
5551
5552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5553 {
5554 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5555 if (arg2 == NULL) SWIG_fail;
5556 }
5557 if (obj1) {
5558 arg3 = (int)SWIG_As_int(obj1);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 {
5562 if (!wxPyCheckForApp()) SWIG_fail;
5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
5564 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5565
5566 wxPyEndAllowThreads(__tstate);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 }
5569 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5570 {
5571 if (arg2) delete [] arg2;
5572 }
5573 return resultobj;
5574 fail:
5575 {
5576 if (arg2) delete [] arg2;
5577 }
5578 return NULL;
5579 }
5580
5581
5582 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj;
5584 wxRegion *arg1 = (wxRegion *) 0 ;
5585 PyObject * obj0 = 0 ;
5586 char *kwnames[] = {
5587 (char *) "self", NULL
5588 };
5589
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5593 {
5594 PyThreadState* __tstate = wxPyBeginAllowThreads();
5595 delete arg1;
5596
5597 wxPyEndAllowThreads(__tstate);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 Py_INCREF(Py_None); resultobj = Py_None;
5601 return resultobj;
5602 fail:
5603 return NULL;
5604 }
5605
5606
5607 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
5608 PyObject *resultobj;
5609 wxRegion *arg1 = (wxRegion *) 0 ;
5610 PyObject * obj0 = 0 ;
5611 char *kwnames[] = {
5612 (char *) "self", NULL
5613 };
5614
5615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 (arg1)->Clear();
5621
5622 wxPyEndAllowThreads(__tstate);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 Py_INCREF(Py_None); resultobj = Py_None;
5626 return resultobj;
5627 fail:
5628 return NULL;
5629 }
5630
5631
5632 static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
5633 PyObject *resultobj;
5634 wxRegion *arg1 = (wxRegion *) 0 ;
5635 int arg2 ;
5636 int arg3 ;
5637 bool result;
5638 PyObject * obj0 = 0 ;
5639 PyObject * obj1 = 0 ;
5640 PyObject * obj2 = 0 ;
5641 char *kwnames[] = {
5642 (char *) "self",(char *) "x",(char *) "y", NULL
5643 };
5644
5645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5648 arg2 = (int)SWIG_As_int(obj1);
5649 if (PyErr_Occurred()) SWIG_fail;
5650 arg3 = (int)SWIG_As_int(obj2);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (bool)(arg1)->Offset(arg2,arg3);
5655
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 {
5660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5661 }
5662 return resultobj;
5663 fail:
5664 return NULL;
5665 }
5666
5667
5668 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
5669 PyObject *resultobj;
5670 wxRegion *arg1 = (wxRegion *) 0 ;
5671 int arg2 ;
5672 int arg3 ;
5673 int result;
5674 PyObject * obj0 = 0 ;
5675 PyObject * obj1 = 0 ;
5676 PyObject * obj2 = 0 ;
5677 char *kwnames[] = {
5678 (char *) "self",(char *) "x",(char *) "y", NULL
5679 };
5680
5681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5684 arg2 = (int)SWIG_As_int(obj1);
5685 if (PyErr_Occurred()) SWIG_fail;
5686 arg3 = (int)SWIG_As_int(obj2);
5687 if (PyErr_Occurred()) SWIG_fail;
5688 {
5689 PyThreadState* __tstate = wxPyBeginAllowThreads();
5690 result = (int)(arg1)->Contains(arg2,arg3);
5691
5692 wxPyEndAllowThreads(__tstate);
5693 if (PyErr_Occurred()) SWIG_fail;
5694 }
5695 resultobj = SWIG_From_int((int)result);
5696 return resultobj;
5697 fail:
5698 return NULL;
5699 }
5700
5701
5702 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
5703 PyObject *resultobj;
5704 wxRegion *arg1 = (wxRegion *) 0 ;
5705 wxPoint *arg2 = 0 ;
5706 int result;
5707 wxPoint temp2 ;
5708 PyObject * obj0 = 0 ;
5709 PyObject * obj1 = 0 ;
5710 char *kwnames[] = {
5711 (char *) "self",(char *) "pt", NULL
5712 };
5713
5714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5717 {
5718 arg2 = &temp2;
5719 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5720 }
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5724
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_From_int((int)result);
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
5736 PyObject *resultobj;
5737 wxRegion *arg1 = (wxRegion *) 0 ;
5738 wxRect *arg2 = 0 ;
5739 int result;
5740 wxRect temp2 ;
5741 PyObject * obj0 = 0 ;
5742 PyObject * obj1 = 0 ;
5743 char *kwnames[] = {
5744 (char *) "self",(char *) "rect", NULL
5745 };
5746
5747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5750 {
5751 arg2 = &temp2;
5752 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5753 }
5754 {
5755 PyThreadState* __tstate = wxPyBeginAllowThreads();
5756 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5757
5758 wxPyEndAllowThreads(__tstate);
5759 if (PyErr_Occurred()) SWIG_fail;
5760 }
5761 resultobj = SWIG_From_int((int)result);
5762 return resultobj;
5763 fail:
5764 return NULL;
5765 }
5766
5767
5768 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
5769 PyObject *resultobj;
5770 wxRegion *arg1 = (wxRegion *) 0 ;
5771 int arg2 ;
5772 int arg3 ;
5773 int arg4 ;
5774 int arg5 ;
5775 int result;
5776 PyObject * obj0 = 0 ;
5777 PyObject * obj1 = 0 ;
5778 PyObject * obj2 = 0 ;
5779 PyObject * obj3 = 0 ;
5780 PyObject * obj4 = 0 ;
5781 char *kwnames[] = {
5782 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5783 };
5784
5785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5788 arg2 = (int)SWIG_As_int(obj1);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 arg3 = (int)SWIG_As_int(obj2);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 arg4 = (int)SWIG_As_int(obj3);
5793 if (PyErr_Occurred()) SWIG_fail;
5794 arg5 = (int)SWIG_As_int(obj4);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 resultobj = SWIG_From_int((int)result);
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
5811 PyObject *resultobj;
5812 wxRegion *arg1 = (wxRegion *) 0 ;
5813 wxRect result;
5814 PyObject * obj0 = 0 ;
5815 char *kwnames[] = {
5816 (char *) "self", NULL
5817 };
5818
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 result = (arg1)->GetBox();
5825
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 {
5830 wxRect * resultptr;
5831 resultptr = new wxRect((wxRect &) result);
5832 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5833 }
5834 return resultobj;
5835 fail:
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxRegion *arg1 = (wxRegion *) 0 ;
5843 int arg2 ;
5844 int arg3 ;
5845 int arg4 ;
5846 int arg5 ;
5847 bool result;
5848 PyObject * obj0 = 0 ;
5849 PyObject * obj1 = 0 ;
5850 PyObject * obj2 = 0 ;
5851 PyObject * obj3 = 0 ;
5852 PyObject * obj4 = 0 ;
5853 char *kwnames[] = {
5854 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5855 };
5856
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5860 arg2 = (int)SWIG_As_int(obj1);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 arg3 = (int)SWIG_As_int(obj2);
5863 if (PyErr_Occurred()) SWIG_fail;
5864 arg4 = (int)SWIG_As_int(obj3);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 arg5 = (int)SWIG_As_int(obj4);
5867 if (PyErr_Occurred()) SWIG_fail;
5868 {
5869 PyThreadState* __tstate = wxPyBeginAllowThreads();
5870 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5871
5872 wxPyEndAllowThreads(__tstate);
5873 if (PyErr_Occurred()) SWIG_fail;
5874 }
5875 {
5876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5877 }
5878 return resultobj;
5879 fail:
5880 return NULL;
5881 }
5882
5883
5884 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5885 PyObject *resultobj;
5886 wxRegion *arg1 = (wxRegion *) 0 ;
5887 wxRect *arg2 = 0 ;
5888 bool result;
5889 wxRect temp2 ;
5890 PyObject * obj0 = 0 ;
5891 PyObject * obj1 = 0 ;
5892 char *kwnames[] = {
5893 (char *) "self",(char *) "rect", NULL
5894 };
5895
5896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5899 {
5900 arg2 = &temp2;
5901 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5902 }
5903 {
5904 PyThreadState* __tstate = wxPyBeginAllowThreads();
5905 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5906
5907 wxPyEndAllowThreads(__tstate);
5908 if (PyErr_Occurred()) SWIG_fail;
5909 }
5910 {
5911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5912 }
5913 return resultobj;
5914 fail:
5915 return NULL;
5916 }
5917
5918
5919 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5920 PyObject *resultobj;
5921 wxRegion *arg1 = (wxRegion *) 0 ;
5922 wxRegion *arg2 = 0 ;
5923 bool result;
5924 PyObject * obj0 = 0 ;
5925 PyObject * obj1 = 0 ;
5926 char *kwnames[] = {
5927 (char *) "self",(char *) "region", NULL
5928 };
5929
5930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5933 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5934 SWIG_POINTER_EXCEPTION | 0)) == -1)
5935 SWIG_fail;
5936 if (arg2 == NULL) {
5937 PyErr_SetString(PyExc_TypeError,"null reference");
5938 SWIG_fail;
5939 }
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5943
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 {
5948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5949 }
5950 return resultobj;
5951 fail:
5952 return NULL;
5953 }
5954
5955
5956 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj;
5958 wxRegion *arg1 = (wxRegion *) 0 ;
5959 bool result;
5960 PyObject * obj0 = 0 ;
5961 char *kwnames[] = {
5962 (char *) "self", NULL
5963 };
5964
5965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 result = (bool)(arg1)->IsEmpty();
5971
5972 wxPyEndAllowThreads(__tstate);
5973 if (PyErr_Occurred()) SWIG_fail;
5974 }
5975 {
5976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5977 }
5978 return resultobj;
5979 fail:
5980 return NULL;
5981 }
5982
5983
5984 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj;
5986 wxRegion *arg1 = (wxRegion *) 0 ;
5987 int arg2 ;
5988 int arg3 ;
5989 int arg4 ;
5990 int arg5 ;
5991 bool result;
5992 PyObject * obj0 = 0 ;
5993 PyObject * obj1 = 0 ;
5994 PyObject * obj2 = 0 ;
5995 PyObject * obj3 = 0 ;
5996 PyObject * obj4 = 0 ;
5997 char *kwnames[] = {
5998 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5999 };
6000
6001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6004 arg2 = (int)SWIG_As_int(obj1);
6005 if (PyErr_Occurred()) SWIG_fail;
6006 arg3 = (int)SWIG_As_int(obj2);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 arg4 = (int)SWIG_As_int(obj3);
6009 if (PyErr_Occurred()) SWIG_fail;
6010 arg5 = (int)SWIG_As_int(obj4);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
6015
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 {
6020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6021 }
6022 return resultobj;
6023 fail:
6024 return NULL;
6025 }
6026
6027
6028 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
6029 PyObject *resultobj;
6030 wxRegion *arg1 = (wxRegion *) 0 ;
6031 wxRect *arg2 = 0 ;
6032 bool result;
6033 wxRect temp2 ;
6034 PyObject * obj0 = 0 ;
6035 PyObject * obj1 = 0 ;
6036 char *kwnames[] = {
6037 (char *) "self",(char *) "rect", NULL
6038 };
6039
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
6041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6043 {
6044 arg2 = &temp2;
6045 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6046 }
6047 {
6048 PyThreadState* __tstate = wxPyBeginAllowThreads();
6049 result = (bool)(arg1)->Union((wxRect const &)*arg2);
6050
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) SWIG_fail;
6053 }
6054 {
6055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6056 }
6057 return resultobj;
6058 fail:
6059 return NULL;
6060 }
6061
6062
6063 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
6064 PyObject *resultobj;
6065 wxRegion *arg1 = (wxRegion *) 0 ;
6066 wxRegion *arg2 = 0 ;
6067 bool result;
6068 PyObject * obj0 = 0 ;
6069 PyObject * obj1 = 0 ;
6070 char *kwnames[] = {
6071 (char *) "self",(char *) "region", NULL
6072 };
6073
6074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
6075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6078 SWIG_POINTER_EXCEPTION | 0)) == -1)
6079 SWIG_fail;
6080 if (arg2 == NULL) {
6081 PyErr_SetString(PyExc_TypeError,"null reference");
6082 SWIG_fail;
6083 }
6084 {
6085 PyThreadState* __tstate = wxPyBeginAllowThreads();
6086 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
6087
6088 wxPyEndAllowThreads(__tstate);
6089 if (PyErr_Occurred()) SWIG_fail;
6090 }
6091 {
6092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6093 }
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj;
6102 wxRegion *arg1 = (wxRegion *) 0 ;
6103 int arg2 ;
6104 int arg3 ;
6105 int arg4 ;
6106 int arg5 ;
6107 bool result;
6108 PyObject * obj0 = 0 ;
6109 PyObject * obj1 = 0 ;
6110 PyObject * obj2 = 0 ;
6111 PyObject * obj3 = 0 ;
6112 PyObject * obj4 = 0 ;
6113 char *kwnames[] = {
6114 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6115 };
6116
6117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6120 arg2 = (int)SWIG_As_int(obj1);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 arg3 = (int)SWIG_As_int(obj2);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 arg4 = (int)SWIG_As_int(obj3);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 arg5 = (int)SWIG_As_int(obj4);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 {
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
6131
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
6135 {
6136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6137 }
6138 return resultobj;
6139 fail:
6140 return NULL;
6141 }
6142
6143
6144 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
6145 PyObject *resultobj;
6146 wxRegion *arg1 = (wxRegion *) 0 ;
6147 wxRect *arg2 = 0 ;
6148 bool result;
6149 wxRect temp2 ;
6150 PyObject * obj0 = 0 ;
6151 PyObject * obj1 = 0 ;
6152 char *kwnames[] = {
6153 (char *) "self",(char *) "rect", NULL
6154 };
6155
6156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
6157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6159 {
6160 arg2 = &temp2;
6161 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6162 }
6163 {
6164 PyThreadState* __tstate = wxPyBeginAllowThreads();
6165 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
6166
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 {
6171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6172 }
6173 return resultobj;
6174 fail:
6175 return NULL;
6176 }
6177
6178
6179 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj;
6181 wxRegion *arg1 = (wxRegion *) 0 ;
6182 wxRegion *arg2 = 0 ;
6183 bool result;
6184 PyObject * obj0 = 0 ;
6185 PyObject * obj1 = 0 ;
6186 char *kwnames[] = {
6187 (char *) "self",(char *) "region", NULL
6188 };
6189
6190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
6191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6194 SWIG_POINTER_EXCEPTION | 0)) == -1)
6195 SWIG_fail;
6196 if (arg2 == NULL) {
6197 PyErr_SetString(PyExc_TypeError,"null reference");
6198 SWIG_fail;
6199 }
6200 {
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
6203
6204 wxPyEndAllowThreads(__tstate);
6205 if (PyErr_Occurred()) SWIG_fail;
6206 }
6207 {
6208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6209 }
6210 return resultobj;
6211 fail:
6212 return NULL;
6213 }
6214
6215
6216 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj;
6218 wxRegion *arg1 = (wxRegion *) 0 ;
6219 int arg2 ;
6220 int arg3 ;
6221 int arg4 ;
6222 int arg5 ;
6223 bool result;
6224 PyObject * obj0 = 0 ;
6225 PyObject * obj1 = 0 ;
6226 PyObject * obj2 = 0 ;
6227 PyObject * obj3 = 0 ;
6228 PyObject * obj4 = 0 ;
6229 char *kwnames[] = {
6230 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6236 arg2 = (int)SWIG_As_int(obj1);
6237 if (PyErr_Occurred()) SWIG_fail;
6238 arg3 = (int)SWIG_As_int(obj2);
6239 if (PyErr_Occurred()) SWIG_fail;
6240 arg4 = (int)SWIG_As_int(obj3);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 arg5 = (int)SWIG_As_int(obj4);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 {
6245 PyThreadState* __tstate = wxPyBeginAllowThreads();
6246 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
6247
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 {
6252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6253 }
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj;
6262 wxRegion *arg1 = (wxRegion *) 0 ;
6263 wxRect *arg2 = 0 ;
6264 bool result;
6265 wxRect temp2 ;
6266 PyObject * obj0 = 0 ;
6267 PyObject * obj1 = 0 ;
6268 char *kwnames[] = {
6269 (char *) "self",(char *) "rect", NULL
6270 };
6271
6272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
6273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6275 {
6276 arg2 = &temp2;
6277 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6278 }
6279 {
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6282
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 {
6287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6288 }
6289 return resultobj;
6290 fail:
6291 return NULL;
6292 }
6293
6294
6295 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj;
6297 wxRegion *arg1 = (wxRegion *) 0 ;
6298 wxRegion *arg2 = 0 ;
6299 bool result;
6300 PyObject * obj0 = 0 ;
6301 PyObject * obj1 = 0 ;
6302 char *kwnames[] = {
6303 (char *) "self",(char *) "region", NULL
6304 };
6305
6306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6310 SWIG_POINTER_EXCEPTION | 0)) == -1)
6311 SWIG_fail;
6312 if (arg2 == NULL) {
6313 PyErr_SetString(PyExc_TypeError,"null reference");
6314 SWIG_fail;
6315 }
6316 {
6317 PyThreadState* __tstate = wxPyBeginAllowThreads();
6318 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6319
6320 wxPyEndAllowThreads(__tstate);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 {
6324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6325 }
6326 return resultobj;
6327 fail:
6328 return NULL;
6329 }
6330
6331
6332 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
6333 PyObject *resultobj;
6334 wxRegion *arg1 = (wxRegion *) 0 ;
6335 SwigValueWrapper< wxBitmap > result;
6336 PyObject * obj0 = 0 ;
6337 char *kwnames[] = {
6338 (char *) "self", NULL
6339 };
6340
6341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 result = (arg1)->ConvertToBitmap();
6347
6348 wxPyEndAllowThreads(__tstate);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 {
6352 wxBitmap * resultptr;
6353 resultptr = new wxBitmap((wxBitmap &) result);
6354 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6355 }
6356 return resultobj;
6357 fail:
6358 return NULL;
6359 }
6360
6361
6362 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj;
6364 wxRegion *arg1 = (wxRegion *) 0 ;
6365 wxBitmap *arg2 = 0 ;
6366 bool result;
6367 PyObject * obj0 = 0 ;
6368 PyObject * obj1 = 0 ;
6369 char *kwnames[] = {
6370 (char *) "self",(char *) "bmp", NULL
6371 };
6372
6373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
6374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6377 SWIG_POINTER_EXCEPTION | 0)) == -1)
6378 SWIG_fail;
6379 if (arg2 == NULL) {
6380 PyErr_SetString(PyExc_TypeError,"null reference");
6381 SWIG_fail;
6382 }
6383 {
6384 PyThreadState* __tstate = wxPyBeginAllowThreads();
6385 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
6386
6387 wxPyEndAllowThreads(__tstate);
6388 if (PyErr_Occurred()) SWIG_fail;
6389 }
6390 {
6391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6392 }
6393 return resultobj;
6394 fail:
6395 return NULL;
6396 }
6397
6398
6399 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
6400 PyObject *resultobj;
6401 wxRegion *arg1 = (wxRegion *) 0 ;
6402 wxBitmap *arg2 = 0 ;
6403 wxColour *arg3 = 0 ;
6404 int arg4 = (int) 0 ;
6405 bool result;
6406 wxColour temp3 ;
6407 PyObject * obj0 = 0 ;
6408 PyObject * obj1 = 0 ;
6409 PyObject * obj2 = 0 ;
6410 PyObject * obj3 = 0 ;
6411 char *kwnames[] = {
6412 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6413 };
6414
6415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6419 SWIG_POINTER_EXCEPTION | 0)) == -1)
6420 SWIG_fail;
6421 if (arg2 == NULL) {
6422 PyErr_SetString(PyExc_TypeError,"null reference");
6423 SWIG_fail;
6424 }
6425 {
6426 arg3 = &temp3;
6427 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6428 }
6429 if (obj3) {
6430 arg4 = (int)SWIG_As_int(obj3);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 {
6434 PyThreadState* __tstate = wxPyBeginAllowThreads();
6435 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6436
6437 wxPyEndAllowThreads(__tstate);
6438 if (PyErr_Occurred()) SWIG_fail;
6439 }
6440 {
6441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6442 }
6443 return resultobj;
6444 fail:
6445 return NULL;
6446 }
6447
6448
6449 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
6450 PyObject *obj;
6451 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6452 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6453 Py_INCREF(obj);
6454 return Py_BuildValue((char *)"");
6455 }
6456 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
6457 PyObject *resultobj;
6458 wxRegion *arg1 = 0 ;
6459 wxRegionIterator *result;
6460 PyObject * obj0 = 0 ;
6461 char *kwnames[] = {
6462 (char *) "region", NULL
6463 };
6464
6465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6467 SWIG_POINTER_EXCEPTION | 0)) == -1)
6468 SWIG_fail;
6469 if (arg1 == NULL) {
6470 PyErr_SetString(PyExc_TypeError,"null reference");
6471 SWIG_fail;
6472 }
6473 {
6474 if (!wxPyCheckForApp()) SWIG_fail;
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6477
6478 wxPyEndAllowThreads(__tstate);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6482 return resultobj;
6483 fail:
6484 return NULL;
6485 }
6486
6487
6488 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
6489 PyObject *resultobj;
6490 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6491 PyObject * obj0 = 0 ;
6492 char *kwnames[] = {
6493 (char *) "self", NULL
6494 };
6495
6496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 delete arg1;
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 Py_INCREF(Py_None); resultobj = Py_None;
6507 return resultobj;
6508 fail:
6509 return NULL;
6510 }
6511
6512
6513 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
6514 PyObject *resultobj;
6515 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6516 int result;
6517 PyObject * obj0 = 0 ;
6518 char *kwnames[] = {
6519 (char *) "self", NULL
6520 };
6521
6522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 result = (int)(arg1)->GetX();
6528
6529 wxPyEndAllowThreads(__tstate);
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
6532 resultobj = SWIG_From_int((int)result);
6533 return resultobj;
6534 fail:
6535 return NULL;
6536 }
6537
6538
6539 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj;
6541 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6542 int result;
6543 PyObject * obj0 = 0 ;
6544 char *kwnames[] = {
6545 (char *) "self", NULL
6546 };
6547
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = (int)(arg1)->GetY();
6554
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 resultobj = SWIG_From_int((int)result);
6559 return resultobj;
6560 fail:
6561 return NULL;
6562 }
6563
6564
6565 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
6566 PyObject *resultobj;
6567 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6568 int result;
6569 PyObject * obj0 = 0 ;
6570 char *kwnames[] = {
6571 (char *) "self", NULL
6572 };
6573
6574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 result = (int)(arg1)->GetW();
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 resultobj = SWIG_From_int((int)result);
6585 return resultobj;
6586 fail:
6587 return NULL;
6588 }
6589
6590
6591 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
6592 PyObject *resultobj;
6593 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6594 int result;
6595 PyObject * obj0 = 0 ;
6596 char *kwnames[] = {
6597 (char *) "self", NULL
6598 };
6599
6600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (int)(arg1)->GetWidth();
6606
6607 wxPyEndAllowThreads(__tstate);
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 resultobj = SWIG_From_int((int)result);
6611 return resultobj;
6612 fail:
6613 return NULL;
6614 }
6615
6616
6617 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
6618 PyObject *resultobj;
6619 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6620 int result;
6621 PyObject * obj0 = 0 ;
6622 char *kwnames[] = {
6623 (char *) "self", NULL
6624 };
6625
6626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 result = (int)(arg1)->GetH();
6632
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 resultobj = SWIG_From_int((int)result);
6637 return resultobj;
6638 fail:
6639 return NULL;
6640 }
6641
6642
6643 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj;
6645 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6646 int result;
6647 PyObject * obj0 = 0 ;
6648 char *kwnames[] = {
6649 (char *) "self", NULL
6650 };
6651
6652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6655 {
6656 PyThreadState* __tstate = wxPyBeginAllowThreads();
6657 result = (int)(arg1)->GetHeight();
6658
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 resultobj = SWIG_From_int((int)result);
6663 return resultobj;
6664 fail:
6665 return NULL;
6666 }
6667
6668
6669 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj;
6671 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6672 wxRect result;
6673 PyObject * obj0 = 0 ;
6674 char *kwnames[] = {
6675 (char *) "self", NULL
6676 };
6677
6678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6681 {
6682 PyThreadState* __tstate = wxPyBeginAllowThreads();
6683 result = (arg1)->GetRect();
6684
6685 wxPyEndAllowThreads(__tstate);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 {
6689 wxRect * resultptr;
6690 resultptr = new wxRect((wxRect &) result);
6691 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6692 }
6693 return resultobj;
6694 fail:
6695 return NULL;
6696 }
6697
6698
6699 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
6700 PyObject *resultobj;
6701 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6702 bool result;
6703 PyObject * obj0 = 0 ;
6704 char *kwnames[] = {
6705 (char *) "self", NULL
6706 };
6707
6708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6711 {
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 result = (bool)(arg1)->HaveRects();
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) SWIG_fail;
6717 }
6718 {
6719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6720 }
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj;
6729 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6730 PyObject * obj0 = 0 ;
6731 char *kwnames[] = {
6732 (char *) "self", NULL
6733 };
6734
6735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 (arg1)->Reset();
6741
6742 wxPyEndAllowThreads(__tstate);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 Py_INCREF(Py_None); resultobj = Py_None;
6746 return resultobj;
6747 fail:
6748 return NULL;
6749 }
6750
6751
6752 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj;
6754 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6755 PyObject * obj0 = 0 ;
6756 char *kwnames[] = {
6757 (char *) "self", NULL
6758 };
6759
6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6763 {
6764 PyThreadState* __tstate = wxPyBeginAllowThreads();
6765 wxRegionIterator_Next(arg1);
6766
6767 wxPyEndAllowThreads(__tstate);
6768 if (PyErr_Occurred()) SWIG_fail;
6769 }
6770 Py_INCREF(Py_None); resultobj = Py_None;
6771 return resultobj;
6772 fail:
6773 return NULL;
6774 }
6775
6776
6777 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
6778 PyObject *resultobj;
6779 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6780 bool result;
6781 PyObject * obj0 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6789 {
6790 PyThreadState* __tstate = wxPyBeginAllowThreads();
6791 result = (bool)wxRegionIterator___nonzero__(arg1);
6792
6793 wxPyEndAllowThreads(__tstate);
6794 if (PyErr_Occurred()) SWIG_fail;
6795 }
6796 {
6797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6798 }
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
6806 PyObject *obj;
6807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6808 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6809 Py_INCREF(obj);
6810 return Py_BuildValue((char *)"");
6811 }
6812 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj;
6814 wxNativeFontInfo *result;
6815 char *kwnames[] = {
6816 NULL
6817 };
6818
6819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6820 {
6821 PyThreadState* __tstate = wxPyBeginAllowThreads();
6822 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6823
6824 wxPyEndAllowThreads(__tstate);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6828 return resultobj;
6829 fail:
6830 return NULL;
6831 }
6832
6833
6834 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj;
6836 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6837 PyObject * obj0 = 0 ;
6838 char *kwnames[] = {
6839 (char *) "self", NULL
6840 };
6841
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 delete arg1;
6848
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 Py_INCREF(Py_None); resultobj = Py_None;
6853 return resultobj;
6854 fail:
6855 return NULL;
6856 }
6857
6858
6859 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
6860 PyObject *resultobj;
6861 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6862 PyObject * obj0 = 0 ;
6863 char *kwnames[] = {
6864 (char *) "self", NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6870 {
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 (arg1)->Init();
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 Py_INCREF(Py_None); resultobj = Py_None;
6878 return resultobj;
6879 fail:
6880 return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj;
6886 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6887 wxFont *arg2 = 0 ;
6888 PyObject * obj0 = 0 ;
6889 PyObject * obj1 = 0 ;
6890 char *kwnames[] = {
6891 (char *) "self",(char *) "font", NULL
6892 };
6893
6894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6898 SWIG_POINTER_EXCEPTION | 0)) == -1)
6899 SWIG_fail;
6900 if (arg2 == NULL) {
6901 PyErr_SetString(PyExc_TypeError,"null reference");
6902 SWIG_fail;
6903 }
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 (arg1)->InitFromFont((wxFont const &)*arg2);
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 Py_INCREF(Py_None); resultobj = Py_None;
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6921 int result;
6922 PyObject * obj0 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "self", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 resultobj = SWIG_From_int((int)result);
6938 return resultobj;
6939 fail:
6940 return NULL;
6941 }
6942
6943
6944 static PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
6945 PyObject *resultobj;
6946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6947 wxSize result;
6948 PyObject * obj0 = 0 ;
6949 char *kwnames[] = {
6950 (char *) "self", NULL
6951 };
6952
6953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPixelSize",kwnames,&obj0)) goto fail;
6954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6956 {
6957 PyThreadState* __tstate = wxPyBeginAllowThreads();
6958 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
6959
6960 wxPyEndAllowThreads(__tstate);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
6963 {
6964 wxSize * resultptr;
6965 resultptr = new wxSize((wxSize &) result);
6966 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
6967 }
6968 return resultobj;
6969 fail:
6970 return NULL;
6971 }
6972
6973
6974 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6975 PyObject *resultobj;
6976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6977 int result;
6978 PyObject * obj0 = 0 ;
6979 char *kwnames[] = {
6980 (char *) "self", NULL
6981 };
6982
6983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6986 {
6987 PyThreadState* __tstate = wxPyBeginAllowThreads();
6988 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6989
6990 wxPyEndAllowThreads(__tstate);
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 resultobj = SWIG_From_int((int)result);
6994 return resultobj;
6995 fail:
6996 return NULL;
6997 }
6998
6999
7000 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj;
7002 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7003 int result;
7004 PyObject * obj0 = 0 ;
7005 char *kwnames[] = {
7006 (char *) "self", NULL
7007 };
7008
7009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
7010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7012 {
7013 PyThreadState* __tstate = wxPyBeginAllowThreads();
7014 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
7015
7016 wxPyEndAllowThreads(__tstate);
7017 if (PyErr_Occurred()) SWIG_fail;
7018 }
7019 resultobj = SWIG_From_int((int)result);
7020 return resultobj;
7021 fail:
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj;
7028 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7029 bool result;
7030 PyObject * obj0 = 0 ;
7031 char *kwnames[] = {
7032 (char *) "self", NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
7036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
7041
7042 wxPyEndAllowThreads(__tstate);
7043 if (PyErr_Occurred()) SWIG_fail;
7044 }
7045 {
7046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7047 }
7048 return resultobj;
7049 fail:
7050 return NULL;
7051 }
7052
7053
7054 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
7055 PyObject *resultobj;
7056 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7057 wxString result;
7058 PyObject * obj0 = 0 ;
7059 char *kwnames[] = {
7060 (char *) "self", NULL
7061 };
7062
7063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
7064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
7069
7070 wxPyEndAllowThreads(__tstate);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 {
7074 #if wxUSE_UNICODE
7075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7076 #else
7077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7078 #endif
7079 }
7080 return resultobj;
7081 fail:
7082 return NULL;
7083 }
7084
7085
7086 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
7087 PyObject *resultobj;
7088 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7089 int result;
7090 PyObject * obj0 = 0 ;
7091 char *kwnames[] = {
7092 (char *) "self", NULL
7093 };
7094
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
7096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7098 {
7099 PyThreadState* __tstate = wxPyBeginAllowThreads();
7100 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
7101
7102 wxPyEndAllowThreads(__tstate);
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 resultobj = SWIG_From_int((int)result);
7106 return resultobj;
7107 fail:
7108 return NULL;
7109 }
7110
7111
7112 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7113 PyObject *resultobj;
7114 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7115 int result;
7116 PyObject * obj0 = 0 ;
7117 char *kwnames[] = {
7118 (char *) "self", NULL
7119 };
7120
7121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
7122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
7127
7128 wxPyEndAllowThreads(__tstate);
7129 if (PyErr_Occurred()) SWIG_fail;
7130 }
7131 resultobj = SWIG_From_int((int)result);
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7141 int arg2 ;
7142 PyObject * obj0 = 0 ;
7143 PyObject * obj1 = 0 ;
7144 char *kwnames[] = {
7145 (char *) "self",(char *) "pointsize", NULL
7146 };
7147
7148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7151 arg2 = (int)SWIG_As_int(obj1);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 {
7154 PyThreadState* __tstate = wxPyBeginAllowThreads();
7155 (arg1)->SetPointSize(arg2);
7156
7157 wxPyEndAllowThreads(__tstate);
7158 if (PyErr_Occurred()) SWIG_fail;
7159 }
7160 Py_INCREF(Py_None); resultobj = Py_None;
7161 return resultobj;
7162 fail:
7163 return NULL;
7164 }
7165
7166
7167 static PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
7168 PyObject *resultobj;
7169 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7170 wxSize *arg2 = 0 ;
7171 wxSize temp2 ;
7172 PyObject * obj0 = 0 ;
7173 PyObject * obj1 = 0 ;
7174 char *kwnames[] = {
7175 (char *) "self",(char *) "pixelSize", NULL
7176 };
7177
7178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
7179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7181 {
7182 arg2 = &temp2;
7183 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7184 }
7185 {
7186 PyThreadState* __tstate = wxPyBeginAllowThreads();
7187 (arg1)->SetPixelSize((wxSize const &)*arg2);
7188
7189 wxPyEndAllowThreads(__tstate);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 Py_INCREF(Py_None); resultobj = Py_None;
7193 return resultobj;
7194 fail:
7195 return NULL;
7196 }
7197
7198
7199 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
7200 PyObject *resultobj;
7201 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7202 int arg2 ;
7203 PyObject * obj0 = 0 ;
7204 PyObject * obj1 = 0 ;
7205 char *kwnames[] = {
7206 (char *) "self",(char *) "style", NULL
7207 };
7208
7209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7212 arg2 = (int)SWIG_As_int(obj1);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 {
7215 PyThreadState* __tstate = wxPyBeginAllowThreads();
7216 (arg1)->SetStyle((wxFontStyle )arg2);
7217
7218 wxPyEndAllowThreads(__tstate);
7219 if (PyErr_Occurred()) SWIG_fail;
7220 }
7221 Py_INCREF(Py_None); resultobj = Py_None;
7222 return resultobj;
7223 fail:
7224 return NULL;
7225 }
7226
7227
7228 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
7229 PyObject *resultobj;
7230 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7231 int arg2 ;
7232 PyObject * obj0 = 0 ;
7233 PyObject * obj1 = 0 ;
7234 char *kwnames[] = {
7235 (char *) "self",(char *) "weight", NULL
7236 };
7237
7238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7241 arg2 = (int)SWIG_As_int(obj1);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 {
7244 PyThreadState* __tstate = wxPyBeginAllowThreads();
7245 (arg1)->SetWeight((wxFontWeight )arg2);
7246
7247 wxPyEndAllowThreads(__tstate);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 }
7250 Py_INCREF(Py_None); resultobj = Py_None;
7251 return resultobj;
7252 fail:
7253 return NULL;
7254 }
7255
7256
7257 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
7258 PyObject *resultobj;
7259 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7260 bool arg2 ;
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "self",(char *) "underlined", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7270 arg2 = (bool)SWIG_As_bool(obj1);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 (arg1)->SetUnderlined(arg2);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 Py_INCREF(Py_None); resultobj = Py_None;
7280 return resultobj;
7281 fail:
7282 return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7289 wxString arg2 ;
7290 PyObject * obj0 = 0 ;
7291 PyObject * obj1 = 0 ;
7292 char *kwnames[] = {
7293 (char *) "self",(char *) "facename", NULL
7294 };
7295
7296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7299 {
7300 wxString* sptr = wxString_in_helper(obj1);
7301 if (sptr == NULL) SWIG_fail;
7302 arg2 = *sptr;
7303 delete sptr;
7304 }
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 (arg1)->SetFaceName(arg2);
7308
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 Py_INCREF(Py_None); resultobj = Py_None;
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj;
7321 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7322 int arg2 ;
7323 PyObject * obj0 = 0 ;
7324 PyObject * obj1 = 0 ;
7325 char *kwnames[] = {
7326 (char *) "self",(char *) "family", NULL
7327 };
7328
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7332 arg2 = (int)SWIG_As_int(obj1);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 {
7335 PyThreadState* __tstate = wxPyBeginAllowThreads();
7336 (arg1)->SetFamily((wxFontFamily )arg2);
7337
7338 wxPyEndAllowThreads(__tstate);
7339 if (PyErr_Occurred()) SWIG_fail;
7340 }
7341 Py_INCREF(Py_None); resultobj = Py_None;
7342 return resultobj;
7343 fail:
7344 return NULL;
7345 }
7346
7347
7348 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7349 PyObject *resultobj;
7350 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7351 int arg2 ;
7352 PyObject * obj0 = 0 ;
7353 PyObject * obj1 = 0 ;
7354 char *kwnames[] = {
7355 (char *) "self",(char *) "encoding", NULL
7356 };
7357
7358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7361 arg2 = (int)SWIG_As_int(obj1);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 {
7364 PyThreadState* __tstate = wxPyBeginAllowThreads();
7365 (arg1)->SetEncoding((wxFontEncoding )arg2);
7366
7367 wxPyEndAllowThreads(__tstate);
7368 if (PyErr_Occurred()) SWIG_fail;
7369 }
7370 Py_INCREF(Py_None); resultobj = Py_None;
7371 return resultobj;
7372 fail:
7373 return NULL;
7374 }
7375
7376
7377 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
7378 PyObject *resultobj;
7379 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7380 wxString *arg2 = 0 ;
7381 bool result;
7382 bool temp2 = false ;
7383 PyObject * obj0 = 0 ;
7384 PyObject * obj1 = 0 ;
7385 char *kwnames[] = {
7386 (char *) "self",(char *) "s", NULL
7387 };
7388
7389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7392 {
7393 arg2 = wxString_in_helper(obj1);
7394 if (arg2 == NULL) SWIG_fail;
7395 temp2 = true;
7396 }
7397 {
7398 PyThreadState* __tstate = wxPyBeginAllowThreads();
7399 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7400
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 {
7405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7406 }
7407 {
7408 if (temp2)
7409 delete arg2;
7410 }
7411 return resultobj;
7412 fail:
7413 {
7414 if (temp2)
7415 delete arg2;
7416 }
7417 return NULL;
7418 }
7419
7420
7421 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
7422 PyObject *resultobj;
7423 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7424 wxString result;
7425 PyObject * obj0 = 0 ;
7426 char *kwnames[] = {
7427 (char *) "self", NULL
7428 };
7429
7430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7433 {
7434 PyThreadState* __tstate = wxPyBeginAllowThreads();
7435 result = ((wxNativeFontInfo const *)arg1)->ToString();
7436
7437 wxPyEndAllowThreads(__tstate);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 {
7441 #if wxUSE_UNICODE
7442 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7443 #else
7444 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7445 #endif
7446 }
7447 return resultobj;
7448 fail:
7449 return NULL;
7450 }
7451
7452
7453 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
7454 PyObject *resultobj;
7455 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7456 wxString result;
7457 PyObject * obj0 = 0 ;
7458 char *kwnames[] = {
7459 (char *) "self", NULL
7460 };
7461
7462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 result = wxNativeFontInfo___str__(arg1);
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 {
7473 #if wxUSE_UNICODE
7474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7475 #else
7476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7477 #endif
7478 }
7479 return resultobj;
7480 fail:
7481 return NULL;
7482 }
7483
7484
7485 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
7486 PyObject *resultobj;
7487 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7488 wxString *arg2 = 0 ;
7489 bool result;
7490 bool temp2 = false ;
7491 PyObject * obj0 = 0 ;
7492 PyObject * obj1 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "self",(char *) "s", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7500 {
7501 arg2 = wxString_in_helper(obj1);
7502 if (arg2 == NULL) SWIG_fail;
7503 temp2 = true;
7504 }
7505 {
7506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7507 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7508
7509 wxPyEndAllowThreads(__tstate);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 {
7513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7514 }
7515 {
7516 if (temp2)
7517 delete arg2;
7518 }
7519 return resultobj;
7520 fail:
7521 {
7522 if (temp2)
7523 delete arg2;
7524 }
7525 return NULL;
7526 }
7527
7528
7529 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
7530 PyObject *resultobj;
7531 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7532 wxString result;
7533 PyObject * obj0 = 0 ;
7534 char *kwnames[] = {
7535 (char *) "self", NULL
7536 };
7537
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7541 {
7542 PyThreadState* __tstate = wxPyBeginAllowThreads();
7543 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7544
7545 wxPyEndAllowThreads(__tstate);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 }
7548 {
7549 #if wxUSE_UNICODE
7550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7551 #else
7552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7553 #endif
7554 }
7555 return resultobj;
7556 fail:
7557 return NULL;
7558 }
7559
7560
7561 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
7562 PyObject *obj;
7563 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7564 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7565 Py_INCREF(obj);
7566 return Py_BuildValue((char *)"");
7567 }
7568 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj;
7570 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7571 wxString *arg2 = (wxString *) 0 ;
7572 bool temp2 = false ;
7573 PyObject * obj0 = 0 ;
7574 PyObject * obj1 = 0 ;
7575 char *kwnames[] = {
7576 (char *) "self",(char *) "facename", NULL
7577 };
7578
7579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7582 {
7583 arg2 = wxString_in_helper(obj1);
7584 if (arg2 == NULL) SWIG_fail;
7585 temp2 = true;
7586 }
7587 if (arg1) (arg1)->facename = *arg2;
7588
7589 Py_INCREF(Py_None); resultobj = Py_None;
7590 {
7591 if (temp2)
7592 delete arg2;
7593 }
7594 return resultobj;
7595 fail:
7596 {
7597 if (temp2)
7598 delete arg2;
7599 }
7600 return NULL;
7601 }
7602
7603
7604 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
7605 PyObject *resultobj;
7606 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7607 wxString *result;
7608 PyObject * obj0 = 0 ;
7609 char *kwnames[] = {
7610 (char *) "self", NULL
7611 };
7612
7613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7616 result = (wxString *)& ((arg1)->facename);
7617
7618 {
7619 #if wxUSE_UNICODE
7620 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7621 #else
7622 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7623 #endif
7624 }
7625 return resultobj;
7626 fail:
7627 return NULL;
7628 }
7629
7630
7631 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
7632 PyObject *resultobj;
7633 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7634 int arg2 ;
7635 PyObject * obj0 = 0 ;
7636 PyObject * obj1 = 0 ;
7637 char *kwnames[] = {
7638 (char *) "self",(char *) "encoding", NULL
7639 };
7640
7641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7644 arg2 = (int)SWIG_As_int(obj1);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7647
7648 Py_INCREF(Py_None); resultobj = Py_None;
7649 return resultobj;
7650 fail:
7651 return NULL;
7652 }
7653
7654
7655 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
7656 PyObject *resultobj;
7657 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7658 int result;
7659 PyObject * obj0 = 0 ;
7660 char *kwnames[] = {
7661 (char *) "self", NULL
7662 };
7663
7664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7667 result = (int) ((arg1)->encoding);
7668
7669 resultobj = SWIG_From_int((int)result);
7670 return resultobj;
7671 fail:
7672 return NULL;
7673 }
7674
7675
7676 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7677 PyObject *resultobj;
7678 wxNativeEncodingInfo *result;
7679 char *kwnames[] = {
7680 NULL
7681 };
7682
7683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7684 {
7685 PyThreadState* __tstate = wxPyBeginAllowThreads();
7686 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7687
7688 wxPyEndAllowThreads(__tstate);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 }
7691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7692 return resultobj;
7693 fail:
7694 return NULL;
7695 }
7696
7697
7698 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7699 PyObject *resultobj;
7700 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7701 PyObject * obj0 = 0 ;
7702 char *kwnames[] = {
7703 (char *) "self", NULL
7704 };
7705
7706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7709 {
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 delete arg1;
7712
7713 wxPyEndAllowThreads(__tstate);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 Py_INCREF(Py_None); resultobj = Py_None;
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
7724 PyObject *resultobj;
7725 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7726 wxString *arg2 = 0 ;
7727 bool result;
7728 bool temp2 = false ;
7729 PyObject * obj0 = 0 ;
7730 PyObject * obj1 = 0 ;
7731 char *kwnames[] = {
7732 (char *) "self",(char *) "s", NULL
7733 };
7734
7735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7738 {
7739 arg2 = wxString_in_helper(obj1);
7740 if (arg2 == NULL) SWIG_fail;
7741 temp2 = true;
7742 }
7743 {
7744 PyThreadState* __tstate = wxPyBeginAllowThreads();
7745 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7746
7747 wxPyEndAllowThreads(__tstate);
7748 if (PyErr_Occurred()) SWIG_fail;
7749 }
7750 {
7751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7752 }
7753 {
7754 if (temp2)
7755 delete arg2;
7756 }
7757 return resultobj;
7758 fail:
7759 {
7760 if (temp2)
7761 delete arg2;
7762 }
7763 return NULL;
7764 }
7765
7766
7767 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
7768 PyObject *resultobj;
7769 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7770 wxString result;
7771 PyObject * obj0 = 0 ;
7772 char *kwnames[] = {
7773 (char *) "self", NULL
7774 };
7775
7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7779 {
7780 PyThreadState* __tstate = wxPyBeginAllowThreads();
7781 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7782
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 {
7787 #if wxUSE_UNICODE
7788 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7789 #else
7790 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7791 #endif
7792 }
7793 return resultobj;
7794 fail:
7795 return NULL;
7796 }
7797
7798
7799 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
7800 PyObject *obj;
7801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7802 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7803 Py_INCREF(obj);
7804 return Py_BuildValue((char *)"");
7805 }
7806 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 int arg1 ;
7809 wxNativeEncodingInfo *result;
7810 PyObject * obj0 = 0 ;
7811 char *kwnames[] = {
7812 (char *) "encoding", NULL
7813 };
7814
7815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7816 arg1 = (int)SWIG_As_int(obj0);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 {
7819 PyThreadState* __tstate = wxPyBeginAllowThreads();
7820 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7821
7822 wxPyEndAllowThreads(__tstate);
7823 if (PyErr_Occurred()) SWIG_fail;
7824 }
7825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7826 return resultobj;
7827 fail:
7828 return NULL;
7829 }
7830
7831
7832 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7833 PyObject *resultobj;
7834 wxNativeEncodingInfo *arg1 = 0 ;
7835 bool result;
7836 PyObject * obj0 = 0 ;
7837 char *kwnames[] = {
7838 (char *) "info", NULL
7839 };
7840
7841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7843 SWIG_POINTER_EXCEPTION | 0)) == -1)
7844 SWIG_fail;
7845 if (arg1 == NULL) {
7846 PyErr_SetString(PyExc_TypeError,"null reference");
7847 SWIG_fail;
7848 }
7849 {
7850 PyThreadState* __tstate = wxPyBeginAllowThreads();
7851 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7852
7853 wxPyEndAllowThreads(__tstate);
7854 if (PyErr_Occurred()) SWIG_fail;
7855 }
7856 {
7857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7858 }
7859 return resultobj;
7860 fail:
7861 return NULL;
7862 }
7863
7864
7865 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7866 PyObject *resultobj;
7867 wxFontMapper *result;
7868 char *kwnames[] = {
7869 NULL
7870 };
7871
7872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7873 {
7874 PyThreadState* __tstate = wxPyBeginAllowThreads();
7875 result = (wxFontMapper *)new wxFontMapper();
7876
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7881 return resultobj;
7882 fail:
7883 return NULL;
7884 }
7885
7886
7887 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7888 PyObject *resultobj;
7889 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7890 PyObject * obj0 = 0 ;
7891 char *kwnames[] = {
7892 (char *) "self", NULL
7893 };
7894
7895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7898 {
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 delete arg1;
7901
7902 wxPyEndAllowThreads(__tstate);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 Py_INCREF(Py_None); resultobj = Py_None;
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxFontMapper *result;
7915 char *kwnames[] = {
7916 NULL
7917 };
7918
7919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 result = (wxFontMapper *)wxFontMapper::Get();
7923
7924 wxPyEndAllowThreads(__tstate);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7928 return resultobj;
7929 fail:
7930 return NULL;
7931 }
7932
7933
7934 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj;
7936 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7937 wxFontMapper *result;
7938 PyObject * obj0 = 0 ;
7939 char *kwnames[] = {
7940 (char *) "mapper", NULL
7941 };
7942
7943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7946 {
7947 PyThreadState* __tstate = wxPyBeginAllowThreads();
7948 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7949
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
7953 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7954 return resultobj;
7955 fail:
7956 return NULL;
7957 }
7958
7959
7960 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7961 PyObject *resultobj;
7962 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7963 wxString *arg2 = 0 ;
7964 bool arg3 = (bool) true ;
7965 int result;
7966 bool temp2 = false ;
7967 PyObject * obj0 = 0 ;
7968 PyObject * obj1 = 0 ;
7969 PyObject * obj2 = 0 ;
7970 char *kwnames[] = {
7971 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7972 };
7973
7974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7977 {
7978 arg2 = wxString_in_helper(obj1);
7979 if (arg2 == NULL) SWIG_fail;
7980 temp2 = true;
7981 }
7982 if (obj2) {
7983 arg3 = (bool)SWIG_As_bool(obj2);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
7986 {
7987 PyThreadState* __tstate = wxPyBeginAllowThreads();
7988 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7989
7990 wxPyEndAllowThreads(__tstate);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 resultobj = SWIG_From_int((int)result);
7994 {
7995 if (temp2)
7996 delete arg2;
7997 }
7998 return resultobj;
7999 fail:
8000 {
8001 if (temp2)
8002 delete arg2;
8003 }
8004 return NULL;
8005 }
8006
8007
8008 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
8009 PyObject *resultobj;
8010 size_t result;
8011 char *kwnames[] = {
8012 NULL
8013 };
8014
8015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
8018 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
8024 return resultobj;
8025 fail:
8026 return NULL;
8027 }
8028
8029
8030 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8031 PyObject *resultobj;
8032 size_t arg1 ;
8033 int result;
8034 PyObject * obj0 = 0 ;
8035 char *kwnames[] = {
8036 (char *) "n", NULL
8037 };
8038
8039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
8040 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 {
8043 PyThreadState* __tstate = wxPyBeginAllowThreads();
8044 result = (int)wxFontMapper::GetEncoding(arg1);
8045
8046 wxPyEndAllowThreads(__tstate);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 }
8049 resultobj = SWIG_From_int((int)result);
8050 return resultobj;
8051 fail:
8052 return NULL;
8053 }
8054
8055
8056 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
8057 PyObject *resultobj;
8058 int arg1 ;
8059 wxString result;
8060 PyObject * obj0 = 0 ;
8061 char *kwnames[] = {
8062 (char *) "encoding", NULL
8063 };
8064
8065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
8066 arg1 = (int)SWIG_As_int(obj0);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 {
8069 PyThreadState* __tstate = wxPyBeginAllowThreads();
8070 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
8071
8072 wxPyEndAllowThreads(__tstate);
8073 if (PyErr_Occurred()) SWIG_fail;
8074 }
8075 {
8076 #if wxUSE_UNICODE
8077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8078 #else
8079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8080 #endif
8081 }
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
8089 PyObject *resultobj;
8090 int arg1 ;
8091 wxString result;
8092 PyObject * obj0 = 0 ;
8093 char *kwnames[] = {
8094 (char *) "encoding", NULL
8095 };
8096
8097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
8098 arg1 = (int)SWIG_As_int(obj0);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 {
8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
8102 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
8103
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 {
8108 #if wxUSE_UNICODE
8109 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8110 #else
8111 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8112 #endif
8113 }
8114 return resultobj;
8115 fail:
8116 return NULL;
8117 }
8118
8119
8120 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
8121 PyObject *resultobj;
8122 wxString *arg1 = 0 ;
8123 int result;
8124 bool temp1 = false ;
8125 PyObject * obj0 = 0 ;
8126 char *kwnames[] = {
8127 (char *) "name", NULL
8128 };
8129
8130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
8131 {
8132 arg1 = wxString_in_helper(obj0);
8133 if (arg1 == NULL) SWIG_fail;
8134 temp1 = true;
8135 }
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_From_int((int)result);
8144 {
8145 if (temp1)
8146 delete arg1;
8147 }
8148 return resultobj;
8149 fail:
8150 {
8151 if (temp1)
8152 delete arg1;
8153 }
8154 return NULL;
8155 }
8156
8157
8158 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8161 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
8162 PyObject * obj0 = 0 ;
8163 PyObject * obj1 = 0 ;
8164 char *kwnames[] = {
8165 (char *) "self",(char *) "config", NULL
8166 };
8167
8168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
8169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8171 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
8172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8173 {
8174 PyThreadState* __tstate = wxPyBeginAllowThreads();
8175 (arg1)->SetConfig(arg2);
8176
8177 wxPyEndAllowThreads(__tstate);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
8180 Py_INCREF(Py_None); resultobj = Py_None;
8181 return resultobj;
8182 fail:
8183 return NULL;
8184 }
8185
8186
8187 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
8188 PyObject *resultobj;
8189 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8190 wxString *arg2 = 0 ;
8191 bool temp2 = false ;
8192 PyObject * obj0 = 0 ;
8193 PyObject * obj1 = 0 ;
8194 char *kwnames[] = {
8195 (char *) "self",(char *) "prefix", NULL
8196 };
8197
8198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
8199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8201 {
8202 arg2 = wxString_in_helper(obj1);
8203 if (arg2 == NULL) SWIG_fail;
8204 temp2 = true;
8205 }
8206 {
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 (arg1)->SetConfigPath((wxString const &)*arg2);
8209
8210 wxPyEndAllowThreads(__tstate);
8211 if (PyErr_Occurred()) SWIG_fail;
8212 }
8213 Py_INCREF(Py_None); resultobj = Py_None;
8214 {
8215 if (temp2)
8216 delete arg2;
8217 }
8218 return resultobj;
8219 fail:
8220 {
8221 if (temp2)
8222 delete arg2;
8223 }
8224 return NULL;
8225 }
8226
8227
8228 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
8229 PyObject *resultobj;
8230 wxString result;
8231 char *kwnames[] = {
8232 NULL
8233 };
8234
8235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
8236 {
8237 PyThreadState* __tstate = wxPyBeginAllowThreads();
8238 result = wxFontMapper::GetDefaultConfigPath();
8239
8240 wxPyEndAllowThreads(__tstate);
8241 if (PyErr_Occurred()) SWIG_fail;
8242 }
8243 {
8244 #if wxUSE_UNICODE
8245 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8246 #else
8247 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8248 #endif
8249 }
8250 return resultobj;
8251 fail:
8252 return NULL;
8253 }
8254
8255
8256 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8257 PyObject *resultobj;
8258 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8259 int arg2 ;
8260 wxString const &arg3_defvalue = wxPyEmptyString ;
8261 wxString *arg3 = (wxString *) &arg3_defvalue ;
8262 bool arg4 = (bool) true ;
8263 PyObject *result;
8264 bool temp3 = false ;
8265 PyObject * obj0 = 0 ;
8266 PyObject * obj1 = 0 ;
8267 PyObject * obj2 = 0 ;
8268 PyObject * obj3 = 0 ;
8269 char *kwnames[] = {
8270 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
8271 };
8272
8273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8276 arg2 = (int)SWIG_As_int(obj1);
8277 if (PyErr_Occurred()) SWIG_fail;
8278 if (obj2) {
8279 {
8280 arg3 = wxString_in_helper(obj2);
8281 if (arg3 == NULL) SWIG_fail;
8282 temp3 = true;
8283 }
8284 }
8285 if (obj3) {
8286 arg4 = (bool)SWIG_As_bool(obj3);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 {
8290 PyThreadState* __tstate = wxPyBeginAllowThreads();
8291 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
8292
8293 wxPyEndAllowThreads(__tstate);
8294 if (PyErr_Occurred()) SWIG_fail;
8295 }
8296 resultobj = result;
8297 {
8298 if (temp3)
8299 delete arg3;
8300 }
8301 return resultobj;
8302 fail:
8303 {
8304 if (temp3)
8305 delete arg3;
8306 }
8307 return NULL;
8308 }
8309
8310
8311 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj;
8313 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8314 int arg2 ;
8315 wxString const &arg3_defvalue = wxPyEmptyString ;
8316 wxString *arg3 = (wxString *) &arg3_defvalue ;
8317 bool result;
8318 bool temp3 = false ;
8319 PyObject * obj0 = 0 ;
8320 PyObject * obj1 = 0 ;
8321 PyObject * obj2 = 0 ;
8322 char *kwnames[] = {
8323 (char *) "self",(char *) "encoding",(char *) "facename", NULL
8324 };
8325
8326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
8327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8329 arg2 = (int)SWIG_As_int(obj1);
8330 if (PyErr_Occurred()) SWIG_fail;
8331 if (obj2) {
8332 {
8333 arg3 = wxString_in_helper(obj2);
8334 if (arg3 == NULL) SWIG_fail;
8335 temp3 = true;
8336 }
8337 }
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
8341
8342 wxPyEndAllowThreads(__tstate);
8343 if (PyErr_Occurred()) SWIG_fail;
8344 }
8345 {
8346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8347 }
8348 {
8349 if (temp3)
8350 delete arg3;
8351 }
8352 return resultobj;
8353 fail:
8354 {
8355 if (temp3)
8356 delete arg3;
8357 }
8358 return NULL;
8359 }
8360
8361
8362 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
8363 PyObject *resultobj;
8364 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8365 wxWindow *arg2 = (wxWindow *) 0 ;
8366 PyObject * obj0 = 0 ;
8367 PyObject * obj1 = 0 ;
8368 char *kwnames[] = {
8369 (char *) "self",(char *) "parent", NULL
8370 };
8371
8372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
8373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8377 {
8378 PyThreadState* __tstate = wxPyBeginAllowThreads();
8379 (arg1)->SetDialogParent(arg2);
8380
8381 wxPyEndAllowThreads(__tstate);
8382 if (PyErr_Occurred()) SWIG_fail;
8383 }
8384 Py_INCREF(Py_None); resultobj = Py_None;
8385 return resultobj;
8386 fail:
8387 return NULL;
8388 }
8389
8390
8391 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
8392 PyObject *resultobj;
8393 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8394 wxString *arg2 = 0 ;
8395 bool temp2 = false ;
8396 PyObject * obj0 = 0 ;
8397 PyObject * obj1 = 0 ;
8398 char *kwnames[] = {
8399 (char *) "self",(char *) "title", NULL
8400 };
8401
8402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8405 {
8406 arg2 = wxString_in_helper(obj1);
8407 if (arg2 == NULL) SWIG_fail;
8408 temp2 = true;
8409 }
8410 {
8411 PyThreadState* __tstate = wxPyBeginAllowThreads();
8412 (arg1)->SetDialogTitle((wxString const &)*arg2);
8413
8414 wxPyEndAllowThreads(__tstate);
8415 if (PyErr_Occurred()) SWIG_fail;
8416 }
8417 Py_INCREF(Py_None); resultobj = Py_None;
8418 {
8419 if (temp2)
8420 delete arg2;
8421 }
8422 return resultobj;
8423 fail:
8424 {
8425 if (temp2)
8426 delete arg2;
8427 }
8428 return NULL;
8429 }
8430
8431
8432 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
8433 PyObject *obj;
8434 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8435 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8436 Py_INCREF(obj);
8437 return Py_BuildValue((char *)"");
8438 }
8439 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
8440 PyObject *resultobj;
8441 int arg1 ;
8442 int arg2 ;
8443 int arg3 ;
8444 int arg4 ;
8445 bool arg5 = (bool) false ;
8446 wxString const &arg6_defvalue = wxPyEmptyString ;
8447 wxString *arg6 = (wxString *) &arg6_defvalue ;
8448 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8449 wxFont *result;
8450 bool temp6 = false ;
8451 PyObject * obj0 = 0 ;
8452 PyObject * obj1 = 0 ;
8453 PyObject * obj2 = 0 ;
8454 PyObject * obj3 = 0 ;
8455 PyObject * obj4 = 0 ;
8456 PyObject * obj5 = 0 ;
8457 PyObject * obj6 = 0 ;
8458 char *kwnames[] = {
8459 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8460 };
8461
8462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8463 arg1 = (int)SWIG_As_int(obj0);
8464 if (PyErr_Occurred()) SWIG_fail;
8465 arg2 = (int)SWIG_As_int(obj1);
8466 if (PyErr_Occurred()) SWIG_fail;
8467 arg3 = (int)SWIG_As_int(obj2);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 arg4 = (int)SWIG_As_int(obj3);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 if (obj4) {
8472 arg5 = (bool)SWIG_As_bool(obj4);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 if (obj5) {
8476 {
8477 arg6 = wxString_in_helper(obj5);
8478 if (arg6 == NULL) SWIG_fail;
8479 temp6 = true;
8480 }
8481 }
8482 if (obj6) {
8483 arg7 = (int)SWIG_As_int(obj6);
8484 if (PyErr_Occurred()) SWIG_fail;
8485 }
8486 {
8487 if (!wxPyCheckForApp()) SWIG_fail;
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8490
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8495 {
8496 if (temp6)
8497 delete arg6;
8498 }
8499 return resultobj;
8500 fail:
8501 {
8502 if (temp6)
8503 delete arg6;
8504 }
8505 return NULL;
8506 }
8507
8508
8509 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
8510 PyObject *resultobj;
8511 wxFont *arg1 = (wxFont *) 0 ;
8512 PyObject * obj0 = 0 ;
8513 char *kwnames[] = {
8514 (char *) "self", NULL
8515 };
8516
8517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8520 {
8521 PyThreadState* __tstate = wxPyBeginAllowThreads();
8522 delete arg1;
8523
8524 wxPyEndAllowThreads(__tstate);
8525 if (PyErr_Occurred()) SWIG_fail;
8526 }
8527 Py_INCREF(Py_None); resultobj = Py_None;
8528 return resultobj;
8529 fail:
8530 return NULL;
8531 }
8532
8533
8534 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8535 PyObject *resultobj;
8536 wxNativeFontInfo *arg1 = 0 ;
8537 wxFont *result;
8538 PyObject * obj0 = 0 ;
8539 char *kwnames[] = {
8540 (char *) "info", NULL
8541 };
8542
8543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8545 SWIG_POINTER_EXCEPTION | 0)) == -1)
8546 SWIG_fail;
8547 if (arg1 == NULL) {
8548 PyErr_SetString(PyExc_TypeError,"null reference");
8549 SWIG_fail;
8550 }
8551 {
8552 if (!wxPyCheckForApp()) SWIG_fail;
8553 PyThreadState* __tstate = wxPyBeginAllowThreads();
8554 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8555
8556 wxPyEndAllowThreads(__tstate);
8557 if (PyErr_Occurred()) SWIG_fail;
8558 }
8559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8560 return resultobj;
8561 fail:
8562 return NULL;
8563 }
8564
8565
8566 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
8567 PyObject *resultobj;
8568 wxString *arg1 = 0 ;
8569 wxFont *result;
8570 bool temp1 = false ;
8571 PyObject * obj0 = 0 ;
8572 char *kwnames[] = {
8573 (char *) "info", NULL
8574 };
8575
8576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8577 {
8578 arg1 = wxString_in_helper(obj0);
8579 if (arg1 == NULL) SWIG_fail;
8580 temp1 = true;
8581 }
8582 {
8583 if (!wxPyCheckForApp()) SWIG_fail;
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8586
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8591 {
8592 if (temp1)
8593 delete arg1;
8594 }
8595 return resultobj;
8596 fail:
8597 {
8598 if (temp1)
8599 delete arg1;
8600 }
8601 return NULL;
8602 }
8603
8604
8605 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 int arg1 ;
8608 int arg2 ;
8609 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8610 wxString const &arg4_defvalue = wxPyEmptyString ;
8611 wxString *arg4 = (wxString *) &arg4_defvalue ;
8612 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8613 wxFont *result;
8614 bool temp4 = false ;
8615 PyObject * obj0 = 0 ;
8616 PyObject * obj1 = 0 ;
8617 PyObject * obj2 = 0 ;
8618 PyObject * obj3 = 0 ;
8619 PyObject * obj4 = 0 ;
8620 char *kwnames[] = {
8621 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8622 };
8623
8624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8625 arg1 = (int)SWIG_As_int(obj0);
8626 if (PyErr_Occurred()) SWIG_fail;
8627 arg2 = (int)SWIG_As_int(obj1);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 if (obj2) {
8630 arg3 = (int)SWIG_As_int(obj2);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 if (obj3) {
8634 {
8635 arg4 = wxString_in_helper(obj3);
8636 if (arg4 == NULL) SWIG_fail;
8637 temp4 = true;
8638 }
8639 }
8640 if (obj4) {
8641 arg5 = (int)SWIG_As_int(obj4);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 }
8644 {
8645 if (!wxPyCheckForApp()) SWIG_fail;
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8648
8649 wxPyEndAllowThreads(__tstate);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 }
8652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8653 {
8654 if (temp4)
8655 delete arg4;
8656 }
8657 return resultobj;
8658 fail:
8659 {
8660 if (temp4)
8661 delete arg4;
8662 }
8663 return NULL;
8664 }
8665
8666
8667 static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8668 PyObject *resultobj;
8669 wxSize *arg1 = 0 ;
8670 int arg2 ;
8671 int arg3 ;
8672 int arg4 ;
8673 bool arg5 = (bool) false ;
8674 wxString const &arg6_defvalue = wxEmptyString ;
8675 wxString *arg6 = (wxString *) &arg6_defvalue ;
8676 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8677 wxFont *result;
8678 wxSize temp1 ;
8679 bool temp6 = false ;
8680 PyObject * obj0 = 0 ;
8681 PyObject * obj1 = 0 ;
8682 PyObject * obj2 = 0 ;
8683 PyObject * obj3 = 0 ;
8684 PyObject * obj4 = 0 ;
8685 PyObject * obj5 = 0 ;
8686 PyObject * obj6 = 0 ;
8687 char *kwnames[] = {
8688 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
8689 };
8690
8691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8692 {
8693 arg1 = &temp1;
8694 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
8695 }
8696 arg2 = (int)SWIG_As_int(obj1);
8697 if (PyErr_Occurred()) SWIG_fail;
8698 arg3 = (int)SWIG_As_int(obj2);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 arg4 = (int)SWIG_As_int(obj3);
8701 if (PyErr_Occurred()) SWIG_fail;
8702 if (obj4) {
8703 arg5 = (bool)SWIG_As_bool(obj4);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 if (obj5) {
8707 {
8708 arg6 = wxString_in_helper(obj5);
8709 if (arg6 == NULL) SWIG_fail;
8710 temp6 = true;
8711 }
8712 }
8713 if (obj6) {
8714 arg7 = (int)SWIG_As_int(obj6);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 {
8718 if (!wxPyCheckForApp()) SWIG_fail;
8719 PyThreadState* __tstate = wxPyBeginAllowThreads();
8720 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8721
8722 wxPyEndAllowThreads(__tstate);
8723 if (PyErr_Occurred()) SWIG_fail;
8724 }
8725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8726 {
8727 if (temp6)
8728 delete arg6;
8729 }
8730 return resultobj;
8731 fail:
8732 {
8733 if (temp6)
8734 delete arg6;
8735 }
8736 return NULL;
8737 }
8738
8739
8740 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
8741 PyObject *resultobj;
8742 wxFont *arg1 = (wxFont *) 0 ;
8743 bool result;
8744 PyObject * obj0 = 0 ;
8745 char *kwnames[] = {
8746 (char *) "self", NULL
8747 };
8748
8749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8752 {
8753 PyThreadState* __tstate = wxPyBeginAllowThreads();
8754 result = (bool)((wxFont const *)arg1)->Ok();
8755
8756 wxPyEndAllowThreads(__tstate);
8757 if (PyErr_Occurred()) SWIG_fail;
8758 }
8759 {
8760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8761 }
8762 return resultobj;
8763 fail:
8764 return NULL;
8765 }
8766
8767
8768 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
8769 PyObject *resultobj;
8770 wxFont *arg1 = (wxFont *) 0 ;
8771 wxFont *arg2 = (wxFont *) 0 ;
8772 bool result;
8773 PyObject * obj0 = 0 ;
8774 PyObject * obj1 = 0 ;
8775 char *kwnames[] = {
8776 (char *) "self",(char *) "other", NULL
8777 };
8778
8779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8782 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8784 {
8785 PyThreadState* __tstate = wxPyBeginAllowThreads();
8786 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8787
8788 wxPyEndAllowThreads(__tstate);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 }
8791 {
8792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8793 }
8794 return resultobj;
8795 fail:
8796 return NULL;
8797 }
8798
8799
8800 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj;
8802 wxFont *arg1 = (wxFont *) 0 ;
8803 wxFont *arg2 = (wxFont *) 0 ;
8804 bool result;
8805 PyObject * obj0 = 0 ;
8806 PyObject * obj1 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "self",(char *) "other", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8814 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 {
8824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8825 }
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxFont *arg1 = (wxFont *) 0 ;
8835 int result;
8836 PyObject * obj0 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 result = (int)((wxFont const *)arg1)->GetPointSize();
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) SWIG_fail;
8850 }
8851 resultobj = SWIG_From_int((int)result);
8852 return resultobj;
8853 fail:
8854 return NULL;
8855 }
8856
8857
8858 static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8859 PyObject *resultobj;
8860 wxFont *arg1 = (wxFont *) 0 ;
8861 wxSize result;
8862 PyObject * obj0 = 0 ;
8863 char *kwnames[] = {
8864 (char *) "self", NULL
8865 };
8866
8867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
8868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8870 {
8871 PyThreadState* __tstate = wxPyBeginAllowThreads();
8872 result = ((wxFont const *)arg1)->GetPixelSize();
8873
8874 wxPyEndAllowThreads(__tstate);
8875 if (PyErr_Occurred()) SWIG_fail;
8876 }
8877 {
8878 wxSize * resultptr;
8879 resultptr = new wxSize((wxSize &) result);
8880 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
8881 }
8882 return resultobj;
8883 fail:
8884 return NULL;
8885 }
8886
8887
8888 static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
8889 PyObject *resultobj;
8890 wxFont *arg1 = (wxFont *) 0 ;
8891 bool result;
8892 PyObject * obj0 = 0 ;
8893 char *kwnames[] = {
8894 (char *) "self", NULL
8895 };
8896
8897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
8898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8900 {
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
8903
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 {
8908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8909 }
8910 return resultobj;
8911 fail:
8912 return NULL;
8913 }
8914
8915
8916 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8917 PyObject *resultobj;
8918 wxFont *arg1 = (wxFont *) 0 ;
8919 int result;
8920 PyObject * obj0 = 0 ;
8921 char *kwnames[] = {
8922 (char *) "self", NULL
8923 };
8924
8925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8928 {
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 result = (int)((wxFont const *)arg1)->GetFamily();
8931
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 resultobj = SWIG_From_int((int)result);
8936 return resultobj;
8937 fail:
8938 return NULL;
8939 }
8940
8941
8942 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8943 PyObject *resultobj;
8944 wxFont *arg1 = (wxFont *) 0 ;
8945 int result;
8946 PyObject * obj0 = 0 ;
8947 char *kwnames[] = {
8948 (char *) "self", NULL
8949 };
8950
8951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8954 {
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 result = (int)((wxFont const *)arg1)->GetStyle();
8957
8958 wxPyEndAllowThreads(__tstate);
8959 if (PyErr_Occurred()) SWIG_fail;
8960 }
8961 resultobj = SWIG_From_int((int)result);
8962 return resultobj;
8963 fail:
8964 return NULL;
8965 }
8966
8967
8968 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8969 PyObject *resultobj;
8970 wxFont *arg1 = (wxFont *) 0 ;
8971 int result;
8972 PyObject * obj0 = 0 ;
8973 char *kwnames[] = {
8974 (char *) "self", NULL
8975 };
8976
8977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8980 {
8981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8982 result = (int)((wxFont const *)arg1)->GetWeight();
8983
8984 wxPyEndAllowThreads(__tstate);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
8987 resultobj = SWIG_From_int((int)result);
8988 return resultobj;
8989 fail:
8990 return NULL;
8991 }
8992
8993
8994 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8995 PyObject *resultobj;
8996 wxFont *arg1 = (wxFont *) 0 ;
8997 bool result;
8998 PyObject * obj0 = 0 ;
8999 char *kwnames[] = {
9000 (char *) "self", NULL
9001 };
9002
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
9004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 result = (bool)((wxFont const *)arg1)->GetUnderlined();
9009
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 {
9014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9015 }
9016 return resultobj;
9017 fail:
9018 return NULL;
9019 }
9020
9021
9022 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
9023 PyObject *resultobj;
9024 wxFont *arg1 = (wxFont *) 0 ;
9025 wxString result;
9026 PyObject * obj0 = 0 ;
9027 char *kwnames[] = {
9028 (char *) "self", NULL
9029 };
9030
9031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
9032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9034 {
9035 PyThreadState* __tstate = wxPyBeginAllowThreads();
9036 result = ((wxFont const *)arg1)->GetFaceName();
9037
9038 wxPyEndAllowThreads(__tstate);
9039 if (PyErr_Occurred()) SWIG_fail;
9040 }
9041 {
9042 #if wxUSE_UNICODE
9043 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9044 #else
9045 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9046 #endif
9047 }
9048 return resultobj;
9049 fail:
9050 return NULL;
9051 }
9052
9053
9054 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9055 PyObject *resultobj;
9056 wxFont *arg1 = (wxFont *) 0 ;
9057 int result;
9058 PyObject * obj0 = 0 ;
9059 char *kwnames[] = {
9060 (char *) "self", NULL
9061 };
9062
9063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
9064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9066 {
9067 PyThreadState* __tstate = wxPyBeginAllowThreads();
9068 result = (int)((wxFont const *)arg1)->GetEncoding();
9069
9070 wxPyEndAllowThreads(__tstate);
9071 if (PyErr_Occurred()) SWIG_fail;
9072 }
9073 resultobj = SWIG_From_int((int)result);
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9081 PyObject *resultobj;
9082 wxFont *arg1 = (wxFont *) 0 ;
9083 wxNativeFontInfo *result;
9084 PyObject * obj0 = 0 ;
9085 char *kwnames[] = {
9086 (char *) "self", NULL
9087 };
9088
9089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
9090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9092 {
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
9095
9096 wxPyEndAllowThreads(__tstate);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
9099 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
9100 return resultobj;
9101 fail:
9102 return NULL;
9103 }
9104
9105
9106 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
9107 PyObject *resultobj;
9108 wxFont *arg1 = (wxFont *) 0 ;
9109 bool result;
9110 PyObject * obj0 = 0 ;
9111 char *kwnames[] = {
9112 (char *) "self", NULL
9113 };
9114
9115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
9116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 {
9126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9127 }
9128 return resultobj;
9129 fail:
9130 return NULL;
9131 }
9132
9133
9134 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
9135 PyObject *resultobj;
9136 wxFont *arg1 = (wxFont *) 0 ;
9137 wxString result;
9138 PyObject * obj0 = 0 ;
9139 char *kwnames[] = {
9140 (char *) "self", NULL
9141 };
9142
9143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
9144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9146 {
9147 PyThreadState* __tstate = wxPyBeginAllowThreads();
9148 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
9149
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 {
9154 #if wxUSE_UNICODE
9155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9156 #else
9157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9158 #endif
9159 }
9160 return resultobj;
9161 fail:
9162 return NULL;
9163 }
9164
9165
9166 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
9167 PyObject *resultobj;
9168 wxFont *arg1 = (wxFont *) 0 ;
9169 wxString result;
9170 PyObject * obj0 = 0 ;
9171 char *kwnames[] = {
9172 (char *) "self", NULL
9173 };
9174
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
9176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
9181
9182 wxPyEndAllowThreads(__tstate);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 }
9185 {
9186 #if wxUSE_UNICODE
9187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9188 #else
9189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9190 #endif
9191 }
9192 return resultobj;
9193 fail:
9194 return NULL;
9195 }
9196
9197
9198 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
9199 PyObject *resultobj;
9200 wxFont *arg1 = (wxFont *) 0 ;
9201 int arg2 ;
9202 PyObject * obj0 = 0 ;
9203 PyObject * obj1 = 0 ;
9204 char *kwnames[] = {
9205 (char *) "self",(char *) "pointSize", NULL
9206 };
9207
9208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
9209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9211 arg2 = (int)SWIG_As_int(obj1);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 {
9214 PyThreadState* __tstate = wxPyBeginAllowThreads();
9215 (arg1)->SetPointSize(arg2);
9216
9217 wxPyEndAllowThreads(__tstate);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 Py_INCREF(Py_None); resultobj = Py_None;
9221 return resultobj;
9222 fail:
9223 return NULL;
9224 }
9225
9226
9227 static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9228 PyObject *resultobj;
9229 wxFont *arg1 = (wxFont *) 0 ;
9230 wxSize *arg2 = 0 ;
9231 wxSize temp2 ;
9232 PyObject * obj0 = 0 ;
9233 PyObject * obj1 = 0 ;
9234 char *kwnames[] = {
9235 (char *) "self",(char *) "pixelSize", NULL
9236 };
9237
9238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
9239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9241 {
9242 arg2 = &temp2;
9243 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9244 }
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 (arg1)->SetPixelSize((wxSize const &)*arg2);
9248
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 Py_INCREF(Py_None); resultobj = Py_None;
9253 return resultobj;
9254 fail:
9255 return NULL;
9256 }
9257
9258
9259 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
9260 PyObject *resultobj;
9261 wxFont *arg1 = (wxFont *) 0 ;
9262 int arg2 ;
9263 PyObject * obj0 = 0 ;
9264 PyObject * obj1 = 0 ;
9265 char *kwnames[] = {
9266 (char *) "self",(char *) "family", NULL
9267 };
9268
9269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
9270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9272 arg2 = (int)SWIG_As_int(obj1);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 {
9275 PyThreadState* __tstate = wxPyBeginAllowThreads();
9276 (arg1)->SetFamily(arg2);
9277
9278 wxPyEndAllowThreads(__tstate);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 }
9281 Py_INCREF(Py_None); resultobj = Py_None;
9282 return resultobj;
9283 fail:
9284 return NULL;
9285 }
9286
9287
9288 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 wxFont *arg1 = (wxFont *) 0 ;
9291 int arg2 ;
9292 PyObject * obj0 = 0 ;
9293 PyObject * obj1 = 0 ;
9294 char *kwnames[] = {
9295 (char *) "self",(char *) "style", NULL
9296 };
9297
9298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
9299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9301 arg2 = (int)SWIG_As_int(obj1);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 {
9304 PyThreadState* __tstate = wxPyBeginAllowThreads();
9305 (arg1)->SetStyle(arg2);
9306
9307 wxPyEndAllowThreads(__tstate);
9308 if (PyErr_Occurred()) SWIG_fail;
9309 }
9310 Py_INCREF(Py_None); resultobj = Py_None;
9311 return resultobj;
9312 fail:
9313 return NULL;
9314 }
9315
9316
9317 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
9318 PyObject *resultobj;
9319 wxFont *arg1 = (wxFont *) 0 ;
9320 int arg2 ;
9321 PyObject * obj0 = 0 ;
9322 PyObject * obj1 = 0 ;
9323 char *kwnames[] = {
9324 (char *) "self",(char *) "weight", NULL
9325 };
9326
9327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
9328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9330 arg2 = (int)SWIG_As_int(obj1);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 {
9333 PyThreadState* __tstate = wxPyBeginAllowThreads();
9334 (arg1)->SetWeight(arg2);
9335
9336 wxPyEndAllowThreads(__tstate);
9337 if (PyErr_Occurred()) SWIG_fail;
9338 }
9339 Py_INCREF(Py_None); resultobj = Py_None;
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
9347 PyObject *resultobj;
9348 wxFont *arg1 = (wxFont *) 0 ;
9349 wxString *arg2 = 0 ;
9350 bool temp2 = false ;
9351 PyObject * obj0 = 0 ;
9352 PyObject * obj1 = 0 ;
9353 char *kwnames[] = {
9354 (char *) "self",(char *) "faceName", NULL
9355 };
9356
9357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
9358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9360 {
9361 arg2 = wxString_in_helper(obj1);
9362 if (arg2 == NULL) SWIG_fail;
9363 temp2 = true;
9364 }
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 (arg1)->SetFaceName((wxString const &)*arg2);
9368
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 Py_INCREF(Py_None); resultobj = Py_None;
9373 {
9374 if (temp2)
9375 delete arg2;
9376 }
9377 return resultobj;
9378 fail:
9379 {
9380 if (temp2)
9381 delete arg2;
9382 }
9383 return NULL;
9384 }
9385
9386
9387 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj;
9389 wxFont *arg1 = (wxFont *) 0 ;
9390 bool arg2 ;
9391 PyObject * obj0 = 0 ;
9392 PyObject * obj1 = 0 ;
9393 char *kwnames[] = {
9394 (char *) "self",(char *) "underlined", NULL
9395 };
9396
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
9398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9400 arg2 = (bool)SWIG_As_bool(obj1);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->SetUnderlined(arg2);
9405
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 Py_INCREF(Py_None); resultobj = Py_None;
9410 return resultobj;
9411 fail:
9412 return NULL;
9413 }
9414
9415
9416 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj;
9418 wxFont *arg1 = (wxFont *) 0 ;
9419 int arg2 ;
9420 PyObject * obj0 = 0 ;
9421 PyObject * obj1 = 0 ;
9422 char *kwnames[] = {
9423 (char *) "self",(char *) "encoding", NULL
9424 };
9425
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
9427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9429 arg2 = (int)SWIG_As_int(obj1);
9430 if (PyErr_Occurred()) SWIG_fail;
9431 {
9432 PyThreadState* __tstate = wxPyBeginAllowThreads();
9433 (arg1)->SetEncoding((wxFontEncoding )arg2);
9434
9435 wxPyEndAllowThreads(__tstate);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 Py_INCREF(Py_None); resultobj = Py_None;
9439 return resultobj;
9440 fail:
9441 return NULL;
9442 }
9443
9444
9445 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj;
9447 wxFont *arg1 = (wxFont *) 0 ;
9448 wxNativeFontInfo *arg2 = 0 ;
9449 PyObject * obj0 = 0 ;
9450 PyObject * obj1 = 0 ;
9451 char *kwnames[] = {
9452 (char *) "self",(char *) "info", NULL
9453 };
9454
9455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
9456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9458 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
9459 SWIG_POINTER_EXCEPTION | 0)) == -1)
9460 SWIG_fail;
9461 if (arg2 == NULL) {
9462 PyErr_SetString(PyExc_TypeError,"null reference");
9463 SWIG_fail;
9464 }
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
9467 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
9468
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 Py_INCREF(Py_None); resultobj = Py_None;
9473 return resultobj;
9474 fail:
9475 return NULL;
9476 }
9477
9478
9479 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
9480 PyObject *resultobj;
9481 wxFont *arg1 = (wxFont *) 0 ;
9482 wxString *arg2 = 0 ;
9483 bool temp2 = false ;
9484 PyObject * obj0 = 0 ;
9485 PyObject * obj1 = 0 ;
9486 char *kwnames[] = {
9487 (char *) "self",(char *) "info", NULL
9488 };
9489
9490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
9491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9493 {
9494 arg2 = wxString_in_helper(obj1);
9495 if (arg2 == NULL) SWIG_fail;
9496 temp2 = true;
9497 }
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
9501
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 Py_INCREF(Py_None); resultobj = Py_None;
9506 {
9507 if (temp2)
9508 delete arg2;
9509 }
9510 return resultobj;
9511 fail:
9512 {
9513 if (temp2)
9514 delete arg2;
9515 }
9516 return NULL;
9517 }
9518
9519
9520 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj;
9522 wxFont *arg1 = (wxFont *) 0 ;
9523 wxString *arg2 = 0 ;
9524 bool temp2 = false ;
9525 PyObject * obj0 = 0 ;
9526 PyObject * obj1 = 0 ;
9527 char *kwnames[] = {
9528 (char *) "self",(char *) "info", NULL
9529 };
9530
9531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
9532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9534 {
9535 arg2 = wxString_in_helper(obj1);
9536 if (arg2 == NULL) SWIG_fail;
9537 temp2 = true;
9538 }
9539 {
9540 PyThreadState* __tstate = wxPyBeginAllowThreads();
9541 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9542
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 Py_INCREF(Py_None); resultobj = Py_None;
9547 {
9548 if (temp2)
9549 delete arg2;
9550 }
9551 return resultobj;
9552 fail:
9553 {
9554 if (temp2)
9555 delete arg2;
9556 }
9557 return NULL;
9558 }
9559
9560
9561 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj;
9563 wxFont *arg1 = (wxFont *) 0 ;
9564 wxString result;
9565 PyObject * obj0 = 0 ;
9566 char *kwnames[] = {
9567 (char *) "self", NULL
9568 };
9569
9570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 result = ((wxFont const *)arg1)->GetFamilyString();
9576
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) SWIG_fail;
9579 }
9580 {
9581 #if wxUSE_UNICODE
9582 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9583 #else
9584 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9585 #endif
9586 }
9587 return resultobj;
9588 fail:
9589 return NULL;
9590 }
9591
9592
9593 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
9594 PyObject *resultobj;
9595 wxFont *arg1 = (wxFont *) 0 ;
9596 wxString result;
9597 PyObject * obj0 = 0 ;
9598 char *kwnames[] = {
9599 (char *) "self", NULL
9600 };
9601
9602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 result = ((wxFont const *)arg1)->GetStyleString();
9608
9609 wxPyEndAllowThreads(__tstate);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 }
9612 {
9613 #if wxUSE_UNICODE
9614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9615 #else
9616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9617 #endif
9618 }
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
9626 PyObject *resultobj;
9627 wxFont *arg1 = (wxFont *) 0 ;
9628 wxString result;
9629 PyObject * obj0 = 0 ;
9630 char *kwnames[] = {
9631 (char *) "self", NULL
9632 };
9633
9634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9637 {
9638 PyThreadState* __tstate = wxPyBeginAllowThreads();
9639 result = ((wxFont const *)arg1)->GetWeightString();
9640
9641 wxPyEndAllowThreads(__tstate);
9642 if (PyErr_Occurred()) SWIG_fail;
9643 }
9644 {
9645 #if wxUSE_UNICODE
9646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9647 #else
9648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9649 #endif
9650 }
9651 return resultobj;
9652 fail:
9653 return NULL;
9654 }
9655
9656
9657 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
9658 PyObject *resultobj;
9659 wxFont *arg1 = (wxFont *) 0 ;
9660 bool arg2 = (bool) true ;
9661 PyObject * obj0 = 0 ;
9662 PyObject * obj1 = 0 ;
9663 char *kwnames[] = {
9664 (char *) "self",(char *) "no", NULL
9665 };
9666
9667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9670 if (obj1) {
9671 arg2 = (bool)SWIG_As_bool(obj1);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 {
9675 PyThreadState* __tstate = wxPyBeginAllowThreads();
9676 (arg1)->SetNoAntiAliasing(arg2);
9677
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 Py_INCREF(Py_None); resultobj = Py_None;
9682 return resultobj;
9683 fail:
9684 return NULL;
9685 }
9686
9687
9688 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj;
9690 wxFont *arg1 = (wxFont *) 0 ;
9691 bool result;
9692 PyObject * obj0 = 0 ;
9693 char *kwnames[] = {
9694 (char *) "self", NULL
9695 };
9696
9697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9700 {
9701 PyThreadState* __tstate = wxPyBeginAllowThreads();
9702 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
9703
9704 wxPyEndAllowThreads(__tstate);
9705 if (PyErr_Occurred()) SWIG_fail;
9706 }
9707 {
9708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9709 }
9710 return resultobj;
9711 fail:
9712 return NULL;
9713 }
9714
9715
9716 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj;
9718 int result;
9719 char *kwnames[] = {
9720 NULL
9721 };
9722
9723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9724 {
9725 if (!wxPyCheckForApp()) SWIG_fail;
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = (int)wxFont::GetDefaultEncoding();
9728
9729 wxPyEndAllowThreads(__tstate);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 resultobj = SWIG_From_int((int)result);
9733 return resultobj;
9734 fail:
9735 return NULL;
9736 }
9737
9738
9739 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9740 PyObject *resultobj;
9741 int arg1 ;
9742 PyObject * obj0 = 0 ;
9743 char *kwnames[] = {
9744 (char *) "encoding", NULL
9745 };
9746
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9748 arg1 = (int)SWIG_As_int(obj0);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 {
9751 if (!wxPyCheckForApp()) SWIG_fail;
9752 PyThreadState* __tstate = wxPyBeginAllowThreads();
9753 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9754
9755 wxPyEndAllowThreads(__tstate);
9756 if (PyErr_Occurred()) SWIG_fail;
9757 }
9758 Py_INCREF(Py_None); resultobj = Py_None;
9759 return resultobj;
9760 fail:
9761 return NULL;
9762 }
9763
9764
9765 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
9766 PyObject *obj;
9767 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9768 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9769 Py_INCREF(obj);
9770 return Py_BuildValue((char *)"");
9771 }
9772 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj;
9774 wxPyFontEnumerator *result;
9775 char *kwnames[] = {
9776 NULL
9777 };
9778
9779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9780 {
9781 if (!wxPyCheckForApp()) SWIG_fail;
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9784
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
9796 PyObject *resultobj;
9797 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9798 PyObject * obj0 = 0 ;
9799 char *kwnames[] = {
9800 (char *) "self", NULL
9801 };
9802
9803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9806 {
9807 PyThreadState* __tstate = wxPyBeginAllowThreads();
9808 delete arg1;
9809
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 Py_INCREF(Py_None); resultobj = Py_None;
9814 return resultobj;
9815 fail:
9816 return NULL;
9817 }
9818
9819
9820 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj;
9822 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9823 PyObject *arg2 = (PyObject *) 0 ;
9824 PyObject *arg3 = (PyObject *) 0 ;
9825 bool arg4 ;
9826 PyObject * obj0 = 0 ;
9827 PyObject * obj1 = 0 ;
9828 PyObject * obj2 = 0 ;
9829 PyObject * obj3 = 0 ;
9830 char *kwnames[] = {
9831 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9832 };
9833
9834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9837 arg2 = obj1;
9838 arg3 = obj2;
9839 arg4 = (bool)SWIG_As_bool(obj3);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 {
9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
9843 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9844
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
9848 Py_INCREF(Py_None); resultobj = Py_None;
9849 return resultobj;
9850 fail:
9851 return NULL;
9852 }
9853
9854
9855 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9856 PyObject *resultobj;
9857 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9858 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9859 bool arg3 = (bool) false ;
9860 bool result;
9861 PyObject * obj0 = 0 ;
9862 PyObject * obj1 = 0 ;
9863 PyObject * obj2 = 0 ;
9864 char *kwnames[] = {
9865 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9866 };
9867
9868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9871 if (obj1) {
9872 arg2 = (int)SWIG_As_int(obj1);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 if (obj2) {
9876 arg3 = (bool)SWIG_As_bool(obj2);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 {
9880 PyThreadState* __tstate = wxPyBeginAllowThreads();
9881 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9882
9883 wxPyEndAllowThreads(__tstate);
9884 if (PyErr_Occurred()) SWIG_fail;
9885 }
9886 {
9887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9888 }
9889 return resultobj;
9890 fail:
9891 return NULL;
9892 }
9893
9894
9895 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9896 PyObject *resultobj;
9897 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9898 wxString const &arg2_defvalue = wxPyEmptyString ;
9899 wxString *arg2 = (wxString *) &arg2_defvalue ;
9900 bool result;
9901 bool temp2 = false ;
9902 PyObject * obj0 = 0 ;
9903 PyObject * obj1 = 0 ;
9904 char *kwnames[] = {
9905 (char *) "self",(char *) "facename", NULL
9906 };
9907
9908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9911 if (obj1) {
9912 {
9913 arg2 = wxString_in_helper(obj1);
9914 if (arg2 == NULL) SWIG_fail;
9915 temp2 = true;
9916 }
9917 }
9918 {
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9921
9922 wxPyEndAllowThreads(__tstate);
9923 if (PyErr_Occurred()) SWIG_fail;
9924 }
9925 {
9926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9927 }
9928 {
9929 if (temp2)
9930 delete arg2;
9931 }
9932 return resultobj;
9933 fail:
9934 {
9935 if (temp2)
9936 delete arg2;
9937 }
9938 return NULL;
9939 }
9940
9941
9942 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
9943 PyObject *resultobj;
9944 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9945 PyObject *result;
9946 PyObject * obj0 = 0 ;
9947 char *kwnames[] = {
9948 (char *) "self", NULL
9949 };
9950
9951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9954 {
9955 PyThreadState* __tstate = wxPyBeginAllowThreads();
9956 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9957
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = result;
9962 return resultobj;
9963 fail:
9964 return NULL;
9965 }
9966
9967
9968 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj;
9970 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9971 PyObject *result;
9972 PyObject * obj0 = 0 ;
9973 char *kwnames[] = {
9974 (char *) "self", NULL
9975 };
9976
9977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 resultobj = result;
9988 return resultobj;
9989 fail:
9990 return NULL;
9991 }
9992
9993
9994 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
9995 PyObject *obj;
9996 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9997 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9998 Py_INCREF(obj);
9999 return Py_BuildValue((char *)"");
10000 }
10001 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj;
10003 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10004 int arg2 ;
10005 PyObject * obj0 = 0 ;
10006 PyObject * obj1 = 0 ;
10007 char *kwnames[] = {
10008 (char *) "self",(char *) "Language", NULL
10009 };
10010
10011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
10012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10014 arg2 = (int)SWIG_As_int(obj1);
10015 if (PyErr_Occurred()) SWIG_fail;
10016 if (arg1) (arg1)->Language = arg2;
10017
10018 Py_INCREF(Py_None); resultobj = Py_None;
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj;
10027 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10028 int result;
10029 PyObject * obj0 = 0 ;
10030 char *kwnames[] = {
10031 (char *) "self", NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10037 result = (int) ((arg1)->Language);
10038
10039 resultobj = SWIG_From_int((int)result);
10040 return resultobj;
10041 fail:
10042 return NULL;
10043 }
10044
10045
10046 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
10047 PyObject *resultobj;
10048 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10049 wxString *arg2 = (wxString *) 0 ;
10050 bool temp2 = false ;
10051 PyObject * obj0 = 0 ;
10052 PyObject * obj1 = 0 ;
10053 char *kwnames[] = {
10054 (char *) "self",(char *) "CanonicalName", NULL
10055 };
10056
10057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
10058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10060 {
10061 arg2 = wxString_in_helper(obj1);
10062 if (arg2 == NULL) SWIG_fail;
10063 temp2 = true;
10064 }
10065 if (arg1) (arg1)->CanonicalName = *arg2;
10066
10067 Py_INCREF(Py_None); resultobj = Py_None;
10068 {
10069 if (temp2)
10070 delete arg2;
10071 }
10072 return resultobj;
10073 fail:
10074 {
10075 if (temp2)
10076 delete arg2;
10077 }
10078 return NULL;
10079 }
10080
10081
10082 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10085 wxString *result;
10086 PyObject * obj0 = 0 ;
10087 char *kwnames[] = {
10088 (char *) "self", NULL
10089 };
10090
10091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
10092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10094 result = (wxString *)& ((arg1)->CanonicalName);
10095
10096 {
10097 #if wxUSE_UNICODE
10098 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10099 #else
10100 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10101 #endif
10102 }
10103 return resultobj;
10104 fail:
10105 return NULL;
10106 }
10107
10108
10109 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
10110 PyObject *resultobj;
10111 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10112 wxString *arg2 = (wxString *) 0 ;
10113 bool temp2 = false ;
10114 PyObject * obj0 = 0 ;
10115 PyObject * obj1 = 0 ;
10116 char *kwnames[] = {
10117 (char *) "self",(char *) "Description", NULL
10118 };
10119
10120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
10121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10123 {
10124 arg2 = wxString_in_helper(obj1);
10125 if (arg2 == NULL) SWIG_fail;
10126 temp2 = true;
10127 }
10128 if (arg1) (arg1)->Description = *arg2;
10129
10130 Py_INCREF(Py_None); resultobj = Py_None;
10131 {
10132 if (temp2)
10133 delete arg2;
10134 }
10135 return resultobj;
10136 fail:
10137 {
10138 if (temp2)
10139 delete arg2;
10140 }
10141 return NULL;
10142 }
10143
10144
10145 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
10146 PyObject *resultobj;
10147 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10148 wxString *result;
10149 PyObject * obj0 = 0 ;
10150 char *kwnames[] = {
10151 (char *) "self", NULL
10152 };
10153
10154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
10155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10157 result = (wxString *)& ((arg1)->Description);
10158
10159 {
10160 #if wxUSE_UNICODE
10161 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10162 #else
10163 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10164 #endif
10165 }
10166 return resultobj;
10167 fail:
10168 return NULL;
10169 }
10170
10171
10172 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
10173 PyObject *obj;
10174 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10175 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
10176 Py_INCREF(obj);
10177 return Py_BuildValue((char *)"");
10178 }
10179 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj;
10181 int arg1 = (int) -1 ;
10182 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
10183 wxLocale *result;
10184 PyObject * obj0 = 0 ;
10185 PyObject * obj1 = 0 ;
10186 char *kwnames[] = {
10187 (char *) "language",(char *) "flags", NULL
10188 };
10189
10190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
10191 if (obj0) {
10192 arg1 = (int)SWIG_As_int(obj0);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 if (obj1) {
10196 arg2 = (int)SWIG_As_int(obj1);
10197 if (PyErr_Occurred()) SWIG_fail;
10198 }
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 result = (wxLocale *)new_wxLocale(arg1,arg2);
10202
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj;
10215 wxLocale *arg1 = (wxLocale *) 0 ;
10216 PyObject * obj0 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
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_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj;
10240 wxLocale *arg1 = (wxLocale *) 0 ;
10241 wxString *arg2 = 0 ;
10242 wxString const &arg3_defvalue = wxPyEmptyString ;
10243 wxString *arg3 = (wxString *) &arg3_defvalue ;
10244 wxString const &arg4_defvalue = wxPyEmptyString ;
10245 wxString *arg4 = (wxString *) &arg4_defvalue ;
10246 bool arg5 = (bool) true ;
10247 bool arg6 = (bool) false ;
10248 bool result;
10249 bool temp2 = false ;
10250 bool temp3 = false ;
10251 bool temp4 = false ;
10252 PyObject * obj0 = 0 ;
10253 PyObject * obj1 = 0 ;
10254 PyObject * obj2 = 0 ;
10255 PyObject * obj3 = 0 ;
10256 PyObject * obj4 = 0 ;
10257 PyObject * obj5 = 0 ;
10258 char *kwnames[] = {
10259 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
10260 };
10261
10262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10265 {
10266 arg2 = wxString_in_helper(obj1);
10267 if (arg2 == NULL) SWIG_fail;
10268 temp2 = true;
10269 }
10270 if (obj2) {
10271 {
10272 arg3 = wxString_in_helper(obj2);
10273 if (arg3 == NULL) SWIG_fail;
10274 temp3 = true;
10275 }
10276 }
10277 if (obj3) {
10278 {
10279 arg4 = wxString_in_helper(obj3);
10280 if (arg4 == NULL) SWIG_fail;
10281 temp4 = true;
10282 }
10283 }
10284 if (obj4) {
10285 arg5 = (bool)SWIG_As_bool(obj4);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 if (obj5) {
10289 arg6 = (bool)SWIG_As_bool(obj5);
10290 if (PyErr_Occurred()) SWIG_fail;
10291 }
10292 {
10293 PyThreadState* __tstate = wxPyBeginAllowThreads();
10294 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
10295
10296 wxPyEndAllowThreads(__tstate);
10297 if (PyErr_Occurred()) SWIG_fail;
10298 }
10299 {
10300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10301 }
10302 {
10303 if (temp2)
10304 delete arg2;
10305 }
10306 {
10307 if (temp3)
10308 delete arg3;
10309 }
10310 {
10311 if (temp4)
10312 delete arg4;
10313 }
10314 return resultobj;
10315 fail:
10316 {
10317 if (temp2)
10318 delete arg2;
10319 }
10320 {
10321 if (temp3)
10322 delete arg3;
10323 }
10324 {
10325 if (temp4)
10326 delete arg4;
10327 }
10328 return NULL;
10329 }
10330
10331
10332 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
10333 PyObject *resultobj;
10334 wxLocale *arg1 = (wxLocale *) 0 ;
10335 int arg2 = (int) wxLANGUAGE_DEFAULT ;
10336 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
10337 bool result;
10338 PyObject * obj0 = 0 ;
10339 PyObject * obj1 = 0 ;
10340 PyObject * obj2 = 0 ;
10341 char *kwnames[] = {
10342 (char *) "self",(char *) "language",(char *) "flags", NULL
10343 };
10344
10345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
10346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10348 if (obj1) {
10349 arg2 = (int)SWIG_As_int(obj1);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 if (obj2) {
10353 arg3 = (int)SWIG_As_int(obj2);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 {
10357 PyThreadState* __tstate = wxPyBeginAllowThreads();
10358 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
10359
10360 wxPyEndAllowThreads(__tstate);
10361 if (PyErr_Occurred()) SWIG_fail;
10362 }
10363 {
10364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10365 }
10366 return resultobj;
10367 fail:
10368 return NULL;
10369 }
10370
10371
10372 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
10373 PyObject *resultobj;
10374 int result;
10375 char *kwnames[] = {
10376 NULL
10377 };
10378
10379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 result = (int)wxLocale::GetSystemLanguage();
10383
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 resultobj = SWIG_From_int((int)result);
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj;
10396 int result;
10397 char *kwnames[] = {
10398 NULL
10399 };
10400
10401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
10402 {
10403 PyThreadState* __tstate = wxPyBeginAllowThreads();
10404 result = (int)wxLocale::GetSystemEncoding();
10405
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_From_int((int)result);
10410 return resultobj;
10411 fail:
10412 return NULL;
10413 }
10414
10415
10416 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
10417 PyObject *resultobj;
10418 wxString result;
10419 char *kwnames[] = {
10420 NULL
10421 };
10422
10423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 result = wxLocale::GetSystemEncodingName();
10427
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 {
10432 #if wxUSE_UNICODE
10433 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10434 #else
10435 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10436 #endif
10437 }
10438 return resultobj;
10439 fail:
10440 return NULL;
10441 }
10442
10443
10444 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
10445 PyObject *resultobj;
10446 wxLocale *arg1 = (wxLocale *) 0 ;
10447 bool result;
10448 PyObject * obj0 = 0 ;
10449 char *kwnames[] = {
10450 (char *) "self", NULL
10451 };
10452
10453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
10454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 result = (bool)((wxLocale const *)arg1)->IsOk();
10459
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 {
10464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10465 }
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj;
10474 wxLocale *arg1 = (wxLocale *) 0 ;
10475 wxString result;
10476 PyObject * obj0 = 0 ;
10477 char *kwnames[] = {
10478 (char *) "self", NULL
10479 };
10480
10481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
10482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 result = ((wxLocale const *)arg1)->GetLocale();
10487
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 {
10492 #if wxUSE_UNICODE
10493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10494 #else
10495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10496 #endif
10497 }
10498 return resultobj;
10499 fail:
10500 return NULL;
10501 }
10502
10503
10504 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
10505 PyObject *resultobj;
10506 wxLocale *arg1 = (wxLocale *) 0 ;
10507 int result;
10508 PyObject * obj0 = 0 ;
10509 char *kwnames[] = {
10510 (char *) "self", NULL
10511 };
10512
10513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
10514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 result = (int)((wxLocale const *)arg1)->GetLanguage();
10519
10520 wxPyEndAllowThreads(__tstate);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 resultobj = SWIG_From_int((int)result);
10524 return resultobj;
10525 fail:
10526 return NULL;
10527 }
10528
10529
10530 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
10531 PyObject *resultobj;
10532 wxLocale *arg1 = (wxLocale *) 0 ;
10533 wxString result;
10534 PyObject * obj0 = 0 ;
10535 char *kwnames[] = {
10536 (char *) "self", NULL
10537 };
10538
10539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
10540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10542 {
10543 PyThreadState* __tstate = wxPyBeginAllowThreads();
10544 result = ((wxLocale const *)arg1)->GetSysName();
10545
10546 wxPyEndAllowThreads(__tstate);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 {
10550 #if wxUSE_UNICODE
10551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10552 #else
10553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10554 #endif
10555 }
10556 return resultobj;
10557 fail:
10558 return NULL;
10559 }
10560
10561
10562 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
10563 PyObject *resultobj;
10564 wxLocale *arg1 = (wxLocale *) 0 ;
10565 wxString result;
10566 PyObject * obj0 = 0 ;
10567 char *kwnames[] = {
10568 (char *) "self", NULL
10569 };
10570
10571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10574 {
10575 PyThreadState* __tstate = wxPyBeginAllowThreads();
10576 result = ((wxLocale const *)arg1)->GetCanonicalName();
10577
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 {
10582 #if wxUSE_UNICODE
10583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10584 #else
10585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10586 #endif
10587 }
10588 return resultobj;
10589 fail:
10590 return NULL;
10591 }
10592
10593
10594 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
10595 PyObject *resultobj;
10596 wxString *arg1 = 0 ;
10597 bool temp1 = false ;
10598 PyObject * obj0 = 0 ;
10599 char *kwnames[] = {
10600 (char *) "prefix", NULL
10601 };
10602
10603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10604 {
10605 arg1 = wxString_in_helper(obj0);
10606 if (arg1 == NULL) SWIG_fail;
10607 temp1 = true;
10608 }
10609 {
10610 PyThreadState* __tstate = wxPyBeginAllowThreads();
10611 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10612
10613 wxPyEndAllowThreads(__tstate);
10614 if (PyErr_Occurred()) SWIG_fail;
10615 }
10616 Py_INCREF(Py_None); resultobj = Py_None;
10617 {
10618 if (temp1)
10619 delete arg1;
10620 }
10621 return resultobj;
10622 fail:
10623 {
10624 if (temp1)
10625 delete arg1;
10626 }
10627 return NULL;
10628 }
10629
10630
10631 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
10632 PyObject *resultobj;
10633 wxLocale *arg1 = (wxLocale *) 0 ;
10634 wxString *arg2 = 0 ;
10635 bool result;
10636 bool temp2 = false ;
10637 PyObject * obj0 = 0 ;
10638 PyObject * obj1 = 0 ;
10639 char *kwnames[] = {
10640 (char *) "self",(char *) "szDomain", NULL
10641 };
10642
10643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10646 {
10647 arg2 = wxString_in_helper(obj1);
10648 if (arg2 == NULL) SWIG_fail;
10649 temp2 = true;
10650 }
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10654
10655 wxPyEndAllowThreads(__tstate);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 {
10659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10660 }
10661 {
10662 if (temp2)
10663 delete arg2;
10664 }
10665 return resultobj;
10666 fail:
10667 {
10668 if (temp2)
10669 delete arg2;
10670 }
10671 return NULL;
10672 }
10673
10674
10675 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
10676 PyObject *resultobj;
10677 wxLocale *arg1 = (wxLocale *) 0 ;
10678 wxString *arg2 = 0 ;
10679 bool result;
10680 bool temp2 = false ;
10681 PyObject * obj0 = 0 ;
10682 PyObject * obj1 = 0 ;
10683 char *kwnames[] = {
10684 (char *) "self",(char *) "szDomain", NULL
10685 };
10686
10687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10690 {
10691 arg2 = wxString_in_helper(obj1);
10692 if (arg2 == NULL) SWIG_fail;
10693 temp2 = true;
10694 }
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10698
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 {
10703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10704 }
10705 {
10706 if (temp2)
10707 delete arg2;
10708 }
10709 return resultobj;
10710 fail:
10711 {
10712 if (temp2)
10713 delete arg2;
10714 }
10715 return NULL;
10716 }
10717
10718
10719 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj;
10721 int arg1 ;
10722 wxLanguageInfo *result;
10723 PyObject * obj0 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "lang", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10729 arg1 = (int)SWIG_As_int(obj0);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
10733 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10734
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
10738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10739 return resultobj;
10740 fail:
10741 return NULL;
10742 }
10743
10744
10745 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj;
10747 int arg1 ;
10748 wxString result;
10749 PyObject * obj0 = 0 ;
10750 char *kwnames[] = {
10751 (char *) "lang", NULL
10752 };
10753
10754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10755 arg1 = (int)SWIG_As_int(obj0);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = wxLocale::GetLanguageName(arg1);
10760
10761 wxPyEndAllowThreads(__tstate);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 {
10765 #if wxUSE_UNICODE
10766 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10767 #else
10768 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10769 #endif
10770 }
10771 return resultobj;
10772 fail:
10773 return NULL;
10774 }
10775
10776
10777 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10778 PyObject *resultobj;
10779 wxString *arg1 = 0 ;
10780 wxLanguageInfo *result;
10781 bool temp1 = false ;
10782 PyObject * obj0 = 0 ;
10783 char *kwnames[] = {
10784 (char *) "locale", NULL
10785 };
10786
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10788 {
10789 arg1 = wxString_in_helper(obj0);
10790 if (arg1 == NULL) SWIG_fail;
10791 temp1 = true;
10792 }
10793 {
10794 PyThreadState* __tstate = wxPyBeginAllowThreads();
10795 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10796
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10801 {
10802 if (temp1)
10803 delete arg1;
10804 }
10805 return resultobj;
10806 fail:
10807 {
10808 if (temp1)
10809 delete arg1;
10810 }
10811 return NULL;
10812 }
10813
10814
10815 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
10816 PyObject *resultobj;
10817 wxLanguageInfo *arg1 = 0 ;
10818 PyObject * obj0 = 0 ;
10819 char *kwnames[] = {
10820 (char *) "info", NULL
10821 };
10822
10823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10825 SWIG_POINTER_EXCEPTION | 0)) == -1)
10826 SWIG_fail;
10827 if (arg1 == NULL) {
10828 PyErr_SetString(PyExc_TypeError,"null reference");
10829 SWIG_fail;
10830 }
10831 {
10832 PyThreadState* __tstate = wxPyBeginAllowThreads();
10833 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10834
10835 wxPyEndAllowThreads(__tstate);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
10838 Py_INCREF(Py_None); resultobj = Py_None;
10839 return resultobj;
10840 fail:
10841 return NULL;
10842 }
10843
10844
10845 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj;
10847 wxLocale *arg1 = (wxLocale *) 0 ;
10848 wxString *arg2 = 0 ;
10849 wxString const &arg3_defvalue = wxPyEmptyString ;
10850 wxString *arg3 = (wxString *) &arg3_defvalue ;
10851 wxString result;
10852 bool temp2 = false ;
10853 bool temp3 = false ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 PyObject * obj2 = 0 ;
10857 char *kwnames[] = {
10858 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10859 };
10860
10861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10864 {
10865 arg2 = wxString_in_helper(obj1);
10866 if (arg2 == NULL) SWIG_fail;
10867 temp2 = true;
10868 }
10869 if (obj2) {
10870 {
10871 arg3 = wxString_in_helper(obj2);
10872 if (arg3 == NULL) SWIG_fail;
10873 temp3 = true;
10874 }
10875 }
10876 {
10877 PyThreadState* __tstate = wxPyBeginAllowThreads();
10878 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10879
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 {
10884 #if wxUSE_UNICODE
10885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10886 #else
10887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10888 #endif
10889 }
10890 {
10891 if (temp2)
10892 delete arg2;
10893 }
10894 {
10895 if (temp3)
10896 delete arg3;
10897 }
10898 return resultobj;
10899 fail:
10900 {
10901 if (temp2)
10902 delete arg2;
10903 }
10904 {
10905 if (temp3)
10906 delete arg3;
10907 }
10908 return NULL;
10909 }
10910
10911
10912 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
10913 PyObject *resultobj;
10914 wxLocale *arg1 = (wxLocale *) 0 ;
10915 wxString *result;
10916 PyObject * obj0 = 0 ;
10917 char *kwnames[] = {
10918 (char *) "self", NULL
10919 };
10920
10921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10924 {
10925 PyThreadState* __tstate = wxPyBeginAllowThreads();
10926 {
10927 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10928 result = (wxString *) &_result_ref;
10929 }
10930
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 {
10935 #if wxUSE_UNICODE
10936 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10937 #else
10938 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10939 #endif
10940 }
10941 return resultobj;
10942 fail:
10943 return NULL;
10944 }
10945
10946
10947 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
10948 PyObject *obj;
10949 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10950 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10951 Py_INCREF(obj);
10952 return Py_BuildValue((char *)"");
10953 }
10954 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
10955 PyObject *resultobj;
10956 wxLocale *result;
10957 char *kwnames[] = {
10958 NULL
10959 };
10960
10961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10962 {
10963 PyThreadState* __tstate = wxPyBeginAllowThreads();
10964 result = (wxLocale *)wxGetLocale();
10965
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10970 return resultobj;
10971 fail:
10972 return NULL;
10973 }
10974
10975
10976 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
10977 PyObject *resultobj;
10978 wxString *arg1 = 0 ;
10979 wxString result;
10980 bool temp1 = false ;
10981 PyObject * obj0 = 0 ;
10982
10983 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10984 {
10985 arg1 = wxString_in_helper(obj0);
10986 if (arg1 == NULL) SWIG_fail;
10987 temp1 = true;
10988 }
10989 {
10990 PyThreadState* __tstate = wxPyBeginAllowThreads();
10991 result = wxGetTranslation((wxString const &)*arg1);
10992
10993 wxPyEndAllowThreads(__tstate);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 {
10997 #if wxUSE_UNICODE
10998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10999 #else
11000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11001 #endif
11002 }
11003 {
11004 if (temp1)
11005 delete arg1;
11006 }
11007 return resultobj;
11008 fail:
11009 {
11010 if (temp1)
11011 delete arg1;
11012 }
11013 return NULL;
11014 }
11015
11016
11017 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
11018 PyObject *resultobj;
11019 wxString *arg1 = 0 ;
11020 wxString *arg2 = 0 ;
11021 size_t arg3 ;
11022 wxString result;
11023 bool temp1 = false ;
11024 bool temp2 = false ;
11025 PyObject * obj0 = 0 ;
11026 PyObject * obj1 = 0 ;
11027 PyObject * obj2 = 0 ;
11028
11029 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
11030 {
11031 arg1 = wxString_in_helper(obj0);
11032 if (arg1 == NULL) SWIG_fail;
11033 temp1 = true;
11034 }
11035 {
11036 arg2 = wxString_in_helper(obj1);
11037 if (arg2 == NULL) SWIG_fail;
11038 temp2 = true;
11039 }
11040 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 {
11043 PyThreadState* __tstate = wxPyBeginAllowThreads();
11044 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
11045
11046 wxPyEndAllowThreads(__tstate);
11047 if (PyErr_Occurred()) SWIG_fail;
11048 }
11049 {
11050 #if wxUSE_UNICODE
11051 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11052 #else
11053 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11054 #endif
11055 }
11056 {
11057 if (temp1)
11058 delete arg1;
11059 }
11060 {
11061 if (temp2)
11062 delete arg2;
11063 }
11064 return resultobj;
11065 fail:
11066 {
11067 if (temp1)
11068 delete arg1;
11069 }
11070 {
11071 if (temp2)
11072 delete arg2;
11073 }
11074 return NULL;
11075 }
11076
11077
11078 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
11079 int argc;
11080 PyObject *argv[4];
11081 int ii;
11082
11083 argc = PyObject_Length(args);
11084 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11085 argv[ii] = PyTuple_GetItem(args,ii);
11086 }
11087 if (argc == 1) {
11088 int _v;
11089 {
11090 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11091 }
11092 if (_v) {
11093 return _wrap_GetTranslation__SWIG_0(self,args);
11094 }
11095 }
11096 if (argc == 3) {
11097 int _v;
11098 {
11099 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11100 }
11101 if (_v) {
11102 {
11103 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11104 }
11105 if (_v) {
11106 _v = SWIG_Check_unsigned_SS_long(argv[2]);
11107 if (_v) {
11108 return _wrap_GetTranslation__SWIG_1(self,args);
11109 }
11110 }
11111 }
11112 }
11113
11114 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
11115 return NULL;
11116 }
11117
11118
11119 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
11120 PyObject *resultobj;
11121 wxEncodingConverter *result;
11122 char *kwnames[] = {
11123 NULL
11124 };
11125
11126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 result = (wxEncodingConverter *)new wxEncodingConverter();
11130
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
11135 return resultobj;
11136 fail:
11137 return NULL;
11138 }
11139
11140
11141 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
11142 PyObject *resultobj;
11143 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
11144 PyObject * obj0 = 0 ;
11145 char *kwnames[] = {
11146 (char *) "self", NULL
11147 };
11148
11149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
11150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
11151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11152 {
11153 PyThreadState* __tstate = wxPyBeginAllowThreads();
11154 delete arg1;
11155
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 Py_INCREF(Py_None); resultobj = Py_None;
11160 return resultobj;
11161 fail:
11162 return NULL;
11163 }
11164
11165
11166 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
11167 PyObject *resultobj;
11168 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
11169 int arg2 ;
11170 int arg3 ;
11171 int arg4 = (int) wxCONVERT_STRICT ;
11172 bool result;
11173 PyObject * obj0 = 0 ;
11174 PyObject * obj1 = 0 ;
11175 PyObject * obj2 = 0 ;
11176 PyObject * obj3 = 0 ;
11177 char *kwnames[] = {
11178 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
11179 };
11180
11181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
11183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11184 arg2 = (int)SWIG_As_int(obj1);
11185 if (PyErr_Occurred()) SWIG_fail;
11186 arg3 = (int)SWIG_As_int(obj2);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 if (obj3) {
11189 arg4 = (int)SWIG_As_int(obj3);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 }
11192 {
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
11195
11196 wxPyEndAllowThreads(__tstate);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 {
11200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11201 }
11202 return resultobj;
11203 fail:
11204 return NULL;
11205 }
11206
11207
11208 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
11209 PyObject *resultobj;
11210 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
11211 wxString *arg2 = 0 ;
11212 wxString result;
11213 bool temp2 = false ;
11214 PyObject * obj0 = 0 ;
11215 PyObject * obj1 = 0 ;
11216 char *kwnames[] = {
11217 (char *) "self",(char *) "input", NULL
11218 };
11219
11220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
11221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
11222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11223 {
11224 arg2 = wxString_in_helper(obj1);
11225 if (arg2 == NULL) SWIG_fail;
11226 temp2 = true;
11227 }
11228 {
11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
11230 result = (arg1)->Convert((wxString const &)*arg2);
11231
11232 wxPyEndAllowThreads(__tstate);
11233 if (PyErr_Occurred()) SWIG_fail;
11234 }
11235 {
11236 #if wxUSE_UNICODE
11237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11238 #else
11239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11240 #endif
11241 }
11242 {
11243 if (temp2)
11244 delete arg2;
11245 }
11246 return resultobj;
11247 fail:
11248 {
11249 if (temp2)
11250 delete arg2;
11251 }
11252 return NULL;
11253 }
11254
11255
11256 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj;
11258 int arg1 ;
11259 int arg2 = (int) wxPLATFORM_CURRENT ;
11260 wxFontEncodingArray result;
11261 PyObject * obj0 = 0 ;
11262 PyObject * obj1 = 0 ;
11263 char *kwnames[] = {
11264 (char *) "enc",(char *) "platform", NULL
11265 };
11266
11267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
11268 arg1 = (int)SWIG_As_int(obj0);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 if (obj1) {
11271 arg2 = (int)SWIG_As_int(obj1);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 }
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
11277
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 {
11282 resultobj = PyList_New(0);
11283 for (size_t i=0; i < (&result)->GetCount(); i++) {
11284 PyObject* number = PyInt_FromLong((&result)->Item(i));
11285 PyList_Append(resultobj, number);
11286 Py_DECREF(number);
11287 }
11288 }
11289 return resultobj;
11290 fail:
11291 return NULL;
11292 }
11293
11294
11295 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
11296 PyObject *resultobj;
11297 int arg1 ;
11298 wxFontEncodingArray result;
11299 PyObject * obj0 = 0 ;
11300 char *kwnames[] = {
11301 (char *) "enc", NULL
11302 };
11303
11304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
11305 arg1 = (int)SWIG_As_int(obj0);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 {
11308 PyThreadState* __tstate = wxPyBeginAllowThreads();
11309 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
11310
11311 wxPyEndAllowThreads(__tstate);
11312 if (PyErr_Occurred()) SWIG_fail;
11313 }
11314 {
11315 resultobj = PyList_New(0);
11316 for (size_t i=0; i < (&result)->GetCount(); i++) {
11317 PyObject* number = PyInt_FromLong((&result)->Item(i));
11318 PyList_Append(resultobj, number);
11319 Py_DECREF(number);
11320 }
11321 }
11322 return resultobj;
11323 fail:
11324 return NULL;
11325 }
11326
11327
11328 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
11329 PyObject *resultobj;
11330 int arg1 ;
11331 int arg2 ;
11332 bool result;
11333 PyObject * obj0 = 0 ;
11334 PyObject * obj1 = 0 ;
11335 char *kwnames[] = {
11336 (char *) "encIn",(char *) "encOut", NULL
11337 };
11338
11339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
11340 arg1 = (int)SWIG_As_int(obj0);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 arg2 = (int)SWIG_As_int(obj1);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 {
11345 PyThreadState* __tstate = wxPyBeginAllowThreads();
11346 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
11347
11348 wxPyEndAllowThreads(__tstate);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 }
11351 {
11352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11353 }
11354 return resultobj;
11355 fail:
11356 return NULL;
11357 }
11358
11359
11360 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
11361 PyObject *obj;
11362 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11363 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
11364 Py_INCREF(obj);
11365 return Py_BuildValue((char *)"");
11366 }
11367 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
11368 PyObject *resultobj;
11369 wxDC *arg1 = (wxDC *) 0 ;
11370 PyObject * obj0 = 0 ;
11371 char *kwnames[] = {
11372 (char *) "self", NULL
11373 };
11374
11375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
11376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11378 {
11379 PyThreadState* __tstate = wxPyBeginAllowThreads();
11380 delete arg1;
11381
11382 wxPyEndAllowThreads(__tstate);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 Py_INCREF(Py_None); resultobj = Py_None;
11386 return resultobj;
11387 fail:
11388 return NULL;
11389 }
11390
11391
11392 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
11393 PyObject *resultobj;
11394 wxDC *arg1 = (wxDC *) 0 ;
11395 PyObject * obj0 = 0 ;
11396 char *kwnames[] = {
11397 (char *) "self", NULL
11398 };
11399
11400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
11401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11403 {
11404 PyThreadState* __tstate = wxPyBeginAllowThreads();
11405 (arg1)->BeginDrawing();
11406
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 Py_INCREF(Py_None); resultobj = Py_None;
11411 return resultobj;
11412 fail:
11413 return NULL;
11414 }
11415
11416
11417 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
11418 PyObject *resultobj;
11419 wxDC *arg1 = (wxDC *) 0 ;
11420 PyObject * obj0 = 0 ;
11421 char *kwnames[] = {
11422 (char *) "self", NULL
11423 };
11424
11425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
11426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11428 {
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
11430 (arg1)->EndDrawing();
11431
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 Py_INCREF(Py_None); resultobj = Py_None;
11436 return resultobj;
11437 fail:
11438 return NULL;
11439 }
11440
11441
11442 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
11443 PyObject *resultobj;
11444 wxDC *arg1 = (wxDC *) 0 ;
11445 int arg2 ;
11446 int arg3 ;
11447 wxColour *arg4 = 0 ;
11448 int arg5 = (int) wxFLOOD_SURFACE ;
11449 bool result;
11450 wxColour temp4 ;
11451 PyObject * obj0 = 0 ;
11452 PyObject * obj1 = 0 ;
11453 PyObject * obj2 = 0 ;
11454 PyObject * obj3 = 0 ;
11455 PyObject * obj4 = 0 ;
11456 char *kwnames[] = {
11457 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
11458 };
11459
11460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11463 arg2 = (int)SWIG_As_int(obj1);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 arg3 = (int)SWIG_As_int(obj2);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 {
11468 arg4 = &temp4;
11469 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11470 }
11471 if (obj4) {
11472 arg5 = (int)SWIG_As_int(obj4);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
11478
11479 wxPyEndAllowThreads(__tstate);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 }
11482 {
11483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11484 }
11485 return resultobj;
11486 fail:
11487 return NULL;
11488 }
11489
11490
11491 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11492 PyObject *resultobj;
11493 wxDC *arg1 = (wxDC *) 0 ;
11494 wxPoint *arg2 = 0 ;
11495 wxColour *arg3 = 0 ;
11496 int arg4 = (int) wxFLOOD_SURFACE ;
11497 bool result;
11498 wxPoint temp2 ;
11499 wxColour temp3 ;
11500 PyObject * obj0 = 0 ;
11501 PyObject * obj1 = 0 ;
11502 PyObject * obj2 = 0 ;
11503 PyObject * obj3 = 0 ;
11504 char *kwnames[] = {
11505 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
11506 };
11507
11508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11511 {
11512 arg2 = &temp2;
11513 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11514 }
11515 {
11516 arg3 = &temp3;
11517 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11518 }
11519 if (obj3) {
11520 arg4 = (int)SWIG_As_int(obj3);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 {
11524 PyThreadState* __tstate = wxPyBeginAllowThreads();
11525 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
11526
11527 wxPyEndAllowThreads(__tstate);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
11530 {
11531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11532 }
11533 return resultobj;
11534 fail:
11535 return NULL;
11536 }
11537
11538
11539 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
11540 PyObject *resultobj;
11541 wxDC *arg1 = (wxDC *) 0 ;
11542 int arg2 ;
11543 int arg3 ;
11544 wxColour result;
11545 PyObject * obj0 = 0 ;
11546 PyObject * obj1 = 0 ;
11547 PyObject * obj2 = 0 ;
11548 char *kwnames[] = {
11549 (char *) "self",(char *) "x",(char *) "y", NULL
11550 };
11551
11552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
11553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11555 arg2 = (int)SWIG_As_int(obj1);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 arg3 = (int)SWIG_As_int(obj2);
11558 if (PyErr_Occurred()) SWIG_fail;
11559 {
11560 PyThreadState* __tstate = wxPyBeginAllowThreads();
11561 result = wxDC_GetPixel(arg1,arg2,arg3);
11562
11563 wxPyEndAllowThreads(__tstate);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 {
11567 wxColour * resultptr;
11568 resultptr = new wxColour((wxColour &) result);
11569 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11570 }
11571 return resultobj;
11572 fail:
11573 return NULL;
11574 }
11575
11576
11577 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11578 PyObject *resultobj;
11579 wxDC *arg1 = (wxDC *) 0 ;
11580 wxPoint *arg2 = 0 ;
11581 wxColour result;
11582 wxPoint temp2 ;
11583 PyObject * obj0 = 0 ;
11584 PyObject * obj1 = 0 ;
11585 char *kwnames[] = {
11586 (char *) "self",(char *) "pt", NULL
11587 };
11588
11589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
11590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11592 {
11593 arg2 = &temp2;
11594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11595 }
11596 {
11597 PyThreadState* __tstate = wxPyBeginAllowThreads();
11598 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
11599
11600 wxPyEndAllowThreads(__tstate);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 {
11604 wxColour * resultptr;
11605 resultptr = new wxColour((wxColour &) result);
11606 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11607 }
11608 return resultobj;
11609 fail:
11610 return NULL;
11611 }
11612
11613
11614 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj;
11616 wxDC *arg1 = (wxDC *) 0 ;
11617 int arg2 ;
11618 int arg3 ;
11619 int arg4 ;
11620 int arg5 ;
11621 PyObject * obj0 = 0 ;
11622 PyObject * obj1 = 0 ;
11623 PyObject * obj2 = 0 ;
11624 PyObject * obj3 = 0 ;
11625 PyObject * obj4 = 0 ;
11626 char *kwnames[] = {
11627 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11628 };
11629
11630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11633 arg2 = (int)SWIG_As_int(obj1);
11634 if (PyErr_Occurred()) SWIG_fail;
11635 arg3 = (int)SWIG_As_int(obj2);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 arg4 = (int)SWIG_As_int(obj3);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 arg5 = (int)SWIG_As_int(obj4);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 {
11642 PyThreadState* __tstate = wxPyBeginAllowThreads();
11643 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11644
11645 wxPyEndAllowThreads(__tstate);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 }
11648 Py_INCREF(Py_None); resultobj = Py_None;
11649 return resultobj;
11650 fail:
11651 return NULL;
11652 }
11653
11654
11655 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
11656 PyObject *resultobj;
11657 wxDC *arg1 = (wxDC *) 0 ;
11658 wxPoint *arg2 = 0 ;
11659 wxPoint *arg3 = 0 ;
11660 wxPoint temp2 ;
11661 wxPoint temp3 ;
11662 PyObject * obj0 = 0 ;
11663 PyObject * obj1 = 0 ;
11664 PyObject * obj2 = 0 ;
11665 char *kwnames[] = {
11666 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11667 };
11668
11669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11672 {
11673 arg2 = &temp2;
11674 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11675 }
11676 {
11677 arg3 = &temp3;
11678 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11679 }
11680 {
11681 PyThreadState* __tstate = wxPyBeginAllowThreads();
11682 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11683
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 Py_INCREF(Py_None); resultobj = Py_None;
11688 return resultobj;
11689 fail:
11690 return NULL;
11691 }
11692
11693
11694 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
11695 PyObject *resultobj;
11696 wxDC *arg1 = (wxDC *) 0 ;
11697 int arg2 ;
11698 int arg3 ;
11699 PyObject * obj0 = 0 ;
11700 PyObject * obj1 = 0 ;
11701 PyObject * obj2 = 0 ;
11702 char *kwnames[] = {
11703 (char *) "self",(char *) "x",(char *) "y", NULL
11704 };
11705
11706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
11707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11709 arg2 = (int)SWIG_As_int(obj1);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 arg3 = (int)SWIG_As_int(obj2);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 {
11714 PyThreadState* __tstate = wxPyBeginAllowThreads();
11715 (arg1)->CrossHair(arg2,arg3);
11716
11717 wxPyEndAllowThreads(__tstate);
11718 if (PyErr_Occurred()) SWIG_fail;
11719 }
11720 Py_INCREF(Py_None); resultobj = Py_None;
11721 return resultobj;
11722 fail:
11723 return NULL;
11724 }
11725
11726
11727 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11728 PyObject *resultobj;
11729 wxDC *arg1 = (wxDC *) 0 ;
11730 wxPoint *arg2 = 0 ;
11731 wxPoint temp2 ;
11732 PyObject * obj0 = 0 ;
11733 PyObject * obj1 = 0 ;
11734 char *kwnames[] = {
11735 (char *) "self",(char *) "pt", NULL
11736 };
11737
11738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
11739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11741 {
11742 arg2 = &temp2;
11743 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11744 }
11745 {
11746 PyThreadState* __tstate = wxPyBeginAllowThreads();
11747 (arg1)->CrossHair((wxPoint const &)*arg2);
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_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
11760 PyObject *resultobj;
11761 wxDC *arg1 = (wxDC *) 0 ;
11762 int arg2 ;
11763 int arg3 ;
11764 int arg4 ;
11765 int arg5 ;
11766 int arg6 ;
11767 int arg7 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 PyObject * obj2 = 0 ;
11771 PyObject * obj3 = 0 ;
11772 PyObject * obj4 = 0 ;
11773 PyObject * obj5 = 0 ;
11774 PyObject * obj6 = 0 ;
11775 char *kwnames[] = {
11776 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11777 };
11778
11779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11782 arg2 = (int)SWIG_As_int(obj1);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 arg3 = (int)SWIG_As_int(obj2);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 arg4 = (int)SWIG_As_int(obj3);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 arg5 = (int)SWIG_As_int(obj4);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 arg6 = (int)SWIG_As_int(obj5);
11791 if (PyErr_Occurred()) SWIG_fail;
11792 arg7 = (int)SWIG_As_int(obj6);
11793 if (PyErr_Occurred()) SWIG_fail;
11794 {
11795 PyThreadState* __tstate = wxPyBeginAllowThreads();
11796 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11797
11798 wxPyEndAllowThreads(__tstate);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 Py_INCREF(Py_None); resultobj = Py_None;
11802 return resultobj;
11803 fail:
11804 return NULL;
11805 }
11806
11807
11808 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11809 PyObject *resultobj;
11810 wxDC *arg1 = (wxDC *) 0 ;
11811 wxPoint *arg2 = 0 ;
11812 wxPoint *arg3 = 0 ;
11813 wxPoint *arg4 = 0 ;
11814 wxPoint temp2 ;
11815 wxPoint temp3 ;
11816 wxPoint temp4 ;
11817 PyObject * obj0 = 0 ;
11818 PyObject * obj1 = 0 ;
11819 PyObject * obj2 = 0 ;
11820 PyObject * obj3 = 0 ;
11821 char *kwnames[] = {
11822 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
11823 };
11824
11825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11828 {
11829 arg2 = &temp2;
11830 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11831 }
11832 {
11833 arg3 = &temp3;
11834 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11835 }
11836 {
11837 arg4 = &temp4;
11838 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11839 }
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11843
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 Py_INCREF(Py_None); resultobj = Py_None;
11848 return resultobj;
11849 fail:
11850 return NULL;
11851 }
11852
11853
11854 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
11855 PyObject *resultobj;
11856 wxDC *arg1 = (wxDC *) 0 ;
11857 int arg2 ;
11858 int arg3 ;
11859 int arg4 ;
11860 int arg5 ;
11861 PyObject * obj0 = 0 ;
11862 PyObject * obj1 = 0 ;
11863 PyObject * obj2 = 0 ;
11864 PyObject * obj3 = 0 ;
11865 PyObject * obj4 = 0 ;
11866 char *kwnames[] = {
11867 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11868 };
11869
11870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11873 arg2 = (int)SWIG_As_int(obj1);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 arg3 = (int)SWIG_As_int(obj2);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 arg4 = (int)SWIG_As_int(obj3);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 arg5 = (int)SWIG_As_int(obj4);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 {
11882 PyThreadState* __tstate = wxPyBeginAllowThreads();
11883 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11884
11885 wxPyEndAllowThreads(__tstate);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 Py_INCREF(Py_None); resultobj = Py_None;
11889 return resultobj;
11890 fail:
11891 return NULL;
11892 }
11893
11894
11895 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
11896 PyObject *resultobj;
11897 wxDC *arg1 = (wxDC *) 0 ;
11898 wxRect *arg2 = 0 ;
11899 wxRect temp2 ;
11900 PyObject * obj0 = 0 ;
11901 PyObject * obj1 = 0 ;
11902 char *kwnames[] = {
11903 (char *) "self",(char *) "rect", NULL
11904 };
11905
11906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11909 {
11910 arg2 = &temp2;
11911 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11912 }
11913 {
11914 PyThreadState* __tstate = wxPyBeginAllowThreads();
11915 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11916
11917 wxPyEndAllowThreads(__tstate);
11918 if (PyErr_Occurred()) SWIG_fail;
11919 }
11920 Py_INCREF(Py_None); resultobj = Py_None;
11921 return resultobj;
11922 fail:
11923 return NULL;
11924 }
11925
11926
11927 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
11928 PyObject *resultobj;
11929 wxDC *arg1 = (wxDC *) 0 ;
11930 int arg2 ;
11931 int arg3 ;
11932 int arg4 ;
11933 int arg5 ;
11934 double arg6 ;
11935 double arg7 ;
11936 PyObject * obj0 = 0 ;
11937 PyObject * obj1 = 0 ;
11938 PyObject * obj2 = 0 ;
11939 PyObject * obj3 = 0 ;
11940 PyObject * obj4 = 0 ;
11941 PyObject * obj5 = 0 ;
11942 PyObject * obj6 = 0 ;
11943 char *kwnames[] = {
11944 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
11945 };
11946
11947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11950 arg2 = (int)SWIG_As_int(obj1);
11951 if (PyErr_Occurred()) SWIG_fail;
11952 arg3 = (int)SWIG_As_int(obj2);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 arg4 = (int)SWIG_As_int(obj3);
11955 if (PyErr_Occurred()) SWIG_fail;
11956 arg5 = (int)SWIG_As_int(obj4);
11957 if (PyErr_Occurred()) SWIG_fail;
11958 arg6 = (double)SWIG_As_double(obj5);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 arg7 = (double)SWIG_As_double(obj6);
11961 if (PyErr_Occurred()) SWIG_fail;
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11965
11966 wxPyEndAllowThreads(__tstate);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 }
11969 Py_INCREF(Py_None); resultobj = Py_None;
11970 return resultobj;
11971 fail:
11972 return NULL;
11973 }
11974
11975
11976 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
11977 PyObject *resultobj;
11978 wxDC *arg1 = (wxDC *) 0 ;
11979 wxPoint *arg2 = 0 ;
11980 wxSize *arg3 = 0 ;
11981 double arg4 ;
11982 double arg5 ;
11983 wxPoint temp2 ;
11984 wxSize temp3 ;
11985 PyObject * obj0 = 0 ;
11986 PyObject * obj1 = 0 ;
11987 PyObject * obj2 = 0 ;
11988 PyObject * obj3 = 0 ;
11989 PyObject * obj4 = 0 ;
11990 char *kwnames[] = {
11991 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
11992 };
11993
11994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11997 {
11998 arg2 = &temp2;
11999 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12000 }
12001 {
12002 arg3 = &temp3;
12003 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12004 }
12005 arg4 = (double)SWIG_As_double(obj3);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 arg5 = (double)SWIG_As_double(obj4);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 Py_INCREF(Py_None); resultobj = Py_None;
12017 return resultobj;
12018 fail:
12019 return NULL;
12020 }
12021
12022
12023 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12024 PyObject *resultobj;
12025 wxDC *arg1 = (wxDC *) 0 ;
12026 int arg2 ;
12027 int arg3 ;
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
12030 PyObject * obj2 = 0 ;
12031 char *kwnames[] = {
12032 (char *) "self",(char *) "x",(char *) "y", NULL
12033 };
12034
12035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12038 arg2 = (int)SWIG_As_int(obj1);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 arg3 = (int)SWIG_As_int(obj2);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 {
12043 PyThreadState* __tstate = wxPyBeginAllowThreads();
12044 (arg1)->DrawPoint(arg2,arg3);
12045
12046 wxPyEndAllowThreads(__tstate);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 Py_INCREF(Py_None); resultobj = Py_None;
12050 return resultobj;
12051 fail:
12052 return NULL;
12053 }
12054
12055
12056 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12057 PyObject *resultobj;
12058 wxDC *arg1 = (wxDC *) 0 ;
12059 wxPoint *arg2 = 0 ;
12060 wxPoint temp2 ;
12061 PyObject * obj0 = 0 ;
12062 PyObject * obj1 = 0 ;
12063 char *kwnames[] = {
12064 (char *) "self",(char *) "pt", NULL
12065 };
12066
12067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
12068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12070 {
12071 arg2 = &temp2;
12072 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12073 }
12074 {
12075 PyThreadState* __tstate = wxPyBeginAllowThreads();
12076 (arg1)->DrawPoint((wxPoint const &)*arg2);
12077
12078 wxPyEndAllowThreads(__tstate);
12079 if (PyErr_Occurred()) SWIG_fail;
12080 }
12081 Py_INCREF(Py_None); resultobj = Py_None;
12082 return resultobj;
12083 fail:
12084 return NULL;
12085 }
12086
12087
12088 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
12089 PyObject *resultobj;
12090 wxDC *arg1 = (wxDC *) 0 ;
12091 int arg2 ;
12092 int arg3 ;
12093 int arg4 ;
12094 int arg5 ;
12095 PyObject * obj0 = 0 ;
12096 PyObject * obj1 = 0 ;
12097 PyObject * obj2 = 0 ;
12098 PyObject * obj3 = 0 ;
12099 PyObject * obj4 = 0 ;
12100 char *kwnames[] = {
12101 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12102 };
12103
12104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12107 arg2 = (int)SWIG_As_int(obj1);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 arg3 = (int)SWIG_As_int(obj2);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 arg4 = (int)SWIG_As_int(obj3);
12112 if (PyErr_Occurred()) SWIG_fail;
12113 arg5 = (int)SWIG_As_int(obj4);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 {
12116 PyThreadState* __tstate = wxPyBeginAllowThreads();
12117 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
12118
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 Py_INCREF(Py_None); resultobj = Py_None;
12123 return resultobj;
12124 fail:
12125 return NULL;
12126 }
12127
12128
12129 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj;
12131 wxDC *arg1 = (wxDC *) 0 ;
12132 wxRect *arg2 = 0 ;
12133 wxRect temp2 ;
12134 PyObject * obj0 = 0 ;
12135 PyObject * obj1 = 0 ;
12136 char *kwnames[] = {
12137 (char *) "self",(char *) "rect", NULL
12138 };
12139
12140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
12141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12143 {
12144 arg2 = &temp2;
12145 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12146 }
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 (arg1)->DrawRectangle((wxRect const &)*arg2);
12150
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 Py_INCREF(Py_None); resultobj = Py_None;
12155 return resultobj;
12156 fail:
12157 return NULL;
12158 }
12159
12160
12161 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12162 PyObject *resultobj;
12163 wxDC *arg1 = (wxDC *) 0 ;
12164 wxPoint *arg2 = 0 ;
12165 wxSize *arg3 = 0 ;
12166 wxPoint temp2 ;
12167 wxSize temp3 ;
12168 PyObject * obj0 = 0 ;
12169 PyObject * obj1 = 0 ;
12170 PyObject * obj2 = 0 ;
12171 char *kwnames[] = {
12172 (char *) "self",(char *) "pt",(char *) "sz", NULL
12173 };
12174
12175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12178 {
12179 arg2 = &temp2;
12180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12181 }
12182 {
12183 arg3 = &temp3;
12184 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12185 }
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 Py_INCREF(Py_None); resultobj = Py_None;
12194 return resultobj;
12195 fail:
12196 return NULL;
12197 }
12198
12199
12200 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj;
12202 wxDC *arg1 = (wxDC *) 0 ;
12203 int arg2 ;
12204 int arg3 ;
12205 int arg4 ;
12206 int arg5 ;
12207 double arg6 ;
12208 PyObject * obj0 = 0 ;
12209 PyObject * obj1 = 0 ;
12210 PyObject * obj2 = 0 ;
12211 PyObject * obj3 = 0 ;
12212 PyObject * obj4 = 0 ;
12213 PyObject * obj5 = 0 ;
12214 char *kwnames[] = {
12215 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
12216 };
12217
12218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12221 arg2 = (int)SWIG_As_int(obj1);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 arg3 = (int)SWIG_As_int(obj2);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 arg4 = (int)SWIG_As_int(obj3);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 arg5 = (int)SWIG_As_int(obj4);
12228 if (PyErr_Occurred()) SWIG_fail;
12229 arg6 = (double)SWIG_As_double(obj5);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 {
12232 PyThreadState* __tstate = wxPyBeginAllowThreads();
12233 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
12234
12235 wxPyEndAllowThreads(__tstate);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 Py_INCREF(Py_None); resultobj = Py_None;
12239 return resultobj;
12240 fail:
12241 return NULL;
12242 }
12243
12244
12245 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
12246 PyObject *resultobj;
12247 wxDC *arg1 = (wxDC *) 0 ;
12248 wxRect *arg2 = 0 ;
12249 double arg3 ;
12250 wxRect temp2 ;
12251 PyObject * obj0 = 0 ;
12252 PyObject * obj1 = 0 ;
12253 PyObject * obj2 = 0 ;
12254 char *kwnames[] = {
12255 (char *) "self",(char *) "r",(char *) "radius", NULL
12256 };
12257
12258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
12259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12261 {
12262 arg2 = &temp2;
12263 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12264 }
12265 arg3 = (double)SWIG_As_double(obj2);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 {
12268 PyThreadState* __tstate = wxPyBeginAllowThreads();
12269 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
12270
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 Py_INCREF(Py_None); resultobj = Py_None;
12275 return resultobj;
12276 fail:
12277 return NULL;
12278 }
12279
12280
12281 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12282 PyObject *resultobj;
12283 wxDC *arg1 = (wxDC *) 0 ;
12284 wxPoint *arg2 = 0 ;
12285 wxSize *arg3 = 0 ;
12286 double arg4 ;
12287 wxPoint temp2 ;
12288 wxSize temp3 ;
12289 PyObject * obj0 = 0 ;
12290 PyObject * obj1 = 0 ;
12291 PyObject * obj2 = 0 ;
12292 PyObject * obj3 = 0 ;
12293 char *kwnames[] = {
12294 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
12295 };
12296
12297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12300 {
12301 arg2 = &temp2;
12302 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12303 }
12304 {
12305 arg3 = &temp3;
12306 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12307 }
12308 arg4 = (double)SWIG_As_double(obj3);
12309 if (PyErr_Occurred()) SWIG_fail;
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 Py_INCREF(Py_None); resultobj = Py_None;
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
12325 PyObject *resultobj;
12326 wxDC *arg1 = (wxDC *) 0 ;
12327 int arg2 ;
12328 int arg3 ;
12329 int arg4 ;
12330 PyObject * obj0 = 0 ;
12331 PyObject * obj1 = 0 ;
12332 PyObject * obj2 = 0 ;
12333 PyObject * obj3 = 0 ;
12334 char *kwnames[] = {
12335 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
12336 };
12337
12338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12341 arg2 = (int)SWIG_As_int(obj1);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 arg3 = (int)SWIG_As_int(obj2);
12344 if (PyErr_Occurred()) SWIG_fail;
12345 arg4 = (int)SWIG_As_int(obj3);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 (arg1)->DrawCircle(arg2,arg3,arg4);
12350
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 Py_INCREF(Py_None); resultobj = Py_None;
12355 return resultobj;
12356 fail:
12357 return NULL;
12358 }
12359
12360
12361 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
12362 PyObject *resultobj;
12363 wxDC *arg1 = (wxDC *) 0 ;
12364 wxPoint *arg2 = 0 ;
12365 int arg3 ;
12366 wxPoint temp2 ;
12367 PyObject * obj0 = 0 ;
12368 PyObject * obj1 = 0 ;
12369 PyObject * obj2 = 0 ;
12370 char *kwnames[] = {
12371 (char *) "self",(char *) "pt",(char *) "radius", NULL
12372 };
12373
12374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12377 {
12378 arg2 = &temp2;
12379 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12380 }
12381 arg3 = (int)SWIG_As_int(obj2);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 {
12384 PyThreadState* __tstate = wxPyBeginAllowThreads();
12385 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
12386
12387 wxPyEndAllowThreads(__tstate);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 Py_INCREF(Py_None); resultobj = Py_None;
12391 return resultobj;
12392 fail:
12393 return NULL;
12394 }
12395
12396
12397 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj;
12399 wxDC *arg1 = (wxDC *) 0 ;
12400 int arg2 ;
12401 int arg3 ;
12402 int arg4 ;
12403 int arg5 ;
12404 PyObject * obj0 = 0 ;
12405 PyObject * obj1 = 0 ;
12406 PyObject * obj2 = 0 ;
12407 PyObject * obj3 = 0 ;
12408 PyObject * obj4 = 0 ;
12409 char *kwnames[] = {
12410 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12411 };
12412
12413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12416 arg2 = (int)SWIG_As_int(obj1);
12417 if (PyErr_Occurred()) SWIG_fail;
12418 arg3 = (int)SWIG_As_int(obj2);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 arg4 = (int)SWIG_As_int(obj3);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 arg5 = (int)SWIG_As_int(obj4);
12423 if (PyErr_Occurred()) SWIG_fail;
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
12427
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 Py_INCREF(Py_None); resultobj = Py_None;
12432 return resultobj;
12433 fail:
12434 return NULL;
12435 }
12436
12437
12438 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
12439 PyObject *resultobj;
12440 wxDC *arg1 = (wxDC *) 0 ;
12441 wxRect *arg2 = 0 ;
12442 wxRect temp2 ;
12443 PyObject * obj0 = 0 ;
12444 PyObject * obj1 = 0 ;
12445 char *kwnames[] = {
12446 (char *) "self",(char *) "rect", NULL
12447 };
12448
12449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
12450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12452 {
12453 arg2 = &temp2;
12454 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12455 }
12456 {
12457 PyThreadState* __tstate = wxPyBeginAllowThreads();
12458 (arg1)->DrawEllipse((wxRect const &)*arg2);
12459
12460 wxPyEndAllowThreads(__tstate);
12461 if (PyErr_Occurred()) SWIG_fail;
12462 }
12463 Py_INCREF(Py_None); resultobj = Py_None;
12464 return resultobj;
12465 fail:
12466 return NULL;
12467 }
12468
12469
12470 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12471 PyObject *resultobj;
12472 wxDC *arg1 = (wxDC *) 0 ;
12473 wxPoint *arg2 = 0 ;
12474 wxSize *arg3 = 0 ;
12475 wxPoint temp2 ;
12476 wxSize temp3 ;
12477 PyObject * obj0 = 0 ;
12478 PyObject * obj1 = 0 ;
12479 PyObject * obj2 = 0 ;
12480 char *kwnames[] = {
12481 (char *) "self",(char *) "pt",(char *) "sz", NULL
12482 };
12483
12484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12487 {
12488 arg2 = &temp2;
12489 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12490 }
12491 {
12492 arg3 = &temp3;
12493 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12494 }
12495 {
12496 PyThreadState* __tstate = wxPyBeginAllowThreads();
12497 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
12498
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 Py_INCREF(Py_None); resultobj = Py_None;
12503 return resultobj;
12504 fail:
12505 return NULL;
12506 }
12507
12508
12509 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12510 PyObject *resultobj;
12511 wxDC *arg1 = (wxDC *) 0 ;
12512 wxIcon *arg2 = 0 ;
12513 int arg3 ;
12514 int arg4 ;
12515 PyObject * obj0 = 0 ;
12516 PyObject * obj1 = 0 ;
12517 PyObject * obj2 = 0 ;
12518 PyObject * obj3 = 0 ;
12519 char *kwnames[] = {
12520 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
12521 };
12522
12523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12527 SWIG_POINTER_EXCEPTION | 0)) == -1)
12528 SWIG_fail;
12529 if (arg2 == NULL) {
12530 PyErr_SetString(PyExc_TypeError,"null reference");
12531 SWIG_fail;
12532 }
12533 arg3 = (int)SWIG_As_int(obj2);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 arg4 = (int)SWIG_As_int(obj3);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12540
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 Py_INCREF(Py_None); resultobj = Py_None;
12545 return resultobj;
12546 fail:
12547 return NULL;
12548 }
12549
12550
12551 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12552 PyObject *resultobj;
12553 wxDC *arg1 = (wxDC *) 0 ;
12554 wxIcon *arg2 = 0 ;
12555 wxPoint *arg3 = 0 ;
12556 wxPoint temp3 ;
12557 PyObject * obj0 = 0 ;
12558 PyObject * obj1 = 0 ;
12559 PyObject * obj2 = 0 ;
12560 char *kwnames[] = {
12561 (char *) "self",(char *) "icon",(char *) "pt", NULL
12562 };
12563
12564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12568 SWIG_POINTER_EXCEPTION | 0)) == -1)
12569 SWIG_fail;
12570 if (arg2 == NULL) {
12571 PyErr_SetString(PyExc_TypeError,"null reference");
12572 SWIG_fail;
12573 }
12574 {
12575 arg3 = &temp3;
12576 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12577 }
12578 {
12579 PyThreadState* __tstate = wxPyBeginAllowThreads();
12580 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12581
12582 wxPyEndAllowThreads(__tstate);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 }
12585 Py_INCREF(Py_None); resultobj = Py_None;
12586 return resultobj;
12587 fail:
12588 return NULL;
12589 }
12590
12591
12592 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
12593 PyObject *resultobj;
12594 wxDC *arg1 = (wxDC *) 0 ;
12595 wxBitmap *arg2 = 0 ;
12596 int arg3 ;
12597 int arg4 ;
12598 bool arg5 = (bool) false ;
12599 PyObject * obj0 = 0 ;
12600 PyObject * obj1 = 0 ;
12601 PyObject * obj2 = 0 ;
12602 PyObject * obj3 = 0 ;
12603 PyObject * obj4 = 0 ;
12604 char *kwnames[] = {
12605 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12606 };
12607
12608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12611 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12612 SWIG_POINTER_EXCEPTION | 0)) == -1)
12613 SWIG_fail;
12614 if (arg2 == NULL) {
12615 PyErr_SetString(PyExc_TypeError,"null reference");
12616 SWIG_fail;
12617 }
12618 arg3 = (int)SWIG_As_int(obj2);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 arg4 = (int)SWIG_As_int(obj3);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 if (obj4) {
12623 arg5 = (bool)SWIG_As_bool(obj4);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 }
12626 {
12627 PyThreadState* __tstate = wxPyBeginAllowThreads();
12628 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12629
12630 wxPyEndAllowThreads(__tstate);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 Py_INCREF(Py_None); resultobj = Py_None;
12634 return resultobj;
12635 fail:
12636 return NULL;
12637 }
12638
12639
12640 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12641 PyObject *resultobj;
12642 wxDC *arg1 = (wxDC *) 0 ;
12643 wxBitmap *arg2 = 0 ;
12644 wxPoint *arg3 = 0 ;
12645 bool arg4 = (bool) false ;
12646 wxPoint temp3 ;
12647 PyObject * obj0 = 0 ;
12648 PyObject * obj1 = 0 ;
12649 PyObject * obj2 = 0 ;
12650 PyObject * obj3 = 0 ;
12651 char *kwnames[] = {
12652 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12653 };
12654
12655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12658 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12659 SWIG_POINTER_EXCEPTION | 0)) == -1)
12660 SWIG_fail;
12661 if (arg2 == NULL) {
12662 PyErr_SetString(PyExc_TypeError,"null reference");
12663 SWIG_fail;
12664 }
12665 {
12666 arg3 = &temp3;
12667 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12668 }
12669 if (obj3) {
12670 arg4 = (bool)SWIG_As_bool(obj3);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 {
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12676
12677 wxPyEndAllowThreads(__tstate);
12678 if (PyErr_Occurred()) SWIG_fail;
12679 }
12680 Py_INCREF(Py_None); resultobj = Py_None;
12681 return resultobj;
12682 fail:
12683 return NULL;
12684 }
12685
12686
12687 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
12688 PyObject *resultobj;
12689 wxDC *arg1 = (wxDC *) 0 ;
12690 wxString *arg2 = 0 ;
12691 int arg3 ;
12692 int arg4 ;
12693 bool temp2 = false ;
12694 PyObject * obj0 = 0 ;
12695 PyObject * obj1 = 0 ;
12696 PyObject * obj2 = 0 ;
12697 PyObject * obj3 = 0 ;
12698 char *kwnames[] = {
12699 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12700 };
12701
12702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12705 {
12706 arg2 = wxString_in_helper(obj1);
12707 if (arg2 == NULL) SWIG_fail;
12708 temp2 = true;
12709 }
12710 arg3 = (int)SWIG_As_int(obj2);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 arg4 = (int)SWIG_As_int(obj3);
12713 if (PyErr_Occurred()) SWIG_fail;
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12717
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 Py_INCREF(Py_None); resultobj = Py_None;
12722 {
12723 if (temp2)
12724 delete arg2;
12725 }
12726 return resultobj;
12727 fail:
12728 {
12729 if (temp2)
12730 delete arg2;
12731 }
12732 return NULL;
12733 }
12734
12735
12736 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12737 PyObject *resultobj;
12738 wxDC *arg1 = (wxDC *) 0 ;
12739 wxString *arg2 = 0 ;
12740 wxPoint *arg3 = 0 ;
12741 bool temp2 = false ;
12742 wxPoint temp3 ;
12743 PyObject * obj0 = 0 ;
12744 PyObject * obj1 = 0 ;
12745 PyObject * obj2 = 0 ;
12746 char *kwnames[] = {
12747 (char *) "self",(char *) "text",(char *) "pt", NULL
12748 };
12749
12750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12753 {
12754 arg2 = wxString_in_helper(obj1);
12755 if (arg2 == NULL) SWIG_fail;
12756 temp2 = true;
12757 }
12758 {
12759 arg3 = &temp3;
12760 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12761 }
12762 {
12763 PyThreadState* __tstate = wxPyBeginAllowThreads();
12764 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12765
12766 wxPyEndAllowThreads(__tstate);
12767 if (PyErr_Occurred()) SWIG_fail;
12768 }
12769 Py_INCREF(Py_None); resultobj = Py_None;
12770 {
12771 if (temp2)
12772 delete arg2;
12773 }
12774 return resultobj;
12775 fail:
12776 {
12777 if (temp2)
12778 delete arg2;
12779 }
12780 return NULL;
12781 }
12782
12783
12784 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj;
12786 wxDC *arg1 = (wxDC *) 0 ;
12787 wxString *arg2 = 0 ;
12788 int arg3 ;
12789 int arg4 ;
12790 double arg5 ;
12791 bool temp2 = false ;
12792 PyObject * obj0 = 0 ;
12793 PyObject * obj1 = 0 ;
12794 PyObject * obj2 = 0 ;
12795 PyObject * obj3 = 0 ;
12796 PyObject * obj4 = 0 ;
12797 char *kwnames[] = {
12798 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12799 };
12800
12801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12804 {
12805 arg2 = wxString_in_helper(obj1);
12806 if (arg2 == NULL) SWIG_fail;
12807 temp2 = true;
12808 }
12809 arg3 = (int)SWIG_As_int(obj2);
12810 if (PyErr_Occurred()) SWIG_fail;
12811 arg4 = (int)SWIG_As_int(obj3);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 arg5 = (double)SWIG_As_double(obj4);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12818
12819 wxPyEndAllowThreads(__tstate);
12820 if (PyErr_Occurred()) SWIG_fail;
12821 }
12822 Py_INCREF(Py_None); resultobj = Py_None;
12823 {
12824 if (temp2)
12825 delete arg2;
12826 }
12827 return resultobj;
12828 fail:
12829 {
12830 if (temp2)
12831 delete arg2;
12832 }
12833 return NULL;
12834 }
12835
12836
12837 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12838 PyObject *resultobj;
12839 wxDC *arg1 = (wxDC *) 0 ;
12840 wxString *arg2 = 0 ;
12841 wxPoint *arg3 = 0 ;
12842 double arg4 ;
12843 bool temp2 = false ;
12844 wxPoint temp3 ;
12845 PyObject * obj0 = 0 ;
12846 PyObject * obj1 = 0 ;
12847 PyObject * obj2 = 0 ;
12848 PyObject * obj3 = 0 ;
12849 char *kwnames[] = {
12850 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12851 };
12852
12853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12856 {
12857 arg2 = wxString_in_helper(obj1);
12858 if (arg2 == NULL) SWIG_fail;
12859 temp2 = true;
12860 }
12861 {
12862 arg3 = &temp3;
12863 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12864 }
12865 arg4 = (double)SWIG_As_double(obj3);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12870
12871 wxPyEndAllowThreads(__tstate);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 Py_INCREF(Py_None); resultobj = Py_None;
12875 {
12876 if (temp2)
12877 delete arg2;
12878 }
12879 return resultobj;
12880 fail:
12881 {
12882 if (temp2)
12883 delete arg2;
12884 }
12885 return NULL;
12886 }
12887
12888
12889 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
12890 PyObject *resultobj;
12891 wxDC *arg1 = (wxDC *) 0 ;
12892 int arg2 ;
12893 int arg3 ;
12894 int arg4 ;
12895 int arg5 ;
12896 wxDC *arg6 = (wxDC *) 0 ;
12897 int arg7 ;
12898 int arg8 ;
12899 int arg9 = (int) wxCOPY ;
12900 bool arg10 = (bool) false ;
12901 int arg11 = (int) -1 ;
12902 int arg12 = (int) -1 ;
12903 bool result;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 PyObject * obj2 = 0 ;
12907 PyObject * obj3 = 0 ;
12908 PyObject * obj4 = 0 ;
12909 PyObject * obj5 = 0 ;
12910 PyObject * obj6 = 0 ;
12911 PyObject * obj7 = 0 ;
12912 PyObject * obj8 = 0 ;
12913 PyObject * obj9 = 0 ;
12914 PyObject * obj10 = 0 ;
12915 PyObject * obj11 = 0 ;
12916 char *kwnames[] = {
12917 (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
12918 };
12919
12920 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;
12921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12923 arg2 = (int)SWIG_As_int(obj1);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 arg3 = (int)SWIG_As_int(obj2);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 arg4 = (int)SWIG_As_int(obj3);
12928 if (PyErr_Occurred()) SWIG_fail;
12929 arg5 = (int)SWIG_As_int(obj4);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12933 arg7 = (int)SWIG_As_int(obj6);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 arg8 = (int)SWIG_As_int(obj7);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 if (obj8) {
12938 arg9 = (int)SWIG_As_int(obj8);
12939 if (PyErr_Occurred()) SWIG_fail;
12940 }
12941 if (obj9) {
12942 arg10 = (bool)SWIG_As_bool(obj9);
12943 if (PyErr_Occurred()) SWIG_fail;
12944 }
12945 if (obj10) {
12946 arg11 = (int)SWIG_As_int(obj10);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 if (obj11) {
12950 arg12 = (int)SWIG_As_int(obj11);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 {
12954 PyThreadState* __tstate = wxPyBeginAllowThreads();
12955 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12956
12957 wxPyEndAllowThreads(__tstate);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 {
12961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12962 }
12963 return resultobj;
12964 fail:
12965 return NULL;
12966 }
12967
12968
12969 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj;
12971 wxDC *arg1 = (wxDC *) 0 ;
12972 wxPoint *arg2 = 0 ;
12973 wxSize *arg3 = 0 ;
12974 wxDC *arg4 = (wxDC *) 0 ;
12975 wxPoint *arg5 = 0 ;
12976 int arg6 = (int) wxCOPY ;
12977 bool arg7 = (bool) false ;
12978 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12979 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12980 bool result;
12981 wxPoint temp2 ;
12982 wxSize temp3 ;
12983 wxPoint temp5 ;
12984 wxPoint temp8 ;
12985 PyObject * obj0 = 0 ;
12986 PyObject * obj1 = 0 ;
12987 PyObject * obj2 = 0 ;
12988 PyObject * obj3 = 0 ;
12989 PyObject * obj4 = 0 ;
12990 PyObject * obj5 = 0 ;
12991 PyObject * obj6 = 0 ;
12992 PyObject * obj7 = 0 ;
12993 char *kwnames[] = {
12994 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12995 };
12996
12997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13000 {
13001 arg2 = &temp2;
13002 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13003 }
13004 {
13005 arg3 = &temp3;
13006 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13007 }
13008 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
13009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13010 {
13011 arg5 = &temp5;
13012 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13013 }
13014 if (obj5) {
13015 arg6 = (int)SWIG_As_int(obj5);
13016 if (PyErr_Occurred()) SWIG_fail;
13017 }
13018 if (obj6) {
13019 arg7 = (bool)SWIG_As_bool(obj6);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
13022 if (obj7) {
13023 {
13024 arg8 = &temp8;
13025 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
13026 }
13027 }
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
13031
13032 wxPyEndAllowThreads(__tstate);
13033 if (PyErr_Occurred()) SWIG_fail;
13034 }
13035 {
13036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13037 }
13038 return resultobj;
13039 fail:
13040 return NULL;
13041 }
13042
13043
13044 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
13045 PyObject *resultobj;
13046 wxDC *arg1 = (wxDC *) 0 ;
13047 int arg2 ;
13048 int arg3 ;
13049 int arg4 ;
13050 int arg5 ;
13051 PyObject * obj0 = 0 ;
13052 PyObject * obj1 = 0 ;
13053 PyObject * obj2 = 0 ;
13054 PyObject * obj3 = 0 ;
13055 PyObject * obj4 = 0 ;
13056 char *kwnames[] = {
13057 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13058 };
13059
13060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13063 arg2 = (int)SWIG_As_int(obj1);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 arg3 = (int)SWIG_As_int(obj2);
13066 if (PyErr_Occurred()) SWIG_fail;
13067 arg4 = (int)SWIG_As_int(obj3);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 arg5 = (int)SWIG_As_int(obj4);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 {
13072 PyThreadState* __tstate = wxPyBeginAllowThreads();
13073 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
13074
13075 wxPyEndAllowThreads(__tstate);
13076 if (PyErr_Occurred()) SWIG_fail;
13077 }
13078 Py_INCREF(Py_None); resultobj = Py_None;
13079 return resultobj;
13080 fail:
13081 return NULL;
13082 }
13083
13084
13085 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13086 PyObject *resultobj;
13087 wxDC *arg1 = (wxDC *) 0 ;
13088 wxPoint *arg2 = 0 ;
13089 wxSize *arg3 = 0 ;
13090 wxPoint temp2 ;
13091 wxSize temp3 ;
13092 PyObject * obj0 = 0 ;
13093 PyObject * obj1 = 0 ;
13094 PyObject * obj2 = 0 ;
13095 char *kwnames[] = {
13096 (char *) "self",(char *) "pt",(char *) "sz", NULL
13097 };
13098
13099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13102 {
13103 arg2 = &temp2;
13104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13105 }
13106 {
13107 arg3 = &temp3;
13108 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13109 }
13110 {
13111 PyThreadState* __tstate = wxPyBeginAllowThreads();
13112 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
13113
13114 wxPyEndAllowThreads(__tstate);
13115 if (PyErr_Occurred()) SWIG_fail;
13116 }
13117 Py_INCREF(Py_None); resultobj = Py_None;
13118 return resultobj;
13119 fail:
13120 return NULL;
13121 }
13122
13123
13124 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
13125 PyObject *resultobj;
13126 wxDC *arg1 = (wxDC *) 0 ;
13127 wxRegion *arg2 = 0 ;
13128 PyObject * obj0 = 0 ;
13129 PyObject * obj1 = 0 ;
13130 char *kwnames[] = {
13131 (char *) "self",(char *) "region", NULL
13132 };
13133
13134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
13135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
13138 SWIG_POINTER_EXCEPTION | 0)) == -1)
13139 SWIG_fail;
13140 if (arg2 == NULL) {
13141 PyErr_SetString(PyExc_TypeError,"null reference");
13142 SWIG_fail;
13143 }
13144 {
13145 PyThreadState* __tstate = wxPyBeginAllowThreads();
13146 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
13147
13148 wxPyEndAllowThreads(__tstate);
13149 if (PyErr_Occurred()) SWIG_fail;
13150 }
13151 Py_INCREF(Py_None); resultobj = Py_None;
13152 return resultobj;
13153 fail:
13154 return NULL;
13155 }
13156
13157
13158 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
13159 PyObject *resultobj;
13160 wxDC *arg1 = (wxDC *) 0 ;
13161 wxRect *arg2 = 0 ;
13162 wxRect temp2 ;
13163 PyObject * obj0 = 0 ;
13164 PyObject * obj1 = 0 ;
13165 char *kwnames[] = {
13166 (char *) "self",(char *) "rect", NULL
13167 };
13168
13169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
13170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13172 {
13173 arg2 = &temp2;
13174 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13175 }
13176 {
13177 PyThreadState* __tstate = wxPyBeginAllowThreads();
13178 (arg1)->SetClippingRegion((wxRect const &)*arg2);
13179
13180 wxPyEndAllowThreads(__tstate);
13181 if (PyErr_Occurred()) SWIG_fail;
13182 }
13183 Py_INCREF(Py_None); resultobj = Py_None;
13184 return resultobj;
13185 fail:
13186 return NULL;
13187 }
13188
13189
13190 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
13191 PyObject *resultobj;
13192 wxDC *arg1 = (wxDC *) 0 ;
13193 int arg2 ;
13194 wxPoint *arg3 = (wxPoint *) 0 ;
13195 int arg4 = (int) 0 ;
13196 int arg5 = (int) 0 ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 PyObject * obj2 = 0 ;
13200 PyObject * obj3 = 0 ;
13201 char *kwnames[] = {
13202 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
13203 };
13204
13205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13208 {
13209 arg3 = wxPoint_LIST_helper(obj1, &arg2);
13210 if (arg3 == NULL) SWIG_fail;
13211 }
13212 if (obj2) {
13213 arg4 = (int)SWIG_As_int(obj2);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 if (obj3) {
13217 arg5 = (int)SWIG_As_int(obj3);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 {
13221 PyThreadState* __tstate = wxPyBeginAllowThreads();
13222 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
13223
13224 wxPyEndAllowThreads(__tstate);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 }
13227 Py_INCREF(Py_None); resultobj = Py_None;
13228 {
13229 if (arg3) delete [] arg3;
13230 }
13231 return resultobj;
13232 fail:
13233 {
13234 if (arg3) delete [] arg3;
13235 }
13236 return NULL;
13237 }
13238
13239
13240 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
13241 PyObject *resultobj;
13242 wxDC *arg1 = (wxDC *) 0 ;
13243 int arg2 ;
13244 wxPoint *arg3 = (wxPoint *) 0 ;
13245 int arg4 = (int) 0 ;
13246 int arg5 = (int) 0 ;
13247 int arg6 = (int) wxODDEVEN_RULE ;
13248 PyObject * obj0 = 0 ;
13249 PyObject * obj1 = 0 ;
13250 PyObject * obj2 = 0 ;
13251 PyObject * obj3 = 0 ;
13252 PyObject * obj4 = 0 ;
13253 char *kwnames[] = {
13254 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
13255 };
13256
13257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13260 {
13261 arg3 = wxPoint_LIST_helper(obj1, &arg2);
13262 if (arg3 == NULL) SWIG_fail;
13263 }
13264 if (obj2) {
13265 arg4 = (int)SWIG_As_int(obj2);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 if (obj3) {
13269 arg5 = (int)SWIG_As_int(obj3);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 if (obj4) {
13273 arg6 = (int)SWIG_As_int(obj4);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
13279
13280 wxPyEndAllowThreads(__tstate);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 Py_INCREF(Py_None); resultobj = Py_None;
13284 {
13285 if (arg3) delete [] arg3;
13286 }
13287 return resultobj;
13288 fail:
13289 {
13290 if (arg3) delete [] arg3;
13291 }
13292 return NULL;
13293 }
13294
13295
13296 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
13297 PyObject *resultobj;
13298 wxDC *arg1 = (wxDC *) 0 ;
13299 wxString *arg2 = 0 ;
13300 wxRect *arg3 = 0 ;
13301 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
13302 int arg5 = (int) -1 ;
13303 bool temp2 = false ;
13304 wxRect temp3 ;
13305 PyObject * obj0 = 0 ;
13306 PyObject * obj1 = 0 ;
13307 PyObject * obj2 = 0 ;
13308 PyObject * obj3 = 0 ;
13309 PyObject * obj4 = 0 ;
13310 char *kwnames[] = {
13311 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
13312 };
13313
13314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13317 {
13318 arg2 = wxString_in_helper(obj1);
13319 if (arg2 == NULL) SWIG_fail;
13320 temp2 = true;
13321 }
13322 {
13323 arg3 = &temp3;
13324 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
13325 }
13326 if (obj3) {
13327 arg4 = (int)SWIG_As_int(obj3);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 if (obj4) {
13331 arg5 = (int)SWIG_As_int(obj4);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
13337
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 Py_INCREF(Py_None); resultobj = Py_None;
13342 {
13343 if (temp2)
13344 delete arg2;
13345 }
13346 return resultobj;
13347 fail:
13348 {
13349 if (temp2)
13350 delete arg2;
13351 }
13352 return NULL;
13353 }
13354
13355
13356 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
13357 PyObject *resultobj;
13358 wxDC *arg1 = (wxDC *) 0 ;
13359 wxString *arg2 = 0 ;
13360 wxBitmap *arg3 = 0 ;
13361 wxRect *arg4 = 0 ;
13362 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
13363 int arg6 = (int) -1 ;
13364 wxRect result;
13365 bool temp2 = false ;
13366 wxRect temp4 ;
13367 PyObject * obj0 = 0 ;
13368 PyObject * obj1 = 0 ;
13369 PyObject * obj2 = 0 ;
13370 PyObject * obj3 = 0 ;
13371 PyObject * obj4 = 0 ;
13372 PyObject * obj5 = 0 ;
13373 char *kwnames[] = {
13374 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
13375 };
13376
13377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13380 {
13381 arg2 = wxString_in_helper(obj1);
13382 if (arg2 == NULL) SWIG_fail;
13383 temp2 = true;
13384 }
13385 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
13386 SWIG_POINTER_EXCEPTION | 0)) == -1)
13387 SWIG_fail;
13388 if (arg3 == NULL) {
13389 PyErr_SetString(PyExc_TypeError,"null reference");
13390 SWIG_fail;
13391 }
13392 {
13393 arg4 = &temp4;
13394 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
13395 }
13396 if (obj4) {
13397 arg5 = (int)SWIG_As_int(obj4);
13398 if (PyErr_Occurred()) SWIG_fail;
13399 }
13400 if (obj5) {
13401 arg6 = (int)SWIG_As_int(obj5);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 {
13405 PyThreadState* __tstate = wxPyBeginAllowThreads();
13406 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
13407
13408 wxPyEndAllowThreads(__tstate);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 }
13411 {
13412 wxRect * resultptr;
13413 resultptr = new wxRect((wxRect &) result);
13414 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13415 }
13416 {
13417 if (temp2)
13418 delete arg2;
13419 }
13420 return resultobj;
13421 fail:
13422 {
13423 if (temp2)
13424 delete arg2;
13425 }
13426 return NULL;
13427 }
13428
13429
13430 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj;
13432 wxDC *arg1 = (wxDC *) 0 ;
13433 int arg2 ;
13434 wxPoint *arg3 = (wxPoint *) 0 ;
13435 PyObject * obj0 = 0 ;
13436 PyObject * obj1 = 0 ;
13437 char *kwnames[] = {
13438 (char *) "self",(char *) "points", NULL
13439 };
13440
13441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
13442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13444 {
13445 arg3 = wxPoint_LIST_helper(obj1, &arg2);
13446 if (arg3 == NULL) SWIG_fail;
13447 }
13448 {
13449 PyThreadState* __tstate = wxPyBeginAllowThreads();
13450 (arg1)->DrawSpline(arg2,arg3);
13451
13452 wxPyEndAllowThreads(__tstate);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 Py_INCREF(Py_None); resultobj = Py_None;
13456 {
13457 if (arg3) delete [] arg3;
13458 }
13459 return resultobj;
13460 fail:
13461 {
13462 if (arg3) delete [] arg3;
13463 }
13464 return NULL;
13465 }
13466
13467
13468 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
13469 PyObject *resultobj;
13470 wxDC *arg1 = (wxDC *) 0 ;
13471 PyObject * obj0 = 0 ;
13472 char *kwnames[] = {
13473 (char *) "self", NULL
13474 };
13475
13476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
13477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 (arg1)->Clear();
13482
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 Py_INCREF(Py_None); resultobj = Py_None;
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
13494 PyObject *resultobj;
13495 wxDC *arg1 = (wxDC *) 0 ;
13496 wxString *arg2 = 0 ;
13497 bool result;
13498 bool temp2 = false ;
13499 PyObject * obj0 = 0 ;
13500 PyObject * obj1 = 0 ;
13501 char *kwnames[] = {
13502 (char *) "self",(char *) "message", NULL
13503 };
13504
13505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
13506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13508 {
13509 arg2 = wxString_in_helper(obj1);
13510 if (arg2 == NULL) SWIG_fail;
13511 temp2 = true;
13512 }
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
13516
13517 wxPyEndAllowThreads(__tstate);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 }
13520 {
13521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13522 }
13523 {
13524 if (temp2)
13525 delete arg2;
13526 }
13527 return resultobj;
13528 fail:
13529 {
13530 if (temp2)
13531 delete arg2;
13532 }
13533 return NULL;
13534 }
13535
13536
13537 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj;
13539 wxDC *arg1 = (wxDC *) 0 ;
13540 PyObject * obj0 = 0 ;
13541 char *kwnames[] = {
13542 (char *) "self", NULL
13543 };
13544
13545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
13546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 (arg1)->EndDoc();
13551
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 Py_INCREF(Py_None); resultobj = Py_None;
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj;
13564 wxDC *arg1 = (wxDC *) 0 ;
13565 PyObject * obj0 = 0 ;
13566 char *kwnames[] = {
13567 (char *) "self", NULL
13568 };
13569
13570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 (arg1)->StartPage();
13576
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 Py_INCREF(Py_None); resultobj = Py_None;
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj;
13589 wxDC *arg1 = (wxDC *) 0 ;
13590 PyObject * obj0 = 0 ;
13591 char *kwnames[] = {
13592 (char *) "self", NULL
13593 };
13594
13595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 (arg1)->EndPage();
13601
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 Py_INCREF(Py_None); resultobj = Py_None;
13606 return resultobj;
13607 fail:
13608 return NULL;
13609 }
13610
13611
13612 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
13613 PyObject *resultobj;
13614 wxDC *arg1 = (wxDC *) 0 ;
13615 wxFont *arg2 = 0 ;
13616 PyObject * obj0 = 0 ;
13617 PyObject * obj1 = 0 ;
13618 char *kwnames[] = {
13619 (char *) "self",(char *) "font", NULL
13620 };
13621
13622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13626 SWIG_POINTER_EXCEPTION | 0)) == -1)
13627 SWIG_fail;
13628 if (arg2 == NULL) {
13629 PyErr_SetString(PyExc_TypeError,"null reference");
13630 SWIG_fail;
13631 }
13632 {
13633 PyThreadState* __tstate = wxPyBeginAllowThreads();
13634 (arg1)->SetFont((wxFont const &)*arg2);
13635
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 Py_INCREF(Py_None); resultobj = Py_None;
13640 return resultobj;
13641 fail:
13642 return NULL;
13643 }
13644
13645
13646 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj;
13648 wxDC *arg1 = (wxDC *) 0 ;
13649 wxPen *arg2 = 0 ;
13650 PyObject * obj0 = 0 ;
13651 PyObject * obj1 = 0 ;
13652 char *kwnames[] = {
13653 (char *) "self",(char *) "pen", NULL
13654 };
13655
13656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13659 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13660 SWIG_POINTER_EXCEPTION | 0)) == -1)
13661 SWIG_fail;
13662 if (arg2 == NULL) {
13663 PyErr_SetString(PyExc_TypeError,"null reference");
13664 SWIG_fail;
13665 }
13666 {
13667 PyThreadState* __tstate = wxPyBeginAllowThreads();
13668 (arg1)->SetPen((wxPen const &)*arg2);
13669
13670 wxPyEndAllowThreads(__tstate);
13671 if (PyErr_Occurred()) SWIG_fail;
13672 }
13673 Py_INCREF(Py_None); resultobj = Py_None;
13674 return resultobj;
13675 fail:
13676 return NULL;
13677 }
13678
13679
13680 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj;
13682 wxDC *arg1 = (wxDC *) 0 ;
13683 wxBrush *arg2 = 0 ;
13684 PyObject * obj0 = 0 ;
13685 PyObject * obj1 = 0 ;
13686 char *kwnames[] = {
13687 (char *) "self",(char *) "brush", NULL
13688 };
13689
13690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13693 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13694 SWIG_POINTER_EXCEPTION | 0)) == -1)
13695 SWIG_fail;
13696 if (arg2 == NULL) {
13697 PyErr_SetString(PyExc_TypeError,"null reference");
13698 SWIG_fail;
13699 }
13700 {
13701 PyThreadState* __tstate = wxPyBeginAllowThreads();
13702 (arg1)->SetBrush((wxBrush const &)*arg2);
13703
13704 wxPyEndAllowThreads(__tstate);
13705 if (PyErr_Occurred()) SWIG_fail;
13706 }
13707 Py_INCREF(Py_None); resultobj = Py_None;
13708 return resultobj;
13709 fail:
13710 return NULL;
13711 }
13712
13713
13714 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13715 PyObject *resultobj;
13716 wxDC *arg1 = (wxDC *) 0 ;
13717 wxBrush *arg2 = 0 ;
13718 PyObject * obj0 = 0 ;
13719 PyObject * obj1 = 0 ;
13720 char *kwnames[] = {
13721 (char *) "self",(char *) "brush", NULL
13722 };
13723
13724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13728 SWIG_POINTER_EXCEPTION | 0)) == -1)
13729 SWIG_fail;
13730 if (arg2 == NULL) {
13731 PyErr_SetString(PyExc_TypeError,"null reference");
13732 SWIG_fail;
13733 }
13734 {
13735 PyThreadState* __tstate = wxPyBeginAllowThreads();
13736 (arg1)->SetBackground((wxBrush const &)*arg2);
13737
13738 wxPyEndAllowThreads(__tstate);
13739 if (PyErr_Occurred()) SWIG_fail;
13740 }
13741 Py_INCREF(Py_None); resultobj = Py_None;
13742 return resultobj;
13743 fail:
13744 return NULL;
13745 }
13746
13747
13748 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13749 PyObject *resultobj;
13750 wxDC *arg1 = (wxDC *) 0 ;
13751 int arg2 ;
13752 PyObject * obj0 = 0 ;
13753 PyObject * obj1 = 0 ;
13754 char *kwnames[] = {
13755 (char *) "self",(char *) "mode", NULL
13756 };
13757
13758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13761 arg2 = (int)SWIG_As_int(obj1);
13762 if (PyErr_Occurred()) SWIG_fail;
13763 {
13764 PyThreadState* __tstate = wxPyBeginAllowThreads();
13765 (arg1)->SetBackgroundMode(arg2);
13766
13767 wxPyEndAllowThreads(__tstate);
13768 if (PyErr_Occurred()) SWIG_fail;
13769 }
13770 Py_INCREF(Py_None); resultobj = Py_None;
13771 return resultobj;
13772 fail:
13773 return NULL;
13774 }
13775
13776
13777 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
13778 PyObject *resultobj;
13779 wxDC *arg1 = (wxDC *) 0 ;
13780 wxPalette *arg2 = 0 ;
13781 PyObject * obj0 = 0 ;
13782 PyObject * obj1 = 0 ;
13783 char *kwnames[] = {
13784 (char *) "self",(char *) "palette", NULL
13785 };
13786
13787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13791 SWIG_POINTER_EXCEPTION | 0)) == -1)
13792 SWIG_fail;
13793 if (arg2 == NULL) {
13794 PyErr_SetString(PyExc_TypeError,"null reference");
13795 SWIG_fail;
13796 }
13797 {
13798 PyThreadState* __tstate = wxPyBeginAllowThreads();
13799 (arg1)->SetPalette((wxPalette const &)*arg2);
13800
13801 wxPyEndAllowThreads(__tstate);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 }
13804 Py_INCREF(Py_None); resultobj = Py_None;
13805 return resultobj;
13806 fail:
13807 return NULL;
13808 }
13809
13810
13811 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
13812 PyObject *resultobj;
13813 wxDC *arg1 = (wxDC *) 0 ;
13814 PyObject * obj0 = 0 ;
13815 char *kwnames[] = {
13816 (char *) "self", NULL
13817 };
13818
13819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 (arg1)->DestroyClippingRegion();
13825
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 Py_INCREF(Py_None); resultobj = Py_None;
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj;
13838 wxDC *arg1 = (wxDC *) 0 ;
13839 int *arg2 = (int *) 0 ;
13840 int *arg3 = (int *) 0 ;
13841 int *arg4 = (int *) 0 ;
13842 int *arg5 = (int *) 0 ;
13843 int temp2 ;
13844 int res2 = 0 ;
13845 int temp3 ;
13846 int res3 = 0 ;
13847 int temp4 ;
13848 int res4 = 0 ;
13849 int temp5 ;
13850 int res5 = 0 ;
13851 PyObject * obj0 = 0 ;
13852 char *kwnames[] = {
13853 (char *) "self", NULL
13854 };
13855
13856 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13857 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13858 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13859 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13866
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 Py_INCREF(Py_None); resultobj = Py_None;
13871 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13872 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13873 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13874 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13875 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13876 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13877 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13878 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13879 return resultobj;
13880 fail:
13881 return NULL;
13882 }
13883
13884
13885 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
13886 PyObject *resultobj;
13887 wxDC *arg1 = (wxDC *) 0 ;
13888 wxRect result;
13889 PyObject * obj0 = 0 ;
13890 char *kwnames[] = {
13891 (char *) "self", NULL
13892 };
13893
13894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13897 {
13898 PyThreadState* __tstate = wxPyBeginAllowThreads();
13899 result = wxDC_GetClippingRect(arg1);
13900
13901 wxPyEndAllowThreads(__tstate);
13902 if (PyErr_Occurred()) SWIG_fail;
13903 }
13904 {
13905 wxRect * resultptr;
13906 resultptr = new wxRect((wxRect &) result);
13907 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13908 }
13909 return resultobj;
13910 fail:
13911 return NULL;
13912 }
13913
13914
13915 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
13916 PyObject *resultobj;
13917 wxDC *arg1 = (wxDC *) 0 ;
13918 int result;
13919 PyObject * obj0 = 0 ;
13920 char *kwnames[] = {
13921 (char *) "self", NULL
13922 };
13923
13924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13927 {
13928 PyThreadState* __tstate = wxPyBeginAllowThreads();
13929 result = (int)((wxDC const *)arg1)->GetCharHeight();
13930
13931 wxPyEndAllowThreads(__tstate);
13932 if (PyErr_Occurred()) SWIG_fail;
13933 }
13934 resultobj = SWIG_From_int((int)result);
13935 return resultobj;
13936 fail:
13937 return NULL;
13938 }
13939
13940
13941 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
13942 PyObject *resultobj;
13943 wxDC *arg1 = (wxDC *) 0 ;
13944 int result;
13945 PyObject * obj0 = 0 ;
13946 char *kwnames[] = {
13947 (char *) "self", NULL
13948 };
13949
13950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (int)((wxDC const *)arg1)->GetCharWidth();
13956
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 resultobj = SWIG_From_int((int)result);
13961 return resultobj;
13962 fail:
13963 return NULL;
13964 }
13965
13966
13967 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13968 PyObject *resultobj;
13969 wxDC *arg1 = (wxDC *) 0 ;
13970 wxString *arg2 = 0 ;
13971 int *arg3 = (int *) 0 ;
13972 int *arg4 = (int *) 0 ;
13973 bool temp2 = false ;
13974 int temp3 ;
13975 int res3 = 0 ;
13976 int temp4 ;
13977 int res4 = 0 ;
13978 PyObject * obj0 = 0 ;
13979 PyObject * obj1 = 0 ;
13980 char *kwnames[] = {
13981 (char *) "self",(char *) "string", NULL
13982 };
13983
13984 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13985 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13989 {
13990 arg2 = wxString_in_helper(obj1);
13991 if (arg2 == NULL) SWIG_fail;
13992 temp2 = true;
13993 }
13994 {
13995 PyThreadState* __tstate = wxPyBeginAllowThreads();
13996 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13997
13998 wxPyEndAllowThreads(__tstate);
13999 if (PyErr_Occurred()) SWIG_fail;
14000 }
14001 Py_INCREF(Py_None); resultobj = Py_None;
14002 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14003 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14004 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
14005 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
14006 {
14007 if (temp2)
14008 delete arg2;
14009 }
14010 return resultobj;
14011 fail:
14012 {
14013 if (temp2)
14014 delete arg2;
14015 }
14016 return NULL;
14017 }
14018
14019
14020 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
14021 PyObject *resultobj;
14022 wxDC *arg1 = (wxDC *) 0 ;
14023 wxString *arg2 = 0 ;
14024 int *arg3 = (int *) 0 ;
14025 int *arg4 = (int *) 0 ;
14026 int *arg5 = (int *) 0 ;
14027 int *arg6 = (int *) 0 ;
14028 wxFont *arg7 = (wxFont *) NULL ;
14029 bool temp2 = false ;
14030 int temp3 ;
14031 int res3 = 0 ;
14032 int temp4 ;
14033 int res4 = 0 ;
14034 int temp5 ;
14035 int res5 = 0 ;
14036 int temp6 ;
14037 int res6 = 0 ;
14038 PyObject * obj0 = 0 ;
14039 PyObject * obj1 = 0 ;
14040 PyObject * obj2 = 0 ;
14041 char *kwnames[] = {
14042 (char *) "self",(char *) "string",(char *) "font", NULL
14043 };
14044
14045 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14046 arg4 = &temp4; res4 = SWIG_NEWOBJ;
14047 arg5 = &temp5; res5 = SWIG_NEWOBJ;
14048 arg6 = &temp6; res6 = SWIG_NEWOBJ;
14049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
14050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14052 {
14053 arg2 = wxString_in_helper(obj1);
14054 if (arg2 == NULL) SWIG_fail;
14055 temp2 = true;
14056 }
14057 if (obj2) {
14058 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
14059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14060 }
14061 {
14062 PyThreadState* __tstate = wxPyBeginAllowThreads();
14063 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
14064
14065 wxPyEndAllowThreads(__tstate);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
14068 Py_INCREF(Py_None); resultobj = Py_None;
14069 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14070 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14071 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
14072 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
14073 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
14074 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
14075 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
14076 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
14077 {
14078 if (temp2)
14079 delete arg2;
14080 }
14081 return resultobj;
14082 fail:
14083 {
14084 if (temp2)
14085 delete arg2;
14086 }
14087 return NULL;
14088 }
14089
14090
14091 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
14092 PyObject *resultobj;
14093 wxDC *arg1 = (wxDC *) 0 ;
14094 wxString *arg2 = 0 ;
14095 int *arg3 = (int *) 0 ;
14096 int *arg4 = (int *) 0 ;
14097 int *arg5 = (int *) 0 ;
14098 wxFont *arg6 = (wxFont *) NULL ;
14099 bool temp2 = false ;
14100 int temp3 ;
14101 int res3 = 0 ;
14102 int temp4 ;
14103 int res4 = 0 ;
14104 int temp5 ;
14105 int res5 = 0 ;
14106 PyObject * obj0 = 0 ;
14107 PyObject * obj1 = 0 ;
14108 PyObject * obj2 = 0 ;
14109 char *kwnames[] = {
14110 (char *) "self",(char *) "text",(char *) "font", NULL
14111 };
14112
14113 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14114 arg4 = &temp4; res4 = SWIG_NEWOBJ;
14115 arg5 = &temp5; res5 = SWIG_NEWOBJ;
14116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
14117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14119 {
14120 arg2 = wxString_in_helper(obj1);
14121 if (arg2 == NULL) SWIG_fail;
14122 temp2 = true;
14123 }
14124 if (obj2) {
14125 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
14126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14127 }
14128 {
14129 PyThreadState* __tstate = wxPyBeginAllowThreads();
14130 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
14131
14132 wxPyEndAllowThreads(__tstate);
14133 if (PyErr_Occurred()) SWIG_fail;
14134 }
14135 Py_INCREF(Py_None); resultobj = Py_None;
14136 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14137 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14138 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
14139 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
14140 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
14141 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
14142 {
14143 if (temp2)
14144 delete arg2;
14145 }
14146 return resultobj;
14147 fail:
14148 {
14149 if (temp2)
14150 delete arg2;
14151 }
14152 return NULL;
14153 }
14154
14155
14156 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
14157 PyObject *resultobj;
14158 wxDC *arg1 = (wxDC *) 0 ;
14159 wxString *arg2 = 0 ;
14160 wxArrayInt result;
14161 bool temp2 = false ;
14162 PyObject * obj0 = 0 ;
14163 PyObject * obj1 = 0 ;
14164 char *kwnames[] = {
14165 (char *) "self",(char *) "text", NULL
14166 };
14167
14168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
14169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14171 {
14172 arg2 = wxString_in_helper(obj1);
14173 if (arg2 == NULL) SWIG_fail;
14174 temp2 = true;
14175 }
14176 {
14177 PyThreadState* __tstate = wxPyBeginAllowThreads();
14178 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
14179
14180 wxPyEndAllowThreads(__tstate);
14181 if (PyErr_Occurred()) SWIG_fail;
14182 }
14183 {
14184 resultobj = PyList_New(0);
14185 size_t idx;
14186 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
14187 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
14188 PyList_Append(resultobj, val);
14189 Py_DECREF(val);
14190 }
14191 }
14192 {
14193 if (temp2)
14194 delete arg2;
14195 }
14196 return resultobj;
14197 fail:
14198 {
14199 if (temp2)
14200 delete arg2;
14201 }
14202 return NULL;
14203 }
14204
14205
14206 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
14207 PyObject *resultobj;
14208 wxDC *arg1 = (wxDC *) 0 ;
14209 wxSize result;
14210 PyObject * obj0 = 0 ;
14211 char *kwnames[] = {
14212 (char *) "self", NULL
14213 };
14214
14215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
14216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 result = (arg1)->GetSize();
14221
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 {
14226 wxSize * resultptr;
14227 resultptr = new wxSize((wxSize &) result);
14228 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14229 }
14230 return resultobj;
14231 fail:
14232 return NULL;
14233 }
14234
14235
14236 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14237 PyObject *resultobj;
14238 wxDC *arg1 = (wxDC *) 0 ;
14239 int *arg2 = (int *) 0 ;
14240 int *arg3 = (int *) 0 ;
14241 int temp2 ;
14242 int res2 = 0 ;
14243 int temp3 ;
14244 int res3 = 0 ;
14245 PyObject * obj0 = 0 ;
14246 char *kwnames[] = {
14247 (char *) "self", NULL
14248 };
14249
14250 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14251 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
14253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14255 {
14256 PyThreadState* __tstate = wxPyBeginAllowThreads();
14257 (arg1)->GetSize(arg2,arg3);
14258
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 Py_INCREF(Py_None); resultobj = Py_None;
14263 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14264 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14265 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14266 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14267 return resultobj;
14268 fail:
14269 return NULL;
14270 }
14271
14272
14273 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
14274 PyObject *resultobj;
14275 wxDC *arg1 = (wxDC *) 0 ;
14276 wxSize result;
14277 PyObject * obj0 = 0 ;
14278 char *kwnames[] = {
14279 (char *) "self", NULL
14280 };
14281
14282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
14283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14285 {
14286 PyThreadState* __tstate = wxPyBeginAllowThreads();
14287 result = ((wxDC const *)arg1)->GetSizeMM();
14288
14289 wxPyEndAllowThreads(__tstate);
14290 if (PyErr_Occurred()) SWIG_fail;
14291 }
14292 {
14293 wxSize * resultptr;
14294 resultptr = new wxSize((wxSize &) result);
14295 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14296 }
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj;
14305 wxDC *arg1 = (wxDC *) 0 ;
14306 int *arg2 = (int *) 0 ;
14307 int *arg3 = (int *) 0 ;
14308 int temp2 ;
14309 int res2 = 0 ;
14310 int temp3 ;
14311 int res3 = 0 ;
14312 PyObject * obj0 = 0 ;
14313 char *kwnames[] = {
14314 (char *) "self", NULL
14315 };
14316
14317 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14318 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
14320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14322 {
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
14325
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 Py_INCREF(Py_None); resultobj = Py_None;
14330 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14331 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14332 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14333 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
14334 return resultobj;
14335 fail:
14336 return NULL;
14337 }
14338
14339
14340 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
14341 PyObject *resultobj;
14342 wxDC *arg1 = (wxDC *) 0 ;
14343 int arg2 ;
14344 int result;
14345 PyObject * obj0 = 0 ;
14346 PyObject * obj1 = 0 ;
14347 char *kwnames[] = {
14348 (char *) "self",(char *) "x", NULL
14349 };
14350
14351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
14352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14354 arg2 = (int)SWIG_As_int(obj1);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 {
14357 PyThreadState* __tstate = wxPyBeginAllowThreads();
14358 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
14359
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 resultobj = SWIG_From_int((int)result);
14364 return resultobj;
14365 fail:
14366 return NULL;
14367 }
14368
14369
14370 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
14371 PyObject *resultobj;
14372 wxDC *arg1 = (wxDC *) 0 ;
14373 int arg2 ;
14374 int result;
14375 PyObject * obj0 = 0 ;
14376 PyObject * obj1 = 0 ;
14377 char *kwnames[] = {
14378 (char *) "self",(char *) "y", NULL
14379 };
14380
14381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
14382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14384 arg2 = (int)SWIG_As_int(obj1);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 {
14387 PyThreadState* __tstate = wxPyBeginAllowThreads();
14388 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
14389
14390 wxPyEndAllowThreads(__tstate);
14391 if (PyErr_Occurred()) SWIG_fail;
14392 }
14393 resultobj = SWIG_From_int((int)result);
14394 return resultobj;
14395 fail:
14396 return NULL;
14397 }
14398
14399
14400 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
14401 PyObject *resultobj;
14402 wxDC *arg1 = (wxDC *) 0 ;
14403 int arg2 ;
14404 int result;
14405 PyObject * obj0 = 0 ;
14406 PyObject * obj1 = 0 ;
14407 char *kwnames[] = {
14408 (char *) "self",(char *) "x", NULL
14409 };
14410
14411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
14412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14414 arg2 = (int)SWIG_As_int(obj1);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 {
14417 PyThreadState* __tstate = wxPyBeginAllowThreads();
14418 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
14419
14420 wxPyEndAllowThreads(__tstate);
14421 if (PyErr_Occurred()) SWIG_fail;
14422 }
14423 resultobj = SWIG_From_int((int)result);
14424 return resultobj;
14425 fail:
14426 return NULL;
14427 }
14428
14429
14430 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
14431 PyObject *resultobj;
14432 wxDC *arg1 = (wxDC *) 0 ;
14433 int arg2 ;
14434 int result;
14435 PyObject * obj0 = 0 ;
14436 PyObject * obj1 = 0 ;
14437 char *kwnames[] = {
14438 (char *) "self",(char *) "y", NULL
14439 };
14440
14441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
14442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14444 arg2 = (int)SWIG_As_int(obj1);
14445 if (PyErr_Occurred()) SWIG_fail;
14446 {
14447 PyThreadState* __tstate = wxPyBeginAllowThreads();
14448 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
14449
14450 wxPyEndAllowThreads(__tstate);
14451 if (PyErr_Occurred()) SWIG_fail;
14452 }
14453 resultobj = SWIG_From_int((int)result);
14454 return resultobj;
14455 fail:
14456 return NULL;
14457 }
14458
14459
14460 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
14461 PyObject *resultobj;
14462 wxDC *arg1 = (wxDC *) 0 ;
14463 int arg2 ;
14464 int result;
14465 PyObject * obj0 = 0 ;
14466 PyObject * obj1 = 0 ;
14467 char *kwnames[] = {
14468 (char *) "self",(char *) "x", NULL
14469 };
14470
14471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
14472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14474 arg2 = (int)SWIG_As_int(obj1);
14475 if (PyErr_Occurred()) SWIG_fail;
14476 {
14477 PyThreadState* __tstate = wxPyBeginAllowThreads();
14478 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
14479
14480 wxPyEndAllowThreads(__tstate);
14481 if (PyErr_Occurred()) SWIG_fail;
14482 }
14483 resultobj = SWIG_From_int((int)result);
14484 return resultobj;
14485 fail:
14486 return NULL;
14487 }
14488
14489
14490 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
14491 PyObject *resultobj;
14492 wxDC *arg1 = (wxDC *) 0 ;
14493 int arg2 ;
14494 int result;
14495 PyObject * obj0 = 0 ;
14496 PyObject * obj1 = 0 ;
14497 char *kwnames[] = {
14498 (char *) "self",(char *) "y", NULL
14499 };
14500
14501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
14502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14504 arg2 = (int)SWIG_As_int(obj1);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 {
14507 PyThreadState* __tstate = wxPyBeginAllowThreads();
14508 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
14509
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 resultobj = SWIG_From_int((int)result);
14514 return resultobj;
14515 fail:
14516 return NULL;
14517 }
14518
14519
14520 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
14521 PyObject *resultobj;
14522 wxDC *arg1 = (wxDC *) 0 ;
14523 int arg2 ;
14524 int result;
14525 PyObject * obj0 = 0 ;
14526 PyObject * obj1 = 0 ;
14527 char *kwnames[] = {
14528 (char *) "self",(char *) "x", NULL
14529 };
14530
14531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
14532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14534 arg2 = (int)SWIG_As_int(obj1);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 {
14537 PyThreadState* __tstate = wxPyBeginAllowThreads();
14538 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
14539
14540 wxPyEndAllowThreads(__tstate);
14541 if (PyErr_Occurred()) SWIG_fail;
14542 }
14543 resultobj = SWIG_From_int((int)result);
14544 return resultobj;
14545 fail:
14546 return NULL;
14547 }
14548
14549
14550 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
14551 PyObject *resultobj;
14552 wxDC *arg1 = (wxDC *) 0 ;
14553 int arg2 ;
14554 int result;
14555 PyObject * obj0 = 0 ;
14556 PyObject * obj1 = 0 ;
14557 char *kwnames[] = {
14558 (char *) "self",(char *) "y", NULL
14559 };
14560
14561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14564 arg2 = (int)SWIG_As_int(obj1);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14569
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 resultobj = SWIG_From_int((int)result);
14574 return resultobj;
14575 fail:
14576 return NULL;
14577 }
14578
14579
14580 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
14581 PyObject *resultobj;
14582 wxDC *arg1 = (wxDC *) 0 ;
14583 bool result;
14584 PyObject * obj0 = 0 ;
14585 char *kwnames[] = {
14586 (char *) "self", NULL
14587 };
14588
14589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14595
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 {
14600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14601 }
14602 return resultobj;
14603 fail:
14604 return NULL;
14605 }
14606
14607
14608 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
14609 PyObject *resultobj;
14610 wxDC *arg1 = (wxDC *) 0 ;
14611 bool result;
14612 PyObject * obj0 = 0 ;
14613 char *kwnames[] = {
14614 (char *) "self", NULL
14615 };
14616
14617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14620 {
14621 PyThreadState* __tstate = wxPyBeginAllowThreads();
14622 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14623
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 {
14628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14629 }
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
14637 PyObject *resultobj;
14638 wxDC *arg1 = (wxDC *) 0 ;
14639 int result;
14640 PyObject * obj0 = 0 ;
14641 char *kwnames[] = {
14642 (char *) "self", NULL
14643 };
14644
14645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = (int)((wxDC const *)arg1)->GetDepth();
14651
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 resultobj = SWIG_From_int((int)result);
14656 return resultobj;
14657 fail:
14658 return NULL;
14659 }
14660
14661
14662 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
14663 PyObject *resultobj;
14664 wxDC *arg1 = (wxDC *) 0 ;
14665 wxSize result;
14666 PyObject * obj0 = 0 ;
14667 char *kwnames[] = {
14668 (char *) "self", NULL
14669 };
14670
14671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14674 {
14675 PyThreadState* __tstate = wxPyBeginAllowThreads();
14676 result = ((wxDC const *)arg1)->GetPPI();
14677
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 {
14682 wxSize * resultptr;
14683 resultptr = new wxSize((wxSize &) result);
14684 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14685 }
14686 return resultobj;
14687 fail:
14688 return NULL;
14689 }
14690
14691
14692 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
14693 PyObject *resultobj;
14694 wxDC *arg1 = (wxDC *) 0 ;
14695 bool result;
14696 PyObject * obj0 = 0 ;
14697 char *kwnames[] = {
14698 (char *) "self", NULL
14699 };
14700
14701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14704 {
14705 PyThreadState* __tstate = wxPyBeginAllowThreads();
14706 result = (bool)((wxDC const *)arg1)->Ok();
14707
14708 wxPyEndAllowThreads(__tstate);
14709 if (PyErr_Occurred()) SWIG_fail;
14710 }
14711 {
14712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14713 }
14714 return resultobj;
14715 fail:
14716 return NULL;
14717 }
14718
14719
14720 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
14721 PyObject *resultobj;
14722 wxDC *arg1 = (wxDC *) 0 ;
14723 int result;
14724 PyObject * obj0 = 0 ;
14725 char *kwnames[] = {
14726 (char *) "self", NULL
14727 };
14728
14729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14732 {
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14735
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 resultobj = SWIG_From_int((int)result);
14740 return resultobj;
14741 fail:
14742 return NULL;
14743 }
14744
14745
14746 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14747 PyObject *resultobj;
14748 wxDC *arg1 = (wxDC *) 0 ;
14749 wxBrush *result;
14750 PyObject * obj0 = 0 ;
14751 char *kwnames[] = {
14752 (char *) "self", NULL
14753 };
14754
14755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14758 {
14759 PyThreadState* __tstate = wxPyBeginAllowThreads();
14760 {
14761 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14762 result = (wxBrush *) &_result_ref;
14763 }
14764
14765 wxPyEndAllowThreads(__tstate);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 {
14769 wxBrush* resultptr = new wxBrush(*result);
14770 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14771 }
14772 return resultobj;
14773 fail:
14774 return NULL;
14775 }
14776
14777
14778 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
14779 PyObject *resultobj;
14780 wxDC *arg1 = (wxDC *) 0 ;
14781 wxBrush *result;
14782 PyObject * obj0 = 0 ;
14783 char *kwnames[] = {
14784 (char *) "self", NULL
14785 };
14786
14787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14790 {
14791 PyThreadState* __tstate = wxPyBeginAllowThreads();
14792 {
14793 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14794 result = (wxBrush *) &_result_ref;
14795 }
14796
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 {
14801 wxBrush* resultptr = new wxBrush(*result);
14802 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14803 }
14804 return resultobj;
14805 fail:
14806 return NULL;
14807 }
14808
14809
14810 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
14811 PyObject *resultobj;
14812 wxDC *arg1 = (wxDC *) 0 ;
14813 wxFont *result;
14814 PyObject * obj0 = 0 ;
14815 char *kwnames[] = {
14816 (char *) "self", NULL
14817 };
14818
14819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14822 {
14823 PyThreadState* __tstate = wxPyBeginAllowThreads();
14824 {
14825 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14826 result = (wxFont *) &_result_ref;
14827 }
14828
14829 wxPyEndAllowThreads(__tstate);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
14832 {
14833 wxFont* resultptr = new wxFont(*result);
14834 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14835 }
14836 return resultobj;
14837 fail:
14838 return NULL;
14839 }
14840
14841
14842 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
14843 PyObject *resultobj;
14844 wxDC *arg1 = (wxDC *) 0 ;
14845 wxPen *result;
14846 PyObject * obj0 = 0 ;
14847 char *kwnames[] = {
14848 (char *) "self", NULL
14849 };
14850
14851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14854 {
14855 PyThreadState* __tstate = wxPyBeginAllowThreads();
14856 {
14857 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14858 result = (wxPen *) &_result_ref;
14859 }
14860
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
14864 {
14865 wxPen* resultptr = new wxPen(*result);
14866 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14867 }
14868 return resultobj;
14869 fail:
14870 return NULL;
14871 }
14872
14873
14874 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14875 PyObject *resultobj;
14876 wxDC *arg1 = (wxDC *) 0 ;
14877 wxColour *result;
14878 PyObject * obj0 = 0 ;
14879 char *kwnames[] = {
14880 (char *) "self", NULL
14881 };
14882
14883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14886 {
14887 PyThreadState* __tstate = wxPyBeginAllowThreads();
14888 {
14889 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14890 result = (wxColour *) &_result_ref;
14891 }
14892
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14897 return resultobj;
14898 fail:
14899 return NULL;
14900 }
14901
14902
14903 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj;
14905 wxDC *arg1 = (wxDC *) 0 ;
14906 wxColour *result;
14907 PyObject * obj0 = 0 ;
14908 char *kwnames[] = {
14909 (char *) "self", NULL
14910 };
14911
14912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14915 {
14916 PyThreadState* __tstate = wxPyBeginAllowThreads();
14917 {
14918 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14919 result = (wxColour *) &_result_ref;
14920 }
14921
14922 wxPyEndAllowThreads(__tstate);
14923 if (PyErr_Occurred()) SWIG_fail;
14924 }
14925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14926 return resultobj;
14927 fail:
14928 return NULL;
14929 }
14930
14931
14932 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14933 PyObject *resultobj;
14934 wxDC *arg1 = (wxDC *) 0 ;
14935 wxColour *arg2 = 0 ;
14936 wxColour temp2 ;
14937 PyObject * obj0 = 0 ;
14938 PyObject * obj1 = 0 ;
14939 char *kwnames[] = {
14940 (char *) "self",(char *) "colour", NULL
14941 };
14942
14943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14946 {
14947 arg2 = &temp2;
14948 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14949 }
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 (arg1)->SetTextForeground((wxColour const &)*arg2);
14953
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 Py_INCREF(Py_None); resultobj = Py_None;
14958 return resultobj;
14959 fail:
14960 return NULL;
14961 }
14962
14963
14964 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14965 PyObject *resultobj;
14966 wxDC *arg1 = (wxDC *) 0 ;
14967 wxColour *arg2 = 0 ;
14968 wxColour temp2 ;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 char *kwnames[] = {
14972 (char *) "self",(char *) "colour", NULL
14973 };
14974
14975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14978 {
14979 arg2 = &temp2;
14980 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14981 }
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 (arg1)->SetTextBackground((wxColour const &)*arg2);
14985
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 Py_INCREF(Py_None); resultobj = Py_None;
14990 return resultobj;
14991 fail:
14992 return NULL;
14993 }
14994
14995
14996 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14997 PyObject *resultobj;
14998 wxDC *arg1 = (wxDC *) 0 ;
14999 int result;
15000 PyObject * obj0 = 0 ;
15001 char *kwnames[] = {
15002 (char *) "self", NULL
15003 };
15004
15005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
15006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15008 {
15009 PyThreadState* __tstate = wxPyBeginAllowThreads();
15010 result = (int)((wxDC const *)arg1)->GetMapMode();
15011
15012 wxPyEndAllowThreads(__tstate);
15013 if (PyErr_Occurred()) SWIG_fail;
15014 }
15015 resultobj = SWIG_From_int((int)result);
15016 return resultobj;
15017 fail:
15018 return NULL;
15019 }
15020
15021
15022 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
15023 PyObject *resultobj;
15024 wxDC *arg1 = (wxDC *) 0 ;
15025 int arg2 ;
15026 PyObject * obj0 = 0 ;
15027 PyObject * obj1 = 0 ;
15028 char *kwnames[] = {
15029 (char *) "self",(char *) "mode", NULL
15030 };
15031
15032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
15033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15035 arg2 = (int)SWIG_As_int(obj1);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 {
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 (arg1)->SetMapMode(arg2);
15040
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 Py_INCREF(Py_None); resultobj = Py_None;
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj;
15053 wxDC *arg1 = (wxDC *) 0 ;
15054 double *arg2 = (double *) 0 ;
15055 double *arg3 = (double *) 0 ;
15056 double temp2 ;
15057 int res2 = 0 ;
15058 double temp3 ;
15059 int res3 = 0 ;
15060 PyObject * obj0 = 0 ;
15061 char *kwnames[] = {
15062 (char *) "self", NULL
15063 };
15064
15065 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15066 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
15068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15070 {
15071 PyThreadState* __tstate = wxPyBeginAllowThreads();
15072 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
15073
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
15077 Py_INCREF(Py_None); resultobj = Py_None;
15078 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15079 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
15080 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15081 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj;
15090 wxDC *arg1 = (wxDC *) 0 ;
15091 double arg2 ;
15092 double arg3 ;
15093 PyObject * obj0 = 0 ;
15094 PyObject * obj1 = 0 ;
15095 PyObject * obj2 = 0 ;
15096 char *kwnames[] = {
15097 (char *) "self",(char *) "x",(char *) "y", NULL
15098 };
15099
15100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15103 arg2 = (double)SWIG_As_double(obj1);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 arg3 = (double)SWIG_As_double(obj2);
15106 if (PyErr_Occurred()) SWIG_fail;
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 (arg1)->SetUserScale(arg2,arg3);
15110
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 Py_INCREF(Py_None); resultobj = Py_None;
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj;
15123 wxDC *arg1 = (wxDC *) 0 ;
15124 double *arg2 = (double *) 0 ;
15125 double *arg3 = (double *) 0 ;
15126 double temp2 ;
15127 int res2 = 0 ;
15128 double temp3 ;
15129 int res3 = 0 ;
15130 PyObject * obj0 = 0 ;
15131 char *kwnames[] = {
15132 (char *) "self", NULL
15133 };
15134
15135 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15136 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
15138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15140 {
15141 PyThreadState* __tstate = wxPyBeginAllowThreads();
15142 (arg1)->GetLogicalScale(arg2,arg3);
15143
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 Py_INCREF(Py_None); resultobj = Py_None;
15148 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15149 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
15150 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15151 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
15152 return resultobj;
15153 fail:
15154 return NULL;
15155 }
15156
15157
15158 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
15159 PyObject *resultobj;
15160 wxDC *arg1 = (wxDC *) 0 ;
15161 double arg2 ;
15162 double arg3 ;
15163 PyObject * obj0 = 0 ;
15164 PyObject * obj1 = 0 ;
15165 PyObject * obj2 = 0 ;
15166 char *kwnames[] = {
15167 (char *) "self",(char *) "x",(char *) "y", NULL
15168 };
15169
15170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15173 arg2 = (double)SWIG_As_double(obj1);
15174 if (PyErr_Occurred()) SWIG_fail;
15175 arg3 = (double)SWIG_As_double(obj2);
15176 if (PyErr_Occurred()) SWIG_fail;
15177 {
15178 PyThreadState* __tstate = wxPyBeginAllowThreads();
15179 (arg1)->SetLogicalScale(arg2,arg3);
15180
15181 wxPyEndAllowThreads(__tstate);
15182 if (PyErr_Occurred()) SWIG_fail;
15183 }
15184 Py_INCREF(Py_None); resultobj = Py_None;
15185 return resultobj;
15186 fail:
15187 return NULL;
15188 }
15189
15190
15191 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
15192 PyObject *resultobj;
15193 wxDC *arg1 = (wxDC *) 0 ;
15194 wxPoint result;
15195 PyObject * obj0 = 0 ;
15196 char *kwnames[] = {
15197 (char *) "self", NULL
15198 };
15199
15200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
15201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15203 {
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 result = ((wxDC const *)arg1)->GetLogicalOrigin();
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 {
15211 wxPoint * resultptr;
15212 resultptr = new wxPoint((wxPoint &) result);
15213 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15214 }
15215 return resultobj;
15216 fail:
15217 return NULL;
15218 }
15219
15220
15221 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
15222 PyObject *resultobj;
15223 wxDC *arg1 = (wxDC *) 0 ;
15224 int *arg2 = (int *) 0 ;
15225 int *arg3 = (int *) 0 ;
15226 int temp2 ;
15227 int res2 = 0 ;
15228 int temp3 ;
15229 int res3 = 0 ;
15230 PyObject * obj0 = 0 ;
15231 char *kwnames[] = {
15232 (char *) "self", NULL
15233 };
15234
15235 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15236 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
15238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15240 {
15241 PyThreadState* __tstate = wxPyBeginAllowThreads();
15242 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
15243
15244 wxPyEndAllowThreads(__tstate);
15245 if (PyErr_Occurred()) SWIG_fail;
15246 }
15247 Py_INCREF(Py_None); resultobj = Py_None;
15248 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15249 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15250 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15251 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15252 return resultobj;
15253 fail:
15254 return NULL;
15255 }
15256
15257
15258 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
15259 PyObject *resultobj;
15260 wxDC *arg1 = (wxDC *) 0 ;
15261 int arg2 ;
15262 int arg3 ;
15263 PyObject * obj0 = 0 ;
15264 PyObject * obj1 = 0 ;
15265 PyObject * obj2 = 0 ;
15266 char *kwnames[] = {
15267 (char *) "self",(char *) "x",(char *) "y", NULL
15268 };
15269
15270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15273 arg2 = (int)SWIG_As_int(obj1);
15274 if (PyErr_Occurred()) SWIG_fail;
15275 arg3 = (int)SWIG_As_int(obj2);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 {
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 (arg1)->SetLogicalOrigin(arg2,arg3);
15280
15281 wxPyEndAllowThreads(__tstate);
15282 if (PyErr_Occurred()) SWIG_fail;
15283 }
15284 Py_INCREF(Py_None); resultobj = Py_None;
15285 return resultobj;
15286 fail:
15287 return NULL;
15288 }
15289
15290
15291 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
15292 PyObject *resultobj;
15293 wxDC *arg1 = (wxDC *) 0 ;
15294 wxPoint *arg2 = 0 ;
15295 wxPoint temp2 ;
15296 PyObject * obj0 = 0 ;
15297 PyObject * obj1 = 0 ;
15298 char *kwnames[] = {
15299 (char *) "self",(char *) "point", NULL
15300 };
15301
15302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
15303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15305 {
15306 arg2 = &temp2;
15307 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15308 }
15309 {
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
15311 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
15312
15313 wxPyEndAllowThreads(__tstate);
15314 if (PyErr_Occurred()) SWIG_fail;
15315 }
15316 Py_INCREF(Py_None); resultobj = Py_None;
15317 return resultobj;
15318 fail:
15319 return NULL;
15320 }
15321
15322
15323 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
15324 PyObject *resultobj;
15325 wxDC *arg1 = (wxDC *) 0 ;
15326 wxPoint result;
15327 PyObject * obj0 = 0 ;
15328 char *kwnames[] = {
15329 (char *) "self", NULL
15330 };
15331
15332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
15333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15335 {
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 result = ((wxDC const *)arg1)->GetDeviceOrigin();
15338
15339 wxPyEndAllowThreads(__tstate);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 {
15343 wxPoint * resultptr;
15344 resultptr = new wxPoint((wxPoint &) result);
15345 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15346 }
15347 return resultobj;
15348 fail:
15349 return NULL;
15350 }
15351
15352
15353 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
15354 PyObject *resultobj;
15355 wxDC *arg1 = (wxDC *) 0 ;
15356 int *arg2 = (int *) 0 ;
15357 int *arg3 = (int *) 0 ;
15358 int temp2 ;
15359 int res2 = 0 ;
15360 int temp3 ;
15361 int res3 = 0 ;
15362 PyObject * obj0 = 0 ;
15363 char *kwnames[] = {
15364 (char *) "self", NULL
15365 };
15366
15367 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15368 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
15370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 Py_INCREF(Py_None); resultobj = Py_None;
15380 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15381 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15382 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15383 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15384 return resultobj;
15385 fail:
15386 return NULL;
15387 }
15388
15389
15390 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
15391 PyObject *resultobj;
15392 wxDC *arg1 = (wxDC *) 0 ;
15393 int arg2 ;
15394 int arg3 ;
15395 PyObject * obj0 = 0 ;
15396 PyObject * obj1 = 0 ;
15397 PyObject * obj2 = 0 ;
15398 char *kwnames[] = {
15399 (char *) "self",(char *) "x",(char *) "y", NULL
15400 };
15401
15402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15405 arg2 = (int)SWIG_As_int(obj1);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 arg3 = (int)SWIG_As_int(obj2);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 {
15410 PyThreadState* __tstate = wxPyBeginAllowThreads();
15411 (arg1)->SetDeviceOrigin(arg2,arg3);
15412
15413 wxPyEndAllowThreads(__tstate);
15414 if (PyErr_Occurred()) SWIG_fail;
15415 }
15416 Py_INCREF(Py_None); resultobj = Py_None;
15417 return resultobj;
15418 fail:
15419 return NULL;
15420 }
15421
15422
15423 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
15424 PyObject *resultobj;
15425 wxDC *arg1 = (wxDC *) 0 ;
15426 wxPoint *arg2 = 0 ;
15427 wxPoint temp2 ;
15428 PyObject * obj0 = 0 ;
15429 PyObject * obj1 = 0 ;
15430 char *kwnames[] = {
15431 (char *) "self",(char *) "point", NULL
15432 };
15433
15434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
15435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15437 {
15438 arg2 = &temp2;
15439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15440 }
15441 {
15442 PyThreadState* __tstate = wxPyBeginAllowThreads();
15443 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
15444
15445 wxPyEndAllowThreads(__tstate);
15446 if (PyErr_Occurred()) SWIG_fail;
15447 }
15448 Py_INCREF(Py_None); resultobj = Py_None;
15449 return resultobj;
15450 fail:
15451 return NULL;
15452 }
15453
15454
15455 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
15456 PyObject *resultobj;
15457 wxDC *arg1 = (wxDC *) 0 ;
15458 bool arg2 ;
15459 bool arg3 ;
15460 PyObject * obj0 = 0 ;
15461 PyObject * obj1 = 0 ;
15462 PyObject * obj2 = 0 ;
15463 char *kwnames[] = {
15464 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
15465 };
15466
15467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15470 arg2 = (bool)SWIG_As_bool(obj1);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 arg3 = (bool)SWIG_As_bool(obj2);
15473 if (PyErr_Occurred()) SWIG_fail;
15474 {
15475 PyThreadState* __tstate = wxPyBeginAllowThreads();
15476 (arg1)->SetAxisOrientation(arg2,arg3);
15477
15478 wxPyEndAllowThreads(__tstate);
15479 if (PyErr_Occurred()) SWIG_fail;
15480 }
15481 Py_INCREF(Py_None); resultobj = Py_None;
15482 return resultobj;
15483 fail:
15484 return NULL;
15485 }
15486
15487
15488 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
15489 PyObject *resultobj;
15490 wxDC *arg1 = (wxDC *) 0 ;
15491 int result;
15492 PyObject * obj0 = 0 ;
15493 char *kwnames[] = {
15494 (char *) "self", NULL
15495 };
15496
15497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15500 {
15501 PyThreadState* __tstate = wxPyBeginAllowThreads();
15502 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
15503
15504 wxPyEndAllowThreads(__tstate);
15505 if (PyErr_Occurred()) SWIG_fail;
15506 }
15507 resultobj = SWIG_From_int((int)result);
15508 return resultobj;
15509 fail:
15510 return NULL;
15511 }
15512
15513
15514 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
15515 PyObject *resultobj;
15516 wxDC *arg1 = (wxDC *) 0 ;
15517 int arg2 ;
15518 PyObject * obj0 = 0 ;
15519 PyObject * obj1 = 0 ;
15520 char *kwnames[] = {
15521 (char *) "self",(char *) "function", NULL
15522 };
15523
15524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15527 arg2 = (int)SWIG_As_int(obj1);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 (arg1)->SetLogicalFunction(arg2);
15532
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 Py_INCREF(Py_None); resultobj = Py_None;
15537 return resultobj;
15538 fail:
15539 return NULL;
15540 }
15541
15542
15543 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15544 PyObject *resultobj;
15545 wxDC *arg1 = (wxDC *) 0 ;
15546 int arg2 ;
15547 int arg3 ;
15548 PyObject * obj0 = 0 ;
15549 PyObject * obj1 = 0 ;
15550 PyObject * obj2 = 0 ;
15551 char *kwnames[] = {
15552 (char *) "self",(char *) "x",(char *) "y", NULL
15553 };
15554
15555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15558 arg2 = (int)SWIG_As_int(obj1);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 arg3 = (int)SWIG_As_int(obj2);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 {
15563 PyThreadState* __tstate = wxPyBeginAllowThreads();
15564 (arg1)->CalcBoundingBox(arg2,arg3);
15565
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 Py_INCREF(Py_None); resultobj = Py_None;
15570 return resultobj;
15571 fail:
15572 return NULL;
15573 }
15574
15575
15576 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
15577 PyObject *resultobj;
15578 wxDC *arg1 = (wxDC *) 0 ;
15579 wxPoint *arg2 = 0 ;
15580 wxPoint temp2 ;
15581 PyObject * obj0 = 0 ;
15582 PyObject * obj1 = 0 ;
15583 char *kwnames[] = {
15584 (char *) "self",(char *) "point", NULL
15585 };
15586
15587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15590 {
15591 arg2 = &temp2;
15592 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15593 }
15594 {
15595 PyThreadState* __tstate = wxPyBeginAllowThreads();
15596 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15597
15598 wxPyEndAllowThreads(__tstate);
15599 if (PyErr_Occurred()) SWIG_fail;
15600 }
15601 Py_INCREF(Py_None); resultobj = Py_None;
15602 return resultobj;
15603 fail:
15604 return NULL;
15605 }
15606
15607
15608 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15609 PyObject *resultobj;
15610 wxDC *arg1 = (wxDC *) 0 ;
15611 PyObject * obj0 = 0 ;
15612 char *kwnames[] = {
15613 (char *) "self", NULL
15614 };
15615
15616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
15621 (arg1)->ResetBoundingBox();
15622
15623 wxPyEndAllowThreads(__tstate);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 Py_INCREF(Py_None); resultobj = Py_None;
15627 return resultobj;
15628 fail:
15629 return NULL;
15630 }
15631
15632
15633 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
15634 PyObject *resultobj;
15635 wxDC *arg1 = (wxDC *) 0 ;
15636 int result;
15637 PyObject * obj0 = 0 ;
15638 char *kwnames[] = {
15639 (char *) "self", NULL
15640 };
15641
15642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 result = (int)((wxDC const *)arg1)->MinX();
15648
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 resultobj = SWIG_From_int((int)result);
15653 return resultobj;
15654 fail:
15655 return NULL;
15656 }
15657
15658
15659 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 wxDC *arg1 = (wxDC *) 0 ;
15662 int result;
15663 PyObject * obj0 = 0 ;
15664 char *kwnames[] = {
15665 (char *) "self", NULL
15666 };
15667
15668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15671 {
15672 PyThreadState* __tstate = wxPyBeginAllowThreads();
15673 result = (int)((wxDC const *)arg1)->MaxX();
15674
15675 wxPyEndAllowThreads(__tstate);
15676 if (PyErr_Occurred()) SWIG_fail;
15677 }
15678 resultobj = SWIG_From_int((int)result);
15679 return resultobj;
15680 fail:
15681 return NULL;
15682 }
15683
15684
15685 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
15686 PyObject *resultobj;
15687 wxDC *arg1 = (wxDC *) 0 ;
15688 int result;
15689 PyObject * obj0 = 0 ;
15690 char *kwnames[] = {
15691 (char *) "self", NULL
15692 };
15693
15694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15697 {
15698 PyThreadState* __tstate = wxPyBeginAllowThreads();
15699 result = (int)((wxDC const *)arg1)->MinY();
15700
15701 wxPyEndAllowThreads(__tstate);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 }
15704 resultobj = SWIG_From_int((int)result);
15705 return resultobj;
15706 fail:
15707 return NULL;
15708 }
15709
15710
15711 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
15712 PyObject *resultobj;
15713 wxDC *arg1 = (wxDC *) 0 ;
15714 int result;
15715 PyObject * obj0 = 0 ;
15716 char *kwnames[] = {
15717 (char *) "self", NULL
15718 };
15719
15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15723 {
15724 PyThreadState* __tstate = wxPyBeginAllowThreads();
15725 result = (int)((wxDC const *)arg1)->MaxY();
15726
15727 wxPyEndAllowThreads(__tstate);
15728 if (PyErr_Occurred()) SWIG_fail;
15729 }
15730 resultobj = SWIG_From_int((int)result);
15731 return resultobj;
15732 fail:
15733 return NULL;
15734 }
15735
15736
15737 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15738 PyObject *resultobj;
15739 wxDC *arg1 = (wxDC *) 0 ;
15740 int *arg2 = (int *) 0 ;
15741 int *arg3 = (int *) 0 ;
15742 int *arg4 = (int *) 0 ;
15743 int *arg5 = (int *) 0 ;
15744 int temp2 ;
15745 int res2 = 0 ;
15746 int temp3 ;
15747 int res3 = 0 ;
15748 int temp4 ;
15749 int res4 = 0 ;
15750 int temp5 ;
15751 int res5 = 0 ;
15752 PyObject * obj0 = 0 ;
15753 char *kwnames[] = {
15754 (char *) "self", NULL
15755 };
15756
15757 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15758 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15759 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15760 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15764 {
15765 PyThreadState* __tstate = wxPyBeginAllowThreads();
15766 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15767
15768 wxPyEndAllowThreads(__tstate);
15769 if (PyErr_Occurred()) SWIG_fail;
15770 }
15771 Py_INCREF(Py_None); resultobj = Py_None;
15772 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15773 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15774 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15775 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15776 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15777 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15778 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15779 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15780 return resultobj;
15781 fail:
15782 return NULL;
15783 }
15784
15785
15786 static PyObject *_wrap_DC_GetHDC(PyObject *, PyObject *args, PyObject *kwargs) {
15787 PyObject *resultobj;
15788 wxDC *arg1 = (wxDC *) 0 ;
15789 long result;
15790 PyObject * obj0 = 0 ;
15791 char *kwnames[] = {
15792 (char *) "self", NULL
15793 };
15794
15795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail;
15796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15798 {
15799 PyThreadState* __tstate = wxPyBeginAllowThreads();
15800 result = (long)(arg1)->GetHDC();
15801
15802 wxPyEndAllowThreads(__tstate);
15803 if (PyErr_Occurred()) SWIG_fail;
15804 }
15805 resultobj = SWIG_From_long((long)result);
15806 return resultobj;
15807 fail:
15808 return NULL;
15809 }
15810
15811
15812 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
15813 PyObject *resultobj;
15814 wxDC *arg1 = (wxDC *) 0 ;
15815 PyObject *arg2 = (PyObject *) 0 ;
15816 PyObject *arg3 = (PyObject *) 0 ;
15817 PyObject *arg4 = (PyObject *) 0 ;
15818 PyObject *result;
15819 PyObject * obj0 = 0 ;
15820 PyObject * obj1 = 0 ;
15821 PyObject * obj2 = 0 ;
15822 PyObject * obj3 = 0 ;
15823 char *kwnames[] = {
15824 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15825 };
15826
15827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15830 arg2 = obj1;
15831 arg3 = obj2;
15832 arg4 = obj3;
15833 {
15834 PyThreadState* __tstate = wxPyBeginAllowThreads();
15835 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15836
15837 wxPyEndAllowThreads(__tstate);
15838 if (PyErr_Occurred()) SWIG_fail;
15839 }
15840 resultobj = result;
15841 return resultobj;
15842 fail:
15843 return NULL;
15844 }
15845
15846
15847 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj;
15849 wxDC *arg1 = (wxDC *) 0 ;
15850 PyObject *arg2 = (PyObject *) 0 ;
15851 PyObject *arg3 = (PyObject *) 0 ;
15852 PyObject *arg4 = (PyObject *) 0 ;
15853 PyObject *result;
15854 PyObject * obj0 = 0 ;
15855 PyObject * obj1 = 0 ;
15856 PyObject * obj2 = 0 ;
15857 PyObject * obj3 = 0 ;
15858 char *kwnames[] = {
15859 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15860 };
15861
15862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15865 arg2 = obj1;
15866 arg3 = obj2;
15867 arg4 = obj3;
15868 {
15869 PyThreadState* __tstate = wxPyBeginAllowThreads();
15870 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15871
15872 wxPyEndAllowThreads(__tstate);
15873 if (PyErr_Occurred()) SWIG_fail;
15874 }
15875 resultobj = result;
15876 return resultobj;
15877 fail:
15878 return NULL;
15879 }
15880
15881
15882 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
15883 PyObject *resultobj;
15884 wxDC *arg1 = (wxDC *) 0 ;
15885 PyObject *arg2 = (PyObject *) 0 ;
15886 PyObject *arg3 = (PyObject *) 0 ;
15887 PyObject *arg4 = (PyObject *) 0 ;
15888 PyObject *result;
15889 PyObject * obj0 = 0 ;
15890 PyObject * obj1 = 0 ;
15891 PyObject * obj2 = 0 ;
15892 PyObject * obj3 = 0 ;
15893 char *kwnames[] = {
15894 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15895 };
15896
15897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15900 arg2 = obj1;
15901 arg3 = obj2;
15902 arg4 = obj3;
15903 {
15904 PyThreadState* __tstate = wxPyBeginAllowThreads();
15905 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15906
15907 wxPyEndAllowThreads(__tstate);
15908 if (PyErr_Occurred()) SWIG_fail;
15909 }
15910 resultobj = result;
15911 return resultobj;
15912 fail:
15913 return NULL;
15914 }
15915
15916
15917 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
15918 PyObject *resultobj;
15919 wxDC *arg1 = (wxDC *) 0 ;
15920 PyObject *arg2 = (PyObject *) 0 ;
15921 PyObject *arg3 = (PyObject *) 0 ;
15922 PyObject *arg4 = (PyObject *) 0 ;
15923 PyObject *result;
15924 PyObject * obj0 = 0 ;
15925 PyObject * obj1 = 0 ;
15926 PyObject * obj2 = 0 ;
15927 PyObject * obj3 = 0 ;
15928 char *kwnames[] = {
15929 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15930 };
15931
15932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15935 arg2 = obj1;
15936 arg3 = obj2;
15937 arg4 = obj3;
15938 {
15939 PyThreadState* __tstate = wxPyBeginAllowThreads();
15940 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15941
15942 wxPyEndAllowThreads(__tstate);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 resultobj = result;
15946 return resultobj;
15947 fail:
15948 return NULL;
15949 }
15950
15951
15952 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
15953 PyObject *resultobj;
15954 wxDC *arg1 = (wxDC *) 0 ;
15955 PyObject *arg2 = (PyObject *) 0 ;
15956 PyObject *arg3 = (PyObject *) 0 ;
15957 PyObject *arg4 = (PyObject *) 0 ;
15958 PyObject *result;
15959 PyObject * obj0 = 0 ;
15960 PyObject * obj1 = 0 ;
15961 PyObject * obj2 = 0 ;
15962 PyObject * obj3 = 0 ;
15963 char *kwnames[] = {
15964 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15965 };
15966
15967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15970 arg2 = obj1;
15971 arg3 = obj2;
15972 arg4 = obj3;
15973 {
15974 PyThreadState* __tstate = wxPyBeginAllowThreads();
15975 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15976
15977 wxPyEndAllowThreads(__tstate);
15978 if (PyErr_Occurred()) SWIG_fail;
15979 }
15980 resultobj = result;
15981 return resultobj;
15982 fail:
15983 return NULL;
15984 }
15985
15986
15987 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj;
15989 wxDC *arg1 = (wxDC *) 0 ;
15990 PyObject *arg2 = (PyObject *) 0 ;
15991 PyObject *arg3 = (PyObject *) 0 ;
15992 PyObject *arg4 = (PyObject *) 0 ;
15993 PyObject *arg5 = (PyObject *) 0 ;
15994 PyObject *result;
15995 PyObject * obj0 = 0 ;
15996 PyObject * obj1 = 0 ;
15997 PyObject * obj2 = 0 ;
15998 PyObject * obj3 = 0 ;
15999 PyObject * obj4 = 0 ;
16000 char *kwnames[] = {
16001 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
16002 };
16003
16004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16007 arg2 = obj1;
16008 arg3 = obj2;
16009 arg4 = obj3;
16010 arg5 = obj4;
16011 {
16012 PyThreadState* __tstate = wxPyBeginAllowThreads();
16013 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
16014
16015 wxPyEndAllowThreads(__tstate);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 resultobj = result;
16019 return resultobj;
16020 fail:
16021 return NULL;
16022 }
16023
16024
16025 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
16026 PyObject *obj;
16027 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16028 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
16029 Py_INCREF(obj);
16030 return Py_BuildValue((char *)"");
16031 }
16032 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
16033 PyObject *resultobj;
16034 wxMemoryDC *result;
16035 char *kwnames[] = {
16036 NULL
16037 };
16038
16039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
16040 {
16041 if (!wxPyCheckForApp()) SWIG_fail;
16042 PyThreadState* __tstate = wxPyBeginAllowThreads();
16043 result = (wxMemoryDC *)new wxMemoryDC();
16044
16045 wxPyEndAllowThreads(__tstate);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 }
16048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
16049 return resultobj;
16050 fail:
16051 return NULL;
16052 }
16053
16054
16055 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj;
16057 wxDC *arg1 = (wxDC *) 0 ;
16058 wxMemoryDC *result;
16059 PyObject * obj0 = 0 ;
16060 char *kwnames[] = {
16061 (char *) "oldDC", NULL
16062 };
16063
16064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
16065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16067 {
16068 if (!wxPyCheckForApp()) SWIG_fail;
16069 PyThreadState* __tstate = wxPyBeginAllowThreads();
16070 result = (wxMemoryDC *)new wxMemoryDC(arg1);
16071
16072 wxPyEndAllowThreads(__tstate);
16073 if (PyErr_Occurred()) SWIG_fail;
16074 }
16075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
16076 return resultobj;
16077 fail:
16078 return NULL;
16079 }
16080
16081
16082 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
16083 PyObject *resultobj;
16084 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
16085 wxBitmap *arg2 = 0 ;
16086 PyObject * obj0 = 0 ;
16087 PyObject * obj1 = 0 ;
16088 char *kwnames[] = {
16089 (char *) "self",(char *) "bitmap", NULL
16090 };
16091
16092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
16093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
16094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16095 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16096 SWIG_POINTER_EXCEPTION | 0)) == -1)
16097 SWIG_fail;
16098 if (arg2 == NULL) {
16099 PyErr_SetString(PyExc_TypeError,"null reference");
16100 SWIG_fail;
16101 }
16102 {
16103 PyThreadState* __tstate = wxPyBeginAllowThreads();
16104 (arg1)->SelectObject((wxBitmap const &)*arg2);
16105
16106 wxPyEndAllowThreads(__tstate);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 Py_INCREF(Py_None); resultobj = Py_None;
16110 return resultobj;
16111 fail:
16112 return NULL;
16113 }
16114
16115
16116 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
16117 PyObject *obj;
16118 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16119 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
16120 Py_INCREF(obj);
16121 return Py_BuildValue((char *)"");
16122 }
16123 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
16124 PyObject *resultobj;
16125 wxDC *arg1 = (wxDC *) 0 ;
16126 wxBitmap *arg2 = 0 ;
16127 wxBufferedDC *result;
16128 PyObject * obj0 = 0 ;
16129 PyObject * obj1 = 0 ;
16130
16131 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
16132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16135 SWIG_POINTER_EXCEPTION | 0)) == -1)
16136 SWIG_fail;
16137 if (arg2 == NULL) {
16138 PyErr_SetString(PyExc_TypeError,"null reference");
16139 SWIG_fail;
16140 }
16141 {
16142 if (!wxPyCheckForApp()) SWIG_fail;
16143 PyThreadState* __tstate = wxPyBeginAllowThreads();
16144 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
16145
16146 wxPyEndAllowThreads(__tstate);
16147 if (PyErr_Occurred()) SWIG_fail;
16148 }
16149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
16150 return resultobj;
16151 fail:
16152 return NULL;
16153 }
16154
16155
16156 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
16157 PyObject *resultobj;
16158 wxDC *arg1 = (wxDC *) 0 ;
16159 wxSize *arg2 = 0 ;
16160 wxBufferedDC *result;
16161 wxSize temp2 ;
16162 PyObject * obj0 = 0 ;
16163 PyObject * obj1 = 0 ;
16164
16165 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
16166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16168 {
16169 arg2 = &temp2;
16170 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16171 }
16172 {
16173 if (!wxPyCheckForApp()) SWIG_fail;
16174 PyThreadState* __tstate = wxPyBeginAllowThreads();
16175 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
16176
16177 wxPyEndAllowThreads(__tstate);
16178 if (PyErr_Occurred()) SWIG_fail;
16179 }
16180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
16181 return resultobj;
16182 fail:
16183 return NULL;
16184 }
16185
16186
16187 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
16188 int argc;
16189 PyObject *argv[3];
16190 int ii;
16191
16192 argc = PyObject_Length(args);
16193 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
16194 argv[ii] = PyTuple_GetItem(args,ii);
16195 }
16196 if (argc == 2) {
16197 int _v;
16198 {
16199 void *ptr;
16200 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
16201 _v = 0;
16202 PyErr_Clear();
16203 } else {
16204 _v = 1;
16205 }
16206 }
16207 if (_v) {
16208 {
16209 void *ptr;
16210 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
16211 _v = 0;
16212 PyErr_Clear();
16213 } else {
16214 _v = 1;
16215 }
16216 }
16217 if (_v) {
16218 return _wrap_new_BufferedDC__SWIG_0(self,args);
16219 }
16220 }
16221 }
16222 if (argc == 2) {
16223 int _v;
16224 {
16225 void *ptr;
16226 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
16227 _v = 0;
16228 PyErr_Clear();
16229 } else {
16230 _v = 1;
16231 }
16232 }
16233 if (_v) {
16234 {
16235 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
16236 }
16237 if (_v) {
16238 return _wrap_new_BufferedDC__SWIG_1(self,args);
16239 }
16240 }
16241 }
16242
16243 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
16244 return NULL;
16245 }
16246
16247
16248 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
16249 PyObject *resultobj;
16250 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
16251 PyObject * obj0 = 0 ;
16252 char *kwnames[] = {
16253 (char *) "self", NULL
16254 };
16255
16256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
16257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
16258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16259 {
16260 PyThreadState* __tstate = wxPyBeginAllowThreads();
16261 delete arg1;
16262
16263 wxPyEndAllowThreads(__tstate);
16264 if (PyErr_Occurred()) SWIG_fail;
16265 }
16266 Py_INCREF(Py_None); resultobj = Py_None;
16267 return resultobj;
16268 fail:
16269 return NULL;
16270 }
16271
16272
16273 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
16274 PyObject *resultobj;
16275 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
16276 PyObject * obj0 = 0 ;
16277 char *kwnames[] = {
16278 (char *) "self", NULL
16279 };
16280
16281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
16282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
16283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16284 {
16285 PyThreadState* __tstate = wxPyBeginAllowThreads();
16286 (arg1)->UnMask();
16287
16288 wxPyEndAllowThreads(__tstate);
16289 if (PyErr_Occurred()) SWIG_fail;
16290 }
16291 Py_INCREF(Py_None); resultobj = Py_None;
16292 return resultobj;
16293 fail:
16294 return NULL;
16295 }
16296
16297
16298 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
16299 PyObject *obj;
16300 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16301 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
16302 Py_INCREF(obj);
16303 return Py_BuildValue((char *)"");
16304 }
16305 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
16306 PyObject *resultobj;
16307 wxWindow *arg1 = (wxWindow *) 0 ;
16308 wxBitmap const &arg2_defvalue = wxNullBitmap ;
16309 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
16310 wxBufferedPaintDC *result;
16311 PyObject * obj0 = 0 ;
16312 PyObject * obj1 = 0 ;
16313 char *kwnames[] = {
16314 (char *) "window",(char *) "buffer", NULL
16315 };
16316
16317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
16318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16320 if (obj1) {
16321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16322 SWIG_POINTER_EXCEPTION | 0)) == -1)
16323 SWIG_fail;
16324 if (arg2 == NULL) {
16325 PyErr_SetString(PyExc_TypeError,"null reference");
16326 SWIG_fail;
16327 }
16328 }
16329 {
16330 if (!wxPyCheckForApp()) SWIG_fail;
16331 PyThreadState* __tstate = wxPyBeginAllowThreads();
16332 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
16333
16334 wxPyEndAllowThreads(__tstate);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
16338 return resultobj;
16339 fail:
16340 return NULL;
16341 }
16342
16343
16344 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
16345 PyObject *obj;
16346 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16347 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
16348 Py_INCREF(obj);
16349 return Py_BuildValue((char *)"");
16350 }
16351 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
16352 PyObject *resultobj;
16353 wxScreenDC *result;
16354 char *kwnames[] = {
16355 NULL
16356 };
16357
16358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
16359 {
16360 if (!wxPyCheckForApp()) SWIG_fail;
16361 PyThreadState* __tstate = wxPyBeginAllowThreads();
16362 result = (wxScreenDC *)new wxScreenDC();
16363
16364 wxPyEndAllowThreads(__tstate);
16365 if (PyErr_Occurred()) SWIG_fail;
16366 }
16367 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
16368 return resultobj;
16369 fail:
16370 return NULL;
16371 }
16372
16373
16374 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
16375 PyObject *resultobj;
16376 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16377 wxWindow *arg2 = (wxWindow *) 0 ;
16378 bool result;
16379 PyObject * obj0 = 0 ;
16380 PyObject * obj1 = 0 ;
16381 char *kwnames[] = {
16382 (char *) "self",(char *) "window", NULL
16383 };
16384
16385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
16386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16388 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16390 {
16391 PyThreadState* __tstate = wxPyBeginAllowThreads();
16392 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16393
16394 wxPyEndAllowThreads(__tstate);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 {
16398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16399 }
16400 return resultobj;
16401 fail:
16402 return NULL;
16403 }
16404
16405
16406 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
16407 PyObject *resultobj;
16408 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16409 wxRect *arg2 = (wxRect *) NULL ;
16410 bool result;
16411 PyObject * obj0 = 0 ;
16412 PyObject * obj1 = 0 ;
16413 char *kwnames[] = {
16414 (char *) "self",(char *) "rect", NULL
16415 };
16416
16417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
16418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16420 if (obj1) {
16421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16423 }
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16427
16428 wxPyEndAllowThreads(__tstate);
16429 if (PyErr_Occurred()) SWIG_fail;
16430 }
16431 {
16432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16433 }
16434 return resultobj;
16435 fail:
16436 return NULL;
16437 }
16438
16439
16440 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
16441 PyObject *resultobj;
16442 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16443 bool result;
16444 PyObject * obj0 = 0 ;
16445 char *kwnames[] = {
16446 (char *) "self", NULL
16447 };
16448
16449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
16450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16452 {
16453 PyThreadState* __tstate = wxPyBeginAllowThreads();
16454 result = (bool)(arg1)->EndDrawingOnTop();
16455
16456 wxPyEndAllowThreads(__tstate);
16457 if (PyErr_Occurred()) SWIG_fail;
16458 }
16459 {
16460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16461 }
16462 return resultobj;
16463 fail:
16464 return NULL;
16465 }
16466
16467
16468 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
16469 PyObject *obj;
16470 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16471 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
16472 Py_INCREF(obj);
16473 return Py_BuildValue((char *)"");
16474 }
16475 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
16476 PyObject *resultobj;
16477 wxWindow *arg1 = (wxWindow *) 0 ;
16478 wxClientDC *result;
16479 PyObject * obj0 = 0 ;
16480 char *kwnames[] = {
16481 (char *) "win", NULL
16482 };
16483
16484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
16485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16487 {
16488 if (!wxPyCheckForApp()) SWIG_fail;
16489 PyThreadState* __tstate = wxPyBeginAllowThreads();
16490 result = (wxClientDC *)new wxClientDC(arg1);
16491
16492 wxPyEndAllowThreads(__tstate);
16493 if (PyErr_Occurred()) SWIG_fail;
16494 }
16495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16496 return resultobj;
16497 fail:
16498 return NULL;
16499 }
16500
16501
16502 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
16503 PyObject *obj;
16504 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16505 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16506 Py_INCREF(obj);
16507 return Py_BuildValue((char *)"");
16508 }
16509 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
16510 PyObject *resultobj;
16511 wxWindow *arg1 = (wxWindow *) 0 ;
16512 wxPaintDC *result;
16513 PyObject * obj0 = 0 ;
16514 char *kwnames[] = {
16515 (char *) "win", NULL
16516 };
16517
16518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16521 {
16522 if (!wxPyCheckForApp()) SWIG_fail;
16523 PyThreadState* __tstate = wxPyBeginAllowThreads();
16524 result = (wxPaintDC *)new wxPaintDC(arg1);
16525
16526 wxPyEndAllowThreads(__tstate);
16527 if (PyErr_Occurred()) SWIG_fail;
16528 }
16529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16530 return resultobj;
16531 fail:
16532 return NULL;
16533 }
16534
16535
16536 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
16537 PyObject *obj;
16538 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16539 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16540 Py_INCREF(obj);
16541 return Py_BuildValue((char *)"");
16542 }
16543 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
16544 PyObject *resultobj;
16545 wxWindow *arg1 = (wxWindow *) 0 ;
16546 wxWindowDC *result;
16547 PyObject * obj0 = 0 ;
16548 char *kwnames[] = {
16549 (char *) "win", NULL
16550 };
16551
16552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16555 {
16556 if (!wxPyCheckForApp()) SWIG_fail;
16557 PyThreadState* __tstate = wxPyBeginAllowThreads();
16558 result = (wxWindowDC *)new wxWindowDC(arg1);
16559
16560 wxPyEndAllowThreads(__tstate);
16561 if (PyErr_Occurred()) SWIG_fail;
16562 }
16563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16564 return resultobj;
16565 fail:
16566 return NULL;
16567 }
16568
16569
16570 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
16571 PyObject *obj;
16572 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16573 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16574 Py_INCREF(obj);
16575 return Py_BuildValue((char *)"");
16576 }
16577 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
16578 PyObject *resultobj;
16579 wxDC *arg1 = 0 ;
16580 bool arg2 ;
16581 wxMirrorDC *result;
16582 PyObject * obj0 = 0 ;
16583 PyObject * obj1 = 0 ;
16584 char *kwnames[] = {
16585 (char *) "dc",(char *) "mirror", NULL
16586 };
16587
16588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16590 SWIG_POINTER_EXCEPTION | 0)) == -1)
16591 SWIG_fail;
16592 if (arg1 == NULL) {
16593 PyErr_SetString(PyExc_TypeError,"null reference");
16594 SWIG_fail;
16595 }
16596 arg2 = (bool)SWIG_As_bool(obj1);
16597 if (PyErr_Occurred()) SWIG_fail;
16598 {
16599 if (!wxPyCheckForApp()) SWIG_fail;
16600 PyThreadState* __tstate = wxPyBeginAllowThreads();
16601 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16602
16603 wxPyEndAllowThreads(__tstate);
16604 if (PyErr_Occurred()) SWIG_fail;
16605 }
16606 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16607 return resultobj;
16608 fail:
16609 return NULL;
16610 }
16611
16612
16613 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
16614 PyObject *obj;
16615 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16616 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16617 Py_INCREF(obj);
16618 return Py_BuildValue((char *)"");
16619 }
16620 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
16621 PyObject *resultobj;
16622 wxPrintData *arg1 = 0 ;
16623 wxPostScriptDC *result;
16624 PyObject * obj0 = 0 ;
16625 char *kwnames[] = {
16626 (char *) "printData", NULL
16627 };
16628
16629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16631 SWIG_POINTER_EXCEPTION | 0)) == -1)
16632 SWIG_fail;
16633 if (arg1 == NULL) {
16634 PyErr_SetString(PyExc_TypeError,"null reference");
16635 SWIG_fail;
16636 }
16637 {
16638 if (!wxPyCheckForApp()) SWIG_fail;
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16641
16642 wxPyEndAllowThreads(__tstate);
16643 if (PyErr_Occurred()) SWIG_fail;
16644 }
16645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16646 return resultobj;
16647 fail:
16648 return NULL;
16649 }
16650
16651
16652 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
16653 PyObject *resultobj;
16654 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16655 wxPrintData *result;
16656 PyObject * obj0 = 0 ;
16657 char *kwnames[] = {
16658 (char *) "self", NULL
16659 };
16660
16661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16664 {
16665 PyThreadState* __tstate = wxPyBeginAllowThreads();
16666 {
16667 wxPrintData &_result_ref = (arg1)->GetPrintData();
16668 result = (wxPrintData *) &_result_ref;
16669 }
16670
16671 wxPyEndAllowThreads(__tstate);
16672 if (PyErr_Occurred()) SWIG_fail;
16673 }
16674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16675 return resultobj;
16676 fail:
16677 return NULL;
16678 }
16679
16680
16681 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
16682 PyObject *resultobj;
16683 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16684 wxPrintData *arg2 = 0 ;
16685 PyObject * obj0 = 0 ;
16686 PyObject * obj1 = 0 ;
16687 char *kwnames[] = {
16688 (char *) "self",(char *) "data", NULL
16689 };
16690
16691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16695 SWIG_POINTER_EXCEPTION | 0)) == -1)
16696 SWIG_fail;
16697 if (arg2 == NULL) {
16698 PyErr_SetString(PyExc_TypeError,"null reference");
16699 SWIG_fail;
16700 }
16701 {
16702 PyThreadState* __tstate = wxPyBeginAllowThreads();
16703 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16704
16705 wxPyEndAllowThreads(__tstate);
16706 if (PyErr_Occurred()) SWIG_fail;
16707 }
16708 Py_INCREF(Py_None); resultobj = Py_None;
16709 return resultobj;
16710 fail:
16711 return NULL;
16712 }
16713
16714
16715 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
16716 PyObject *resultobj;
16717 int arg1 ;
16718 PyObject * obj0 = 0 ;
16719 char *kwnames[] = {
16720 (char *) "ppi", NULL
16721 };
16722
16723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16724 arg1 = (int)SWIG_As_int(obj0);
16725 if (PyErr_Occurred()) SWIG_fail;
16726 {
16727 PyThreadState* __tstate = wxPyBeginAllowThreads();
16728 wxPostScriptDC::SetResolution(arg1);
16729
16730 wxPyEndAllowThreads(__tstate);
16731 if (PyErr_Occurred()) SWIG_fail;
16732 }
16733 Py_INCREF(Py_None); resultobj = Py_None;
16734 return resultobj;
16735 fail:
16736 return NULL;
16737 }
16738
16739
16740 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
16741 PyObject *resultobj;
16742 int result;
16743 char *kwnames[] = {
16744 NULL
16745 };
16746
16747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16748 {
16749 PyThreadState* __tstate = wxPyBeginAllowThreads();
16750 result = (int)wxPostScriptDC::GetResolution();
16751
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 resultobj = SWIG_From_int((int)result);
16756 return resultobj;
16757 fail:
16758 return NULL;
16759 }
16760
16761
16762 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
16763 PyObject *obj;
16764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16765 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16766 Py_INCREF(obj);
16767 return Py_BuildValue((char *)"");
16768 }
16769 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
16770 PyObject *resultobj;
16771 wxString const &arg1_defvalue = wxPyEmptyString ;
16772 wxString *arg1 = (wxString *) &arg1_defvalue ;
16773 wxMetaFile *result;
16774 bool temp1 = false ;
16775 PyObject * obj0 = 0 ;
16776 char *kwnames[] = {
16777 (char *) "filename", NULL
16778 };
16779
16780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16781 if (obj0) {
16782 {
16783 arg1 = wxString_in_helper(obj0);
16784 if (arg1 == NULL) SWIG_fail;
16785 temp1 = true;
16786 }
16787 }
16788 {
16789 if (!wxPyCheckForApp()) SWIG_fail;
16790 PyThreadState* __tstate = wxPyBeginAllowThreads();
16791 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16792
16793 wxPyEndAllowThreads(__tstate);
16794 if (PyErr_Occurred()) SWIG_fail;
16795 }
16796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16797 {
16798 if (temp1)
16799 delete arg1;
16800 }
16801 return resultobj;
16802 fail:
16803 {
16804 if (temp1)
16805 delete arg1;
16806 }
16807 return NULL;
16808 }
16809
16810
16811 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
16812 PyObject *resultobj;
16813 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16814 PyObject * obj0 = 0 ;
16815 char *kwnames[] = {
16816 (char *) "self", NULL
16817 };
16818
16819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16822 {
16823 PyThreadState* __tstate = wxPyBeginAllowThreads();
16824 delete arg1;
16825
16826 wxPyEndAllowThreads(__tstate);
16827 if (PyErr_Occurred()) SWIG_fail;
16828 }
16829 Py_INCREF(Py_None); resultobj = Py_None;
16830 return resultobj;
16831 fail:
16832 return NULL;
16833 }
16834
16835
16836 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
16837 PyObject *resultobj;
16838 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16839 bool result;
16840 PyObject * obj0 = 0 ;
16841 char *kwnames[] = {
16842 (char *) "self", NULL
16843 };
16844
16845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 result = (bool)(arg1)->Ok();
16851
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 {
16856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16857 }
16858 return resultobj;
16859 fail:
16860 return NULL;
16861 }
16862
16863
16864 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
16865 PyObject *resultobj;
16866 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16867 int arg2 = (int) 0 ;
16868 int arg3 = (int) 0 ;
16869 bool result;
16870 PyObject * obj0 = 0 ;
16871 PyObject * obj1 = 0 ;
16872 PyObject * obj2 = 0 ;
16873 char *kwnames[] = {
16874 (char *) "self",(char *) "width",(char *) "height", NULL
16875 };
16876
16877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16880 if (obj1) {
16881 arg2 = (int)SWIG_As_int(obj1);
16882 if (PyErr_Occurred()) SWIG_fail;
16883 }
16884 if (obj2) {
16885 arg3 = (int)SWIG_As_int(obj2);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 {
16889 PyThreadState* __tstate = wxPyBeginAllowThreads();
16890 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16891
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 {
16896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16897 }
16898 return resultobj;
16899 fail:
16900 return NULL;
16901 }
16902
16903
16904 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16905 PyObject *resultobj;
16906 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16907 wxSize result;
16908 PyObject * obj0 = 0 ;
16909 char *kwnames[] = {
16910 (char *) "self", NULL
16911 };
16912
16913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16916 {
16917 PyThreadState* __tstate = wxPyBeginAllowThreads();
16918 result = (arg1)->GetSize();
16919
16920 wxPyEndAllowThreads(__tstate);
16921 if (PyErr_Occurred()) SWIG_fail;
16922 }
16923 {
16924 wxSize * resultptr;
16925 resultptr = new wxSize((wxSize &) result);
16926 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16927 }
16928 return resultobj;
16929 fail:
16930 return NULL;
16931 }
16932
16933
16934 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
16935 PyObject *resultobj;
16936 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16937 int result;
16938 PyObject * obj0 = 0 ;
16939 char *kwnames[] = {
16940 (char *) "self", NULL
16941 };
16942
16943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16946 {
16947 PyThreadState* __tstate = wxPyBeginAllowThreads();
16948 result = (int)(arg1)->GetWidth();
16949
16950 wxPyEndAllowThreads(__tstate);
16951 if (PyErr_Occurred()) SWIG_fail;
16952 }
16953 resultobj = SWIG_From_int((int)result);
16954 return resultobj;
16955 fail:
16956 return NULL;
16957 }
16958
16959
16960 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
16961 PyObject *resultobj;
16962 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16963 int result;
16964 PyObject * obj0 = 0 ;
16965 char *kwnames[] = {
16966 (char *) "self", NULL
16967 };
16968
16969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16972 {
16973 PyThreadState* __tstate = wxPyBeginAllowThreads();
16974 result = (int)(arg1)->GetHeight();
16975
16976 wxPyEndAllowThreads(__tstate);
16977 if (PyErr_Occurred()) SWIG_fail;
16978 }
16979 resultobj = SWIG_From_int((int)result);
16980 return resultobj;
16981 fail:
16982 return NULL;
16983 }
16984
16985
16986 static PyObject *_wrap_MetaFile_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
16987 PyObject *resultobj;
16988 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16989 wxString *result;
16990 PyObject * obj0 = 0 ;
16991 char *kwnames[] = {
16992 (char *) "self", NULL
16993 };
16994
16995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16998 {
16999 PyThreadState* __tstate = wxPyBeginAllowThreads();
17000 {
17001 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
17002 result = (wxString *) &_result_ref;
17003 }
17004
17005 wxPyEndAllowThreads(__tstate);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 }
17008 {
17009 #if wxUSE_UNICODE
17010 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17011 #else
17012 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17013 #endif
17014 }
17015 return resultobj;
17016 fail:
17017 return NULL;
17018 }
17019
17020
17021 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
17022 PyObject *obj;
17023 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17024 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
17025 Py_INCREF(obj);
17026 return Py_BuildValue((char *)"");
17027 }
17028 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
17029 PyObject *resultobj;
17030 wxString const &arg1_defvalue = wxPyEmptyString ;
17031 wxString *arg1 = (wxString *) &arg1_defvalue ;
17032 int arg2 = (int) 0 ;
17033 int arg3 = (int) 0 ;
17034 wxString const &arg4_defvalue = wxPyEmptyString ;
17035 wxString *arg4 = (wxString *) &arg4_defvalue ;
17036 wxMetaFileDC *result;
17037 bool temp1 = false ;
17038 bool temp4 = false ;
17039 PyObject * obj0 = 0 ;
17040 PyObject * obj1 = 0 ;
17041 PyObject * obj2 = 0 ;
17042 PyObject * obj3 = 0 ;
17043 char *kwnames[] = {
17044 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
17045 };
17046
17047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17048 if (obj0) {
17049 {
17050 arg1 = wxString_in_helper(obj0);
17051 if (arg1 == NULL) SWIG_fail;
17052 temp1 = true;
17053 }
17054 }
17055 if (obj1) {
17056 arg2 = (int)SWIG_As_int(obj1);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 }
17059 if (obj2) {
17060 arg3 = (int)SWIG_As_int(obj2);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 if (obj3) {
17064 {
17065 arg4 = wxString_in_helper(obj3);
17066 if (arg4 == NULL) SWIG_fail;
17067 temp4 = true;
17068 }
17069 }
17070 {
17071 if (!wxPyCheckForApp()) SWIG_fail;
17072 PyThreadState* __tstate = wxPyBeginAllowThreads();
17073 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
17074
17075 wxPyEndAllowThreads(__tstate);
17076 if (PyErr_Occurred()) SWIG_fail;
17077 }
17078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
17079 {
17080 if (temp1)
17081 delete arg1;
17082 }
17083 {
17084 if (temp4)
17085 delete arg4;
17086 }
17087 return resultobj;
17088 fail:
17089 {
17090 if (temp1)
17091 delete arg1;
17092 }
17093 {
17094 if (temp4)
17095 delete arg4;
17096 }
17097 return NULL;
17098 }
17099
17100
17101 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
17102 PyObject *resultobj;
17103 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
17104 wxMetaFile *result;
17105 PyObject * obj0 = 0 ;
17106 char *kwnames[] = {
17107 (char *) "self", NULL
17108 };
17109
17110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
17111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
17112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17113 {
17114 PyThreadState* __tstate = wxPyBeginAllowThreads();
17115 result = (wxMetaFile *)(arg1)->Close();
17116
17117 wxPyEndAllowThreads(__tstate);
17118 if (PyErr_Occurred()) SWIG_fail;
17119 }
17120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
17121 return resultobj;
17122 fail:
17123 return NULL;
17124 }
17125
17126
17127 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
17128 PyObject *obj;
17129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17130 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
17131 Py_INCREF(obj);
17132 return Py_BuildValue((char *)"");
17133 }
17134 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
17135 PyObject *resultobj;
17136 wxPrintData *arg1 = 0 ;
17137 wxPrinterDC *result;
17138 PyObject * obj0 = 0 ;
17139 char *kwnames[] = {
17140 (char *) "printData", NULL
17141 };
17142
17143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
17144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
17145 SWIG_POINTER_EXCEPTION | 0)) == -1)
17146 SWIG_fail;
17147 if (arg1 == NULL) {
17148 PyErr_SetString(PyExc_TypeError,"null reference");
17149 SWIG_fail;
17150 }
17151 {
17152 if (!wxPyCheckForApp()) SWIG_fail;
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
17160 return resultobj;
17161 fail:
17162 return NULL;
17163 }
17164
17165
17166 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
17167 PyObject *obj;
17168 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17169 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
17170 Py_INCREF(obj);
17171 return Py_BuildValue((char *)"");
17172 }
17173 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
17174 PyObject *resultobj;
17175 int arg1 ;
17176 int arg2 ;
17177 int arg3 = (int) true ;
17178 int arg4 = (int) 1 ;
17179 wxImageList *result;
17180 PyObject * obj0 = 0 ;
17181 PyObject * obj1 = 0 ;
17182 PyObject * obj2 = 0 ;
17183 PyObject * obj3 = 0 ;
17184 char *kwnames[] = {
17185 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
17186 };
17187
17188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17189 arg1 = (int)SWIG_As_int(obj0);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 arg2 = (int)SWIG_As_int(obj1);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 if (obj2) {
17194 arg3 = (int)SWIG_As_int(obj2);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 }
17197 if (obj3) {
17198 arg4 = (int)SWIG_As_int(obj3);
17199 if (PyErr_Occurred()) SWIG_fail;
17200 }
17201 {
17202 if (!wxPyCheckForApp()) SWIG_fail;
17203 PyThreadState* __tstate = wxPyBeginAllowThreads();
17204 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
17205
17206 wxPyEndAllowThreads(__tstate);
17207 if (PyErr_Occurred()) SWIG_fail;
17208 }
17209 {
17210 resultobj = wxPyMake_wxObject(result, 1);
17211 }
17212 return resultobj;
17213 fail:
17214 return NULL;
17215 }
17216
17217
17218 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
17219 PyObject *resultobj;
17220 wxImageList *arg1 = (wxImageList *) 0 ;
17221 PyObject * obj0 = 0 ;
17222 char *kwnames[] = {
17223 (char *) "self", NULL
17224 };
17225
17226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
17227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17229 {
17230 PyThreadState* __tstate = wxPyBeginAllowThreads();
17231 delete arg1;
17232
17233 wxPyEndAllowThreads(__tstate);
17234 if (PyErr_Occurred()) SWIG_fail;
17235 }
17236 Py_INCREF(Py_None); resultobj = Py_None;
17237 return resultobj;
17238 fail:
17239 return NULL;
17240 }
17241
17242
17243 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
17244 PyObject *resultobj;
17245 wxImageList *arg1 = (wxImageList *) 0 ;
17246 wxBitmap *arg2 = 0 ;
17247 wxBitmap const &arg3_defvalue = wxNullBitmap ;
17248 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
17249 int result;
17250 PyObject * obj0 = 0 ;
17251 PyObject * obj1 = 0 ;
17252 PyObject * obj2 = 0 ;
17253 char *kwnames[] = {
17254 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
17255 };
17256
17257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
17258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17260 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17261 SWIG_POINTER_EXCEPTION | 0)) == -1)
17262 SWIG_fail;
17263 if (arg2 == NULL) {
17264 PyErr_SetString(PyExc_TypeError,"null reference");
17265 SWIG_fail;
17266 }
17267 if (obj2) {
17268 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
17269 SWIG_POINTER_EXCEPTION | 0)) == -1)
17270 SWIG_fail;
17271 if (arg3 == NULL) {
17272 PyErr_SetString(PyExc_TypeError,"null reference");
17273 SWIG_fail;
17274 }
17275 }
17276 {
17277 PyThreadState* __tstate = wxPyBeginAllowThreads();
17278 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
17279
17280 wxPyEndAllowThreads(__tstate);
17281 if (PyErr_Occurred()) SWIG_fail;
17282 }
17283 resultobj = SWIG_From_int((int)result);
17284 return resultobj;
17285 fail:
17286 return NULL;
17287 }
17288
17289
17290 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
17291 PyObject *resultobj;
17292 wxImageList *arg1 = (wxImageList *) 0 ;
17293 wxBitmap *arg2 = 0 ;
17294 wxColour *arg3 = 0 ;
17295 int result;
17296 wxColour temp3 ;
17297 PyObject * obj0 = 0 ;
17298 PyObject * obj1 = 0 ;
17299 PyObject * obj2 = 0 ;
17300 char *kwnames[] = {
17301 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
17302 };
17303
17304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
17305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17308 SWIG_POINTER_EXCEPTION | 0)) == -1)
17309 SWIG_fail;
17310 if (arg2 == NULL) {
17311 PyErr_SetString(PyExc_TypeError,"null reference");
17312 SWIG_fail;
17313 }
17314 {
17315 arg3 = &temp3;
17316 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17317 }
17318 {
17319 PyThreadState* __tstate = wxPyBeginAllowThreads();
17320 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
17321
17322 wxPyEndAllowThreads(__tstate);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 }
17325 resultobj = SWIG_From_int((int)result);
17326 return resultobj;
17327 fail:
17328 return NULL;
17329 }
17330
17331
17332 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
17333 PyObject *resultobj;
17334 wxImageList *arg1 = (wxImageList *) 0 ;
17335 wxIcon *arg2 = 0 ;
17336 int result;
17337 PyObject * obj0 = 0 ;
17338 PyObject * obj1 = 0 ;
17339 char *kwnames[] = {
17340 (char *) "self",(char *) "icon", NULL
17341 };
17342
17343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
17344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17346 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
17347 SWIG_POINTER_EXCEPTION | 0)) == -1)
17348 SWIG_fail;
17349 if (arg2 == NULL) {
17350 PyErr_SetString(PyExc_TypeError,"null reference");
17351 SWIG_fail;
17352 }
17353 {
17354 PyThreadState* __tstate = wxPyBeginAllowThreads();
17355 result = (int)(arg1)->Add((wxIcon const &)*arg2);
17356
17357 wxPyEndAllowThreads(__tstate);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 resultobj = SWIG_From_int((int)result);
17361 return resultobj;
17362 fail:
17363 return NULL;
17364 }
17365
17366
17367 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
17368 PyObject *resultobj;
17369 wxImageList *arg1 = (wxImageList *) 0 ;
17370 int arg2 ;
17371 wxBitmap *arg3 = 0 ;
17372 wxBitmap const &arg4_defvalue = wxNullBitmap ;
17373 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
17374 bool result;
17375 PyObject * obj0 = 0 ;
17376 PyObject * obj1 = 0 ;
17377 PyObject * obj2 = 0 ;
17378 PyObject * obj3 = 0 ;
17379 char *kwnames[] = {
17380 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
17381 };
17382
17383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17386 arg2 = (int)SWIG_As_int(obj1);
17387 if (PyErr_Occurred()) SWIG_fail;
17388 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
17389 SWIG_POINTER_EXCEPTION | 0)) == -1)
17390 SWIG_fail;
17391 if (arg3 == NULL) {
17392 PyErr_SetString(PyExc_TypeError,"null reference");
17393 SWIG_fail;
17394 }
17395 if (obj3) {
17396 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17397 SWIG_POINTER_EXCEPTION | 0)) == -1)
17398 SWIG_fail;
17399 if (arg4 == NULL) {
17400 PyErr_SetString(PyExc_TypeError,"null reference");
17401 SWIG_fail;
17402 }
17403 }
17404 {
17405 PyThreadState* __tstate = wxPyBeginAllowThreads();
17406 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
17407
17408 wxPyEndAllowThreads(__tstate);
17409 if (PyErr_Occurred()) SWIG_fail;
17410 }
17411 {
17412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17413 }
17414 return resultobj;
17415 fail:
17416 return NULL;
17417 }
17418
17419
17420 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
17421 PyObject *resultobj;
17422 wxImageList *arg1 = (wxImageList *) 0 ;
17423 int arg2 ;
17424 wxDC *arg3 = 0 ;
17425 int arg4 ;
17426 int arg5 ;
17427 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
17428 bool arg7 = (bool) (bool)false ;
17429 bool result;
17430 PyObject * obj0 = 0 ;
17431 PyObject * obj1 = 0 ;
17432 PyObject * obj2 = 0 ;
17433 PyObject * obj3 = 0 ;
17434 PyObject * obj4 = 0 ;
17435 PyObject * obj5 = 0 ;
17436 PyObject * obj6 = 0 ;
17437 char *kwnames[] = {
17438 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
17439 };
17440
17441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17444 arg2 = (int)SWIG_As_int(obj1);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17447 SWIG_POINTER_EXCEPTION | 0)) == -1)
17448 SWIG_fail;
17449 if (arg3 == NULL) {
17450 PyErr_SetString(PyExc_TypeError,"null reference");
17451 SWIG_fail;
17452 }
17453 arg4 = (int)SWIG_As_int(obj3);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 arg5 = (int)SWIG_As_int(obj4);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 if (obj5) {
17458 arg6 = (int)SWIG_As_int(obj5);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 }
17461 if (obj6) {
17462 arg7 = (bool)SWIG_As_bool(obj6);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 }
17465 {
17466 PyThreadState* __tstate = wxPyBeginAllowThreads();
17467 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
17468
17469 wxPyEndAllowThreads(__tstate);
17470 if (PyErr_Occurred()) SWIG_fail;
17471 }
17472 {
17473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17474 }
17475 return resultobj;
17476 fail:
17477 return NULL;
17478 }
17479
17480
17481 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
17482 PyObject *resultobj;
17483 wxImageList *arg1 = (wxImageList *) 0 ;
17484 int result;
17485 PyObject * obj0 = 0 ;
17486 char *kwnames[] = {
17487 (char *) "self", NULL
17488 };
17489
17490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
17491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17493 {
17494 PyThreadState* __tstate = wxPyBeginAllowThreads();
17495 result = (int)(arg1)->GetImageCount();
17496
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
17500 resultobj = SWIG_From_int((int)result);
17501 return resultobj;
17502 fail:
17503 return NULL;
17504 }
17505
17506
17507 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
17508 PyObject *resultobj;
17509 wxImageList *arg1 = (wxImageList *) 0 ;
17510 int arg2 ;
17511 bool result;
17512 PyObject * obj0 = 0 ;
17513 PyObject * obj1 = 0 ;
17514 char *kwnames[] = {
17515 (char *) "self",(char *) "index", NULL
17516 };
17517
17518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17521 arg2 = (int)SWIG_As_int(obj1);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 {
17524 PyThreadState* __tstate = wxPyBeginAllowThreads();
17525 result = (bool)(arg1)->Remove(arg2);
17526
17527 wxPyEndAllowThreads(__tstate);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 {
17531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17532 }
17533 return resultobj;
17534 fail:
17535 return NULL;
17536 }
17537
17538
17539 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
17540 PyObject *resultobj;
17541 wxImageList *arg1 = (wxImageList *) 0 ;
17542 bool result;
17543 PyObject * obj0 = 0 ;
17544 char *kwnames[] = {
17545 (char *) "self", NULL
17546 };
17547
17548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17551 {
17552 PyThreadState* __tstate = wxPyBeginAllowThreads();
17553 result = (bool)(arg1)->RemoveAll();
17554
17555 wxPyEndAllowThreads(__tstate);
17556 if (PyErr_Occurred()) SWIG_fail;
17557 }
17558 {
17559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17560 }
17561 return resultobj;
17562 fail:
17563 return NULL;
17564 }
17565
17566
17567 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
17568 PyObject *resultobj;
17569 wxImageList *arg1 = (wxImageList *) 0 ;
17570 int arg2 ;
17571 int *arg3 = 0 ;
17572 int *arg4 = 0 ;
17573 int temp3 ;
17574 int res3 = 0 ;
17575 int temp4 ;
17576 int res4 = 0 ;
17577 PyObject * obj0 = 0 ;
17578 PyObject * obj1 = 0 ;
17579 char *kwnames[] = {
17580 (char *) "self",(char *) "index", NULL
17581 };
17582
17583 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17584 arg4 = &temp4; res4 = SWIG_NEWOBJ;
17585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17588 arg2 = (int)SWIG_As_int(obj1);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 {
17591 PyThreadState* __tstate = wxPyBeginAllowThreads();
17592 (arg1)->GetSize(arg2,*arg3,*arg4);
17593
17594 wxPyEndAllowThreads(__tstate);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 Py_INCREF(Py_None); resultobj = Py_None;
17598 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17599 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17600 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17601 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
17602 return resultobj;
17603 fail:
17604 return NULL;
17605 }
17606
17607
17608 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
17609 PyObject *obj;
17610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17611 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17612 Py_INCREF(obj);
17613 return Py_BuildValue((char *)"");
17614 }
17615 static int _wrap_NORMAL_FONT_set(PyObject *) {
17616 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17617 return 1;
17618 }
17619
17620
17621 static PyObject *_wrap_NORMAL_FONT_get() {
17622 PyObject *pyobj;
17623
17624 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17625 return pyobj;
17626 }
17627
17628
17629 static int _wrap_SMALL_FONT_set(PyObject *) {
17630 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17631 return 1;
17632 }
17633
17634
17635 static PyObject *_wrap_SMALL_FONT_get() {
17636 PyObject *pyobj;
17637
17638 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17639 return pyobj;
17640 }
17641
17642
17643 static int _wrap_ITALIC_FONT_set(PyObject *) {
17644 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17645 return 1;
17646 }
17647
17648
17649 static PyObject *_wrap_ITALIC_FONT_get() {
17650 PyObject *pyobj;
17651
17652 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17653 return pyobj;
17654 }
17655
17656
17657 static int _wrap_SWISS_FONT_set(PyObject *) {
17658 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17659 return 1;
17660 }
17661
17662
17663 static PyObject *_wrap_SWISS_FONT_get() {
17664 PyObject *pyobj;
17665
17666 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17667 return pyobj;
17668 }
17669
17670
17671 static int _wrap_RED_PEN_set(PyObject *) {
17672 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17673 return 1;
17674 }
17675
17676
17677 static PyObject *_wrap_RED_PEN_get() {
17678 PyObject *pyobj;
17679
17680 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17681 return pyobj;
17682 }
17683
17684
17685 static int _wrap_CYAN_PEN_set(PyObject *) {
17686 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17687 return 1;
17688 }
17689
17690
17691 static PyObject *_wrap_CYAN_PEN_get() {
17692 PyObject *pyobj;
17693
17694 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17695 return pyobj;
17696 }
17697
17698
17699 static int _wrap_GREEN_PEN_set(PyObject *) {
17700 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17701 return 1;
17702 }
17703
17704
17705 static PyObject *_wrap_GREEN_PEN_get() {
17706 PyObject *pyobj;
17707
17708 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17709 return pyobj;
17710 }
17711
17712
17713 static int _wrap_BLACK_PEN_set(PyObject *) {
17714 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17715 return 1;
17716 }
17717
17718
17719 static PyObject *_wrap_BLACK_PEN_get() {
17720 PyObject *pyobj;
17721
17722 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17723 return pyobj;
17724 }
17725
17726
17727 static int _wrap_WHITE_PEN_set(PyObject *) {
17728 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17729 return 1;
17730 }
17731
17732
17733 static PyObject *_wrap_WHITE_PEN_get() {
17734 PyObject *pyobj;
17735
17736 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17737 return pyobj;
17738 }
17739
17740
17741 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
17742 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17743 return 1;
17744 }
17745
17746
17747 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17748 PyObject *pyobj;
17749
17750 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17751 return pyobj;
17752 }
17753
17754
17755 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
17756 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17757 return 1;
17758 }
17759
17760
17761 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17762 PyObject *pyobj;
17763
17764 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17765 return pyobj;
17766 }
17767
17768
17769 static int _wrap_GREY_PEN_set(PyObject *) {
17770 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17771 return 1;
17772 }
17773
17774
17775 static PyObject *_wrap_GREY_PEN_get() {
17776 PyObject *pyobj;
17777
17778 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17779 return pyobj;
17780 }
17781
17782
17783 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
17784 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17785 return 1;
17786 }
17787
17788
17789 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17790 PyObject *pyobj;
17791
17792 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17793 return pyobj;
17794 }
17795
17796
17797 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
17798 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17799 return 1;
17800 }
17801
17802
17803 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17804 PyObject *pyobj;
17805
17806 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17807 return pyobj;
17808 }
17809
17810
17811 static int _wrap_BLUE_BRUSH_set(PyObject *) {
17812 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17813 return 1;
17814 }
17815
17816
17817 static PyObject *_wrap_BLUE_BRUSH_get() {
17818 PyObject *pyobj;
17819
17820 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17821 return pyobj;
17822 }
17823
17824
17825 static int _wrap_GREEN_BRUSH_set(PyObject *) {
17826 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17827 return 1;
17828 }
17829
17830
17831 static PyObject *_wrap_GREEN_BRUSH_get() {
17832 PyObject *pyobj;
17833
17834 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17835 return pyobj;
17836 }
17837
17838
17839 static int _wrap_WHITE_BRUSH_set(PyObject *) {
17840 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17841 return 1;
17842 }
17843
17844
17845 static PyObject *_wrap_WHITE_BRUSH_get() {
17846 PyObject *pyobj;
17847
17848 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17849 return pyobj;
17850 }
17851
17852
17853 static int _wrap_BLACK_BRUSH_set(PyObject *) {
17854 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17855 return 1;
17856 }
17857
17858
17859 static PyObject *_wrap_BLACK_BRUSH_get() {
17860 PyObject *pyobj;
17861
17862 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17863 return pyobj;
17864 }
17865
17866
17867 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
17868 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17869 return 1;
17870 }
17871
17872
17873 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17874 PyObject *pyobj;
17875
17876 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17877 return pyobj;
17878 }
17879
17880
17881 static int _wrap_CYAN_BRUSH_set(PyObject *) {
17882 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17883 return 1;
17884 }
17885
17886
17887 static PyObject *_wrap_CYAN_BRUSH_get() {
17888 PyObject *pyobj;
17889
17890 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17891 return pyobj;
17892 }
17893
17894
17895 static int _wrap_RED_BRUSH_set(PyObject *) {
17896 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17897 return 1;
17898 }
17899
17900
17901 static PyObject *_wrap_RED_BRUSH_get() {
17902 PyObject *pyobj;
17903
17904 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17905 return pyobj;
17906 }
17907
17908
17909 static int _wrap_GREY_BRUSH_set(PyObject *) {
17910 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17911 return 1;
17912 }
17913
17914
17915 static PyObject *_wrap_GREY_BRUSH_get() {
17916 PyObject *pyobj;
17917
17918 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17919 return pyobj;
17920 }
17921
17922
17923 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
17924 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17925 return 1;
17926 }
17927
17928
17929 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17930 PyObject *pyobj;
17931
17932 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17933 return pyobj;
17934 }
17935
17936
17937 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
17938 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17939 return 1;
17940 }
17941
17942
17943 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17944 PyObject *pyobj;
17945
17946 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17947 return pyobj;
17948 }
17949
17950
17951 static int _wrap_BLACK_set(PyObject *) {
17952 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17953 return 1;
17954 }
17955
17956
17957 static PyObject *_wrap_BLACK_get() {
17958 PyObject *pyobj;
17959
17960 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17961 return pyobj;
17962 }
17963
17964
17965 static int _wrap_WHITE_set(PyObject *) {
17966 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17967 return 1;
17968 }
17969
17970
17971 static PyObject *_wrap_WHITE_get() {
17972 PyObject *pyobj;
17973
17974 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17975 return pyobj;
17976 }
17977
17978
17979 static int _wrap_RED_set(PyObject *) {
17980 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17981 return 1;
17982 }
17983
17984
17985 static PyObject *_wrap_RED_get() {
17986 PyObject *pyobj;
17987
17988 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17989 return pyobj;
17990 }
17991
17992
17993 static int _wrap_BLUE_set(PyObject *) {
17994 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17995 return 1;
17996 }
17997
17998
17999 static PyObject *_wrap_BLUE_get() {
18000 PyObject *pyobj;
18001
18002 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
18003 return pyobj;
18004 }
18005
18006
18007 static int _wrap_GREEN_set(PyObject *) {
18008 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
18009 return 1;
18010 }
18011
18012
18013 static PyObject *_wrap_GREEN_get() {
18014 PyObject *pyobj;
18015
18016 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
18017 return pyobj;
18018 }
18019
18020
18021 static int _wrap_CYAN_set(PyObject *) {
18022 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
18023 return 1;
18024 }
18025
18026
18027 static PyObject *_wrap_CYAN_get() {
18028 PyObject *pyobj;
18029
18030 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
18031 return pyobj;
18032 }
18033
18034
18035 static int _wrap_LIGHT_GREY_set(PyObject *) {
18036 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
18037 return 1;
18038 }
18039
18040
18041 static PyObject *_wrap_LIGHT_GREY_get() {
18042 PyObject *pyobj;
18043
18044 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
18045 return pyobj;
18046 }
18047
18048
18049 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
18050 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
18051 return 1;
18052 }
18053
18054
18055 static PyObject *_wrap_STANDARD_CURSOR_get() {
18056 PyObject *pyobj;
18057
18058 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
18059 return pyobj;
18060 }
18061
18062
18063 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
18064 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
18065 return 1;
18066 }
18067
18068
18069 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
18070 PyObject *pyobj;
18071
18072 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
18073 return pyobj;
18074 }
18075
18076
18077 static int _wrap_CROSS_CURSOR_set(PyObject *) {
18078 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
18079 return 1;
18080 }
18081
18082
18083 static PyObject *_wrap_CROSS_CURSOR_get() {
18084 PyObject *pyobj;
18085
18086 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
18087 return pyobj;
18088 }
18089
18090
18091 static int _wrap_NullBitmap_set(PyObject *) {
18092 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
18093 return 1;
18094 }
18095
18096
18097 static PyObject *_wrap_NullBitmap_get() {
18098 PyObject *pyobj;
18099
18100 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
18101 return pyobj;
18102 }
18103
18104
18105 static int _wrap_NullIcon_set(PyObject *) {
18106 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
18107 return 1;
18108 }
18109
18110
18111 static PyObject *_wrap_NullIcon_get() {
18112 PyObject *pyobj;
18113
18114 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
18115 return pyobj;
18116 }
18117
18118
18119 static int _wrap_NullCursor_set(PyObject *) {
18120 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
18121 return 1;
18122 }
18123
18124
18125 static PyObject *_wrap_NullCursor_get() {
18126 PyObject *pyobj;
18127
18128 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
18129 return pyobj;
18130 }
18131
18132
18133 static int _wrap_NullPen_set(PyObject *) {
18134 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
18135 return 1;
18136 }
18137
18138
18139 static PyObject *_wrap_NullPen_get() {
18140 PyObject *pyobj;
18141
18142 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
18143 return pyobj;
18144 }
18145
18146
18147 static int _wrap_NullBrush_set(PyObject *) {
18148 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
18149 return 1;
18150 }
18151
18152
18153 static PyObject *_wrap_NullBrush_get() {
18154 PyObject *pyobj;
18155
18156 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
18157 return pyobj;
18158 }
18159
18160
18161 static int _wrap_NullPalette_set(PyObject *) {
18162 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
18163 return 1;
18164 }
18165
18166
18167 static PyObject *_wrap_NullPalette_get() {
18168 PyObject *pyobj;
18169
18170 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
18171 return pyobj;
18172 }
18173
18174
18175 static int _wrap_NullFont_set(PyObject *) {
18176 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
18177 return 1;
18178 }
18179
18180
18181 static PyObject *_wrap_NullFont_get() {
18182 PyObject *pyobj;
18183
18184 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
18185 return pyobj;
18186 }
18187
18188
18189 static int _wrap_NullColour_set(PyObject *) {
18190 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
18191 return 1;
18192 }
18193
18194
18195 static PyObject *_wrap_NullColour_get() {
18196 PyObject *pyobj;
18197
18198 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
18199 return pyobj;
18200 }
18201
18202
18203 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
18204 PyObject *resultobj;
18205 wxPenList *arg1 = (wxPenList *) 0 ;
18206 wxPen *arg2 = (wxPen *) 0 ;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 char *kwnames[] = {
18210 (char *) "self",(char *) "pen", NULL
18211 };
18212
18213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
18214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18216 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
18217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18218 {
18219 PyThreadState* __tstate = wxPyBeginAllowThreads();
18220 (arg1)->AddPen(arg2);
18221
18222 wxPyEndAllowThreads(__tstate);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 }
18225 Py_INCREF(Py_None); resultobj = Py_None;
18226 return resultobj;
18227 fail:
18228 return NULL;
18229 }
18230
18231
18232 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
18233 PyObject *resultobj;
18234 wxPenList *arg1 = (wxPenList *) 0 ;
18235 wxColour *arg2 = 0 ;
18236 int arg3 ;
18237 int arg4 ;
18238 wxPen *result;
18239 wxColour temp2 ;
18240 PyObject * obj0 = 0 ;
18241 PyObject * obj1 = 0 ;
18242 PyObject * obj2 = 0 ;
18243 PyObject * obj3 = 0 ;
18244 char *kwnames[] = {
18245 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
18246 };
18247
18248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18251 {
18252 arg2 = &temp2;
18253 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18254 }
18255 arg3 = (int)SWIG_As_int(obj2);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 arg4 = (int)SWIG_As_int(obj3);
18258 if (PyErr_Occurred()) SWIG_fail;
18259 {
18260 PyThreadState* __tstate = wxPyBeginAllowThreads();
18261 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
18262
18263 wxPyEndAllowThreads(__tstate);
18264 if (PyErr_Occurred()) SWIG_fail;
18265 }
18266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
18267 return resultobj;
18268 fail:
18269 return NULL;
18270 }
18271
18272
18273 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
18274 PyObject *resultobj;
18275 wxPenList *arg1 = (wxPenList *) 0 ;
18276 wxPen *arg2 = (wxPen *) 0 ;
18277 PyObject * obj0 = 0 ;
18278 PyObject * obj1 = 0 ;
18279 char *kwnames[] = {
18280 (char *) "self",(char *) "pen", NULL
18281 };
18282
18283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
18284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
18287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18288 {
18289 PyThreadState* __tstate = wxPyBeginAllowThreads();
18290 (arg1)->RemovePen(arg2);
18291
18292 wxPyEndAllowThreads(__tstate);
18293 if (PyErr_Occurred()) SWIG_fail;
18294 }
18295 Py_INCREF(Py_None); resultobj = Py_None;
18296 return resultobj;
18297 fail:
18298 return NULL;
18299 }
18300
18301
18302 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
18303 PyObject *resultobj;
18304 wxPenList *arg1 = (wxPenList *) 0 ;
18305 int result;
18306 PyObject * obj0 = 0 ;
18307 char *kwnames[] = {
18308 (char *) "self", NULL
18309 };
18310
18311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
18312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
18313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 result = (int)(arg1)->GetCount();
18317
18318 wxPyEndAllowThreads(__tstate);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 }
18321 resultobj = SWIG_From_int((int)result);
18322 return resultobj;
18323 fail:
18324 return NULL;
18325 }
18326
18327
18328 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
18329 PyObject *obj;
18330 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18331 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
18332 Py_INCREF(obj);
18333 return Py_BuildValue((char *)"");
18334 }
18335 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
18336 PyObject *resultobj;
18337 wxBrushList *arg1 = (wxBrushList *) 0 ;
18338 wxBrush *arg2 = (wxBrush *) 0 ;
18339 PyObject * obj0 = 0 ;
18340 PyObject * obj1 = 0 ;
18341 char *kwnames[] = {
18342 (char *) "self",(char *) "brush", NULL
18343 };
18344
18345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
18346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
18349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18350 {
18351 PyThreadState* __tstate = wxPyBeginAllowThreads();
18352 (arg1)->AddBrush(arg2);
18353
18354 wxPyEndAllowThreads(__tstate);
18355 if (PyErr_Occurred()) SWIG_fail;
18356 }
18357 Py_INCREF(Py_None); resultobj = Py_None;
18358 return resultobj;
18359 fail:
18360 return NULL;
18361 }
18362
18363
18364 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
18365 PyObject *resultobj;
18366 wxBrushList *arg1 = (wxBrushList *) 0 ;
18367 wxColour *arg2 = 0 ;
18368 int arg3 ;
18369 wxBrush *result;
18370 wxColour temp2 ;
18371 PyObject * obj0 = 0 ;
18372 PyObject * obj1 = 0 ;
18373 PyObject * obj2 = 0 ;
18374 char *kwnames[] = {
18375 (char *) "self",(char *) "colour",(char *) "style", NULL
18376 };
18377
18378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
18379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18381 {
18382 arg2 = &temp2;
18383 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18384 }
18385 arg3 = (int)SWIG_As_int(obj2);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 {
18388 PyThreadState* __tstate = wxPyBeginAllowThreads();
18389 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
18390
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
18395 return resultobj;
18396 fail:
18397 return NULL;
18398 }
18399
18400
18401 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
18402 PyObject *resultobj;
18403 wxBrushList *arg1 = (wxBrushList *) 0 ;
18404 wxBrush *arg2 = (wxBrush *) 0 ;
18405 PyObject * obj0 = 0 ;
18406 PyObject * obj1 = 0 ;
18407 char *kwnames[] = {
18408 (char *) "self",(char *) "brush", NULL
18409 };
18410
18411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
18412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
18415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 (arg1)->RemoveBrush(arg2);
18419
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 Py_INCREF(Py_None); resultobj = Py_None;
18424 return resultobj;
18425 fail:
18426 return NULL;
18427 }
18428
18429
18430 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
18431 PyObject *resultobj;
18432 wxBrushList *arg1 = (wxBrushList *) 0 ;
18433 int result;
18434 PyObject * obj0 = 0 ;
18435 char *kwnames[] = {
18436 (char *) "self", NULL
18437 };
18438
18439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
18440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 result = (int)(arg1)->GetCount();
18445
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 resultobj = SWIG_From_int((int)result);
18450 return resultobj;
18451 fail:
18452 return NULL;
18453 }
18454
18455
18456 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
18457 PyObject *obj;
18458 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18459 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
18460 Py_INCREF(obj);
18461 return Py_BuildValue((char *)"");
18462 }
18463 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
18464 PyObject *resultobj;
18465 wxColourDatabase *result;
18466 char *kwnames[] = {
18467 NULL
18468 };
18469
18470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
18471 {
18472 if (!wxPyCheckForApp()) SWIG_fail;
18473 PyThreadState* __tstate = wxPyBeginAllowThreads();
18474 result = (wxColourDatabase *)new wxColourDatabase();
18475
18476 wxPyEndAllowThreads(__tstate);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
18480 return resultobj;
18481 fail:
18482 return NULL;
18483 }
18484
18485
18486 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
18487 PyObject *resultobj;
18488 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18489 PyObject * obj0 = 0 ;
18490 char *kwnames[] = {
18491 (char *) "self", NULL
18492 };
18493
18494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18497 {
18498 PyThreadState* __tstate = wxPyBeginAllowThreads();
18499 delete arg1;
18500
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 Py_INCREF(Py_None); resultobj = Py_None;
18505 return resultobj;
18506 fail:
18507 return NULL;
18508 }
18509
18510
18511 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
18512 PyObject *resultobj;
18513 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18514 wxString *arg2 = 0 ;
18515 wxColour result;
18516 bool temp2 = false ;
18517 PyObject * obj0 = 0 ;
18518 PyObject * obj1 = 0 ;
18519 char *kwnames[] = {
18520 (char *) "self",(char *) "name", NULL
18521 };
18522
18523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18526 {
18527 arg2 = wxString_in_helper(obj1);
18528 if (arg2 == NULL) SWIG_fail;
18529 temp2 = true;
18530 }
18531 {
18532 PyThreadState* __tstate = wxPyBeginAllowThreads();
18533 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18534
18535 wxPyEndAllowThreads(__tstate);
18536 if (PyErr_Occurred()) SWIG_fail;
18537 }
18538 {
18539 wxColour * resultptr;
18540 resultptr = new wxColour((wxColour &) result);
18541 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18542 }
18543 {
18544 if (temp2)
18545 delete arg2;
18546 }
18547 return resultobj;
18548 fail:
18549 {
18550 if (temp2)
18551 delete arg2;
18552 }
18553 return NULL;
18554 }
18555
18556
18557 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
18558 PyObject *resultobj;
18559 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18560 wxColour *arg2 = 0 ;
18561 wxString result;
18562 wxColour temp2 ;
18563 PyObject * obj0 = 0 ;
18564 PyObject * obj1 = 0 ;
18565 char *kwnames[] = {
18566 (char *) "self",(char *) "colour", NULL
18567 };
18568
18569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18572 {
18573 arg2 = &temp2;
18574 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18575 }
18576 {
18577 PyThreadState* __tstate = wxPyBeginAllowThreads();
18578 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18579
18580 wxPyEndAllowThreads(__tstate);
18581 if (PyErr_Occurred()) SWIG_fail;
18582 }
18583 {
18584 #if wxUSE_UNICODE
18585 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18586 #else
18587 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18588 #endif
18589 }
18590 return resultobj;
18591 fail:
18592 return NULL;
18593 }
18594
18595
18596 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
18597 PyObject *resultobj;
18598 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18599 wxString *arg2 = 0 ;
18600 wxColour *arg3 = 0 ;
18601 bool temp2 = false ;
18602 wxColour temp3 ;
18603 PyObject * obj0 = 0 ;
18604 PyObject * obj1 = 0 ;
18605 PyObject * obj2 = 0 ;
18606 char *kwnames[] = {
18607 (char *) "self",(char *) "name",(char *) "colour", NULL
18608 };
18609
18610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18613 {
18614 arg2 = wxString_in_helper(obj1);
18615 if (arg2 == NULL) SWIG_fail;
18616 temp2 = true;
18617 }
18618 {
18619 arg3 = &temp3;
18620 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18621 }
18622 {
18623 PyThreadState* __tstate = wxPyBeginAllowThreads();
18624 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18625
18626 wxPyEndAllowThreads(__tstate);
18627 if (PyErr_Occurred()) SWIG_fail;
18628 }
18629 Py_INCREF(Py_None); resultobj = Py_None;
18630 {
18631 if (temp2)
18632 delete arg2;
18633 }
18634 return resultobj;
18635 fail:
18636 {
18637 if (temp2)
18638 delete arg2;
18639 }
18640 return NULL;
18641 }
18642
18643
18644 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
18645 PyObject *resultobj;
18646 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18647 wxString *arg2 = 0 ;
18648 int arg3 ;
18649 int arg4 ;
18650 int arg5 ;
18651 bool temp2 = false ;
18652 PyObject * obj0 = 0 ;
18653 PyObject * obj1 = 0 ;
18654 PyObject * obj2 = 0 ;
18655 PyObject * obj3 = 0 ;
18656 PyObject * obj4 = 0 ;
18657 char *kwnames[] = {
18658 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18659 };
18660
18661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18664 {
18665 arg2 = wxString_in_helper(obj1);
18666 if (arg2 == NULL) SWIG_fail;
18667 temp2 = true;
18668 }
18669 arg3 = (int)SWIG_As_int(obj2);
18670 if (PyErr_Occurred()) SWIG_fail;
18671 arg4 = (int)SWIG_As_int(obj3);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 arg5 = (int)SWIG_As_int(obj4);
18674 if (PyErr_Occurred()) SWIG_fail;
18675 {
18676 PyThreadState* __tstate = wxPyBeginAllowThreads();
18677 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18678
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 Py_INCREF(Py_None); resultobj = Py_None;
18683 {
18684 if (temp2)
18685 delete arg2;
18686 }
18687 return resultobj;
18688 fail:
18689 {
18690 if (temp2)
18691 delete arg2;
18692 }
18693 return NULL;
18694 }
18695
18696
18697 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
18698 PyObject *obj;
18699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18700 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18701 Py_INCREF(obj);
18702 return Py_BuildValue((char *)"");
18703 }
18704 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
18705 PyObject *resultobj;
18706 wxFontList *arg1 = (wxFontList *) 0 ;
18707 wxFont *arg2 = (wxFont *) 0 ;
18708 PyObject * obj0 = 0 ;
18709 PyObject * obj1 = 0 ;
18710 char *kwnames[] = {
18711 (char *) "self",(char *) "font", NULL
18712 };
18713
18714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 (arg1)->AddFont(arg2);
18722
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 Py_INCREF(Py_None); resultobj = Py_None;
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj;
18735 wxFontList *arg1 = (wxFontList *) 0 ;
18736 int arg2 ;
18737 int arg3 ;
18738 int arg4 ;
18739 int arg5 ;
18740 bool arg6 = (bool) false ;
18741 wxString const &arg7_defvalue = wxPyEmptyString ;
18742 wxString *arg7 = (wxString *) &arg7_defvalue ;
18743 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18744 wxFont *result;
18745 bool temp7 = false ;
18746 PyObject * obj0 = 0 ;
18747 PyObject * obj1 = 0 ;
18748 PyObject * obj2 = 0 ;
18749 PyObject * obj3 = 0 ;
18750 PyObject * obj4 = 0 ;
18751 PyObject * obj5 = 0 ;
18752 PyObject * obj6 = 0 ;
18753 PyObject * obj7 = 0 ;
18754 char *kwnames[] = {
18755 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18756 };
18757
18758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18761 arg2 = (int)SWIG_As_int(obj1);
18762 if (PyErr_Occurred()) SWIG_fail;
18763 arg3 = (int)SWIG_As_int(obj2);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 arg4 = (int)SWIG_As_int(obj3);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 arg5 = (int)SWIG_As_int(obj4);
18768 if (PyErr_Occurred()) SWIG_fail;
18769 if (obj5) {
18770 arg6 = (bool)SWIG_As_bool(obj5);
18771 if (PyErr_Occurred()) SWIG_fail;
18772 }
18773 if (obj6) {
18774 {
18775 arg7 = wxString_in_helper(obj6);
18776 if (arg7 == NULL) SWIG_fail;
18777 temp7 = true;
18778 }
18779 }
18780 if (obj7) {
18781 arg8 = (int)SWIG_As_int(obj7);
18782 if (PyErr_Occurred()) SWIG_fail;
18783 }
18784 {
18785 PyThreadState* __tstate = wxPyBeginAllowThreads();
18786 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18787
18788 wxPyEndAllowThreads(__tstate);
18789 if (PyErr_Occurred()) SWIG_fail;
18790 }
18791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18792 {
18793 if (temp7)
18794 delete arg7;
18795 }
18796 return resultobj;
18797 fail:
18798 {
18799 if (temp7)
18800 delete arg7;
18801 }
18802 return NULL;
18803 }
18804
18805
18806 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
18807 PyObject *resultobj;
18808 wxFontList *arg1 = (wxFontList *) 0 ;
18809 wxFont *arg2 = (wxFont *) 0 ;
18810 PyObject * obj0 = 0 ;
18811 PyObject * obj1 = 0 ;
18812 char *kwnames[] = {
18813 (char *) "self",(char *) "font", NULL
18814 };
18815
18816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18819 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18821 {
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 (arg1)->RemoveFont(arg2);
18824
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 Py_INCREF(Py_None); resultobj = Py_None;
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj;
18837 wxFontList *arg1 = (wxFontList *) 0 ;
18838 int result;
18839 PyObject * obj0 = 0 ;
18840 char *kwnames[] = {
18841 (char *) "self", NULL
18842 };
18843
18844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18847 {
18848 PyThreadState* __tstate = wxPyBeginAllowThreads();
18849 result = (int)(arg1)->GetCount();
18850
18851 wxPyEndAllowThreads(__tstate);
18852 if (PyErr_Occurred()) SWIG_fail;
18853 }
18854 resultobj = SWIG_From_int((int)result);
18855 return resultobj;
18856 fail:
18857 return NULL;
18858 }
18859
18860
18861 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
18862 PyObject *obj;
18863 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18864 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18865 Py_INCREF(obj);
18866 return Py_BuildValue((char *)"");
18867 }
18868 static int _wrap_TheFontList_set(PyObject *) {
18869 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18870 return 1;
18871 }
18872
18873
18874 static PyObject *_wrap_TheFontList_get() {
18875 PyObject *pyobj;
18876
18877 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18878 return pyobj;
18879 }
18880
18881
18882 static int _wrap_ThePenList_set(PyObject *) {
18883 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18884 return 1;
18885 }
18886
18887
18888 static PyObject *_wrap_ThePenList_get() {
18889 PyObject *pyobj;
18890
18891 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18892 return pyobj;
18893 }
18894
18895
18896 static int _wrap_TheBrushList_set(PyObject *) {
18897 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18898 return 1;
18899 }
18900
18901
18902 static PyObject *_wrap_TheBrushList_get() {
18903 PyObject *pyobj;
18904
18905 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18906 return pyobj;
18907 }
18908
18909
18910 static int _wrap_TheColourDatabase_set(PyObject *) {
18911 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18912 return 1;
18913 }
18914
18915
18916 static PyObject *_wrap_TheColourDatabase_get() {
18917 PyObject *pyobj;
18918
18919 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18920 return pyobj;
18921 }
18922
18923
18924 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
18925 PyObject *resultobj;
18926 wxEffects *result;
18927 char *kwnames[] = {
18928 NULL
18929 };
18930
18931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18932 {
18933 PyThreadState* __tstate = wxPyBeginAllowThreads();
18934 result = (wxEffects *)new wxEffects();
18935
18936 wxPyEndAllowThreads(__tstate);
18937 if (PyErr_Occurred()) SWIG_fail;
18938 }
18939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18940 return resultobj;
18941 fail:
18942 return NULL;
18943 }
18944
18945
18946 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18947 PyObject *resultobj;
18948 wxEffects *arg1 = (wxEffects *) 0 ;
18949 wxColour result;
18950 PyObject * obj0 = 0 ;
18951 char *kwnames[] = {
18952 (char *) "self", NULL
18953 };
18954
18955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18958 {
18959 PyThreadState* __tstate = wxPyBeginAllowThreads();
18960 result = ((wxEffects const *)arg1)->GetHighlightColour();
18961
18962 wxPyEndAllowThreads(__tstate);
18963 if (PyErr_Occurred()) SWIG_fail;
18964 }
18965 {
18966 wxColour * resultptr;
18967 resultptr = new wxColour((wxColour &) result);
18968 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18969 }
18970 return resultobj;
18971 fail:
18972 return NULL;
18973 }
18974
18975
18976 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18977 PyObject *resultobj;
18978 wxEffects *arg1 = (wxEffects *) 0 ;
18979 wxColour result;
18980 PyObject * obj0 = 0 ;
18981 char *kwnames[] = {
18982 (char *) "self", NULL
18983 };
18984
18985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18988 {
18989 PyThreadState* __tstate = wxPyBeginAllowThreads();
18990 result = ((wxEffects const *)arg1)->GetLightShadow();
18991
18992 wxPyEndAllowThreads(__tstate);
18993 if (PyErr_Occurred()) SWIG_fail;
18994 }
18995 {
18996 wxColour * resultptr;
18997 resultptr = new wxColour((wxColour &) result);
18998 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18999 }
19000 return resultobj;
19001 fail:
19002 return NULL;
19003 }
19004
19005
19006 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj;
19008 wxEffects *arg1 = (wxEffects *) 0 ;
19009 wxColour result;
19010 PyObject * obj0 = 0 ;
19011 char *kwnames[] = {
19012 (char *) "self", NULL
19013 };
19014
19015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
19016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19018 {
19019 PyThreadState* __tstate = wxPyBeginAllowThreads();
19020 result = ((wxEffects const *)arg1)->GetFaceColour();
19021
19022 wxPyEndAllowThreads(__tstate);
19023 if (PyErr_Occurred()) SWIG_fail;
19024 }
19025 {
19026 wxColour * resultptr;
19027 resultptr = new wxColour((wxColour &) result);
19028 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19029 }
19030 return resultobj;
19031 fail:
19032 return NULL;
19033 }
19034
19035
19036 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
19037 PyObject *resultobj;
19038 wxEffects *arg1 = (wxEffects *) 0 ;
19039 wxColour result;
19040 PyObject * obj0 = 0 ;
19041 char *kwnames[] = {
19042 (char *) "self", NULL
19043 };
19044
19045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
19046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19048 {
19049 PyThreadState* __tstate = wxPyBeginAllowThreads();
19050 result = ((wxEffects const *)arg1)->GetMediumShadow();
19051
19052 wxPyEndAllowThreads(__tstate);
19053 if (PyErr_Occurred()) SWIG_fail;
19054 }
19055 {
19056 wxColour * resultptr;
19057 resultptr = new wxColour((wxColour &) result);
19058 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19059 }
19060 return resultobj;
19061 fail:
19062 return NULL;
19063 }
19064
19065
19066 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
19067 PyObject *resultobj;
19068 wxEffects *arg1 = (wxEffects *) 0 ;
19069 wxColour result;
19070 PyObject * obj0 = 0 ;
19071 char *kwnames[] = {
19072 (char *) "self", NULL
19073 };
19074
19075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
19076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19078 {
19079 PyThreadState* __tstate = wxPyBeginAllowThreads();
19080 result = ((wxEffects const *)arg1)->GetDarkShadow();
19081
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 {
19086 wxColour * resultptr;
19087 resultptr = new wxColour((wxColour &) result);
19088 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19089 }
19090 return resultobj;
19091 fail:
19092 return NULL;
19093 }
19094
19095
19096 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
19097 PyObject *resultobj;
19098 wxEffects *arg1 = (wxEffects *) 0 ;
19099 wxColour *arg2 = 0 ;
19100 wxColour temp2 ;
19101 PyObject * obj0 = 0 ;
19102 PyObject * obj1 = 0 ;
19103 char *kwnames[] = {
19104 (char *) "self",(char *) "c", NULL
19105 };
19106
19107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
19108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19110 {
19111 arg2 = &temp2;
19112 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19113 }
19114 {
19115 PyThreadState* __tstate = wxPyBeginAllowThreads();
19116 (arg1)->SetHighlightColour((wxColour const &)*arg2);
19117
19118 wxPyEndAllowThreads(__tstate);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 Py_INCREF(Py_None); resultobj = Py_None;
19122 return resultobj;
19123 fail:
19124 return NULL;
19125 }
19126
19127
19128 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj;
19130 wxEffects *arg1 = (wxEffects *) 0 ;
19131 wxColour *arg2 = 0 ;
19132 wxColour temp2 ;
19133 PyObject * obj0 = 0 ;
19134 PyObject * obj1 = 0 ;
19135 char *kwnames[] = {
19136 (char *) "self",(char *) "c", NULL
19137 };
19138
19139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
19140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19142 {
19143 arg2 = &temp2;
19144 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19145 }
19146 {
19147 PyThreadState* __tstate = wxPyBeginAllowThreads();
19148 (arg1)->SetLightShadow((wxColour const &)*arg2);
19149
19150 wxPyEndAllowThreads(__tstate);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 }
19153 Py_INCREF(Py_None); resultobj = Py_None;
19154 return resultobj;
19155 fail:
19156 return NULL;
19157 }
19158
19159
19160 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
19161 PyObject *resultobj;
19162 wxEffects *arg1 = (wxEffects *) 0 ;
19163 wxColour *arg2 = 0 ;
19164 wxColour temp2 ;
19165 PyObject * obj0 = 0 ;
19166 PyObject * obj1 = 0 ;
19167 char *kwnames[] = {
19168 (char *) "self",(char *) "c", NULL
19169 };
19170
19171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
19172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19174 {
19175 arg2 = &temp2;
19176 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19177 }
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->SetFaceColour((wxColour const &)*arg2);
19181
19182 wxPyEndAllowThreads(__tstate);
19183 if (PyErr_Occurred()) SWIG_fail;
19184 }
19185 Py_INCREF(Py_None); resultobj = Py_None;
19186 return resultobj;
19187 fail:
19188 return NULL;
19189 }
19190
19191
19192 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
19193 PyObject *resultobj;
19194 wxEffects *arg1 = (wxEffects *) 0 ;
19195 wxColour *arg2 = 0 ;
19196 wxColour temp2 ;
19197 PyObject * obj0 = 0 ;
19198 PyObject * obj1 = 0 ;
19199 char *kwnames[] = {
19200 (char *) "self",(char *) "c", NULL
19201 };
19202
19203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
19204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19206 {
19207 arg2 = &temp2;
19208 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19209 }
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 (arg1)->SetMediumShadow((wxColour const &)*arg2);
19213
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 Py_INCREF(Py_None); resultobj = Py_None;
19218 return resultobj;
19219 fail:
19220 return NULL;
19221 }
19222
19223
19224 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj;
19226 wxEffects *arg1 = (wxEffects *) 0 ;
19227 wxColour *arg2 = 0 ;
19228 wxColour temp2 ;
19229 PyObject * obj0 = 0 ;
19230 PyObject * obj1 = 0 ;
19231 char *kwnames[] = {
19232 (char *) "self",(char *) "c", NULL
19233 };
19234
19235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
19236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19238 {
19239 arg2 = &temp2;
19240 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19241 }
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->SetDarkShadow((wxColour const &)*arg2);
19245
19246 wxPyEndAllowThreads(__tstate);
19247 if (PyErr_Occurred()) SWIG_fail;
19248 }
19249 Py_INCREF(Py_None); resultobj = Py_None;
19250 return resultobj;
19251 fail:
19252 return NULL;
19253 }
19254
19255
19256 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
19257 PyObject *resultobj;
19258 wxEffects *arg1 = (wxEffects *) 0 ;
19259 wxColour *arg2 = 0 ;
19260 wxColour *arg3 = 0 ;
19261 wxColour *arg4 = 0 ;
19262 wxColour *arg5 = 0 ;
19263 wxColour *arg6 = 0 ;
19264 wxColour temp2 ;
19265 wxColour temp3 ;
19266 wxColour temp4 ;
19267 wxColour temp5 ;
19268 wxColour temp6 ;
19269 PyObject * obj0 = 0 ;
19270 PyObject * obj1 = 0 ;
19271 PyObject * obj2 = 0 ;
19272 PyObject * obj3 = 0 ;
19273 PyObject * obj4 = 0 ;
19274 PyObject * obj5 = 0 ;
19275 char *kwnames[] = {
19276 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
19277 };
19278
19279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
19280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19282 {
19283 arg2 = &temp2;
19284 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19285 }
19286 {
19287 arg3 = &temp3;
19288 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
19289 }
19290 {
19291 arg4 = &temp4;
19292 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
19293 }
19294 {
19295 arg5 = &temp5;
19296 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
19297 }
19298 {
19299 arg6 = &temp6;
19300 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
19301 }
19302 {
19303 PyThreadState* __tstate = wxPyBeginAllowThreads();
19304 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
19305
19306 wxPyEndAllowThreads(__tstate);
19307 if (PyErr_Occurred()) SWIG_fail;
19308 }
19309 Py_INCREF(Py_None); resultobj = Py_None;
19310 return resultobj;
19311 fail:
19312 return NULL;
19313 }
19314
19315
19316 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
19317 PyObject *resultobj;
19318 wxEffects *arg1 = (wxEffects *) 0 ;
19319 wxDC *arg2 = 0 ;
19320 wxRect *arg3 = 0 ;
19321 int arg4 = (int) 1 ;
19322 wxRect temp3 ;
19323 PyObject * obj0 = 0 ;
19324 PyObject * obj1 = 0 ;
19325 PyObject * obj2 = 0 ;
19326 PyObject * obj3 = 0 ;
19327 char *kwnames[] = {
19328 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
19329 };
19330
19331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
19335 SWIG_POINTER_EXCEPTION | 0)) == -1)
19336 SWIG_fail;
19337 if (arg2 == NULL) {
19338 PyErr_SetString(PyExc_TypeError,"null reference");
19339 SWIG_fail;
19340 }
19341 {
19342 arg3 = &temp3;
19343 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19344 }
19345 if (obj3) {
19346 arg4 = (int)SWIG_As_int(obj3);
19347 if (PyErr_Occurred()) SWIG_fail;
19348 }
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
19352
19353 wxPyEndAllowThreads(__tstate);
19354 if (PyErr_Occurred()) SWIG_fail;
19355 }
19356 Py_INCREF(Py_None); resultobj = Py_None;
19357 return resultobj;
19358 fail:
19359 return NULL;
19360 }
19361
19362
19363 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
19364 PyObject *resultobj;
19365 wxEffects *arg1 = (wxEffects *) 0 ;
19366 wxRect *arg2 = 0 ;
19367 wxDC *arg3 = 0 ;
19368 wxBitmap *arg4 = 0 ;
19369 bool result;
19370 wxRect temp2 ;
19371 PyObject * obj0 = 0 ;
19372 PyObject * obj1 = 0 ;
19373 PyObject * obj2 = 0 ;
19374 PyObject * obj3 = 0 ;
19375 char *kwnames[] = {
19376 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
19377 };
19378
19379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19382 {
19383 arg2 = &temp2;
19384 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19385 }
19386 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
19387 SWIG_POINTER_EXCEPTION | 0)) == -1)
19388 SWIG_fail;
19389 if (arg3 == NULL) {
19390 PyErr_SetString(PyExc_TypeError,"null reference");
19391 SWIG_fail;
19392 }
19393 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
19394 SWIG_POINTER_EXCEPTION | 0)) == -1)
19395 SWIG_fail;
19396 if (arg4 == NULL) {
19397 PyErr_SetString(PyExc_TypeError,"null reference");
19398 SWIG_fail;
19399 }
19400 {
19401 PyThreadState* __tstate = wxPyBeginAllowThreads();
19402 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
19403
19404 wxPyEndAllowThreads(__tstate);
19405 if (PyErr_Occurred()) SWIG_fail;
19406 }
19407 {
19408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19409 }
19410 return resultobj;
19411 fail:
19412 return NULL;
19413 }
19414
19415
19416 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
19417 PyObject *obj;
19418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19419 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
19420 Py_INCREF(obj);
19421 return Py_BuildValue((char *)"");
19422 }
19423 static PyMethodDef SwigMethods[] = {
19424 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
19425 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
19426 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
19427 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
19428 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
19429 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
19430 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
19431 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
19432 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19433 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
19434 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
19435 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
19436 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
19437 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19438 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19439 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19440 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
19441 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19442 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19443 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19444 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
19445 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19446 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
19447 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
19448 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
19449 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19450 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
19451 { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL },
19452 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19453 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
19454 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
19455 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
19456 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
19457 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19458 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
19459 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19460 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19461 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19462 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
19463 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19464 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
19465 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19466 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19467 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19468 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19469 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
19470 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL },
19471 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19472 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19473 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19474 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19475 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
19476 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
19477 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
19478 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19479 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19480 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19481 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
19482 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19483 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
19484 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL },
19485 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19486 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
19487 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19488 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19489 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19490 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19491 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
19492 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
19493 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
19494 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19495 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19496 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19497 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19498 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19499 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19500 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19501 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
19502 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
19503 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
19504 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
19505 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19506 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
19507 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
19508 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19509 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19510 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19511 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19512 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19513 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19514 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19515 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL },
19516 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS, NULL },
19517 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL },
19518 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19519 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19520 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
19521 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
19522 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
19523 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
19524 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
19525 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19526 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19527 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19528 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
19529 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
19530 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19531 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19532 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19533 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19534 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19535 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19536 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19537 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19538 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19539 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19540 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19541 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
19542 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19543 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
19544 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
19545 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19546 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19547 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
19548 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
19549 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
19550 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
19551 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
19552 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19553 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
19554 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19555 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
19556 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19557 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
19558 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
19559 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
19560 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
19561 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
19562 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19563 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
19564 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19565 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19566 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19567 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19568 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19569 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19570 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19571 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19572 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
19573 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
19574 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19575 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
19576 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
19577 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
19578 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19579 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
19580 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
19581 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19582 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
19583 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
19584 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
19585 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
19586 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
19587 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19588 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
19589 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
19590 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
19591 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19592 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
19593 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
19594 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19595 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
19596 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
19597 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19598 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19599 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19600 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
19601 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
19602 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
19603 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
19604 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
19605 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
19606 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
19607 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19608 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
19609 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19610 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
19611 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
19612 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
19613 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
19614 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
19615 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
19616 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19617 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19618 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
19619 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
19620 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19621 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction) _wrap_NativeFontInfo_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
19622 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19623 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19624 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19625 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19626 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19627 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19628 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19629 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
19630 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19631 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19632 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19633 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19634 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19635 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19636 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
19637 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
19638 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
19639 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
19640 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
19641 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
19642 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
19643 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
19644 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
19645 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
19646 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19647 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19648 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
19649 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
19650 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
19651 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19652 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19653 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
19654 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
19655 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
19656 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19657 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19658 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
19659 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19660 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
19661 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
19662 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
19663 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
19664 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
19665 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
19666 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19667 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
19668 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
19669 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
19670 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
19671 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
19672 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
19673 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19674 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
19675 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
19676 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
19677 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19678 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
19679 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
19680 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19681 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
19682 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL },
19683 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19684 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19685 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19686 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19687 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19688 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19689 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19690 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19691 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19692 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19693 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19694 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
19695 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19696 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19697 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19698 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19699 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19700 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19701 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19702 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
19703 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19704 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
19705 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
19706 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
19707 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
19708 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
19709 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19710 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19711 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
19712 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19713 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19714 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19715 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19716 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19717 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19718 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19719 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
19720 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
19721 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
19722 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
19723 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
19724 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
19725 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
19726 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
19727 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19728 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19729 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
19730 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
19731 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19732 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19733 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
19734 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
19735 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19736 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19737 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
19738 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
19739 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
19740 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
19741 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
19742 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19743 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
19744 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19745 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19746 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
19747 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
19748 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
19749 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19750 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
19751 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19752 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19753 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
19754 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
19755 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19756 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19757 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
19758 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
19759 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
19760 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19761 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19762 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
19763 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19764 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19765 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19766 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
19767 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19768 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
19769 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19770 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
19771 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19772 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
19773 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
19774 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
19775 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19776 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19777 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19778 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19779 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19780 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19781 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19782 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19783 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19784 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
19785 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19786 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
19787 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
19788 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19789 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19790 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19791 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19792 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19793 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
19794 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19795 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
19796 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19797 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
19798 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19799 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19800 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19801 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19802 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19803 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
19804 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
19805 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19806 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19807 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
19808 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19809 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19810 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19811 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
19812 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
19813 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19814 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19815 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19816 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19817 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19818 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19819 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19820 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19821 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19822 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19823 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19824 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19825 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19826 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19827 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
19828 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19829 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19830 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
19831 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19832 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
19833 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
19834 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19835 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19836 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
19837 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
19838 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19839 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19840 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19841 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19842 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19843 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
19844 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19845 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19846 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19847 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19848 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19849 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19850 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19851 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19852 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19853 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19854 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19855 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19856 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19857 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19858 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19859 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19860 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19861 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19862 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19863 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19864 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19865 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19866 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19867 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19868 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
19869 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19870 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19871 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19872 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19873 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19874 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
19875 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
19876 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
19877 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
19878 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19879 { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS, NULL },
19880 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
19881 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
19882 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
19883 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
19884 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
19885 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
19886 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
19887 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
19888 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
19889 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
19890 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
19891 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
19892 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
19893 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
19894 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
19895 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19896 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
19897 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
19898 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
19899 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19900 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19901 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
19902 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
19903 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
19904 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19905 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
19906 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
19907 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
19908 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
19909 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
19910 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
19911 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19912 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19913 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19914 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19915 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
19916 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19917 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19918 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19919 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
19920 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19921 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19922 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19923 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
19924 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
19925 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
19926 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
19927 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
19928 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
19929 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
19930 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19931 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19932 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
19933 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
19934 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19935 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
19936 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
19937 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
19938 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
19939 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
19940 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19941 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
19942 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
19943 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
19944 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
19945 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19946 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
19947 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19948 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19949 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19950 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19951 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
19952 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19953 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19954 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
19955 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
19956 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
19957 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
19958 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
19959 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
19960 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
19961 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
19962 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19963 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
19964 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
19965 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19966 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19967 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19968 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19969 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19970 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19971 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19972 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19973 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19974 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19975 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19976 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19977 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19978 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19979 { NULL, NULL, 0, NULL }
19980 };
19981
19982
19983 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19984
19985 static void *_p_wxControlTo_p_wxWindow(void *x) {
19986 return (void *)((wxWindow *) ((wxControl *) x));
19987 }
19988 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19989 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19990 }
19991 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19992 return (void *)((wxWindow *) ((wxMenuBar *) x));
19993 }
19994 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19995 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19996 }
19997 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19998 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19999 }
20000 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
20001 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
20002 }
20003 static void *_p_wxPenTo_p_wxObject(void *x) {
20004 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
20005 }
20006 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
20007 return (void *)((wxObject *) ((wxRegionIterator *) x));
20008 }
20009 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
20010 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
20011 }
20012 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
20013 return (void *)((wxObject *) ((wxSizerItem *) x));
20014 }
20015 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
20016 return (void *)((wxObject *) ((wxColourDatabase *) x));
20017 }
20018 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
20019 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
20020 }
20021 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
20022 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
20023 }
20024 static void *_p_wxIconTo_p_wxObject(void *x) {
20025 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
20026 }
20027 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
20028 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
20029 }
20030 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
20031 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
20032 }
20033 static void *_p_wxSizerTo_p_wxObject(void *x) {
20034 return (void *)((wxObject *) ((wxSizer *) x));
20035 }
20036 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
20037 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
20038 }
20039 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
20040 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
20041 }
20042 static void *_p_wxPenListTo_p_wxObject(void *x) {
20043 return (void *)((wxObject *) ((wxPenList *) x));
20044 }
20045 static void *_p_wxEventTo_p_wxObject(void *x) {
20046 return (void *)((wxObject *) ((wxEvent *) x));
20047 }
20048 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
20049 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
20050 }
20051 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
20052 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
20053 }
20054 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
20055 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
20056 }
20057 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
20058 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
20059 }
20060 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
20061 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
20062 }
20063 static void *_p_wxDCTo_p_wxObject(void *x) {
20064 return (void *)((wxObject *) ((wxDC *) x));
20065 }
20066 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
20067 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
20068 }
20069 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
20070 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
20071 }
20072 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
20073 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
20074 }
20075 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
20076 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
20077 }
20078 static void *_p_wxControlTo_p_wxObject(void *x) {
20079 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
20080 }
20081 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
20082 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
20083 }
20084 static void *_p_wxClientDCTo_p_wxObject(void *x) {
20085 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
20086 }
20087 static void *_p_wxFSFileTo_p_wxObject(void *x) {
20088 return (void *)((wxObject *) ((wxFSFile *) x));
20089 }
20090 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
20091 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
20092 }
20093 static void *_p_wxRegionTo_p_wxObject(void *x) {
20094 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
20095 }
20096 static void *_p_wxPySizerTo_p_wxObject(void *x) {
20097 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
20098 }
20099 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
20100 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
20101 }
20102 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
20103 return (void *)((wxObject *) ((wxGDIObject *) x));
20104 }
20105 static void *_p_wxEffectsTo_p_wxObject(void *x) {
20106 return (void *)((wxObject *) ((wxEffects *) x));
20107 }
20108 static void *_p_wxPyEventTo_p_wxObject(void *x) {
20109 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
20110 }
20111 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
20112 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
20113 }
20114 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
20115 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
20116 }
20117 static void *_p_wxShowEventTo_p_wxObject(void *x) {
20118 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
20119 }
20120 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
20121 return (void *)((wxObject *) ((wxMenuItem *) x));
20122 }
20123 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
20124 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
20125 }
20126 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
20127 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
20128 }
20129 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
20130 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
20131 }
20132 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
20133 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
20134 }
20135 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
20136 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
20137 }
20138 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
20139 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
20140 }
20141 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
20142 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
20143 }
20144 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
20145 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
20146 }
20147 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
20148 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
20149 }
20150 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
20151 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
20152 }
20153 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
20154 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
20155 }
20156 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
20157 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
20158 }
20159 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
20160 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
20161 }
20162 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
20163 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
20164 }
20165 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
20166 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
20167 }
20168 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
20169 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
20170 }
20171 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
20172 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
20173 }
20174 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
20175 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
20176 }
20177 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
20178 return (void *)((wxObject *) ((wxImageHandler *) x));
20179 }
20180 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
20181 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
20182 }
20183 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
20184 return (void *)((wxObject *) ((wxEvtHandler *) x));
20185 }
20186 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
20187 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
20188 }
20189 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
20190 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
20191 }
20192 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
20193 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
20194 }
20195 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
20196 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
20197 }
20198 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
20199 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
20200 }
20201 static void *_p_wxImageTo_p_wxObject(void *x) {
20202 return (void *)((wxObject *) ((wxImage *) x));
20203 }
20204 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
20205 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
20206 }
20207 static void *_p_wxPaletteTo_p_wxObject(void *x) {
20208 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
20209 }
20210 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
20211 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
20212 }
20213 static void *_p_wxImageListTo_p_wxObject(void *x) {
20214 return (void *)((wxObject *) ((wxImageList *) x));
20215 }
20216 static void *_p_wxCursorTo_p_wxObject(void *x) {
20217 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
20218 }
20219 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
20220 return (void *)((wxObject *) ((wxEncodingConverter *) x));
20221 }
20222 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
20223 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
20224 }
20225 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
20226 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
20227 }
20228 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
20229 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
20230 }
20231 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
20232 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
20233 }
20234 static void *_p_wxWindowTo_p_wxObject(void *x) {
20235 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
20236 }
20237 static void *_p_wxMenuTo_p_wxObject(void *x) {
20238 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
20239 }
20240 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
20241 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
20242 }
20243 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
20244 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
20245 }
20246 static void *_p_wxBrushListTo_p_wxObject(void *x) {
20247 return (void *)((wxObject *) ((wxBrushList *) x));
20248 }
20249 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
20250 return (void *)((wxObject *) ((wxFileSystem *) x));
20251 }
20252 static void *_p_wxBitmapTo_p_wxObject(void *x) {
20253 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
20254 }
20255 static void *_p_wxMaskTo_p_wxObject(void *x) {
20256 return (void *)((wxObject *) ((wxMask *) x));
20257 }
20258 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
20259 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
20260 }
20261 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
20262 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
20263 }
20264 static void *_p_wxPyAppTo_p_wxObject(void *x) {
20265 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
20266 }
20267 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
20268 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
20269 }
20270 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
20271 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
20272 }
20273 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
20274 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
20275 }
20276 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
20277 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
20278 }
20279 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
20280 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
20281 }
20282 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
20283 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
20284 }
20285 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
20286 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
20287 }
20288 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
20289 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
20290 }
20291 static void *_p_wxFontTo_p_wxObject(void *x) {
20292 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
20293 }
20294 static void *_p_wxBrushTo_p_wxObject(void *x) {
20295 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
20296 }
20297 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
20298 return (void *)((wxObject *) ((wxMetaFile *) x));
20299 }
20300 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
20301 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
20302 }
20303 static void *_p_wxColourTo_p_wxObject(void *x) {
20304 return (void *)((wxObject *) ((wxColour *) x));
20305 }
20306 static void *_p_wxFontListTo_p_wxObject(void *x) {
20307 return (void *)((wxObject *) ((wxFontList *) x));
20308 }
20309 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
20310 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
20311 }
20312 static void *_p_wxValidatorTo_p_wxObject(void *x) {
20313 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
20314 }
20315 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
20316 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
20317 }
20318 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
20319 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
20320 }
20321 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
20322 return (void *)((wxDC *) ((wxScreenDC *) x));
20323 }
20324 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
20325 return (void *)((wxDC *) ((wxMirrorDC *) x));
20326 }
20327 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
20328 return (void *)((wxDC *) ((wxMemoryDC *) x));
20329 }
20330 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
20331 return (void *)((wxDC *) ((wxWindowDC *) x));
20332 }
20333 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
20334 return (void *)((wxDC *) ((wxMetaFileDC *) x));
20335 }
20336 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
20337 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
20338 }
20339 static void *_p_wxClientDCTo_p_wxDC(void *x) {
20340 return (void *)((wxDC *) ((wxClientDC *) x));
20341 }
20342 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
20343 return (void *)((wxDC *) ((wxPaintDC *) x));
20344 }
20345 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
20346 return (void *)((wxDC *) ((wxPostScriptDC *) x));
20347 }
20348 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
20349 return (void *)((wxDC *) ((wxPrinterDC *) x));
20350 }
20351 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
20352 return (void *)((wxGDIObject *) ((wxIcon *) x));
20353 }
20354 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
20355 return (void *)((wxGDIObject *) ((wxPalette *) x));
20356 }
20357 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
20358 return (void *)((wxGDIObject *) ((wxPen *) x));
20359 }
20360 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
20361 return (void *)((wxGDIObject *) ((wxFont *) x));
20362 }
20363 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
20364 return (void *)((wxGDIObject *) ((wxCursor *) x));
20365 }
20366 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
20367 return (void *)((wxGDIObject *) ((wxBitmap *) x));
20368 }
20369 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
20370 return (void *)((wxGDIObject *) ((wxRegion *) x));
20371 }
20372 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
20373 return (void *)((wxGDIObject *) ((wxBrush *) x));
20374 }
20375 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}};
20376 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}};
20377 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}};
20378 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}};
20379 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}};
20380 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}};
20381 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}};
20382 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}};
20383 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}};
20384 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}};
20385 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}};
20386 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}};
20387 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}};
20388 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}};
20389 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}};
20390 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}};
20391 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}};
20392 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}};
20393 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}};
20394 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}};
20395 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}};
20396 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}};
20397 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}};
20398 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}};
20399 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}};
20400 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}};
20401 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}};
20402 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}};
20403 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}};
20404 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}};
20405 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}};
20406 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}};
20407 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}};
20408 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}};
20409 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}};
20410 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}};
20411 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}};
20412 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}};
20413 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}};
20414 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}};
20415 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}};
20416 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}};
20417 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}};
20418 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}};
20419 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}};
20420 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}};
20421 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}};
20422 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}};
20423 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}};
20424 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}};
20425 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}};
20426 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}};
20427 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}};
20428 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}};
20429 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}};
20430
20431 static swig_type_info *swig_types_initial[] = {
20432 _swigt__p_wxPostScriptDC,
20433 _swigt__p_wxBrush,
20434 _swigt__p_wxColour,
20435 _swigt__p_wxDC,
20436 _swigt__p_wxMirrorDC,
20437 _swigt__p_byte,
20438 _swigt__p_wxPyFontEnumerator,
20439 _swigt__p_char,
20440 _swigt__p_wxIconLocation,
20441 _swigt__p_wxImage,
20442 _swigt__p_wxMetaFileDC,
20443 _swigt__p_wxMask,
20444 _swigt__p_wxSize,
20445 _swigt__p_wxFont,
20446 _swigt__p_wxWindow,
20447 _swigt__p_double,
20448 _swigt__p_wxMemoryDC,
20449 _swigt__p_wxFontMapper,
20450 _swigt__p_wxEffects,
20451 _swigt__p_wxNativeEncodingInfo,
20452 _swigt__p_wxPalette,
20453 _swigt__p_wxBitmap,
20454 _swigt__p_wxObject,
20455 _swigt__p_wxRegionIterator,
20456 _swigt__p_wxRect,
20457 _swigt__p_wxString,
20458 _swigt__p_wxPrinterDC,
20459 _swigt__p_wxIconBundle,
20460 _swigt__p_wxPoint,
20461 _swigt__p_wxDash,
20462 _swigt__p_wxScreenDC,
20463 _swigt__p_wxCursor,
20464 _swigt__p_wxClientDC,
20465 _swigt__p_wxBufferedDC,
20466 _swigt__p_wxImageList,
20467 _swigt__p_unsigned_char,
20468 _swigt__p_wxGDIObject,
20469 _swigt__p_wxIcon,
20470 _swigt__p_wxLocale,
20471 _swigt__p_wxRegion,
20472 _swigt__p_wxLanguageInfo,
20473 _swigt__p_wxConfigBase,
20474 _swigt__p_wxWindowDC,
20475 _swigt__p_wxPrintData,
20476 _swigt__p_wxBrushList,
20477 _swigt__p_wxFontList,
20478 _swigt__p_wxPen,
20479 _swigt__p_wxBufferedPaintDC,
20480 _swigt__p_wxPaintDC,
20481 _swigt__p_wxPenList,
20482 _swigt__p_int,
20483 _swigt__p_wxMetaFile,
20484 _swigt__p_wxNativeFontInfo,
20485 _swigt__p_wxEncodingConverter,
20486 _swigt__p_wxColourDatabase,
20487 0
20488 };
20489
20490
20491 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
20492
20493 static swig_const_info swig_const_table[] = {
20494 {0, 0, 0, 0.0, 0, 0}};
20495
20496 #ifdef __cplusplus
20497 }
20498 #endif
20499
20500 #ifdef __cplusplus
20501 extern "C"
20502 #endif
20503 SWIGEXPORT(void) SWIG_init(void) {
20504 static PyObject *SWIG_globals = 0;
20505 static int typeinit = 0;
20506 PyObject *m, *d;
20507 int i;
20508 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20509 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20510 d = PyModule_GetDict(m);
20511
20512 if (!typeinit) {
20513 for (i = 0; swig_types_initial[i]; i++) {
20514 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20515 }
20516 typeinit = 1;
20517 }
20518 SWIG_InstallConstants(d,swig_const_table);
20519
20520 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
20521 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
20522 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
20523 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
20524 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
20525 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
20526 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
20527 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
20528 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
20529 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
20530 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
20531 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
20532 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
20533 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
20534 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
20535 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
20536 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
20537 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
20538 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
20539 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
20540 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
20541 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
20542 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
20543 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
20544 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
20545 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
20546 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
20547 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
20548 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
20549 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
20550 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
20551 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
20552 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
20553 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
20554 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
20555 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
20556 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
20557 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
20558 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
20559 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
20560 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
20561 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
20562 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
20563 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
20564 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
20565 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
20566 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
20567 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
20568 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
20569 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
20570 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
20571 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
20572 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
20573 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
20574 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
20575 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
20576 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
20577 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
20578 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
20579 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
20580 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
20581 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
20582 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
20583 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
20584 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
20585 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
20586 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
20587 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
20588 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
20589 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
20590 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
20591 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
20592 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
20593 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
20594 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
20595 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
20596 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
20597 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
20598 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
20599 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
20600 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
20601 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
20602 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
20603 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
20604 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
20605 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
20606 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
20607 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
20608 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
20609 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
20610 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
20611 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
20612 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
20613 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
20614 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
20615 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
20616 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
20617 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
20618 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
20619 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
20620 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
20621 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
20622 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
20623 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
20624 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
20625 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
20626 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
20627 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
20628 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
20629 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
20630 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
20631 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
20632 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
20633 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
20634 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
20635 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
20636 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
20637 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
20638 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
20639 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
20640 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
20641 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
20642 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
20643 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
20644 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
20645 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
20646 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
20647
20648 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20649
20650 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
20651 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
20652 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
20653 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
20654 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
20655 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
20656 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
20657 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
20658 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
20659 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
20660 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
20661 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
20662 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
20663 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
20664 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
20665 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
20666 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
20667 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
20668 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
20669 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20670 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
20671 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
20672 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
20673 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
20674 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
20675 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
20676 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
20677 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
20678 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
20679 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
20680 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
20681 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
20682 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
20683 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
20684 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
20685 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
20686 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
20687 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
20688 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
20689 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
20690 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
20691 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
20692 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
20693 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
20694 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20695 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20696 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
20697 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
20698 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
20699 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
20700 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
20701 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
20702 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
20703 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
20704 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
20705 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
20706 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
20707 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
20708 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
20709 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20710 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
20711 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20712 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
20713 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20714 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
20715 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
20716 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
20717 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20718 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20719 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20720 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20721 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20722 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
20723 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
20724 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
20725 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
20726 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
20727 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
20728 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
20729 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
20730 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
20731 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20732 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
20733 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
20734 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
20735 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
20736 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
20737 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
20738 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20739 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
20740 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20741 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20742 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
20743 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
20744 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
20745 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
20746 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
20747 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
20748 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
20749 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
20750 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
20751 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
20752 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
20753 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
20754 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
20755 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
20756 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
20757 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
20758 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
20759 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
20760 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
20761 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
20762 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
20763 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
20764 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
20765 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
20766 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
20767 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
20768 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
20769 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
20770 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
20771 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
20772 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
20773 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
20774 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
20775 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
20776 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
20777 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
20778 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
20779 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
20780 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
20781 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
20782 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20783 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
20784 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
20785 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
20786 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
20787 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
20788 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
20789 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
20790 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
20791 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
20792 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
20793 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20794 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20795 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
20796 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
20797 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
20798 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
20799 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
20800 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
20801 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20802 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
20803 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
20804 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
20805 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
20806 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
20807 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20808 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
20809 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
20810 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
20811 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
20812 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
20813 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20814 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
20815 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
20816 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
20817 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
20818 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
20819 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
20820 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
20821 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
20822 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
20823 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
20824 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
20825 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
20826 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
20827 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
20828 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
20829 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
20830 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20831 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20832 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
20833 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20834 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
20835 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
20836 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
20837 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
20838 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
20839 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
20840 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
20841 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
20842 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20843 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
20844 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
20845 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
20846 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
20847 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
20848 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
20849 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
20850 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
20851 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
20852 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
20853 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
20854 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
20855 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
20856 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
20857 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
20858 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
20859 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
20860 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
20861 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
20862 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
20863 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
20864 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
20865 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
20866 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
20867 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
20868 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
20869 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
20870 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
20871 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
20872 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
20873 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
20874 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
20875 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
20876 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
20877 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
20878 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
20879 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
20880 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
20881 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
20882 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
20883 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
20884 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
20885 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
20886 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
20887 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
20888 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
20889 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
20890 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
20891 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
20892 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
20893 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
20894 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
20895 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
20896 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
20897 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
20898 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
20899 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
20900 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
20901 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
20902 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
20903 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20904 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20905 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20906 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20907 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20908 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20909 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20910 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20911 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20912 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20913 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20914 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20915 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20916 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20917 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20918 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20919 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20920 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20921 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20922 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20923 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20924 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20925 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20926 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20927 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20928 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20929 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20930 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20931 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20932 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20933 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20934 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20935 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20936 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20937 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20938 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20939 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20940 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20941 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20942 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20943 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20944 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20945 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20946 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20947 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20948 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20949 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20950
20951 // Work around a chicken/egg problem in drawlist.cpp
20952 wxPyDrawList_SetAPIPtr();
20953
20954 }
20955